]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/commitdiff
Merge remote-tracking branch 'tebert/diffutils'
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Apr 2013 16:12:34 +0000 (18:12 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 16 Apr 2013 16:12:34 +0000 (18:12 +0200)
93 files changed:
aiccu/aiccu.nm
aiccu/systemd/aiccu@.service [new file with mode: 0644]
authconfig/authconfig.nm
bash-completion/bash-completion.nm
binutils/binutils.nm
binutils/patches/binutils-2.22.52.0.1-relro-on-by-default.patch
binutils/patches/binutils-2.22.52.0.1-warn-textrel.patch [new file with mode: 0644]
binutils/patches/binutils-2.23.52.0.1-as-doc-texinfo-fixes.patch0 [new file with mode: 0644]
binutils/patches/binutils-2.23.52.0.1-hardened-crtbegin.patch [moved from binutils/patches/binutils-2.22-hardened-crtbegin.patch with 71% similarity]
binutils/patches/binutils-2.23.52.0.1-pt-pax-flags-20130326.patch [moved from binutils/patches/binutils-2.23.51.0.5-pt-pax-flags-20121112.patch with 75% similarity]
bridge-utils/bridge-utils.nm
bridge-utils/patches/bridge-utils-1.5-linux_3.8_fix-1.patch [new file with mode: 0644]
c-ares/c-ares.nm [new file with mode: 0644]
coreutils/coreutils.nm
coreutils/patches/coreutils-i18n.patch
coreutils/patches/coreutils-ipfire-disabled-tests.patch
coreutils/patches/coreutils-selinux.patch
ding-libs/ding-libs.nm [new file with mode: 0644]
dosfstools/dosfstools.nm
dtc/dtc.nm [new file with mode: 0644]
dtc/patches/dtc-check.patch [new file with mode: 0644]
dtc/patches/dtc-flattree.patch [new file with mode: 0644]
file/file.nm
gnu-efi/gnu-efi.nm [new file with mode: 0644]
gnu-efi/patches/gnu-efi-3.0q-Add-.S-and-.E-rules.patch [new file with mode: 0644]
gnu-efi/patches/gnu-efi-3.0q-Fix-usage-of-INSTALLROOT-PREFIX-and-LIBDIR.patch [new file with mode: 0644]
gnu-efi/patches/gnu-efi-3.0q-machine-types.patch [new file with mode: 0644]
grub/grub.nm
grub/patches/grub-2.00-ignore-gnulib-gets-stupidity.patch [new file with mode: 0644]
gummiboot/gummiboot.nm [new file with mode: 0644]
iproute2/iproute2.nm
kernel/config-arm-generic
kernel/config-armv5tel-kirkwood
kernel/config-armv7hl-exynos
kernel/config-armv7hl-omap
kernel/config-generic
kernel/config-i686-default
kernel/config-i686-legacy
kernel/config-x86-generic
kernel/config-x86_64-default
kernel/kernel.nm
kernel/patches/grsecurity-2.9.1-3.8.6-201304091939.patch [moved from kernel/patches/grsecurity-2.9.1-3.7.7-201302112308.patch with 80% similarity]
kernel/patches/linux-exynos-ohci.diff [deleted file]
kernel/patches/linux-mmc-sdhci.diff [deleted file]
kernel/patches/linux-pm-domain.diff [deleted file]
kernel/patches/linux-serial-core.diff [deleted file]
libldb/libldb.nm [new file with mode: 0644]
libnetfilter_conntrack/libnetfilter_conntrack.nm
libtalloc/libtalloc.nm [new file with mode: 0644]
libtdb/libtdb.nm [new file with mode: 0644]
libtevent/libtevent.nm [new file with mode: 0644]
linux-firmware/linux-firmware.nm
lldpd/lldpd.nm
nano/nano.nm
network/network.nm
nss-myhostname/nss-myhostname.nm
openldap/ldapcert.sh [new file with mode: 0644]
openldap/openldap-conf.ldif [new file with mode: 0644]
openldap/openldap.nm
openldap/slapd.conf [deleted file]
openldap/systemd/openldap.service
openldap/systemd/openldap.socket
openssl/openssl.nm
openssl/patches/openssl-0.9.8j-env-nozlib.patch [deleted file]
openssl/patches/openssl-1.0.0-fips-pkcs8.patch [deleted file]
openssl/patches/openssl-1.0.1-version.patch
openssl/patches/openssl-1.0.1e-backports.patch [new file with mode: 0644]
openssl/patches/openssl-1.0.1e-env-zlib.patch [new file with mode: 0644]
openssl/patches/openssl-1.0.1e-fips.patch [moved from openssl/patches/openssl-1.0.1b-fips.patch with 95% similarity]
openssl/patches/openssl-1.0.1e-issuer-hash.patch [new file with mode: 0644]
openvswitch/openvswitch.nm
openvswitch/systemd/openvswitch.service
pam/pam.nm
pam/patches/pam-1.1.5-unix-build.patch [new file with mode: 0644]
pam/patches/pam-1.1.5-unix-no-fallback.patch [new file with mode: 0644]
perl-libintl-perl/perl-libintl-perl.nm [new file with mode: 0644]
pkg-config/pkg-config.nm
python-tornado/python-tornado.nm
sssd/sssd.conf [new file with mode: 0644]
sssd/sssd.nm [new file with mode: 0644]
systemd/patches/systemd-187-ipfire.patch [deleted file]
systemd/systemd.nm
texinfo/patches/texinfo-4.12-zlib.patch [deleted file]
texinfo/patches/texinfo-4.13a-data_types.patch [deleted file]
texinfo/patches/texinfo-4.13a-help-index-segfault.patch [deleted file]
texinfo/patches/texinfo-4.13a-makeinfo-sectioning.patch [deleted file]
texinfo/patches/texinfo-4.13a-mosdo-crash.patch [deleted file]
texinfo/patches/texinfo-4.13a-powerpc.patch [deleted file]
texinfo/patches/texinfo-4.13a-testsuite_fix.patch [deleted file]
texinfo/patches/texinfo-4.13a-texi2dvi-regexp.patch [deleted file]
texinfo/texinfo.nm
tzdata/tzdata.nm
ulogd2/ulogd2.nm

index a879172aa8170f0e15b15ff2d48648f46502386c..a97fb4e6ce3dbae2e6a02f7e5cf7ff0555e73575 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = aiccu
 version    = 20070115
-release    = 1
+release    = 2
 
 groups     = System/Daemons
 url        = http://www.sixxs.net/tools/aiccu/
@@ -19,6 +19,7 @@ description
 end
 
 source_dl  = http://www.sixxs.net/archive/sixxs/aiccu/unix/
+sources = %{name}_%{version}.tar.gz
 
 build
        requires
@@ -27,11 +28,10 @@ build
 
        DIR_APP = %{DIR_SRC}/%{name}
 
-       build
-               %{DO_FIX_LIBTOOL}
-               make %{PARALLELISMFLAGS} RPM_OPT_FLAGS="%{CFLAGS}"
-       end
+       make_build_targets += \
+               RPM_OPT_FLAGS="%{CFLAGS}"
 
+       # Remove old sysvinit stuff and emtpy usr/share directory.
        install_cmds
                rm -rvf %{BUILDROOT}/{etc,usr/share}
        end
@@ -39,6 +39,17 @@ end
 
 packages
        package %{name}
+               script postin
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postup
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postun
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
        end
 
        package %{name}-debuginfo
diff --git a/aiccu/systemd/aiccu@.service b/aiccu/systemd/aiccu@.service
new file mode 100644 (file)
index 0000000..38653a6
--- /dev/null
@@ -0,0 +1,17 @@
+[Unit]
+Description=AICCU (Automatic IPv6 Connectivity Configuration Utility) on %I
+
+[Service]
+ExecStartPre=/usr/lib/network/helpers/aiccu-config-helper create %I
+ExecStart=/usr/sbin/aiccu start /run/network/%I/aiccu.conf
+ExecStop=/usr/sbin/aiccu stop /run/network/%I/aiccu.conf
+ExecStopPost=/usr/lib/network/helpers/aiccu-config-helper remove %I
+
+UtmpIdentifier=%I
+
+# WARNING: never run AICCU from DaemonTools or a similar automated
+# 'restart' tool/script. When AICCU does not start, it has a reason
+# not to start which it gives on either the stdout or in the (sys)log
+# file. The TIC server *will* automatically disable accounts which
+# are detected to run in this mode.
+Restart=no
index 56f2f7bfda8be8884f75683729f1a03f384b9685..1dd4a7e0b916cb94ac9f595d293941cb4d5b5254 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = authconfig
-version    = 6.2.2
-release    = 5
+version    = 6.2.5
+release    = 1
 
 groups     = System/Base
 url        = https://fedorahosted.org/authconfig
@@ -75,7 +75,6 @@ packages
                requires
                        libpwquality
                        newt-python
-                       nss_ldap
                end
 
                configfiles
index 2648f96647e334ad2379597250e63d493dd67edd..cf944d30d952f6b7eeed42c4703cf2b2233d7ae1 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = bash-completion
-version    = 1.99
-release    = 2
+version    = 2.1
+release    = 1
 arch       = noarch
 
 groups     = Development/Languages
index 00da9a464c5ec50aa8d76be5b276b2ad401f3c9b..ecde05136055be2f77c694a32e17b0740275eb5f 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = binutils
-version    = 2.23.51.0.5
+version    = 2.23.52.0.1
 release    = 1
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
index 3910df182894213a9ff18206c9e7028ef656d3de..65a6c97b8e68b5f37e9b34979c48d2c69676a612 100644 (file)
@@ -2,9 +2,9 @@ diff -Nur binutils-2.22.52.0.4-vanilla/ld/emultempl/armelf.em binutils-2.22.52.0
 --- binutils-2.22.52.0.4-vanilla/ld/emultempl/armelf.em        2012-06-05 18:44:10.000000000 +0200
 +++ binutils-2.22.52.0.4/ld/emultempl/armelf.em        2012-06-08 13:34:30.578427241 +0200
 @@ -52,6 +52,7 @@
- #endif /* not TARGET_ */
    input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
    config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
+   config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
 +  link_info.relro = TRUE;
  }
  
diff --git a/binutils/patches/binutils-2.22.52.0.1-warn-textrel.patch b/binutils/patches/binutils-2.22.52.0.1-warn-textrel.patch
new file mode 100644 (file)
index 0000000..72a0477
--- /dev/null
@@ -0,0 +1,51 @@
+textrels are bad for forcing copy-on-write (this affects everyone),
+and for security/runtime code generation, this affects security ppl.
+But in either case, it doesn't matter who needs textrels, it's
+the very fact that they're needed at all.
+
+2006-06-10  Ned Ludd  <solar@gentoo.org>, Mike Frysinger <vapier@gentoo.org>
+
+       * bfd/elflink.c (bfd_elf_final_link): Check all objects for TEXTRELs.
+       * ld/ldmain.c (main): Change textrel warning default to true.
+       * ld/testsuite/lib/ld-lib.exp (default_ld_simple_link): Scrub TEXTREL
+       warnings from ld output.
+
+--- a/bfd/elflink.c
++++ b/bfd/elflink.c
+@@ -8652,7 +8652,7 @@ bfd_elf_final_link (bfd *abfd, struct bf
+       goto error_return;
+       /* Check for DT_TEXTREL (late, in case the backend removes it).  */
+-      if (((info->warn_shared_textrel && info->shared)
++      if ((info->warn_shared_textrel
+          || info->error_textrel)
+         && (o = bfd_get_section_by_name (dynobj, ".dynamic")) != NULL)
+       {
+@@ -8702,7 +8702,7 @@ bfd_elf_final_link (bfd *abfd, struct bf
+                     (_("%P%X: read-only segment has dynamic relocations.\n"));
+                 else
+                   info->callbacks->einfo
+-                    (_("%P: warning: creating a DT_TEXTREL in a shared object.\n"));
++                    (_("%P: warning: creating a DT_TEXTREL in object.\n"));
+                 break;
+               }
+           }
+--- a/ld/ldmain.c
++++ b/ld/ldmain.c
+@@ -282,2 +282,3 @@ main (int argc, char **argv)
+   link_info.spare_dynamic_tags = 5;
++  link_info.warn_shared_textrel = TRUE;
+   link_info.sharable_sections = FALSE;
+--- a/ld/testsuite/lib/ld-lib.exp
++++ b/ld/testsuite/lib/ld-lib.exp
+@@ -181,6 +181,10 @@ proc default_ld_simple_link { ld target 
+     # symbol, since the default linker script might use ENTRY.
+     regsub -all "(^|\n)(\[^\n\]*: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output
++    # Gentoo tweak:
++    # We want to ignore TEXTREL warnings since we force enable them by default
++    regsub -all "^lt-ld-new: warning: creating a DT_TEXTREL in object\." $exec_output "\\1" exec_output
++
+     if [string match "" $exec_output] then {
+       return 1
+     } else {
diff --git a/binutils/patches/binutils-2.23.52.0.1-as-doc-texinfo-fixes.patch0 b/binutils/patches/binutils-2.23.52.0.1-as-doc-texinfo-fixes.patch0
new file mode 100644 (file)
index 0000000..d0b657f
--- /dev/null
@@ -0,0 +1,279 @@
+diff -cp ../binutils-2.23.52.0.1.orig/gas/doc/c-arc.texi gas/doc/c-arc.texi
+*** ../binutils-2.23.52.0.1.orig/gas/doc/c-arc.texi    2013-03-04 08:25:32.051931944 +0000
+--- gas/doc/c-arc.texi 2013-03-04 08:26:19.234930452 +0000
+*************** The extension instructions are not macro
+*** 220,226 ****
+  encodings for use of these instructions according to the specification
+  by the user.  The parameters are:
+  
+! @table @bullet
+  @item @var{name}
+  Name of the extension instruction
+  
+--- 220,226 ----
+  encodings for use of these instructions according to the specification
+  by the user.  The parameters are:
+  
+! @table @code
+  @item @var{name}
+  Name of the extension instruction
+  
+diff -cp ../binutils-2.23.52.0.1.orig/gas/doc/c-arm.texi gas/doc/c-arm.texi
+*** ../binutils-2.23.52.0.1.orig/gas/doc/c-arm.texi    2013-03-04 08:25:32.039931945 +0000
+--- gas/doc/c-arm.texi 2013-03-04 08:27:37.462927978 +0000
+*************** ARM and THUMB instructions had their own
+*** 390,418 ****
+  @code{unified} syntax, which can be selected via the @code{.syntax}
+  directive, and has the following main features:
+  
+! @table @bullet
+! @item
+  Immediate operands do not require a @code{#} prefix.
+  
+! @item
+  The @code{IT} instruction may appear, and if it does it is validated
+  against subsequent conditional affixes.  In ARM mode it does not
+  generate machine code, in THUMB mode it does.
+  
+! @item
+  For ARM instructions the conditional affixes always appear at the end
+  of the instruction.  For THUMB instructions conditional affixes can be
+  used, but only inside the scope of an @code{IT} instruction.
+  
+! @item
+  All of the instructions new to the V6T2 architecture (and later) are
+  available.  (Only a few such instructions can be written in the
+  @code{divided} syntax).
+  
+! @item
+  The @code{.N} and @code{.W} suffixes are recognized and honored.
+  
+! @item
+  All instructions set the flags if and only if they have an @code{s}
+  affix.
+  @end table
+--- 390,418 ----
+  @code{unified} syntax, which can be selected via the @code{.syntax}
+  directive, and has the following main features:
+  
+! @table @code
+! @item 1
+  Immediate operands do not require a @code{#} prefix.
+  
+! @item 2
+  The @code{IT} instruction may appear, and if it does it is validated
+  against subsequent conditional affixes.  In ARM mode it does not
+  generate machine code, in THUMB mode it does.
+  
+! @item 3
+  For ARM instructions the conditional affixes always appear at the end
+  of the instruction.  For THUMB instructions conditional affixes can be
+  used, but only inside the scope of an @code{IT} instruction.
+  
+! @item 4
+  All of the instructions new to the V6T2 architecture (and later) are
+  available.  (Only a few such instructions can be written in the
+  @code{divided} syntax).
+  
+! @item 5
+  The @code{.N} and @code{.W} suffixes are recognized and honored.
+  
+! @item 6
+  All instructions set the flags if and only if they have an @code{s}
+  affix.
+  @end table
+*************** Either @samp{#} or @samp{$} can be used
+*** 451,478 ****
+  @cindex register names, ARM
+  *TODO* Explain about ARM register naming, and the predefined names.
+  
+- @node ARM-Neon-Alignment
+- @subsection NEON Alignment Specifiers
+- 
+- @cindex alignment for NEON instructions
+- Some NEON load/store instructions allow an optional address
+- alignment qualifier.
+- The ARM documentation specifies that this is indicated by
+- @samp{@@ @var{align}}. However GAS already interprets
+- the @samp{@@} character as a "line comment" start,
+- so @samp{: @var{align}} is used instead.  For example:
+- 
+- @smallexample
+-         vld1.8 @{q0@}, [r0, :128]
+- @end smallexample
+- 
+- @node ARM Floating Point
+- @section Floating Point
+- 
+- @cindex floating point, ARM (@sc{ieee})
+- @cindex ARM floating point (@sc{ieee})
+- The ARM family uses @sc{ieee} floating-point numbers.
+- 
+  @node ARM-Relocations
+  @subsection ARM relocation generation
+  
+--- 451,456 ----
+*************** respectively.  For example to load the 3
+*** 519,524 ****
+--- 497,524 ----
+          MOVT r0, #:upper16:foo
+  @end smallexample
+  
++ @node ARM-Neon-Alignment
++ @subsection NEON Alignment Specifiers
++ 
++ @cindex alignment for NEON instructions
++ Some NEON load/store instructions allow an optional address
++ alignment qualifier.
++ The ARM documentation specifies that this is indicated by
++ @samp{@@ @var{align}}. However GAS already interprets
++ the @samp{@@} character as a "line comment" start,
++ so @samp{: @var{align}} is used instead.  For example:
++ 
++ @smallexample
++         vld1.8 @{q0@}, [r0, :128]
++ @end smallexample
++ 
++ @node ARM Floating Point
++ @section Floating Point
++ 
++ @cindex floating point, ARM (@sc{ieee})
++ @cindex ARM floating point (@sc{ieee})
++ The ARM family uses @sc{ieee} floating-point numbers.
++ 
+  @node ARM Directives
+  @section ARM Machine Directives
+  
+diff -cp ../binutils-2.23.52.0.1.orig/gas/doc/c-cr16.texi gas/doc/c-cr16.texi
+*** ../binutils-2.23.52.0.1.orig/gas/doc/c-cr16.texi   2013-03-04 08:25:32.086931943 +0000
+--- gas/doc/c-cr16.texi        2013-03-04 08:28:09.304926971 +0000
+*************** Operand expression type qualifier is an
+*** 44,69 ****
+  CR16 target operand qualifiers and its size (in bits):
+  
+  @table @samp
+! @item Immediate Operand
+! - s ---- 4 bits
+! @item
+! - m ---- 16 bits, for movb and movw instructions.
+! @item
+! - m ---- 20 bits, movd instructions.
+! @item
+! - l ---- 32 bits
+! 
+! @item Absolute Operand
+! - s ---- Illegal specifier for this operand.
+! @item
+! - m ---- 20 bits, movd instructions.
+! 
+! @item Displacement Operand
+! - s ---- 8 bits
+! @item
+! - m ---- 16 bits
+! @item
+! - l ---- 24 bits
+  @end table
+  
+  For example:
+--- 44,76 ----
+  CR16 target operand qualifiers and its size (in bits):
+  
+  @table @samp
+! @item Immediate Operand: s
+! 4 bits.
+! 
+! @item Immediate Operand: m
+! 16 bits, for movb and movw instructions.
+! 
+! @item Immediate Operand: m
+! 20 bits, movd instructions.
+! 
+! @item Immediate Operand: l
+! 32 bits.
+! 
+! @item Absolute Operand: s
+! Illegal specifier for this operand.
+! 
+! @item Absolute Operand: m
+! 20 bits, movd instructions.
+! 
+! @item Displacement Operand: s
+! 8 bits.
+! 
+! @item Displacement Operand: m
+! 16 bits.
+! 
+! @item Displacement Operand: l
+! 24 bits.
+! 
+  @end table
+  
+  For example:
+diff -cp ../binutils-2.23.52.0.1.orig/gas/doc/c-tic54x.texi gas/doc/c-tic54x.texi
+*** ../binutils-2.23.52.0.1.orig/gas/doc/c-tic54x.texi 2013-03-04 08:25:32.035931945 +0000
+--- gas/doc/c-tic54x.texi      2013-03-04 08:28:38.186926057 +0000
+*************** In this example, x is replaced with SYM2
+*** 109,115 ****
+  is replaced with x.  At this point, x has already been encountered
+  and the substitution stops.
+  
+! @smallexample @code
+   .asg   "x",SYM1
+   .asg   "SYM1",SYM2
+   .asg   "SYM2",x
+--- 109,115 ----
+  is replaced with x.  At this point, x has already been encountered
+  and the substitution stops.
+  
+! @smallexample
+   .asg   "x",SYM1
+   .asg   "SYM1",SYM2
+   .asg   "SYM2",x
+*************** Substitution may be forced in situations
+*** 126,139 ****
+  ambiguous by placing colons on either side of the subsym.  The following
+  code:
+  
+! @smallexample @code
+   .eval  "10",x
+  LAB:X:  add     #x, a
+  @end smallexample
+  
+  When assembled becomes:
+  
+! @smallexample @code
+  LAB10  add     #10, a
+  @end smallexample
+  
+--- 126,139 ----
+  ambiguous by placing colons on either side of the subsym.  The following
+  code:
+  
+! @smallexample
+   .eval  "10",x
+  LAB:X:  add     #x, a
+  @end smallexample
+  
+  When assembled becomes:
+  
+! @smallexample
+  LAB10  add     #10, a
+  @end smallexample
+  
+*************** The @code{LDX} pseudo-op is provided for
+*** 309,315 ****
+  of a label or address.  For example, if an address @code{_label} resides
+  in extended program memory, the value of @code{_label} may be loaded as
+  follows:
+! @smallexample @code
+   ldx     #_label,16,a    ; loads extended bits of _label
+   or      #_label,a       ; loads lower 16 bits of _label
+   bacc    a               ; full address is in accumulator A
+--- 309,315 ----
+  of a label or address.  For example, if an address @code{_label} resides
+  in extended program memory, the value of @code{_label} may be loaded as
+  follows:
+! @smallexample
+   ldx     #_label,16,a    ; loads extended bits of _label
+   or      #_label,a       ; loads lower 16 bits of _label
+   bacc    a               ; full address is in accumulator A
similarity index 71%
rename from binutils/patches/binutils-2.22-hardened-crtbegin.patch
rename to binutils/patches/binutils-2.23.52.0.1-hardened-crtbegin.patch
index bc26187594dc7c763b1cb10ae188373f6ef959ae..996bce5fc4e1c6d250bf210ce8e88086c5e5e03f 100644 (file)
@@ -14,10 +14,10 @@ PIE+PIC gcc objects (until we get a chance to rename them).
  if test "${ENABLE_INITFINI_ARRAY}" = "yes"; then
    SORT_INIT_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))"
    SORT_FINI_ARRAY="KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))"
--  CTORS_IN_INIT_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors))"
--  DTORS_IN_FINI_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))"
-+  CTORS_IN_INIT_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtbeginTS.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors))"
-+  DTORS_IN_FINI_ARRAY="KEEP (*(EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtbeginTS.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors))"
+-  CTORS_IN_INIT_ARRAY="EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors"
+-  DTORS_IN_FINI_ARRAY="EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors"
++  CTORS_IN_INIT_ARRAY="EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtbeginTS.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .ctors"
++  DTORS_IN_FINI_ARRAY="EXCLUDE_FILE (*crtbegin.o *crtbegin?.o *crtbeginTS.o *crtend.o *crtend?.o $OTHER_EXCLUDE_FILES) .dtors"
  else
    SORT_INIT_ARRAY="KEEP (*(SORT(.init_array.*)))"
    SORT_FINI_ARRAY="KEEP (*(SORT(.fini_array.*)))"
similarity index 75%
rename from binutils/patches/binutils-2.23.51.0.5-pt-pax-flags-20121112.patch
rename to binutils/patches/binutils-2.23.52.0.1-pt-pax-flags-20130326.patch
index 9b476c3c21092d598e6bcf8c7fd2abed1e6ce783..b173b2ae768cd58a4df67444240c7326be7a23fb 100644 (file)
@@ -1,5 +1,5 @@
---- binutils-2.23.51.0.5/bfd/elf-bfd.h
-+++ binutils-2.23.51.0.5/bfd/elf-bfd.h
+--- binutils-2.23.52.0.1/bfd/elf-bfd.h
++++ binutils-2.23.52.0.1/bfd/elf-bfd.h
 @@ -1577,6 +1577,9 @@ struct elf_obj_tdata
    /* Segment flags for the PT_GNU_STACK segment.  */
    unsigned int stack_flags;
@@ -7,11 +7,19 @@
 +  /* Segment flags for the PT_PAX_FLAGS segment.  */
 +  unsigned int pax_flags;
 +
-   /* Symbol version definitions in external objects.  */
-   Elf_Internal_Verdef *verdef;
---- binutils-2.23.51.0.5/bfd/elf.c
-+++ binutils-2.23.51.0.5/bfd/elf.c
+   /* This is set to TRUE if the object was created by the backend
+      linker.  */
+   bfd_boolean linker;
+@@ -1707,6 +1707,7 @@
+ #define elf_eh_frame_hdr(bfd) (elf_tdata(bfd) -> o->eh_frame_hdr)
+ #define elf_linker(bfd)               (elf_tdata(bfd) -> o->linker)
+ #define elf_stack_flags(bfd)  (elf_tdata(bfd) -> o->stack_flags)
++#define elf_pax_flags(bfd)    (elf_tdata(bfd) -> o->pax_flags)
+ #define elf_shstrtab(bfd)     (elf_tdata(bfd) -> o->strtab_ptr)
+ #define elf_onesymtab(bfd)    (elf_tdata(bfd) -> symtab_section)
+ #define elf_symtab_shndx(bfd) (elf_tdata(bfd) -> symtab_shndx_section)
+--- binutils-2.23.52.0.1/bfd/elf.c
++++ binutils-2.23.52.0.1/bfd/elf.c
 @@ -1158,6 +1158,7 @@ get_segment_type (unsigned int p_type)
      case PT_GNU_EH_FRAME: pt = "EH_FRAME"; break;
      case PT_GNU_STACK: pt = "STACK"; break;
@@ -53,7 +61,7 @@
 +      goto error_return;
 +      m->next = NULL;
 +      m->p_type = PT_PAX_FLAGS;
-+      m->p_flags = elf_tdata (abfd)->pax_flags;
++      m->p_flags = elf_pax_flags (abfd);
 +      m->p_flags_valid = 1;
 +
 +      *pm = m;
     && (segment->p_type != PT_TLS                                      \
         || (section->flags & SEC_THREAD_LOCAL))                                \
     && (segment->p_type == PT_LOAD                                     \
---- binutils-2.23.51.0.5/bfd/elflink.c
-+++ binutils-2.23.51.0.5/bfd/elflink.c
+--- binutils-2.23.52.0.1/bfd/elflink.c
++++ binutils-2.23.52.0.1/bfd/elflink.c
 @@ -5545,17 +5545,30 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd,
        && ! (*bed->elf_backend_always_size_sections) (output_bfd, info))
      return FALSE;
  
-+  elf_tdata (output_bfd)->pax_flags = PF_NORANDEXEC;
++  elf_pax_flags (output_bfd) = PF_NORANDEXEC;
 +  if (info->execheap)
-+    elf_tdata (output_bfd)->pax_flags |= PF_NOMPROTECT;
++    elf_pax_flags (output_bfd) |= PF_NOMPROTECT;
 +  else if (info->noexecheap)
-+    elf_tdata (output_bfd)->pax_flags |= PF_MPROTECT;
++    elf_pax_flags (output_bfd) |= PF_MPROTECT;
 +
    /* Determine any GNU_STACK segment requirements, after the backend
       has had a chance to set a default segment size.  */
    if (info->execstack)
--    elf_tdata (output_bfd)->stack_flags = PF_R | PF_W | PF_X;
+-    elf_stack_flags (output_bfd) = PF_R | PF_W | PF_X;
 +    {
-+      elf_tdata (output_bfd)->stack_flags = PF_R | PF_W | PF_X;
-+      elf_tdata (output_bfd)->pax_flags |= PF_EMUTRAMP;
++      elf_stack_flags (output_bfd) = PF_R | PF_W | PF_X;
++      elf_pax_flags (output_bfd) |= PF_EMUTRAMP;
 +    }
    else if (info->noexecstack)
--    elf_tdata (output_bfd)->stack_flags = PF_R | PF_W;
+-    elf_stack_flags (output_bfd) = PF_R | PF_W;
 +    {
-+      elf_tdata (output_bfd)->stack_flags = PF_R | PF_W;
-+      elf_tdata (output_bfd)->pax_flags |= PF_NOEMUTRAMP;
++      elf_stack_flags (output_bfd) = PF_R | PF_W;
++      elf_pax_flags (output_bfd) |= PF_NOEMUTRAMP;
 +    }
    else
      {
        asection *notesec = NULL;
        int exec = 0;
  
-+      elf_tdata (output_bfd)->pax_flags |= PF_NOEMUTRAMP;
++      elf_pax_flags (output_bfd) |= PF_NOEMUTRAMP;
        for (inputobj = info->input_bfds;
           inputobj;
           inputobj = inputobj->link_next)
              if (s->flags & SEC_CODE)
 -              exec = PF_X;
 +              {
-+                elf_tdata (output_bfd)->pax_flags &= ~PF_NOEMUTRAMP;
-+                elf_tdata (output_bfd)->pax_flags |= PF_EMUTRAMP;
++                elf_pax_flags (output_bfd) &= ~PF_NOEMUTRAMP;
++                elf_pax_flags (output_bfd) |= PF_EMUTRAMP;
 +                exec = PF_X;
 +              }
              notesec = s;
            }
          else if (bed->default_execstack)
---- binutils-2.23.51.0.5/binutils/readelf.c
-+++ binutils-2.23.51.0.5/binutils/readelf.c
+--- binutils-2.23.52.0.1/binutils/readelf.c
++++ binutils-2.23.52.0.1/binutils/readelf.c
 @@ -2740,6 +2740,7 @@ get_segment_type (unsigned long p_type)
                        return "GNU_EH_FRAME";
      case PT_GNU_STACK:        return "GNU_STACK";
  
      default:
        if ((p_type >= PT_LOPROC) && (p_type <= PT_HIPROC))
---- binutils-2.23.51.0.5/include/bfdlink.h
-+++ binutils-2.23.51.0.5/include/bfdlink.h
+--- binutils-2.23.52.0.1/include/bfdlink.h
++++ binutils-2.23.52.0.1/include/bfdlink.h
 @@ -322,6 +322,14 @@ struct bfd_link_info
    /* TRUE if PT_GNU_RELRO segment should be created.  */
    unsigned int relro: 1;
    /* TRUE if .eh_frame_hdr section and PT_GNU_EH_FRAME ELF segment
       should be created.  */
    unsigned int eh_frame_hdr: 1;
---- binutils-2.23.51.0.5/include/elf/common.h
-+++ binutils-2.23.51.0.5/include/elf/common.h
+--- binutils-2.23.52.0.1/include/elf/common.h
++++ binutils-2.23.52.0.1/include/elf/common.h
 @@ -429,6 +429,7 @@
  #define PT_SUNW_EH_FRAME PT_GNU_EH_FRAME      /* Solaris uses the same value */
  #define PT_GNU_STACK  (PT_LOOS + 0x474e551) /* Stack flags */
  /* Values for section header, sh_type field.  */
  
  #define SHT_NULL      0               /* Section header table entry unused */
---- binutils-2.23.51.0.5/ld/emultempl/elf32.em
-+++ binutils-2.23.51.0.5/ld/emultempl/elf32.em
+--- binutils-2.23.52.0.1/ld/emultempl/elf32.em
++++ binutils-2.23.52.0.1/ld/emultempl/elf32.em
 @@ -2285,6 +2285,16 @@ fragment <<EOF
          link_info.noexecstack = TRUE;
          link_info.execstack = FALSE;
  EOF
  if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then
  fragment <<EOF
---- binutils-2.23.51.0.5/ld/ldgram.y
-+++ binutils-2.23.51.0.5/ld/ldgram.y
+--- binutils-2.23.52.0.1/ld/ldgram.y
++++ binutils-2.23.52.0.1/ld/ldgram.y
 @@ -1119,6 +1119,8 @@ phdr_type:
                            $$ = exp_intop (0x6474e550);
                          else if (strcmp (s, "PT_GNU_STACK") == 0)
                          else
                            {
                              einfo (_("\
---- binutils-2.23.51.0.5/ld/testsuite/ld-alpha/tlsbin.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-alpha/tlsbin.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-alpha/tlsbin.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-alpha/tlsbin.rd
 @@ -35,13 +35,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+
  
  Program Headers:
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 3 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-alpha/tlsbinr.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-alpha/tlsbinr.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-alpha/tlsbinr.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-alpha/tlsbinr.rd
 @@ -42,6 +42,7 @@ Program Headers:
   +LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RWE 0x10000
   +DYNAMIC +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RW +0x8
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 2 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-alpha/tlspic.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-alpha/tlspic.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-alpha/tlspic.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-alpha/tlspic.rd
 @@ -38,6 +38,7 @@ Program Headers:
   +LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RWE 0x10000
   +DYNAMIC +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RW +0x8
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 7 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-elf/eh1.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-elf/eh1.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-elf/eh1.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-elf/eh1.d
 @@ -22,11 +22,11 @@ Contents of the .eh_frame section:
    DW_CFA_nop
    DW_CFA_nop
    DW_CFA_def_cfa_register: r6 \(rbp\)
  
  00000038 ZERO terminator
---- binutils-2.23.51.0.5/ld/testsuite/ld-elf/eh2.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-elf/eh2.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-elf/eh2.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-elf/eh2.d
 @@ -22,11 +22,11 @@ Contents of the .eh_frame section:
    DW_CFA_nop
    DW_CFA_nop
    DW_CFA_def_cfa_register: r6 \(rbp\)
  
  00000038 ZERO terminator
---- binutils-2.23.51.0.5/ld/testsuite/ld-elf/eh3.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-elf/eh3.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-elf/eh3.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-elf/eh3.d
 @@ -22,11 +22,11 @@ Contents of the .eh_frame section:
    DW_CFA_nop
    DW_CFA_nop
    DW_CFA_def_cfa_register: r6 \(rbp\)
  
  00000038 ZERO terminator
---- binutils-2.23.51.0.5/ld/testsuite/ld-elf/orphan-region.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-elf/orphan-region.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-elf/orphan-region.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-elf/orphan-region.d
 @@ -15,7 +15,9 @@
  Program Headers:
    Type.*
    Segment Sections...
     00     .text .rodata .moredata *
 +   01 +
---- binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsbin.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsbin.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsbin.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsbin.rd
 @@ -44,6 +44,7 @@ Program Headers:
   +LOAD.*
   +DYNAMIC.*
  
  Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 9 entries:
   Offset +Info +Type +Sym.Value +Sym. Name
---- binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsbindesc.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsbindesc.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsbindesc.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsbindesc.rd
 @@ -42,6 +42,7 @@ Program Headers:
   +LOAD.*
   +DYNAMIC.*
  
  Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 9 entries:
   Offset +Info +Type +Sym.Value +Sym. Name
---- binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsdesc.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsdesc.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsdesc.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsdesc.rd
 @@ -39,6 +39,7 @@ Program Headers:
   +LOAD.*
   +DYNAMIC.*
  
  Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 20 entries:
   Offset +Info +Type +Sym.Value +Sym. Name
---- binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsgdesc.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsgdesc.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsgdesc.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsgdesc.rd
 @@ -36,12 +36,14 @@ Program Headers:
   +LOAD.*
   +LOAD.*
  
  Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 8 entries:
   Offset +Info +Type +Sym.Value +Sym. Name
---- binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsnopic.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlsnopic.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsnopic.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlsnopic.rd
 @@ -37,6 +37,7 @@ Program Headers:
   +LOAD.*
   +DYNAMIC.*
  
  Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 20 entries:
   Offset +Info +Type +Sym.Value +Sym. Name
---- binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlspic.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-i386/tlspic.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlspic.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-i386/tlspic.rd
 @@ -40,6 +40,7 @@ Program Headers:
   +LOAD.*
   +DYNAMIC.*
  
  Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 26 entries:
   Offset +Info +Type +Sym.Value +Sym. Name
---- binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge1.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge1.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge1.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge1.d
 @@ -4,7 +4,7 @@
  #objdump: -d
  
  [     ]*[a-f0-9]+:    0b 60 80 02 00 24       \[MMI\]       addl r12=32,r1;;
  [     ]*[a-f0-9]+:    c0 c0 04 00 48 00                   addl r12=24,r1
  [     ]*[a-f0-9]+:    00 00 04 00                         nop.i 0x0;;
---- binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge2.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge2.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge2.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge2.d
 @@ -4,7 +4,7 @@
  #objdump: -d
  
  [     ]*[a-f0-9]+:    0b 60 80 02 00 24       \[MMI\]       addl r12=32,r1;;
  [     ]*[a-f0-9]+:    c0 c0 04 00 48 00                   addl r12=24,r1
  [     ]*[a-f0-9]+:    00 00 04 00                         nop.i 0x0;;
---- binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge3.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge3.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge3.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge3.d
 @@ -4,7 +4,7 @@
  #objdump: -d
  
  [     ]*[a-f0-9]+:    0b 60 80 02 00 24       \[MMI\]       addl r12=32,r1;;
  [     ]*[a-f0-9]+:    c0 40 05 00 48 00                   addl r12=40,r1
  [     ]*[a-f0-9]+:    00 00 04 00                         nop.i 0x0;;
---- binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge4.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge4.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge4.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge4.d
 @@ -4,7 +4,7 @@
  #objdump: -d
  
  [     ]*[a-f0-9]+:    0b 60 80 02 00 24       \[MMI\]       addl r12=32,r1;;
  [     ]*[a-f0-9]+:    c0 40 05 00 48 00                   addl r12=40,r1
  [     ]*[a-f0-9]+:    00 00 04 00                         nop.i 0x0;;
---- binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge5.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-ia64/merge5.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge5.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-ia64/merge5.d
 @@ -4,7 +4,7 @@
  #objdump: -d
  
  [     ]*[a-f0-9]+:    0b 60 80 02 00 24       \[MMI\]       addl r12=32,r1;;
  [     ]*[a-f0-9]+:    c0 40 05 00 48 00                   addl r12=40,r1
  [     ]*[a-f0-9]+:    00 00 04 00                         nop.i 0x0;;
---- binutils-2.23.51.0.5/ld/testsuite/ld-ia64/tlsbin.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-ia64/tlsbin.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-ia64/tlsbin.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-ia64/tlsbin.rd
 @@ -36,13 +36,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+
  
  Program Headers:
   +IA_64_UNWIND .* R +0x8
  #...
  
---- binutils-2.23.51.0.5/ld/testsuite/ld-ia64/tlspic.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-ia64/tlspic.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-ia64/tlspic.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-ia64/tlspic.rd
 @@ -40,6 +40,7 @@ Program Headers:
   +LOAD +0x0+1[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+0[0-9a-f]+ 0x0+0[0-9a-f]+ RW +0x10000
   +DYNAMIC +0x0+1[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+140 0x0+140 RW +0x8
   +IA_64_UNWIND +0x0+1[0-9a-f]+ 0x0+1[0-9a-f]+ 0x0+1[0-9a-f]+ 0x0+18 0x0+18 R +0x8
  #...
  
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/multi-got-no-shared.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/multi-got-no-shared.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/multi-got-no-shared.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/multi-got-no-shared.d
 @@ -8,9 +8,9 @@
  .*: +file format.*
  
  #...
  00408d60 <[^>]*> 3c1c0043     lui     gp,0x43
  00408d64 <[^>]*> 279c2c98     addiu   gp,gp,11416
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd
 @@ -1,7 +1,7 @@
  
  Elf file type is DYN \(Shared object file\)
   *0*3 * \.dynamic *
   *0*4 *
 + *0*5 *
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd
 @@ -1,7 +1,7 @@
  
  Elf file type is EXEC \(Executable file\)
   *0*6 *\.dynamic *
   *0*7 *
 + *0*8 *
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd
 @@ -1,7 +1,7 @@
  
  Elf file type is EXEC \(Executable file\)
   *0*6 * \.dynamic *
   *0*7 *
 + *0*8 *
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd
 @@ -1,7 +1,7 @@
  
  Elf file type is EXEC \(Executable file\)
   *0*6 * \.dynamic *
   *0*7 *
 + *0*8 *
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd
 @@ -1,7 +1,7 @@
  
  Elf file type is EXEC \(Executable file\)
   *0*6 * \.dynamic *
   *0*7 *
 + *0*8 *
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd
 @@ -1,7 +1,7 @@
  
  Elf file type is EXEC \(Executable file\)
   *0*5 * \.dynamic *
   *0*6 *
 + *0*7 *
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd
 @@ -1,7 +1,7 @@
  
  Elf file type is EXEC \(Executable file\)
   *0*6 * \.dynamic *
   *0*7 *
 + *0*8 *
---- binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/tlsbin-o32.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-mips-elf/tlsbin-o32.d
-@@ -2,42 +2,42 @@
- Disassembly of section .text:
--004000d0 <__start>:
--  4000d0:     3c1c0fc0        lui     gp,0xfc0
--  4000d4:     279c7f30        addiu   gp,gp,32560
--  4000d8:     0399e021        addu    gp,gp,t9
--  4000dc:     27bdfff0        addiu   sp,sp,-16
--  4000e0:     afbe0008        sw      s8,8\(sp\)
--  4000e4:     03a0f021        move    s8,sp
--  4000e8:     afbc0000        sw      gp,0\(sp\)
--  4000ec:     8f998018        lw      t9,-32744\(gp\)
--  4000f0:     27848028        addiu   a0,gp,-32728
--  4000f4:     0320f809        jalr    t9
--  4000f8:     00000000        nop
--  4000fc:     8fdc0000        lw      gp,0\(s8\)
--  400100:     00000000        nop
--  400104:     8f998018        lw      t9,-32744\(gp\)
--  400108:     27848020        addiu   a0,gp,-32736
--  40010c:     0320f809        jalr    t9
--  400110:     00000000        nop
--  400114:     8fdc0000        lw      gp,0\(s8\)
--  400118:     00401021        move    v0,v0
--  40011c:     3c030000        lui     v1,0x0
--  400120:     24638000        addiu   v1,v1,-32768
--  400124:     00621821        addu    v1,v1,v0
--  400128:     7c02283b        rdhwr   v0,\$5
--  40012c:     8f83801c        lw      v1,-32740\(gp\)
--  400130:     00000000        nop
--  400134:     00621821        addu    v1,v1,v0
--  400138:     7c02283b        rdhwr   v0,\$5
--  40013c:     3c030000        lui     v1,0x0
--  400140:     24639004        addiu   v1,v1,-28668
--  400144:     00621821        addu    v1,v1,v0
--  400148:     03c0e821        move    sp,s8
--  40014c:     8fbe0008        lw      s8,8\(sp\)
--  400150:     03e00008        jr      ra
--  400154:     27bd0010        addiu   sp,sp,16
-+00400[0-9a-f]{3} <__start>:
-+  400[0-9a-f]{3}:     3c1c0fc0        lui     gp,0xfc0
-+  400[0-9a-f]{3}:     279c7f30        addiu   gp,gp,32560
-+  400[0-9a-f]{3}:     0399e021        addu    gp,gp,t9
-+  400[0-9a-f]{3}:     27bdfff0        addiu   sp,sp,-16
-+  400[0-9a-f]{3}:     afbe0008        sw      s8,8\(sp\)
-+  400[0-9a-f]{3}:     03a0f021        move    s8,sp
-+  400[0-9a-f]{3}:     afbc0000        sw      gp,0\(sp\)
-+  400[0-9a-f]{3}:     8f998018        lw      t9,-32744\(gp\)
-+  400[0-9a-f]{3}:     27848028        addiu   a0,gp,-32728
-+  400[0-9a-f]{3}:     0320f809        jalr    t9
-+  400[0-9a-f]{3}:     00000000        nop
-+  400[0-9a-f]{3}:     8fdc0000        lw      gp,0\(s8\)
-+  400[0-9a-f]{3}:     00000000        nop
-+  400[0-9a-f]{3}:     8f998018        lw      t9,-32744\(gp\)
-+  400[0-9a-f]{3}:     27848020        addiu   a0,gp,-32736
-+  400[0-9a-f]{3}:     0320f809        jalr    t9
-+  400[0-9a-f]{3}:     00000000        nop
-+  400[0-9a-f]{3}:     8fdc0000        lw      gp,0\(s8\)
-+  400[0-9a-f]{3}:     00401021        move    v0,v0
-+  400[0-9a-f]{3}:     3c030000        lui     v1,0x0
-+  400[0-9a-f]{3}:     24638000        addiu   v1,v1,-32768
-+  400[0-9a-f]{3}:     00621821        addu    v1,v1,v0
-+  400[0-9a-f]{3}:     7c02283b        rdhwr   v0,\$5
-+  400[0-9a-f]{3}:     8f83801c        lw      v1,-32740\(gp\)
-+  400[0-9a-f]{3}:     00000000        nop
-+  400[0-9a-f]{3}:     00621821        addu    v1,v1,v0
-+  400[0-9a-f]{3}:     7c02283b        rdhwr   v0,\$5
-+  400[0-9a-f]{3}:     3c030000        lui     v1,0x0
-+  400[0-9a-f]{3}:     24639004        addiu   v1,v1,-28668
-+  400[0-9a-f]{3}:     00621821        addu    v1,v1,v0
-+  400[0-9a-f]{3}:     03c0e821        move    sp,s8
-+  400[0-9a-f]{3}:     8fbe0008        lw      s8,8\(sp\)
-+  400[0-9a-f]{3}:     03e00008        jr      ra
-+  400[0-9a-f]{3}:     27bd0010        addiu   sp,sp,16
--00400158 <__tls_get_addr>:
--  400158:     03e00008        jr      ra
--  40015c:     00000000        nop
-+00400[0-9a-f]{3} <__tls_get_addr>:
-+  400[0-9a-f]{3}:     03e00008        jr      ra
-+  400[0-9a-f]{3}:     00000000        nop
---- binutils-2.23.51.0.5/ld/testsuite/ld-powerpc/tlsexe32.r
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-powerpc/tlsexe32.r
+--- binutils-2.23.52.0.1/ld/testsuite/ld-powerpc/tlsexe32.r
++++ binutils-2.23.52.0.1/ld/testsuite/ld-powerpc/tlsexe32.r
 @@ -33,13 +33,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+
  
  Program Headers:
  
  Relocation section '\.rela\.dyn' at offset .* contains 2 entries:
   Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend
---- binutils-2.23.51.0.5/ld/testsuite/ld-powerpc/tlsso32.r
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-powerpc/tlsso32.r
+--- binutils-2.23.52.0.1/ld/testsuite/ld-powerpc/tlsso32.r
++++ binutils-2.23.52.0.1/ld/testsuite/ld-powerpc/tlsso32.r
 @@ -35,6 +35,7 @@ Program Headers:
   +LOAD .* RWE 0x10000
   +DYNAMIC .* RW +0x4
  [0-9a-f ]+R_PPC_DTPMOD32 +0
  [0-9a-f ]+R_PPC_DTPREL32 +0
  [0-9a-f ]+R_PPC_DTPMOD32 +0
---- binutils-2.23.51.0.5/ld/testsuite/ld-s390/tlsbin.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-s390/tlsbin.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-s390/tlsbin.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-s390/tlsbin.rd
 @@ -36,6 +36,7 @@ There are [0-9]+ program headers, starting at offset [0-9]+
   +LOAD .* RW +0x1000
   +DYNAMIC .* RW +0x4
  
  Relocation section '.rela.dyn' at offset .* contains 4 entries:
   Offset +Info +Type +Sym.Value +Sym. Name \+ Addend
---- binutils-2.23.51.0.5/ld/testsuite/ld-s390/tlsbin_64.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-s390/tlsbin_64.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-s390/tlsbin_64.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-s390/tlsbin_64.rd
 @@ -36,6 +36,7 @@ There are [0-9]+ program headers, starting at offset [0-9]+
   +LOAD .* RW +0x1000
   +DYNAMIC .* RW +0x8
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries:
   +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
---- binutils-2.23.51.0.5/ld/testsuite/ld-s390/tlspic.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-s390/tlspic.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-s390/tlspic.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-s390/tlspic.rd
 @@ -39,6 +39,7 @@ Program Headers:
   +LOAD .* RW +0x1000
   +DYNAMIC .* RW +0x4
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries:
   Offset +Info +Type +Sym.Value +Sym. Name \+ Addend
---- binutils-2.23.51.0.5/ld/testsuite/ld-s390/tlspic_64.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-s390/tlspic_64.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-s390/tlspic_64.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-s390/tlspic_64.rd
 @@ -39,6 +39,7 @@ Program Headers:
   +LOAD .* RW +0x1000
   +DYNAMIC .* RW +0x8
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries:
   +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
---- binutils-2.23.51.0.5/ld/testsuite/ld-sh/tlsbin-2.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sh/tlsbin-2.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sh/tlsbin-2.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sh/tlsbin-2.d
 @@ -44,6 +44,7 @@ Program Headers:
   +LOAD.*
   +DYNAMIC.*
  
  Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 4 entries:
   Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend
---- binutils-2.23.51.0.5/ld/testsuite/ld-sh/tlspic-2.d
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sh/tlspic-2.d
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sh/tlspic-2.d
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sh/tlspic-2.d
 @@ -32,7 +32,7 @@ Key to Flags:
  
  Elf file type is DYN \(Shared object file\)
  
  Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 10 entries:
   Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend
---- binutils-2.23.51.0.5/ld/testsuite/ld-sparc/gotop32.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sparc/gotop32.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sparc/gotop32.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sparc/gotop32.rd
 @@ -31,6 +31,7 @@ Program Headers:
   +LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x10000
   +LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+2000 0x0+2000 RW +0x10000
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-sparc/gotop64.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sparc/gotop64.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sparc/gotop64.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sparc/gotop64.rd
 @@ -31,6 +31,7 @@ Program Headers:
   +LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x100000
   +LOAD +0x0+2000 0x0+102000 0x0+102000 0x0+2000 0x0+2000 RW +0x100000
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunbin32.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunbin32.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunbin32.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunbin32.rd
 @@ -30,13 +30,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+
  
  Program Headers:
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunbin64.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunbin64.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunbin64.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunbin64.rd
 @@ -30,13 +30,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+
  
  Program Headers:
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunnopic32.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunnopic32.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunnopic32.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunnopic32.rd
 @@ -32,6 +32,7 @@ Program Headers:
   +LOAD .* RW +0x10000
   +DYNAMIC .* RW +0x4
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 12 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunnopic64.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunnopic64.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunnopic64.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunnopic64.rd
 @@ -32,6 +32,7 @@ Program Headers:
   +LOAD .* RW +0x100000
   +DYNAMIC .* RW +0x8
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunpic32.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunpic32.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunpic32.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunpic32.rd
 @@ -36,6 +36,7 @@ Program Headers:
   +LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+184 0x0+184 RWE 0x10000
   +DYNAMIC +0x0+2060 0x0+12060 0x0+12060 0x0+98 0x0+98 RW +0x4
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunpic64.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-sparc/tlssunpic64.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunpic64.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-sparc/tlssunpic64.rd
 @@ -36,6 +36,7 @@ Program Headers:
   +LOAD +0x0+2000 0x0+102000 0x0+102000 0x0+3a0 0x0+3a0 RWE 0x100000
   +DYNAMIC +0x0+2060 0x0+102060 0x0+102060 0x0+130 0x0+130 RW +0x8
  #...
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries:
---- binutils-2.23.51.0.5/ld/testsuite/ld-x86-64/tlsgdesc.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-x86-64/tlsgdesc.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-x86-64/tlsgdesc.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-x86-64/tlsgdesc.rd
 @@ -36,12 +36,14 @@ Program Headers:
   +LOAD.*
   +LOAD.*
  
  Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 8 entries:
   +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend
---- binutils-2.23.51.0.5/ld/testsuite/ld-x86-64/tlspic.rd
-+++ binutils-2.23.51.0.5/ld/testsuite/ld-x86-64/tlspic.rd
+--- binutils-2.23.52.0.1/ld/testsuite/ld-x86-64/tlspic.rd
++++ binutils-2.23.52.0.1/ld/testsuite/ld-x86-64/tlspic.rd
 @@ -40,6 +40,7 @@ Program Headers:
   +LOAD +0x0+11ac 0x0+2011ac 0x0+2011ac 0x0+244 0x0+244 RW +0x200000
   +DYNAMIC +0x0+1210 0x0+201210 0x0+201210 0x0+130 0x0+130 RW +0x8
index 65f017589fa7df9c2e8660762af60daa8ce4aaea..09bfc7bd889e04d4dc625309cdf77924657a12db 100644 (file)
@@ -28,9 +28,6 @@ build
                automake
        end
 
-       configure_options += \
-               --sbindir=/sbin
-
        prepare_cmds
                autoconf
        end
diff --git a/bridge-utils/patches/bridge-utils-1.5-linux_3.8_fix-1.patch b/bridge-utils/patches/bridge-utils-1.5-linux_3.8_fix-1.patch
new file mode 100644 (file)
index 0000000..292cc83
--- /dev/null
@@ -0,0 +1,54 @@
+Submitted By:            Bruce Dubbs <bdubbs_at_linuxfromscratch_dot_org>
+Date:                    2013-03-10
+Initial Package Version: 1.5
+Upstream Status:         Unknown
+Origin:                  LFS
+Description:             This patch contains fixes a problem with 
+the omission of a needed include file in the kernel's linux/if_bridge.h.
+It also fixes some autoconf warnings.
+
+
+diff -Naur bridge-utils-1.5.orig/Makefile.in bridge-utils-1.5/Makefile.in
+--- bridge-utils-1.5.orig/Makefile.in  2011-03-28 19:52:54.000000000 -0500
++++ bridge-utils-1.5/Makefile.in       2013-03-10 13:44:41.000000000 -0500
+@@ -9,6 +9,7 @@
+ bindir=@bindir@
+ sbindir=@sbindir@
+ mandir=@mandir@
++datarootdir=@datarootdir@
+ distdir = $(PACKAGE)-$(VERSION)
+ SUBDIRS=libbridge brctl doc
+diff -Naur bridge-utils-1.5.orig/brctl/Makefile.in bridge-utils-1.5/brctl/Makefile.in
+--- bridge-utils-1.5.orig/brctl/Makefile.in    2011-03-28 19:52:54.000000000 -0500
++++ bridge-utils-1.5/brctl/Makefile.in 2013-03-10 13:44:15.000000000 -0500
+@@ -12,6 +12,7 @@
+ bindir=@bindir@
+ sbindir=@sbindir@
+ mandir=@mandir@
++datarootdir=@datarootdir@
+ INSTALL=@INSTALL@
+diff -Naur bridge-utils-1.5.orig/doc/Makefile.in bridge-utils-1.5/doc/Makefile.in
+--- bridge-utils-1.5.orig/doc/Makefile.in      2011-03-28 19:52:54.000000000 -0500
++++ bridge-utils-1.5/doc/Makefile.in   2013-03-10 13:43:39.000000000 -0500
+@@ -9,6 +9,7 @@
+ bindir=@bindir@
+ sbindir=@sbindir@
+ mandir=@mandir@
++datarootdir=@datarootdir@
+ SUBDIRS=libbridge brctl
+diff -Naur bridge-utils-1.5.orig/libbridge/libbridge.h bridge-utils-1.5/libbridge/libbridge.h
+--- bridge-utils-1.5.orig/libbridge/libbridge.h        2011-03-28 19:52:54.000000000 -0500
++++ bridge-utils-1.5/libbridge/libbridge.h     2013-03-10 13:46:23.000000000 -0500
+@@ -21,6 +21,7 @@
+ #include <sys/socket.h>
+ #include <linux/if.h>
++#include <netinet/ip6.h>
+ #include <linux/if_bridge.h>
+ /* defined in net/if.h but that conflicts with linux/if.h... */
diff --git a/c-ares/c-ares.nm b/c-ares/c-ares.nm
new file mode 100644 (file)
index 0000000..dcbe850
--- /dev/null
@@ -0,0 +1,39 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = c-ares
+version    = 1.9.1
+release    = 1
+
+groups     = System/Libraries
+url        = http://c-ares.haxx.se/
+license    = MIT
+summary    = A library that performs asynchronous DNS operations.
+
+description
+       c-ares is a C library that performs DNS requests and name resolves 
+       asynchronously. c-ares is a fork of the library named 'ares', written 
+       by Greg Hudson at MIT.
+end
+
+source_dl  = http://c-ares.haxx.se/download/
+
+build
+       configure_options += \
+               --enable-shared \
+               --disable-static
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
index 6eff8968f3259751517548677686abc8aee38def..f377aae606c333ca6dbf47bc6db6b68037ccf32f 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = coreutils
-version    = 8.19
+version    = 8.21
 release    = 1
 
 groups     = System/Base
@@ -25,6 +25,7 @@ build
                autoconf
                automake
                e2fsprogs-devel
+               gettext-devel
                gmp-devel
                libacl-devel
                libattr-devel
@@ -50,8 +51,7 @@ build
                gl_cv_func_mknod_works=yes
 
        prepare_cmds
-               aclocal -I m4
-               autoconf --force
+               autoreconf -vfi
        end
 
        test
index a5b9aaf630bdb62ab8f676002a70b1f23f8692f9..0e25f49864e33d0d77612f84e93adb17ca678bcc 100644 (file)
@@ -1,6 +1,6 @@
-diff -urNp coreutils-8.19-orig/lib/linebuffer.h coreutils-8.19/lib/linebuffer.h
---- coreutils-8.19-orig/lib/linebuffer.h       2012-01-06 10:14:31.000000000 +0100
-+++ coreutils-8.19/lib/linebuffer.h    2012-08-20 13:52:04.061593006 +0200
+diff -urNp coreutils-8.21-orig/lib/linebuffer.h coreutils-8.21/lib/linebuffer.h
+--- coreutils-8.21-orig/lib/linebuffer.h       2013-01-02 13:34:46.000000000 +0100
++++ coreutils-8.21/lib/linebuffer.h    2013-02-15 14:25:07.758469108 +0100
 @@ -21,6 +21,11 @@
  
  # include <stdio.h>
@@ -23,9 +23,9 @@ diff -urNp coreutils-8.19-orig/lib/linebuffer.h coreutils-8.19/lib/linebuffer.h
  };
  
  /* Initialize linebuffer LINEBUFFER for use. */
-diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
---- coreutils-8.19-orig/src/cut.c      2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/src/cut.c   2012-08-20 13:52:52.299593173 +0200
+diff -urNp coreutils-8.21-orig/src/cut.c coreutils-8.21/src/cut.c
+--- coreutils-8.21-orig/src/cut.c      2013-02-05 00:40:31.000000000 +0100
++++ coreutils-8.21/src/cut.c   2013-02-15 14:25:07.760467982 +0100
 @@ -28,6 +28,11 @@
  #include <assert.h>
  #include <getopt.h>
@@ -170,7 +170,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
  
  /* True if the --output-delimiter=STRING option was specified.  */
  static bool output_delimiter_specified;
-@@ -206,7 +283,7 @@ Mandatory arguments to long options are 
+@@ -205,7 +282,7 @@ Print selected parts of lines from each 
    -f, --fields=LIST       select only these fields;  also print any line\n\
                              that contains no delimiter character, unless\n\
                              the -s option is specified\n\
@@ -179,35 +179,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
  "), stdout);
        fputs (_("\
        --complement        complement the set of selected bytes, characters\n\
-@@ -365,7 +442,7 @@ set_fields (const char *fieldstr)
-           in_digits = false;
-           /* Starting a range. */
-           if (dash_found)
--            FATAL_ERROR (_("invalid byte or field list"));
-+            FATAL_ERROR (_("invalid byte, character or field list"));
-           dash_found = true;
-           fieldstr++;
-@@ -389,14 +466,16 @@ set_fields (const char *fieldstr)
-               if (!rhs_specified)
-                 {
-                   /* 'n-'.  From 'initial' to end of line. */
--                  eol_range_start = initial;
-+                  if (eol_range_start == 0 ||
-+                      (eol_range_start != 0 && eol_range_start > initial))
-+                    eol_range_start = initial;
-                   field_found = true;
-                 }
-               else
-                 {
-                   /* 'm-n' or '-n' (1-n). */
-                   if (value < initial)
--                    FATAL_ERROR (_("invalid decreasing range"));
-+                    FATAL_ERROR (_("invalid byte, character or field list"));
-                   /* Is there already a range going to end of line? */
-                   if (eol_range_start != 0)
-@@ -476,6 +555,9 @@ set_fields (const char *fieldstr)
+@@ -480,6 +557,9 @@ set_fields (const char *fieldstr)
                if (operating_mode == byte_mode)
                  error (0, 0,
                         _("byte offset %s is too large"), quote (bad_num));
@@ -217,16 +189,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
                else
                  error (0, 0,
                         _("field number %s is too large"), quote (bad_num));
-@@ -486,7 +568,7 @@ set_fields (const char *fieldstr)
-           fieldstr++;
-         }
-       else
--        FATAL_ERROR (_("invalid byte or field list"));
-+        FATAL_ERROR (_("invalid byte, character or field list"));
-     }
-   max_range_endpoint = 0;
-@@ -581,6 +663,77 @@ cut_bytes (FILE *stream)
+@@ -588,6 +668,77 @@ cut_bytes (FILE *stream)
      }
  }
  
@@ -304,7 +267,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
  /* Read from stream STREAM, printing to standard output any selected fields.  */
  
  static void
-@@ -703,13 +856,195 @@ cut_fields (FILE *stream)
+@@ -709,13 +860,195 @@ cut_fields (FILE *stream)
      }
  }
  
@@ -503,7 +466,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
  }
  
  /* Process file FILE to standard output.
-@@ -761,6 +1096,8 @@ main (int argc, char **argv)
+@@ -767,6 +1100,8 @@ main (int argc, char **argv)
    bool ok;
    bool delim_specified = false;
    char *spec_list_string IF_LINT ( = NULL);
@@ -512,7 +475,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
  
    initialize_main (&argc, &argv);
    set_program_name (argv[0]);
-@@ -783,7 +1120,6 @@ main (int argc, char **argv)
+@@ -789,7 +1124,6 @@ main (int argc, char **argv)
        switch (optc)
          {
          case 'b':
@@ -520,7 +483,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
            /* Build the byte list. */
            if (operating_mode != undefined_mode)
              FATAL_ERROR (_("only one type of list may be specified"));
-@@ -791,6 +1127,14 @@ main (int argc, char **argv)
+@@ -797,6 +1131,14 @@ main (int argc, char **argv)
            spec_list_string = optarg;
            break;
  
@@ -535,7 +498,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
          case 'f':
            /* Build the field list. */
            if (operating_mode != undefined_mode)
-@@ -802,10 +1146,35 @@ main (int argc, char **argv)
+@@ -808,10 +1150,36 @@ main (int argc, char **argv)
          case 'd':
            /* New delimiter. */
            /* Interpret -d '' to mean 'use the NUL byte as the delimiter.'  */
@@ -560,6 +523,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
 +                      if (wcdelim != L'\0' && *(optarg + delimlen) != '\0')
 +                        FATAL_ERROR (_("the delimiter must be a single character"));
 +                      memcpy (mbdelim, optarg, delimlen);
++                      mbdelim[delimlen] = '\0';
 +                    }
 +                }
 +
@@ -575,7 +539,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
            break;
  
          case OUTPUT_DELIMITER_OPTION:
-@@ -818,6 +1187,7 @@ main (int argc, char **argv)
+@@ -824,6 +1191,7 @@ main (int argc, char **argv)
            break;
  
          case 'n':
@@ -583,16 +547,7 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
            break;
  
          case 's':
-@@ -840,7 +1210,7 @@ main (int argc, char **argv)
-   if (operating_mode == undefined_mode)
-     FATAL_ERROR (_("you must specify a list of bytes, characters, or fields"));
--  if (delim != '\0' && operating_mode != field_mode)
-+  if (delim_specified && operating_mode != field_mode)
-     FATAL_ERROR (_("an input delimiter may be specified only\
-  when operating on fields"));
-@@ -867,15 +1237,34 @@ main (int argc, char **argv)
+@@ -873,15 +1241,34 @@ main (int argc, char **argv)
      }
  
    if (!delim_specified)
@@ -633,9 +588,10 @@ diff -urNp coreutils-8.19-orig/src/cut.c coreutils-8.19/src/cut.c
      }
  
    if (optind == argc)
-diff -urNp coreutils-8.19-orig/src/expand.c coreutils-8.19/src/expand.c
---- coreutils-8.19-orig/src/expand.c   2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/src/expand.c        2012-08-20 13:54:02.974621693 +0200
+Binary files coreutils-8.21-orig/src/.cut.c.swp and coreutils-8.21/src/.cut.c.swp differ
+diff -urNp coreutils-8.21-orig/src/expand.c coreutils-8.21/src/expand.c
+--- coreutils-8.21-orig/src/expand.c   2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/expand.c        2013-02-15 14:25:07.774467536 +0100
 @@ -37,12 +37,29 @@
  #include <stdio.h>
  #include <getopt.h>
@@ -666,7 +622,7 @@ diff -urNp coreutils-8.19-orig/src/expand.c coreutils-8.19/src/expand.c
  /* The official name of this program (e.g., no 'g' prefix).  */
  #define PROGRAM_NAME "expand"
  
-@@ -358,6 +375,142 @@ expand (void)
+@@ -357,6 +374,142 @@ expand (void)
      }
  }
  
@@ -809,7 +765,7 @@ diff -urNp coreutils-8.19-orig/src/expand.c coreutils-8.19/src/expand.c
  int
  main (int argc, char **argv)
  {
-@@ -422,7 +575,12 @@ main (int argc, char **argv)
+@@ -421,7 +574,12 @@ main (int argc, char **argv)
  
    file_list = (optind < argc ? &argv[optind] : stdin_argv);
  
@@ -823,9 +779,9 @@ diff -urNp coreutils-8.19-orig/src/expand.c coreutils-8.19/src/expand.c
  
    if (have_read_stdin && fclose (stdin) != 0)
      error (EXIT_FAILURE, errno, "-");
-diff -urNp coreutils-8.19-orig/src/fold.c coreutils-8.19/src/fold.c
---- coreutils-8.19-orig/src/fold.c     2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/src/fold.c  2012-08-20 13:52:04.066592980 +0200
+diff -urNp coreutils-8.21-orig/src/fold.c coreutils-8.21/src/fold.c
+--- coreutils-8.21-orig/src/fold.c     2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/fold.c  2013-02-15 14:25:07.789467891 +0100
 @@ -22,12 +22,34 @@
  #include <getopt.h>
  #include <sys/types.h>
@@ -907,15 +863,15 @@ diff -urNp coreutils-8.19-orig/src/fold.c coreutils-8.19/src/fold.c
    {"spaces", no_argument, NULL, 's'},
    {"width", required_argument, NULL, 'w'},
    {GETOPT_HELP_OPTION_DECL},
-@@ -77,6 +120,7 @@ Mandatory arguments to long options are 
- "), stdout);
+@@ -76,6 +119,7 @@ standard output.\n\
        fputs (_("\
    -b, --bytes         count bytes rather than columns\n\
 +  -c, --characters    count characters rather than columns\n\
    -s, --spaces        break at spaces\n\
    -w, --width=WIDTH   use WIDTH columns instead of 80\n\
  "), stdout);
-@@ -94,7 +138,7 @@ Mandatory arguments to long options are 
+@@ -93,7 +137,7 @@ standard output.\n\
  static size_t
  adjust_column (size_t column, char c)
  {
@@ -924,7 +880,7 @@ diff -urNp coreutils-8.19-orig/src/fold.c coreutils-8.19/src/fold.c
      {
        if (c == '\b')
          {
-@@ -117,30 +161,14 @@ adjust_column (size_t column, char c)
+@@ -116,30 +160,14 @@ adjust_column (size_t column, char c)
     to stdout, with maximum line length WIDTH.
     Return true if successful.  */
  
@@ -957,7 +913,7 @@ diff -urNp coreutils-8.19-orig/src/fold.c coreutils-8.19/src/fold.c
  
    fadvise (istream, FADVISE_SEQUENTIAL);
  
-@@ -170,6 +198,15 @@ fold_file (char const *filename, size_t 
+@@ -169,6 +197,15 @@ fold_file (char const *filename, size_t 
                bool found_blank = false;
                size_t logical_end = offset_out;
  
@@ -973,7 +929,7 @@ diff -urNp coreutils-8.19-orig/src/fold.c coreutils-8.19/src/fold.c
                /* Look for the last blank. */
                while (logical_end)
                  {
-@@ -216,11 +253,221 @@ fold_file (char const *filename, size_t 
+@@ -215,11 +252,221 @@ fold_file (char const *filename, size_t 
        line_out[offset_out++] = c;
      }
  
@@ -1196,7 +1152,7 @@ diff -urNp coreutils-8.19-orig/src/fold.c coreutils-8.19/src/fold.c
    if (ferror (istream))
      {
        error (0, saved_errno, "%s", filename);
-@@ -253,7 +500,8 @@ main (int argc, char **argv)
+@@ -252,7 +499,8 @@ main (int argc, char **argv)
  
    atexit (close_stdout);
  
@@ -1206,7 +1162,7 @@ diff -urNp coreutils-8.19-orig/src/fold.c coreutils-8.19/src/fold.c
  
    while ((optc = getopt_long (argc, argv, shortopts, longopts, NULL)) != -1)
      {
-@@ -262,7 +510,15 @@ main (int argc, char **argv)
+@@ -261,7 +509,15 @@ main (int argc, char **argv)
        switch (optc)
          {
          case 'b':             /* Count bytes rather than columns. */
@@ -1223,9 +1179,9 @@ diff -urNp coreutils-8.19-orig/src/fold.c coreutils-8.19/src/fold.c
            break;
  
          case 's':             /* Break at word boundaries. */
-diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
---- coreutils-8.19-orig/src/join.c     2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/src/join.c  2012-08-20 13:52:04.069594876 +0200
+diff -urNp coreutils-8.21-orig/src/join.c coreutils-8.21/src/join.c
+--- coreutils-8.21-orig/src/join.c     2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/join.c  2013-02-15 14:25:07.804467922 +0100
 @@ -22,18 +22,32 @@
  #include <sys/types.h>
  #include <getopt.h>
@@ -1444,7 +1400,7 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
  static void
  freeline (struct line *line)
  {
-@@ -313,56 +472,115 @@ keycmp (struct line const *line1, struct
+@@ -313,56 +472,130 @@ keycmp (struct line const *line1, struct
          size_t jf_1, size_t jf_2)
  {
    /* Start of field to compare in each file.  */
@@ -1458,6 +1414,7 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
 +  size_t len[2];      /* Length of fields to compare.  */
    int diff;
 +  int i, j;
++  int mallocd = 0;
  
    if (jf_1 < line1->nfields)
      {
@@ -1513,7 +1470,8 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
 +
 +        for (i = 0; i < 2; i++)
 +          {
-+            copy[i] = alloca (len[i] + 1);
++            mallocd = 1;
++            copy[i] = xmalloc (len[i] + 1);
 +
 +            for (j = 0; j < MIN (len[0], len[1]);)
 +              {
@@ -1553,7 +1511,8 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
 +      {
 +        for (i = 0; i < 2; i++)
 +          {
-+            copy[i] = alloca (len[i] + 1);
++            mallocd = 1;
++            copy[i] = xmalloc (len[i] + 1);
 +
 +            for (j = 0; j < MIN (len[0], len[1]); j++)
 +              copy[i][j] = toupper (beg[i][j]);
@@ -1572,9 +1531,21 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
      }
  
 +  if (hard_LC_COLLATE)
-+    return xmemcoll ((char *) copy[0], len[0], (char *) copy[1], len[1]);
++    {
++      diff = xmemcoll ((char *) copy[0], len[0], (char *) copy[1], len[1]);
++
++      if (mallocd)
++        for (i = 0; i < 2; i++)
++          free (copy[i]);
++
++      return diff;
++    }
 +  diff = memcmp (copy[0], copy[1], MIN (len[0], len[1]));
 +
++  if (mallocd)
++    for (i = 0; i < 2; i++)
++      free (copy[i]);
++
 +
    if (diff)
      return diff;
@@ -1583,7 +1554,7 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
  }
  
  /* Check that successive input lines PREV and CURRENT from input file
-@@ -454,6 +672,11 @@ get_line (FILE *fp, struct line **linep,
+@@ -454,6 +687,11 @@ get_line (FILE *fp, struct line **linep,
      }
    ++line_no[which - 1];
  
@@ -1595,7 +1566,7 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
    xfields (line);
  
    if (prevline[which - 1])
-@@ -553,21 +776,28 @@ prfield (size_t n, struct line const *li
+@@ -553,21 +791,28 @@ prfield (size_t n, struct line const *li
  
  /* Output all the fields in line, other than the join field.  */
  
@@ -1627,7 +1598,7 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
        prfield (i, line);
      }
  }
-@@ -578,7 +808,6 @@ static void
+@@ -578,7 +823,6 @@ static void
  prjoin (struct line const *line1, struct line const *line2)
  {
    const struct outlist *outlist;
@@ -1635,7 +1606,7 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
    size_t field;
    struct line const *line;
  
-@@ -612,7 +841,7 @@ prjoin (struct line const *line1, struct
+@@ -612,7 +856,7 @@ prjoin (struct line const *line1, struct
            o = o->next;
            if (o == NULL)
              break;
@@ -1644,7 +1615,7 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
          }
        putchar ('\n');
      }
-@@ -1090,21 +1319,46 @@ main (int argc, char **argv)
+@@ -1090,21 +1334,46 @@ main (int argc, char **argv)
  
          case 't':
            {
@@ -1701,9 +1672,9 @@ diff -urNp coreutils-8.19-orig/src/join.c coreutils-8.19/src/join.c
            break;
  
          case NOCHECK_ORDER_OPTION:
-diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
---- coreutils-8.19-orig/src/pr.c       2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/src/pr.c    2012-08-20 13:52:04.074593445 +0200
+diff -urNp coreutils-8.21-orig/src/pr.c coreutils-8.21/src/pr.c
+--- coreutils-8.21-orig/src/pr.c       2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/pr.c    2013-02-15 14:25:07.819467936 +0100
 @@ -312,6 +312,32 @@
  
  #include <getopt.h>
@@ -1824,7 +1795,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  
  /* (-i) The width of the output tab. */
  static int chars_per_output_tab = 8;
-@@ -638,7 +692,13 @@ static int power_10;
+@@ -634,7 +688,13 @@ static int line_number;
  static bool numbered_lines = false;
  
  /* (-n) Character which follows each line number. */
@@ -1839,7 +1810,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  
  /* (-n) line counting starts with 1st line of input file (not with 1st
     line of 1st page printed). */
-@@ -691,6 +751,7 @@ static bool use_col_separator = false;
+@@ -687,6 +747,7 @@ static bool use_col_separator = false;
     -a|COLUMN|-m is a 'space' and with the -J option a 'tab'. */
  static char *col_sep_string = (char *) "";
  static int col_sep_length = 0;
@@ -1847,7 +1818,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  static char *column_separator = (char *) " ";
  static char *line_separator = (char *) "\t";
  
-@@ -847,6 +908,13 @@ separator_string (const char *optarg_S)
+@@ -843,6 +904,13 @@ separator_string (const char *optarg_S)
    col_sep_length = (int) strlen (optarg_S);
    col_sep_string = xmalloc (col_sep_length + 1);
    strcpy (col_sep_string, optarg_S);
@@ -1861,7 +1832,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  }
  
  int
-@@ -871,6 +939,21 @@ main (int argc, char **argv)
+@@ -867,6 +935,21 @@ main (int argc, char **argv)
  
    atexit (close_stdout);
  
@@ -1883,7 +1854,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
    n_files = 0;
    file_names = (argc > 1
                  ? xmalloc ((argc - 1) * sizeof (char *))
-@@ -947,8 +1030,12 @@ main (int argc, char **argv)
+@@ -943,8 +1026,12 @@ main (int argc, char **argv)
            break;
          case 'e':
            if (optarg)
@@ -1898,7 +1869,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            /* Could check tab width > 0. */
            untabify_input = true;
            break;
-@@ -961,8 +1048,12 @@ main (int argc, char **argv)
+@@ -957,8 +1044,12 @@ main (int argc, char **argv)
            break;
          case 'i':
            if (optarg)
@@ -1913,7 +1884,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            /* Could check tab width > 0. */
            tabify_output = true;
            break;
-@@ -989,8 +1080,8 @@ main (int argc, char **argv)
+@@ -985,8 +1076,8 @@ main (int argc, char **argv)
          case 'n':
            numbered_lines = true;
            if (optarg)
@@ -1924,7 +1895,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            break;
          case 'N':
            skip_count = false;
-@@ -1029,7 +1120,7 @@ main (int argc, char **argv)
+@@ -1025,7 +1116,7 @@ main (int argc, char **argv)
            old_s = false;
            /* Reset an additional input of -s, -S dominates -s */
            col_sep_string = bad_cast ("");
@@ -1933,7 +1904,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            use_col_separator = true;
            if (optarg)
              separator_string (optarg);
-@@ -1186,10 +1277,45 @@ main (int argc, char **argv)
+@@ -1182,10 +1273,45 @@ main (int argc, char **argv)
     a number. */
  
  static void
@@ -1981,7 +1952,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
    if (*arg)
      {
        long int tmp_long;
-@@ -1211,6 +1337,11 @@ static void
+@@ -1207,6 +1333,11 @@ static void
  init_parameters (int number_of_files)
  {
    int chars_used_by_number = 0;
@@ -1993,7 +1964,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  
    lines_per_body = lines_per_page - lines_per_header - lines_per_footer;
    if (lines_per_body <= 0)
-@@ -1248,7 +1379,7 @@ init_parameters (int number_of_files)
+@@ -1244,7 +1375,7 @@ init_parameters (int number_of_files)
            else
              col_sep_string = column_separator;
  
@@ -2002,7 +1973,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            use_col_separator = true;
          }
        /* It's rather pointless to define a TAB separator with column
-@@ -1279,11 +1410,11 @@ init_parameters (int number_of_files)
+@@ -1274,11 +1405,11 @@ init_parameters (int number_of_files)
               + TAB_WIDTH (chars_per_input_tab, chars_per_number);   */
  
        /* Estimate chars_per_text without any margin and keep it constant. */
@@ -2016,7 +1987,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  
        /* The number is part of the column width unless we are
           printing files in parallel. */
-@@ -1298,7 +1429,7 @@ init_parameters (int number_of_files)
+@@ -1287,7 +1418,7 @@ init_parameters (int number_of_files)
      }
  
    chars_per_column = (chars_per_line - chars_used_by_number
@@ -2025,7 +1996,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  
    if (chars_per_column < 1)
      error (EXIT_FAILURE, 0, _("page width too narrow"));
-@@ -1315,7 +1446,7 @@ init_parameters (int number_of_files)
+@@ -1305,7 +1436,7 @@ init_parameters (int number_of_files)
       We've to use 8 as the lower limit, if we use chars_per_default_tab = 8
       to expand a tab which is not an input_tab-char. */
    free (clump_buff);
@@ -2034,7 +2005,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  }
  \f
  /* Open the necessary files,
-@@ -1423,7 +1554,7 @@ init_funcs (void)
+@@ -1413,7 +1544,7 @@ init_funcs (void)
  
    /* Enlarge p->start_position of first column to use the same form of
       padding_not_printed with all columns. */
@@ -2043,7 +2014,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  
    /* This loop takes care of all but the rightmost column. */
  
-@@ -1457,7 +1588,7 @@ init_funcs (void)
+@@ -1447,7 +1578,7 @@ init_funcs (void)
          }
        else
          {
@@ -2052,7 +2023,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            h_next = h + chars_per_column;
          }
      }
-@@ -1748,9 +1879,9 @@ static void
+@@ -1738,9 +1869,9 @@ static void
  align_column (COLUMN *p)
  {
    padding_not_printed = p->start_position;
@@ -2064,7 +2035,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
        padding_not_printed = ANYWHERE;
      }
  
-@@ -2021,13 +2152,13 @@ store_char (char c)
+@@ -2011,13 +2142,13 @@ store_char (char c)
        /* May be too generous. */
        buff = X2REALLOC (buff, &buff_allocated);
      }
@@ -2078,9 +2049,9 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
 -  int i;
 +  int i, j;
    char *s;
-   int left_cut;
+   int num_width;
  
-@@ -2050,22 +2181,24 @@ add_line_number (COLUMN *p)
+@@ -2034,22 +2165,24 @@ add_line_number (COLUMN *p)
        /* Tabification is assumed for multiple columns, also for n-separators,
           but 'default n-separator = TAB' hasn't been given priority over
           equal column_width also specified by POSIX. */
@@ -2109,7 +2080,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
          output_position = POS_AFTER_TAB (chars_per_output_tab,
                            output_position);
      }
-@@ -2226,7 +2359,7 @@ print_white_space (void)
+@@ -2210,7 +2343,7 @@ print_white_space (void)
    while (goal - h_old > 1
           && (h_new = POS_AFTER_TAB (chars_per_output_tab, h_old)) <= goal)
      {
@@ -2118,7 +2089,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
        h_old = h_new;
      }
    while (++h_old <= goal)
-@@ -2246,6 +2379,7 @@ print_sep_string (void)
+@@ -2230,6 +2363,7 @@ print_sep_string (void)
  {
    char *s;
    int l = col_sep_length;
@@ -2126,7 +2097,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  
    s = col_sep_string;
  
-@@ -2259,6 +2393,7 @@ print_sep_string (void)
+@@ -2243,6 +2377,7 @@ print_sep_string (void)
      {
        for (; separators_not_printed > 0; --separators_not_printed)
          {
@@ -2134,7 +2105,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            while (l-- > 0)
              {
                /* 3 types of sep_strings: spaces only, spaces and chars,
-@@ -2272,12 +2407,15 @@ print_sep_string (void)
+@@ -2256,12 +2391,15 @@ print_sep_string (void)
                  }
                else
                  {
@@ -2151,7 +2122,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            /* sep_string ends with some spaces */
            if (spaces_not_printed > 0)
              print_white_space ();
-@@ -2305,7 +2443,7 @@ print_clump (COLUMN *p, int n, char *clu
+@@ -2289,7 +2427,7 @@ print_clump (COLUMN *p, int n, char *clu
     required number of tabs and spaces. */
  
  static void
@@ -2160,7 +2131,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  {
    if (tabify_output)
      {
-@@ -2329,6 +2467,74 @@ print_char (char c)
+@@ -2313,6 +2451,74 @@ print_char (char c)
    putchar (c);
  }
  
@@ -2235,7 +2206,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  /* Skip to page PAGE before printing.
     PAGE may be larger than total number of pages. */
  
-@@ -2508,9 +2714,9 @@ read_line (COLUMN *p)
+@@ -2492,9 +2698,9 @@ read_line (COLUMN *p)
            align_empty_cols = false;
          }
  
@@ -2247,7 +2218,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
            padding_not_printed = ANYWHERE;
          }
  
-@@ -2611,9 +2817,9 @@ print_stored (COLUMN *p)
+@@ -2595,9 +2801,9 @@ print_stored (COLUMN *p)
          }
      }
  
@@ -2259,7 +2230,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
        padding_not_printed = ANYWHERE;
      }
  
-@@ -2626,8 +2832,8 @@ print_stored (COLUMN *p)
+@@ -2610,8 +2816,8 @@ print_stored (COLUMN *p)
    if (spaces_not_printed == 0)
      {
        output_position = p->start_position + end_vector[line];
@@ -2270,7 +2241,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
      }
  
    return true;
-@@ -2646,7 +2852,7 @@ print_stored (COLUMN *p)
+@@ -2630,7 +2836,7 @@ print_stored (COLUMN *p)
     number of characters is 1.) */
  
  static int
@@ -2279,7 +2250,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  {
    unsigned char uc = c;
    char *s = clump_buff;
-@@ -2656,10 +2862,10 @@ char_to_clump (char c)
+@@ -2640,10 +2846,10 @@ char_to_clump (char c)
    int chars;
    int chars_per_c = 8;
  
@@ -2292,7 +2263,7 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
      {
        width = TAB_WIDTH (chars_per_c, input_position);
  
-@@ -2740,6 +2946,154 @@ char_to_clump (char c)
+@@ -2724,6 +2930,154 @@ char_to_clump (char c)
    return chars;
  }
  
@@ -2447,9 +2418,9 @@ diff -urNp coreutils-8.19-orig/src/pr.c coreutils-8.19/src/pr.c
  /* We've just printed some files and need to clean up things before
     looking for more options and printing the next batch of files.
  
-diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
---- coreutils-8.19-orig/src/sort.c     2012-08-18 07:39:29.000000000 +0200
-+++ coreutils-8.19/src/sort.c  2012-08-20 13:52:04.079596072 +0200
+diff -urNp coreutils-8.21-orig/src/sort.c coreutils-8.21/src/sort.c
+--- coreutils-8.21-orig/src/sort.c     2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/sort.c  2013-02-15 14:25:07.828467769 +0100
 @@ -29,6 +29,14 @@
  #include <sys/wait.h>
  #include <signal.h>
@@ -2518,7 +2489,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  
  /* Flag to remove consecutive duplicate lines from the output.
     Only the last of a sequence of equal lines will be output. */
-@@ -784,6 +812,46 @@ reap_all (void)
+@@ -783,6 +811,46 @@ reap_all (void)
      reap (-1);
  }
  
@@ -2565,7 +2536,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  /* Clean up any remaining temporary files.  */
  
  static void
-@@ -1224,7 +1292,7 @@ zaptemp (char const *name)
+@@ -1223,7 +1291,7 @@ zaptemp (char const *name)
    free (node);
  }
  
@@ -2574,7 +2545,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  
  static int
  struct_month_cmp (void const *m1, void const *m2)
-@@ -1239,7 +1307,7 @@ struct_month_cmp (void const *m1, void c
+@@ -1238,7 +1306,7 @@ struct_month_cmp (void const *m1, void c
  /* Initialize the character class tables. */
  
  static void
@@ -2583,7 +2554,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  {
    size_t i;
  
-@@ -1251,7 +1319,7 @@ inittables (void)
+@@ -1250,7 +1318,7 @@ inittables (void)
        fold_toupper[i] = toupper (i);
      }
  
@@ -2592,7 +2563,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
    /* If we're not in the "C" locale, read different names for months.  */
    if (hard_LC_TIME)
      {
-@@ -1333,6 +1401,84 @@ specify_nmerge (int oi, char c, char con
+@@ -1332,6 +1400,84 @@ specify_nmerge (int oi, char c, char con
      xstrtol_fatal (e, oi, c, long_options, s);
  }
  
@@ -2677,7 +2648,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  /* Specify the amount of main memory to use when sorting.  */
  static void
  specify_sort_size (int oi, char c, char const *s)
-@@ -1565,7 +1711,7 @@ buffer_linelim (struct buffer const *buf
+@@ -1564,7 +1710,7 @@ buffer_linelim (struct buffer const *buf
     by KEY in LINE. */
  
  static char *
@@ -2686,7 +2657,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  {
    char *ptr = line->text, *lim = ptr + line->length - 1;
    size_t sword = key->sword;
-@@ -1574,10 +1720,10 @@ begfield (struct line const *line, struc
+@@ -1573,10 +1719,10 @@ begfield (struct line const *line, struc
    /* The leading field separator itself is included in a field when -t
       is absent.  */
  
@@ -2699,7 +2670,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
            ++ptr;
          if (ptr < lim)
            ++ptr;
-@@ -1603,11 +1749,70 @@ begfield (struct line const *line, struc
+@@ -1602,11 +1748,70 @@ begfield (struct line const *line, struc
    return ptr;
  }
  
@@ -2771,7 +2742,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  {
    char *ptr = line->text, *lim = ptr + line->length - 1;
    size_t eword = key->eword, echar = key->echar;
-@@ -1622,10 +1827,10 @@ limfield (struct line const *line, struc
+@@ -1621,10 +1826,10 @@ limfield (struct line const *line, struc
       'beginning' is the first character following the delimiting TAB.
       Otherwise, leave PTR pointing at the first 'blank' character after
       the preceding field.  */
@@ -2784,7 +2755,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
            ++ptr;
          if (ptr < lim && (eword || echar))
            ++ptr;
-@@ -1671,10 +1876,10 @@ limfield (struct line const *line, struc
+@@ -1670,10 +1875,10 @@ limfield (struct line const *line, struc
       */
  
    /* Make LIM point to the end of (one byte past) the current field.  */
@@ -2797,7 +2768,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
        if (newlim)
          lim = newlim;
      }
-@@ -1705,6 +1910,130 @@ limfield (struct line const *line, struc
+@@ -1704,6 +1909,130 @@ limfield (struct line const *line, struc
    return ptr;
  }
  
@@ -2928,7 +2899,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  /* Fill BUF reading from FP, moving buf->left bytes from the end
     of buf->buf to the beginning first.  If EOF is reached and the
     file wasn't terminated by a newline, supply one.  Set up BUF's line
-@@ -1791,8 +2120,22 @@ fillbuf (struct buffer *buf, FILE *fp, c
+@@ -1790,8 +2119,22 @@ fillbuf (struct buffer *buf, FILE *fp, c
                    else
                      {
                        if (key->skipsblanks)
@@ -2953,7 +2924,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
                        line->keybeg = line_start;
                      }
                  }
-@@ -1913,7 +2256,7 @@ human_numcompare (char const *a, char co
+@@ -1912,7 +2255,7 @@ human_numcompare (char const *a, char co
     hideously fast. */
  
  static int
@@ -2962,7 +2933,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  {
    while (blanks[to_uchar (*a)])
      a++;
-@@ -1923,6 +2266,25 @@ numcompare (char const *a, char const *b
+@@ -1922,6 +2265,25 @@ numcompare (char const *a, char const *b
    return strnumcmp (a, b, decimal_point, thousands_sep);
  }
  
@@ -2988,7 +2959,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  /* Work around a problem whereby the long double value returned by glibc's
     strtold ("NaN", ...) contains uninitialized bits: clear all bytes of
     A and B before calling strtold.  FIXME: remove this function once
-@@ -1973,7 +2335,7 @@ general_numcompare (char const *sa, char
+@@ -1972,7 +2334,7 @@ general_numcompare (char const *sa, char
     Return 0 if the name in S is not recognized.  */
  
  static int
@@ -2997,7 +2968,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  {
    size_t lo = 0;
    size_t hi = MONTHS_PER_YEAR;
-@@ -2248,15 +2610,14 @@ debug_key (struct line const *line, stru
+@@ -2247,15 +2609,14 @@ debug_key (struct line const *line, stru
            char saved = *lim;
            *lim = '\0';
  
@@ -3015,7 +2986,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
            else if (key->general_numeric)
              ignore_value (strtold (beg, &tighter_lim));
            else if (key->numeric || key->human_numeric)
-@@ -2400,7 +2761,7 @@ key_warnings (struct keyfield const *gke
+@@ -2399,7 +2760,7 @@ key_warnings (struct keyfield const *gke
        bool maybe_space_aligned = !hard_LC_COLLATE && default_key_compare (key)
                                   && !(key->schar || key->echar);
        bool line_offset = key->eword == 0 && key->echar != 0; /* -k1.x,1.y  */
@@ -3024,7 +2995,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
            && ((!key->skipsblanks && !(implicit_skip || maybe_space_aligned))
                || (!key->skipsblanks && key->schar)
                || (!key->skipeblanks && key->echar)))
-@@ -2458,11 +2819,83 @@ key_warnings (struct keyfield const *gke
+@@ -2457,11 +2818,87 @@ key_warnings (struct keyfield const *gke
      error (0, 0, _("option '-r' only applies to last-resort comparison"));
  }
  
@@ -3051,13 +3022,13 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
 +  if (len == 0)
 +    return 0;
 +
-+  month = (char *) alloca (len + 1);
++  month = (char *) xmalloc (len + 1);
 +
-+  tmp = (char *) alloca (len + 1);
++  tmp = (char *) xmalloc (len + 1);
 +  memcpy (tmp, s, len);
 +  tmp[len] = '\0';
 +  pp = (const char **)&tmp;
-+  month_wcs = (wchar_t *) alloca ((len + 1) * sizeof (wchar_t));
++  month_wcs = (wchar_t *) xmalloc ((len + 1) * sizeof (wchar_t));
 +  memset (&state, '\0', sizeof(mbstate_t));
 +
 +  wclength = mbsrtowcs (month_wcs, pp, len + 1, &state);
@@ -3096,6 +3067,10 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
 +  if (ea && result)
 +     *ea = s + strlen (monthtab[lo].name);
 +
++  free (month);
++  free (tmp);
++  free (month_wcs);
++
 +  return result;
 +}
 +#endif
@@ -3109,7 +3084,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  {
    struct keyfield *key = keylist;
  
-@@ -2547,7 +2980,7 @@ keycompare (struct line const *a, struct
+@@ -2546,7 +2983,7 @@ keycompare (struct line const *a, struct
            else if (key->human_numeric)
              diff = human_numcompare (ta, tb);
            else if (key->month)
@@ -3118,7 +3093,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
            else if (key->random)
              diff = compare_random (ta, tlena, tb, tlenb);
            else if (key->version)
-@@ -2663,6 +3096,180 @@ keycompare (struct line const *a, struct
+@@ -2662,6 +3099,181 @@ keycompare (struct line const *a, struct
    return key->reverse ? -diff : diff;
  }
  
@@ -3174,7 +3149,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
 +        {
 +          if (ignore || translate)
 +            {
-+              char *copy_a = (char *) alloca (lena + 1 + lenb + 1);
++              char *copy_a = (char *) xmalloc (lena + 1 + lenb + 1);
 +              char *copy_b = copy_a + lena + 1;
 +              size_t new_len_a, new_len_b;
 +              size_t i, j;
@@ -3250,6 +3225,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
 +              IGNORE_CHARS (new_len_b, lenb, textb, copy_b,
 +                            wc_b, mblength_b, state_b);
 +              diff = xmemcoll (copy_a, new_len_a, copy_b, new_len_b);
++              free(copy_a);
 +            }
 +          else if (lena == 0)
 +            diff = - NONZERO (lenb);
@@ -3299,7 +3275,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
  /* Compare two lines A and B, returning negative, zero, or positive
     depending on whether A compares less than, equal to, or greater than B. */
  
-@@ -4158,7 +4765,7 @@ main (int argc, char **argv)
+@@ -4157,7 +4769,7 @@ main (int argc, char **argv)
    initialize_exit_failure (SORT_FAILURE);
  
    hard_LC_COLLATE = hard_locale (LC_COLLATE);
@@ -3308,7 +3284,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
    hard_LC_TIME = hard_locale (LC_TIME);
  #endif
  
-@@ -4179,6 +4786,29 @@ main (int argc, char **argv)
+@@ -4178,6 +4790,29 @@ main (int argc, char **argv)
        thousands_sep = -1;
    }
  
@@ -3338,7 +3314,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
    have_read_stdin = false;
    inittables ();
  
-@@ -4453,13 +5083,34 @@ main (int argc, char **argv)
+@@ -4452,13 +5087,34 @@ main (int argc, char **argv)
  
          case 't':
            {
@@ -3377,7 +3353,7 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
                  else
                    {
                      /* Provoke with 'sort -txx'.  Complain about
-@@ -4470,9 +5121,12 @@ main (int argc, char **argv)
+@@ -4469,9 +5125,12 @@ main (int argc, char **argv)
                             quote (optarg));
                    }
                }
@@ -3392,9 +3368,9 @@ diff -urNp coreutils-8.19-orig/src/sort.c coreutils-8.19/src/sort.c
            }
            break;
  
-diff -urNp coreutils-8.19-orig/src/unexpand.c coreutils-8.19/src/unexpand.c
---- coreutils-8.19-orig/src/unexpand.c 2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/src/unexpand.c      2012-08-20 13:52:04.081596774 +0200
+diff -urNp coreutils-8.21-orig/src/unexpand.c coreutils-8.21/src/unexpand.c
+--- coreutils-8.21-orig/src/unexpand.c 2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/unexpand.c      2013-02-15 14:25:07.834467715 +0100
 @@ -38,12 +38,29 @@
  #include <stdio.h>
  #include <getopt.h>
@@ -3425,7 +3401,7 @@ diff -urNp coreutils-8.19-orig/src/unexpand.c coreutils-8.19/src/unexpand.c
  /* The official name of this program (e.g., no 'g' prefix).  */
  #define PROGRAM_NAME "unexpand"
  
-@@ -103,6 +120,208 @@ static struct option const longopts[] =
+@@ -103,6 +120,210 @@ static struct option const longopts[] =
    {NULL, 0, NULL, 0}
  };
  
@@ -3445,6 +3421,7 @@ diff -urNp coreutils-8.19-orig/src/unexpand.c coreutils-8.19/src/unexpand.c
 +  wint_t wc;                  /* A gotten wide character. */
 +  size_t mblength;            /* The byte size of a multibyte character
 +                                 which shows as same character as WC. */
++  bool prev_tab = false;
 +
 +  /* Index in `tab_list' of next tabstop: */
 +  int tab_index = 0;          /* For calculating width of pending tabs. */
@@ -3523,7 +3500,7 @@ diff -urNp coreutils-8.19-orig/src/unexpand.c coreutils-8.19/src/unexpand.c
 +flush_pend_mb:
 +        /* Flush pending spaces.  Print as many tabs as possible,
 +           then print the rest as spaces. */
-+        if (pending == 1)
++        if (pending == 1 && column != 1 && !prev_tab)
 +          {
 +            putchar (' ');
 +            pending = 0;
@@ -3624,6 +3601,7 @@ diff -urNp coreutils-8.19-orig/src/unexpand.c coreutils-8.19/src/unexpand.c
 +            fwrite (bufpos, sizeof(char), mblength, stdout);
 +          }
 +      }
++      prev_tab = wc == L'\t';
 +      buflen -= mblength;
 +      bufpos += mblength;
 +    }
@@ -3634,7 +3612,7 @@ diff -urNp coreutils-8.19-orig/src/unexpand.c coreutils-8.19/src/unexpand.c
  void
  usage (int status)
  {
-@@ -524,7 +743,12 @@ main (int argc, char **argv)
+@@ -523,7 +742,12 @@ main (int argc, char **argv)
  
    file_list = (optind < argc ? &argv[optind] : stdin_argv);
  
@@ -3648,9 +3626,9 @@ diff -urNp coreutils-8.19-orig/src/unexpand.c coreutils-8.19/src/unexpand.c
  
    if (have_read_stdin && fclose (stdin) != 0)
      error (EXIT_FAILURE, errno, "-");
-diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
---- coreutils-8.19-orig/src/uniq.c     2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/src/uniq.c  2012-08-20 13:52:04.083502506 +0200
+diff -urNp coreutils-8.21-orig/src/uniq.c coreutils-8.21/src/uniq.c
+--- coreutils-8.21-orig/src/uniq.c     2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/uniq.c  2013-02-15 14:25:07.839467991 +0100
 @@ -21,6 +21,16 @@
  #include <getopt.h>
  #include <sys/types.h>
@@ -3700,7 +3678,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
  static struct option const longopts[] =
  {
    {"count", no_argument, NULL, 'c'},
-@@ -206,7 +232,7 @@ size_opt (char const *opt, char const *m
+@@ -205,7 +231,7 @@ size_opt (char const *opt, char const *m
     return a pointer to the beginning of the line's field to be compared. */
  
  static char * _GL_ATTRIBUTE_PURE
@@ -3709,7 +3687,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
  {
    size_t count;
    char const *lp = line->buffer;
-@@ -226,6 +252,83 @@ find_field (struct linebuffer const *lin
+@@ -225,6 +251,83 @@ find_field (struct linebuffer const *lin
    return line->buffer + i;
  }
  
@@ -3793,7 +3771,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
  /* Return false if two strings OLD and NEW match, true if not.
     OLD and NEW point not to the beginnings of the lines
     but rather to the beginnings of the fields to compare.
-@@ -234,6 +337,8 @@ find_field (struct linebuffer const *lin
+@@ -233,6 +336,8 @@ find_field (struct linebuffer const *lin
  static bool
  different (char *old, char *new, size_t oldlen, size_t newlen)
  {
@@ -3802,7 +3780,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
    if (check_chars < oldlen)
      oldlen = check_chars;
    if (check_chars < newlen)
-@@ -241,14 +346,92 @@ different (char *old, char *new, size_t 
+@@ -240,14 +345,100 @@ different (char *old, char *new, size_t 
  
    if (ignore_case)
      {
@@ -3810,14 +3788,18 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
 -      return oldlen != newlen || memcasecmp (old, new, oldlen);
 +      size_t i;
 +
-+      copy_old = alloca (oldlen + 1);
-+      copy_new = alloca (oldlen + 1);
++      copy_old = xmalloc (oldlen + 1);
++      copy_new = xmalloc (oldlen + 1);
 +
 +      for (i = 0; i < oldlen; i++)
 +        {
 +          copy_old[i] = toupper (old[i]);
 +          copy_new[i] = toupper (new[i]);
 +        }
++      bool rc = xmemcoll (copy_old, oldlen, copy_new, newlen);
++      free (copy_old);
++      free (copy_new);
++      return rc;
      }
 -  else if (hard_LC_COLLATE)
 -    return xmemcoll (old, oldlen, new, newlen) != 0;
@@ -3829,6 +3811,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
 +    }
 +
 +  return xmemcoll (copy_old, oldlen, copy_new, newlen);
++
 +}
 +
 +#if HAVE_MBRTOWC
@@ -3853,7 +3836,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
 +
 +  for (i = 0; i < 2; i++)
 +    {
-+      copy[i] = alloca (len[i] + 1);
++      copy[i] = xmalloc (len[i] + 1);
 +
 +      for (j = 0, chars = 0; j < len[i] && chars < check_chars; chars++)
 +        {
@@ -3893,14 +3876,17 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
 +      copy[i][j] = '\0';
 +      len[i] = j;
 +    }
++  int rc = xmemcoll (copy[0], len[0], copy[1], len[1]);
++  free (copy[0]);
++  free (copy[1]);
++  return rc;
 +
-+  return xmemcoll (copy[0], len[0], copy[1], len[1]);
  }
 +#endif
  
  /* Output the line in linebuffer LINE to standard output
     provided that the switches say it should be output.
-@@ -304,15 +487,43 @@ check_file (const char *infile, const ch
+@@ -303,15 +494,43 @@ check_file (const char *infile, const ch
      {
        char *prevfield IF_LINT ( = NULL);
        size_t prevlen IF_LINT ( = 0);
@@ -3944,7 +3930,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
            if (prevline->length == 0
                || different (thisfield, prevfield, thislen, prevlen))
              {
-@@ -331,17 +542,26 @@ check_file (const char *infile, const ch
+@@ -330,17 +549,26 @@ check_file (const char *infile, const ch
        size_t prevlen;
        uintmax_t match_count = 0;
        bool first_delimiter = true;
@@ -3971,7 +3957,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
            if (readlinebuffer_delim (thisline, stdin, delimiter) == 0)
              {
                if (ferror (stdin))
-@@ -350,6 +570,14 @@ check_file (const char *infile, const ch
+@@ -349,6 +577,14 @@ check_file (const char *infile, const ch
              }
            thisfield = find_field (thisline);
            thislen = thisline->length - 1 - (thisfield - thisline->buffer);
@@ -3986,7 +3972,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
            match = !different (thisfield, prevfield, thislen, prevlen);
            match_count += match;
  
-@@ -382,6 +610,9 @@ check_file (const char *infile, const ch
+@@ -381,6 +617,9 @@ check_file (const char *infile, const ch
                SWAP_LINES (prevline, thisline);
                prevfield = thisfield;
                prevlen = thislen;
@@ -3996,7 +3982,7 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
                if (!match)
                  match_count = 0;
              }
-@@ -427,6 +658,19 @@ main (int argc, char **argv)
+@@ -426,6 +665,19 @@ main (int argc, char **argv)
  
    atexit (close_stdout);
  
@@ -4016,32 +4002,21 @@ diff -urNp coreutils-8.19-orig/src/uniq.c coreutils-8.19/src/uniq.c
    skip_chars = 0;
    skip_fields = 0;
    check_chars = SIZE_MAX;
-diff -urNp coreutils-8.19-orig/tests/Makefile.am coreutils-8.19/tests/Makefile.am
---- coreutils-8.19-orig/tests/Makefile.am      2012-08-20 13:51:39.856841699 +0200
-+++ coreutils-8.19/tests/Makefile.am   2012-08-20 13:52:04.085491266 +0200
-@@ -247,6 +247,7 @@ TESTS =                                            \
-   misc/sort-debug-warn                                \
-   misc/sort-discrim                           \
-   misc/sort-files0-from                               \
-+  misc/sort-mb-tests                          \
-   misc/sort-float                             \
-   misc/sort-merge                             \
-   misc/sort-merge-fdlimit                     \
-@@ -551,6 +552,10 @@ TESTS =                                           \
-   $(root_tests)
- pr_data =                                     \
-+  misc/mb1.X                  \
-+  misc/mb1.I                  \
-+  misc/mb2.X                  \
-+  misc/mb2.I                  \
-   pr/0F                                               \
-   pr/0FF                                      \
-   pr/0FFnt                                    \
-diff -urNp coreutils-8.19-orig/tests/misc/cut coreutils-8.19/tests/misc/cut
---- coreutils-8.19-orig/tests/misc/cut 2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/tests/misc/cut      2012-08-20 13:52:04.086593767 +0200
-@@ -23,14 +23,15 @@ use strict;
+diff -urNp coreutils-8.21-orig/tests/local.mk coreutils-8.21/tests/local.mk
+--- coreutils-8.21-orig/tests/local.mk 2013-02-15 14:24:32.645654553 +0100
++++ coreutils-8.21/tests/local.mk      2013-02-15 14:25:07.873467648 +0100
+@@ -325,6 +325,7 @@ all_tests =                                        \
+   tests/misc/sort-discrim.sh                  \
+   tests/misc/sort-files0-from.pl              \
+   tests/misc/sort-float.sh                    \
++  tests/misc/sort-mb-tests.sh                 \
+   tests/misc/sort-merge.pl                    \
+   tests/misc/sort-merge-fdlimit.sh            \
+   tests/misc/sort-month.sh                    \
+diff -urNp coreutils-8.21-orig/tests/misc/cut.pl coreutils-8.21/tests/misc/cut.pl
+--- coreutils-8.21-orig/tests/misc/cut.pl      2013-02-05 00:40:31.000000000 +0100
++++ coreutils-8.21/tests/misc/cut.pl   2013-02-15 14:27:18.974468564 +0100
+@@ -23,9 +23,10 @@ use strict;
  # Turn off localization of executable's output.
  @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
  
@@ -4055,24 +4030,9 @@ diff -urNp coreutils-8.19-orig/tests/misc/cut coreutils-8.19/tests/misc/cut
  
  my $prog = 'cut';
  my $try = "Try '$prog --help' for more information.\n";
- my $from_1 = "$prog: fields and positions are numbered from 1\n$try";
--my $inval = "$prog: invalid byte or field list\n$try";
-+my $inval = "$prog: invalid byte, character or field list\n$try";
- my $no_endpoint = "$prog: invalid range with no endpoint: -\n$try";
- my @Tests =
-@@ -147,7 +148,7 @@ my @Tests =
-   # None of the following invalid ranges provoked an error up to coreutils-6.9.
-   ['inval1', qw(-f 2-0), {IN=>''}, {OUT=>''}, {EXIT=>1},
--   {ERR=>"$prog: invalid decreasing range\n$try"}],
-+   {ERR=>"$prog: invalid byte, character or field list\n$try"}],
-   ['inval2', qw(-f -), {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
-   ['inval3', '-f', '4,-', {IN=>''}, {OUT=>''}, {EXIT=>1}, {ERR=>$no_endpoint}],
-   ['inval4', '-f', '1-2,-', {IN=>''}, {OUT=>''}, {EXIT=>1},
-diff -urNp coreutils-8.19-orig/tests/misc/expand coreutils-8.19/tests/misc/expand
---- coreutils-8.19-orig/tests/misc/expand      2012-07-21 16:54:31.000000000 +0200
-+++ coreutils-8.19/tests/misc/expand   2012-08-20 13:55:44.188467648 +0200
+diff -urNp coreutils-8.21-orig/tests/misc/expand.pl coreutils-8.21/tests/misc/expand.pl
+--- coreutils-8.21-orig/tests/misc/expand.pl   2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/tests/misc/expand.pl        2013-02-15 14:25:07.891468472 +0100
 @@ -23,6 +23,15 @@ use strict;
  # Turn off localization of executable's output.
  @ENV{qw(LANGUAGE LANG LC_ALL)} = ('C') x 3;
@@ -4127,97 +4087,84 @@ diff -urNp coreutils-8.19-orig/tests/misc/expand coreutils-8.19/tests/misc/expan
  my $save_temps = $ENV{DEBUG};
  my $verbose = $ENV{VERBOSE};
  
-diff -urNp coreutils-8.19-orig/tests/misc/mb1.I coreutils-8.19/tests/misc/mb1.I
---- coreutils-8.19-orig/tests/misc/mb1.I       1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.19/tests/misc/mb1.I    2012-08-20 13:52:04.086593767 +0200
+diff -urNp coreutils-8.21-orig/tests/misc/mb1.I coreutils-8.21/tests/misc/mb1.I
+--- coreutils-8.21-orig/tests/misc/mb1.I       1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.21/tests/misc/mb1.I    2013-02-15 14:25:07.902467891 +0100
 @@ -0,0 +1,4 @@
 +Appleï¼ 10
 +Bananaï¼ 5
 +Citrusï¼ 20
 +Cherryï¼ 30
-diff -urNp coreutils-8.19-orig/tests/misc/mb1.X coreutils-8.19/tests/misc/mb1.X
---- coreutils-8.19-orig/tests/misc/mb1.X       1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.19/tests/misc/mb1.X    2012-08-20 13:52:04.087526516 +0200
+diff -urNp coreutils-8.21-orig/tests/misc/mb1.X coreutils-8.21/tests/misc/mb1.X
+--- coreutils-8.21-orig/tests/misc/mb1.X       1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.21/tests/misc/mb1.X    2013-02-15 14:25:07.917467426 +0100
 @@ -0,0 +1,4 @@
 +Bananaï¼ 5
 +Appleï¼ 10
 +Citrusï¼ 20
 +Cherryï¼ 30
-diff -urNp coreutils-8.19-orig/tests/misc/mb2.I coreutils-8.19/tests/misc/mb2.I
---- coreutils-8.19-orig/tests/misc/mb2.I       1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.19/tests/misc/mb2.I    2012-08-20 13:52:04.088593815 +0200
+diff -urNp coreutils-8.21-orig/tests/misc/mb2.I coreutils-8.21/tests/misc/mb2.I
+--- coreutils-8.21-orig/tests/misc/mb2.I       1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.21/tests/misc/mb2.I    2013-02-15 14:25:07.933467390 +0100
 @@ -0,0 +1,4 @@
 +Apple@AA10ï¼ ï¼ 20
 +Banana@AA5ï¼ ï¼ 30
 +Citrus@AA20ï¼ ï¼ 5
 +Cherry@AA30ï¼ ï¼ 10
-diff -urNp coreutils-8.19-orig/tests/misc/mb2.X coreutils-8.19/tests/misc/mb2.X
---- coreutils-8.19-orig/tests/misc/mb2.X       1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.19/tests/misc/mb2.X    2012-08-20 13:52:04.088593815 +0200
+diff -urNp coreutils-8.21-orig/tests/misc/mb2.X coreutils-8.21/tests/misc/mb2.X
+--- coreutils-8.21-orig/tests/misc/mb2.X       1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.21/tests/misc/mb2.X    2013-02-15 14:25:08.002467808 +0100
 @@ -0,0 +1,4 @@
 +Citrus@AA20ï¼ ï¼ 5
 +Cherry@AA30ï¼ ï¼ 10
 +Apple@AA10ï¼ ï¼ 20
 +Banana@AA5ï¼ ï¼ 30
-diff -urNp coreutils-8.19-orig/tests/misc/sort-mb-tests coreutils-8.19/tests/misc/sort-mb-tests
---- coreutils-8.19-orig/tests/misc/sort-mb-tests       1970-01-01 01:00:00.000000000 +0100
-+++ coreutils-8.19/tests/misc/sort-mb-tests    2012-08-20 13:52:04.089593318 +0200
-@@ -0,0 +1,58 @@
-+#! /bin/sh
-+case $# in
-+  0) xx='../src/sort';;
-+  *) xx="$1";;
-+esac
-+test "$VERBOSE" && echo=echo || echo=:
-+$echo testing program: $xx
-+errors=0
-+test "$srcdir" || srcdir=.
-+test "$VERBOSE" && $xx --version 2> /dev/null
+diff -urNp coreutils-8.21-orig/tests/misc/sort-mb-tests.sh coreutils-8.21/tests/misc/sort-mb-tests.sh
+--- coreutils-8.21-orig/tests/misc/sort-mb-tests.sh    1970-01-01 01:00:00.000000000 +0100
++++ coreutils-8.21/tests/misc/sort-mb-tests.sh 2013-02-18 17:44:03.852275681 +0100
+@@ -0,0 +1,45 @@
++#!/bin/sh
++# Verify sort's multi-byte support.
++
++. "${srcdir=.}/tests/init.sh"; path_prepend_ ./src
++print_ver_ sort
 +
 +export LC_ALL=en_US.UTF-8
-+locale -k LC_CTYPE 2>&1 | grep -q charmap.*UTF-8 || exit 77
-+errors=0
-+
-+$xx -t ï¼  -k2 -n misc/mb1.I > misc/mb1.O
-+code=$?
-+if test $code != 0; then
-+  $echo "Test mb1 failed: $xx return code $code differs from expected value 0"
-+  errors=`expr $errors + 1`
-+else
-+  cmp misc/mb1.O $srcdir/misc/mb1.X > /dev/null 2>&1
-+  case $? in
-+    0) if test "$VERBOSE"; then $echo "passed mb1"; fi;;
-+    1) $echo "Test mb1 failed: files misc/mb1.O and $srcdir/misc/mb1.X differ" 1>&2
-+       (diff -c misc/mb1.O $srcdir/misc/mb1.X) 2> /dev/null
-+       errors=`expr $errors + 1`;;
-+    2) $echo "Test mb1 may have failed." 1>&2
-+       $echo The command "cmp misc/mb1.O $srcdir/misc/mb1.X" failed. 1>&2
-+       errors=`expr $errors + 1`;;
-+  esac
-+fi
-+
-+$xx -t ï¼  -k4 -n misc/mb2.I > misc/mb2.O
-+code=$?
-+if test $code != 0; then
-+  $echo "Test mb2 failed: $xx return code $code differs from expected value 0" 1>&2
-+  errors=`expr $errors + 1`
-+else
-+  cmp misc/mb2.O $srcdir/misc/mb2.X > /dev/null 2>&1
-+  case $? in
-+    0) if test "$VERBOSE"; then $echo "passed mb2"; fi;;
-+    1) $echo "Test mb2 failed: files misc/mb2.O and $srcdir/misc/mb2.X differ" 1>&2
-+       (diff -c misc/mb2.O $srcdir/misc/mb2.X) 2> /dev/null
-+       errors=`expr $errors + 1`;;
-+    2) $echo "Test mb2 may have failed." 1>&2
-+       $echo The command "cmp misc/mb2.O $srcdir/misc/mb2.X" failed. 1>&2
-+       errors=`expr $errors + 1`;;
-+  esac
-+fi
-+
-+if test $errors = 0; then
-+  $echo Passed all 113 tests. 1>&2
-+else
-+  $echo Failed $errors tests. 1>&2
-+fi
-+test $errors = 0 || errors=1
-+exit $errors
++locale -k LC_CTYPE | grep -q "charmap.*UTF-8" \
++  || skip_ "No UTF-8 locale available"
++
++
++cat <<EOF > exp
++Bananaï¼ 5
++Appleï¼ 10
++Citrusï¼ 20
++Cherryï¼ 30
++EOF
++
++cat <<EOF | sort -t ï¼  -k2 -n > out || fail=1
++Appleï¼ 10
++Bananaï¼ 5
++Citrusï¼ 20
++Cherryï¼ 30
++EOF
++
++compare exp out || { fail=1; cat out; }
++
++
++cat <<EOF > exp
++Citrus@AA20@@5
++Cherry@AA30@@10
++Apple@AA10@@20
++Banana@AA5@@30
++EOF
++
++cat <<EOF | sort -t ï¼  -k4 -n > out || fail=1
++Apple@AA10@@20
++Banana@AA5@@30
++Citrus@AA20@@5
++Cherry@AA30@@10
++EOF
++
++compare exp out || { fail=1; cat out; }
++
++Exit $fail
index 775e6386ed0b1ffff4317edf7ea89e2211019dcc..d77afb3d9db70807c09e5bb2059bf91e08516d6b 100644 (file)
@@ -1,40 +1,86 @@
-diff -Nur a/tests/Makefile.am b/tests/Makefile.am
---- a/tests/Makefile.am        2012-08-18 08:02:47.000000000 +0200
-+++ b/tests/Makefile.am        2012-08-26 14:57:03.065516651 +0200
-@@ -24,7 +24,6 @@
- root_tests =                                  \
-   chown/basic                                 \
--  cp/cp-a-selinux                             \
-   cp/preserve-gid                             \
-   cp/special-bits                             \
-   cp/cp-mv-enotsup-xattr                      \
-@@ -199,7 +198,6 @@
-   misc/groups-version                         \
-   misc/head-c                                 \
-   misc/head-pos                                       \
--  misc/id-context                             \
-   misc/id-groups                              \
-   misc/id-setgid                              \
-   misc/md5sum                                 \
-@@ -252,7 +250,6 @@
-   misc/sort-merge                             \
-   misc/sort-merge-fdlimit                     \
-   misc/sort-month                             \
--  misc/sort-exit-early                                \
-   misc/sort-rand                              \
-   misc/sort-spinlock-abuse                    \
-   misc/sort-stale-thread-mem                  \
-@@ -421,12 +418,10 @@
-   du/trailing-slash                           \
-   du/two-args                                 \
-   id/gnu-zero-uids                            \
--  id/no-context                                       \
-   install/basic-1                             \
-   install/create-leading                      \
-   install/d-slashdot                          \
-   install/install-C                           \
--  install/install-C-selinux                   \
-   install/strip-program                               \
-   install/trap                                        \
-   ln/backup-1                                 \
+diff -Nur b/gnulib-tests/gnulib.mk a/gnulib-tests/gnulib.mk
+--- b/gnulib-tests/gnulib.mk   2013-02-07 17:58:44.000000000 +0100
++++ a/gnulib-tests/gnulib.mk   2013-04-01 20:59:40.550543124 +0200
+@@ -524,10 +524,10 @@
+ ## begin gnulib module fdutimensat-tests
+-TESTS += test-fdutimensat
+-check_PROGRAMS += test-fdutimensat
+-test_fdutimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
+-EXTRA_DIST += nap.h test-futimens.h test-lutimens.h test-utimens.h test-utimens-common.h test-fdutimensat.c macros.h
++#TESTS += test-fdutimensat
++#check_PROGRAMS += test-fdutimensat
++#test_fdutimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
++#EXTRA_DIST += nap.h test-futimens.h test-lutimens.h test-utimens.h test-utimens-common.h test-fdutimensat.c macros.h
+ ## end   gnulib module fdutimensat-tests
+@@ -2438,19 +2438,19 @@
+ ## begin gnulib module utimens-tests
+-TESTS += test-utimens
+-check_PROGRAMS += test-utimens
+-test_utimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
+-EXTRA_DIST += nap.h test-futimens.h test-lutimens.h test-utimens.h test-utimens-common.h test-utimens.c macros.h
++#TESTS += test-utimens
++#check_PROGRAMS += test-utimens
++#test_utimens_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
++#EXTRA_DIST += nap.h test-futimens.h test-lutimens.h test-utimens.h test-utimens-common.h test-utimens.c macros.h
+ ## end   gnulib module utimens-tests
+ ## begin gnulib module utimensat-tests
+-TESTS += test-utimensat
+-check_PROGRAMS += test-utimensat
+-test_utimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
+-EXTRA_DIST += nap.h test-lutimens.h test-utimens.h test-utimens-common.h test-utimensat.c signature.h macros.h
++#TESTS += test-utimensat
++#check_PROGRAMS += test-utimensat
++#test_utimensat_LDADD = $(LDADD) $(LIB_CLOCK_GETTIME) @LIBINTL@
++#EXTRA_DIST += nap.h test-lutimens.h test-utimens.h test-utimens-common.h test-utimensat.c signature.h macros.h
+ ## end   gnulib module utimensat-tests
+diff -Nur b/tests/local.mk a/tests/local.mk
+--- b/tests/local.mk   2013-02-11 11:30:12.000000000 +0100
++++ a/tests/local.mk   2013-04-01 19:42:42.212419701 +0200
+@@ -108,7 +108,6 @@
+ all_root_tests =                              \
+   tests/chown/basic.sh                                \
+-  tests/cp/cp-a-selinux.sh                    \
+   tests/cp/preserve-gid.sh                    \
+   tests/cp/special-bits.sh                    \
+   tests/cp/cp-mv-enotsup-xattr.sh             \
+@@ -274,7 +273,6 @@
+   tests/misc/groups-version.sh                        \
+   tests/misc/head-c.sh                                \
+   tests/misc/head-pos.sh                      \
+-  tests/misc/id-context.sh                    \
+   tests/misc/id-groups.sh                     \
+   tests/misc/id-setgid.sh                     \
+   tests/misc/md5sum.pl                                \
+@@ -328,7 +326,6 @@
+   tests/misc/sort-merge.pl                    \
+   tests/misc/sort-merge-fdlimit.sh            \
+   tests/misc/sort-month.sh                    \
+-  tests/misc/sort-exit-early.sh                       \
+   tests/misc/sort-rand.sh                     \
+   tests/misc/sort-spinlock-abuse.sh           \
+   tests/misc/sort-stale-thread-mem.sh         \
+@@ -503,12 +500,10 @@
+   tests/du/trailing-slash.sh                  \
+   tests/du/two-args.sh                                \
+   tests/id/gnu-zero-uids.sh                   \
+-  tests/id/no-context.sh                      \
+   tests/install/basic-1.sh                    \
+   tests/install/create-leading.sh             \
+   tests/install/d-slashdot.sh                 \
+   tests/install/install-C.sh                  \
+-  tests/install/install-C-selinux.sh          \
+   tests/install/strip-program.sh              \
+   tests/install/trap.sh                               \
+   tests/ln/backup-1.sh                                \
index 501b33effcc937024b130c94ef473f341c08f12e..a151acb23308b006ff811cb7fc2f884a5b4c21a2 100644 (file)
@@ -1,7 +1,7 @@
-diff -urNp coreutils-8.13-orig/configure.ac coreutils-8.13/configure.ac
---- coreutils-8.13-orig/configure.ac   2011-09-09 10:29:52.584690353 +0200
-+++ coreutils-8.13/configure.ac        2011-09-09 10:30:39.524564991 +0200
-@@ -141,6 +141,13 @@ if test "$gl_gcc_warnings" = yes; then
+diff -urNp coreutils-8.21-orig/configure.ac coreutils-8.21/configure.ac
+--- coreutils-8.21-orig/configure.ac   2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/configure.ac        2013-02-15 14:31:58.937482694 +0100
+@@ -204,6 +204,13 @@ if test "$gl_gcc_warnings" = yes; then
    AC_SUBST([GNULIB_TEST_WARN_CFLAGS])
  fi
  
@@ -14,19 +14,33 @@ diff -urNp coreutils-8.13-orig/configure.ac coreutils-8.13/configure.ac
 +
  AC_FUNC_FORK
  
- AC_ARG_ENABLE(pam, AS_HELP_STRING([--disable-pam],
-diff -urNp coreutils-8.13-orig/man/chcon.x coreutils-8.13/man/chcon.x
---- coreutils-8.13-orig/man/chcon.x    2009-09-01 13:01:16.000000000 +0200
-+++ coreutils-8.13/man/chcon.x 2011-09-09 10:30:39.524564991 +0200
+ optional_bin_progs=
+diff -urNp coreutils-8.21-orig/init.cfg coreutils-8.21/init.cfg
+--- coreutils-8.21-orig/init.cfg       2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/init.cfg    2013-02-15 14:31:58.957469955 +0100
+@@ -308,8 +308,8 @@ require_selinux_()
+   # Independent of whether SELinux is enabled system-wide,
+   # the current file system may lack SELinux support.
+-  case $(ls -Zd .) in
+-    '? .'|'unlabeled .')
++  case $(ls -Zd . | cut -f4 -d" ") in
++    '?'|'unlabeled')
+       skip_ "this system (or maybe just" \
+         "the current file system) lacks SELinux support"
+     ;;
+diff -urNp coreutils-8.21-orig/man/chcon.x coreutils-8.21/man/chcon.x
+--- coreutils-8.21-orig/man/chcon.x    2011-08-23 15:44:01.000000000 +0200
++++ coreutils-8.21/man/chcon.x 2013-02-15 14:31:58.937482694 +0100
 @@ -1,4 +1,4 @@
  [NAME]
 -chcon \- change file security context
 +chcon \- change file SELinux security context
  [DESCRIPTION]
  .\" Add any additional description here
-diff -urNp coreutils-8.13-orig/man/runcon.x coreutils-8.13/man/runcon.x
---- coreutils-8.13-orig/man/runcon.x   2009-09-01 13:01:16.000000000 +0200
-+++ coreutils-8.13/man/runcon.x        2011-09-09 10:30:39.544686472 +0200
+diff -urNp coreutils-8.21-orig/man/runcon.x coreutils-8.21/man/runcon.x
+--- coreutils-8.21-orig/man/runcon.x   2011-08-23 15:44:01.000000000 +0200
++++ coreutils-8.21/man/runcon.x        2013-02-15 14:31:58.938486496 +0100
 @@ -1,5 +1,5 @@
  [NAME]
 -runcon \- run command with specified security context
@@ -34,22 +48,22 @@ diff -urNp coreutils-8.13-orig/man/runcon.x coreutils-8.13/man/runcon.x
  [DESCRIPTION]
  Run COMMAND with completely-specified CONTEXT, or with current or
  transitioned security context modified by one or more of LEVEL,
-diff -urNp coreutils-8.13-orig/src/chcon.c coreutils-8.13/src/chcon.c
---- coreutils-8.13-orig/src/chcon.c    2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/chcon.c 2011-09-09 10:30:39.562561252 +0200
-@@ -356,7 +356,7 @@ Usage: %s [OPTION]... CONTEXT FILE...\n\
+diff -urNp coreutils-8.21-orig/src/chcon.c coreutils-8.21/src/chcon.c
+--- coreutils-8.21-orig/src/chcon.c    2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/chcon.c 2013-02-15 14:31:58.939469828 +0100
+@@ -355,7 +355,7 @@ Usage: %s [OPTION]... CONTEXT FILE...\n\
  "),
          program_name, program_name, program_name);
        fputs (_("\
 -Change the security context of each FILE to CONTEXT.\n\
 +Change the SELinux security context of each FILE to CONTEXT.\n\
  With --reference, change the security context of each FILE to that of RFILE.\n\
- \n\
  "), stdout);
-diff -urNp coreutils-8.13-orig/src/copy.c coreutils-8.13/src/copy.c
---- coreutils-8.13-orig/src/copy.c     2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/copy.c  2011-09-09 10:30:39.564562214 +0200
-@@ -2244,6 +2244,8 @@ copy_internal (char const *src_name, cha
+diff -urNp coreutils-8.21-orig/src/copy.c coreutils-8.21/src/copy.c
+--- coreutils-8.21-orig/src/copy.c     2013-02-07 10:37:05.000000000 +0100
++++ coreutils-8.21/src/copy.c  2013-02-15 14:31:58.941467872 +0100
+@@ -2315,6 +2315,8 @@ copy_internal (char const *src_name, cha
          {
            /* Here, we are crossing a file system boundary and cp's -x option
               is in effect: so don't copy the contents of this directory. */
@@ -58,12 +72,12 @@ diff -urNp coreutils-8.13-orig/src/copy.c coreutils-8.13/src/copy.c
          }
        else
          {
-diff -urNp coreutils-8.13-orig/src/copy.h coreutils-8.13/src/copy.h
---- coreutils-8.13-orig/src/copy.h     2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/copy.h  2011-09-09 10:30:39.565563712 +0200
-@@ -158,6 +158,9 @@ struct cp_options
-   bool preserve_mode;
+diff -urNp coreutils-8.21-orig/src/copy.h coreutils-8.21/src/copy.h
+--- coreutils-8.21-orig/src/copy.h     2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/copy.h  2013-02-15 14:31:58.943470982 +0100
+@@ -159,6 +159,9 @@ struct cp_options
    bool preserve_timestamps;
+   bool explicit_no_preserve_mode;
  
 +  /* If true, attempt to set specified security context */
 +  bool set_security_context;
@@ -71,9 +85,9 @@ diff -urNp coreutils-8.13-orig/src/copy.h coreutils-8.13/src/copy.h
    /* Enabled for mv, and for cp by the --preserve=links option.
       If true, attempt to preserve in the destination files any
       logical hard links between the source files.  If used with cp's
-diff -urNp coreutils-8.13-orig/src/cp.c coreutils-8.13/src/cp.c
---- coreutils-8.13-orig/src/cp.c       2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/cp.c    2011-09-09 10:30:39.566562062 +0200
+diff -urNp coreutils-8.21-orig/src/cp.c coreutils-8.21/src/cp.c
+--- coreutils-8.21-orig/src/cp.c       2013-02-07 10:37:05.000000000 +0100
++++ coreutils-8.21/src/cp.c    2013-02-15 14:31:58.945468929 +0100
 @@ -141,6 +141,7 @@ static struct option const long_opts[] =
    {"target-directory", required_argument, NULL, 't'},
    {"update", no_argument, NULL, 'u'},
@@ -82,7 +96,7 @@ diff -urNp coreutils-8.13-orig/src/cp.c coreutils-8.13/src/cp.c
    {GETOPT_HELP_OPTION_DECL},
    {GETOPT_VERSION_OPTION_DECL},
    {NULL, 0, NULL, 0}
-@@ -204,6 +205,9 @@ Mandatory arguments to long options are 
+@@ -201,6 +202,9 @@ Copy SOURCE to DEST, or multiple SOURCE(
                                   all\n\
  "), stdout);
        fputs (_("\
@@ -92,7 +106,7 @@ diff -urNp coreutils-8.13-orig/src/cp.c coreutils-8.13/src/cp.c
        --no-preserve=ATTR_LIST  don't preserve the specified attributes\n\
        --parents                use full source file name under DIRECTORY\n\
  "), stdout);
-@@ -230,6 +234,7 @@ Mandatory arguments to long options are 
+@@ -227,6 +231,7 @@ Copy SOURCE to DEST, or multiple SOURCE(
                                   destination file is missing\n\
    -v, --verbose                explain what is being done\n\
    -x, --one-file-system        stay on this file system\n\
@@ -100,8 +114,8 @@ diff -urNp coreutils-8.13-orig/src/cp.c coreutils-8.13/src/cp.c
  "), stdout);
        fputs (HELP_OPTION_DESCRIPTION, stdout);
        fputs (VERSION_OPTION_DESCRIPTION, stdout);
-@@ -786,6 +791,7 @@ cp_option_init (struct cp_options *x)
-   x->preserve_timestamps = false;
+@@ -784,6 +789,7 @@ cp_option_init (struct cp_options *x)
+   x->explicit_no_preserve_mode = false;
    x->preserve_security_context = false;
    x->require_preserve_context = false;
 +  x->set_security_context = false;
@@ -134,7 +148,7 @@ diff -urNp coreutils-8.13-orig/src/cp.c coreutils-8.13/src/cp.c
          case 'd':
            x.preserve_links = true;
            x.dereference = DEREF_NEVER;
-@@ -1090,6 +1106,27 @@ main (int argc, char **argv)
+@@ -1091,6 +1107,27 @@ main (int argc, char **argv)
            x.one_file_system = true;
            break;
  
@@ -162,10 +176,10 @@ diff -urNp coreutils-8.13-orig/src/cp.c coreutils-8.13/src/cp.c
          case 'S':
            make_backups = true;
            backup_suffix_string = optarg;
-diff -urNp coreutils-8.13-orig/src/id.c coreutils-8.13/src/id.c
---- coreutils-8.13-orig/src/id.c       2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/id.c    2011-09-09 10:30:39.567562153 +0200
-@@ -107,7 +107,7 @@ int
+diff -urNp coreutils-8.21-orig/src/id.c coreutils-8.21/src/id.c
+--- coreutils-8.21-orig/src/id.c       2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/id.c    2013-02-15 14:31:58.946469154 +0100
+@@ -106,7 +106,7 @@ int
  main (int argc, char **argv)
  {
    int optc;
@@ -174,10 +188,10 @@ diff -urNp coreutils-8.13-orig/src/id.c coreutils-8.13/src/id.c
  
    /* If true, output the list of all group IDs. -G */
    bool just_group_list = false;
-diff -urNp coreutils-8.13-orig/src/install.c coreutils-8.13/src/install.c
---- coreutils-8.13-orig/src/install.c  2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/install.c       2011-09-09 10:30:39.569562422 +0200
-@@ -261,6 +261,7 @@ cp_option_init (struct cp_options *x)
+diff -urNp coreutils-8.21-orig/src/install.c coreutils-8.21/src/install.c
+--- coreutils-8.21-orig/src/install.c  2013-02-07 10:37:05.000000000 +0100
++++ coreutils-8.21/src/install.c       2013-02-15 14:31:58.948469440 +0100
+@@ -280,6 +280,7 @@ cp_option_init (struct cp_options *x)
    x->data_copy_required = true;
    x->require_preserve = false;
    x->require_preserve_context = false;
@@ -185,7 +199,7 @@ diff -urNp coreutils-8.13-orig/src/install.c coreutils-8.13/src/install.c
    x->require_preserve_xattr = false;
    x->recursive = false;
    x->sparse_mode = SPARSE_AUTO;
-@@ -622,7 +623,7 @@ Mandatory arguments to long options are 
+@@ -639,7 +640,7 @@ In the 4th form, create all components o
    -v, --verbose       print the name of each directory as it is created\n\
  "), stdout);
        fputs (_("\
@@ -194,7 +208,7 @@ diff -urNp coreutils-8.13-orig/src/install.c coreutils-8.13/src/install.c
    -Z, --context=CONTEXT  set SELinux security context of files and directories\
  \n\
  "), stdout);
-@@ -765,7 +766,7 @@ main (int argc, char **argv)
+@@ -782,7 +783,7 @@ main (int argc, char **argv)
       we'll actually use backup_suffix_string.  */
    backup_suffix_string = getenv ("SIMPLE_BACKUP_SUFFIX");
  
@@ -203,7 +217,7 @@ diff -urNp coreutils-8.13-orig/src/install.c coreutils-8.13/src/install.c
                                NULL)) != -1)
      {
        switch (optc)
-@@ -835,6 +836,7 @@ main (int argc, char **argv)
+@@ -853,6 +854,7 @@ main (int argc, char **argv)
            no_target_directory = true;
            break;
  
@@ -211,7 +225,7 @@ diff -urNp coreutils-8.13-orig/src/install.c coreutils-8.13/src/install.c
          case PRESERVE_CONTEXT_OPTION:
            if ( ! selinux_enabled)
              {
-@@ -842,6 +844,10 @@ main (int argc, char **argv)
+@@ -860,6 +862,10 @@ main (int argc, char **argv)
                               "this kernel is not SELinux-enabled"));
                break;
              }
@@ -222,7 +236,7 @@ diff -urNp coreutils-8.13-orig/src/install.c coreutils-8.13/src/install.c
            x.preserve_security_context = true;
            use_default_selinux_context = false;
            break;
-@@ -853,6 +859,7 @@ main (int argc, char **argv)
+@@ -871,6 +877,7 @@ main (int argc, char **argv)
                break;
              }
            scontext = optarg;
@@ -230,10 +244,10 @@ diff -urNp coreutils-8.13-orig/src/install.c coreutils-8.13/src/install.c
            use_default_selinux_context = false;
            break;
          case_GETOPT_HELP_CHAR;
-diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
---- coreutils-8.13-orig/src/ls.c       2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/ls.c    2011-09-09 10:30:39.575562845 +0200
-@@ -166,7 +166,8 @@ enum filetype
+diff -urNp coreutils-8.21-orig/src/ls.c coreutils-8.21/src/ls.c
+--- coreutils-8.21-orig/src/ls.c       2013-02-03 04:24:02.000000000 +0100
++++ coreutils-8.21/src/ls.c    2013-02-15 14:31:58.953469008 +0100
+@@ -165,7 +165,8 @@ enum filetype
      symbolic_link,
      sock,
      whiteout,
@@ -243,7 +257,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
    };
  
  /* Display letters and indicators for each filetype.
-@@ -282,6 +283,7 @@
+@@ -281,6 +282,7 @@ static void queue_directory (char const 
                               bool command_line_arg);
  static void sort_files (void);
  static void parse_ls_color (void);
@@ -251,7 +265,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
  
  /* Initial size of hash table.
     Most hierarchies are likely to be shallower than this.  */
-@@ -352,7 +354,7 @@ static struct pending *pending_dirs;
+@@ -350,7 +352,7 @@ static struct pending *pending_dirs;
  
  static struct timespec current_time;
  
@@ -260,7 +274,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
  static char UNKNOWN_SECURITY_CONTEXT[] = "?";
  
  /* Whether any of the files has an ACL.  This affects the width of the
-@@ -392,7 +394,9 @@ enum format
+@@ -390,7 +392,9 @@ enum format
      one_per_line,             /* -1 */
      many_per_line,            /* -C */
      horizontal,                       /* -x */
@@ -271,7 +285,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
    };
  
  static enum format format;
-@@ -794,6 +798,9 @@ enum
+@@ -793,6 +797,9 @@ enum
    SHOW_CONTROL_CHARS_OPTION,
    SI_OPTION,
    SORT_OPTION,
@@ -353,7 +367,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
  
    /* FIXME: put this in a function.  */
    {
-@@ -1947,13 +1957,27 @@ decode_switches (int argc, char **argv)
+@@ -1941,13 +1951,27 @@ decode_switches (int argc, char **argv)
            break;
  
          case 'Z':
@@ -382,7 +396,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
          default:
            usage (LS_FAILURE);
          }
-@@ -2757,6 +2783,7 @@ gobble_file (char const *name, enum file
+@@ -2883,6 +2907,7 @@ gobble_file (char const *name, enum file
    memset (f, '\0', sizeof *f);
    f->stat.st_ino = inode;
    f->filetype = type;
@@ -390,7 +404,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
  
    if (command_line_arg
        || format_needs_stat
-@@ -2869,7 +2896,7 @@ gobble_file (char const *name, enum file
+@@ -2995,7 +3020,7 @@ gobble_file (char const *name, enum file
            && print_with_color && is_colored (C_CAP))
          f->has_capability = has_capability_cache (absolute_name, f);
  
@@ -399,7 +413,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
          {
            bool have_selinux = false;
            bool have_acl = false;
-@@ -2892,7 +2919,7 @@ gobble_file (char const *name, enum file
+@@ -3016,7 +3041,7 @@ gobble_file (char const *name, enum file
                  err = 0;
              }
  
@@ -408,7 +422,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
              {
                int n = file_has_acl_cache (absolute_name, f);
                err = (n < 0);
-@@ -2911,7 +2938,8 @@ gobble_file (char const *name, enum file
+@@ -3035,7 +3060,8 @@ gobble_file (char const *name, enum file
          }
  
        if (S_ISLNK (f->stat.st_mode)
@@ -418,7 +432,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
          {
            struct stat linkstats;
  
-@@ -2931,6 +2959,7 @@ gobble_file (char const *name, enum file
+@@ -3054,6 +3080,7 @@ gobble_file (char const *name, enum file
                   command line are automatically traced if not being
                   listed as files.  */
                if (!command_line_arg || format == long_format
@@ -426,7 +440,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
                    || !S_ISDIR (linkstats.st_mode))
                  {
                    /* Get the linked-to file's mode for the filetype indicator
-@@ -2970,7 +2999,7 @@ gobble_file (char const *name, enum file
+@@ -3087,7 +3114,7 @@ gobble_file (char const *name, enum file
              block_size_width = len;
          }
  
@@ -435,7 +449,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
          {
            if (print_owner)
              {
-@@ -3471,6 +3500,13 @@ print_current_files (void)
+@@ -3591,6 +3618,13 @@ print_current_files (void)
            print_long_format (sorted_file[i]);
            DIRED_PUTCHAR ('\n');
          }
@@ -449,7 +463,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
        break;
      }
  }
-@@ -3633,6 +3669,67 @@ format_inode (char *buf, size_t buflen, 
+@@ -3753,6 +3787,67 @@ format_inode (char *buf, size_t buflen, 
            : (char *) "?");
  }
  
@@ -517,7 +531,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
  /* Print information about F in long format.  */
  static void
  print_long_format (const struct fileinfo *f)
-@@ -3724,9 +3821,15 @@ print_long_format (const struct fileinfo
+@@ -3844,9 +3939,15 @@ print_long_format (const struct fileinfo
       The latter is wrong when nlink_width is zero.  */
    p += strlen (p);
  
@@ -534,7 +548,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
      {
        DIRED_FPUTS (buf, stdout, p - buf);
  
-@@ -3739,9 +3842,6 @@ print_long_format (const struct fileinfo
+@@ -3859,9 +3960,6 @@ print_long_format (const struct fileinfo
        if (print_author)
          format_user (f->stat.st_author, author_width, f->stat_ok);
  
@@ -544,7 +558,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
        p = buf;
      }
  
-@@ -4086,9 +4186,6 @@ print_file_name_and_frills (const struct
+@@ -4207,9 +4305,6 @@ print_file_name_and_frills (const struct
              : human_readable (ST_NBLOCKS (f->stat), buf, human_output_opts,
                                ST_NBLOCKSIZE, output_block_size));
  
@@ -554,7 +568,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
    size_t width = print_name_with_quoting (f, false, NULL, start_col);
  
    if (indicator_style != none)
-@@ -4292,9 +4389,6 @@ length_of_file_name_and_frills (const st
+@@ -4417,9 +4512,6 @@ length_of_file_name_and_frills (const st
                                              output_block_size))
                  : block_size_width);
  
@@ -564,7 +578,7 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
    quote_name (NULL, f->name, filename_quoting_options, &name_width);
    len += name_width;
  
-@@ -4733,9 +4827,16 @@ Mandatory arguments to long options are 
+@@ -4856,9 +4948,16 @@ Sort entries alphabetically if none of -
    -w, --width=COLS           assume screen width instead of current value\n\
    -x                         list entries by lines instead of by columns\n\
    -X                         sort alphabetically by entry extension\n\
@@ -582,9 +596,9 @@ diff -urNp coreutils-8.13-orig/src/ls.c coreutils-8.13/src/ls.c
        fputs (HELP_OPTION_DESCRIPTION, stdout);
        fputs (VERSION_OPTION_DESCRIPTION, stdout);
        emit_size_note ();
-diff -urNp coreutils-8.13-orig/src/mkdir.c coreutils-8.13/src/mkdir.c
---- coreutils-8.13-orig/src/mkdir.c    2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/mkdir.c 2011-09-09 10:30:39.576564256 +0200
+diff -urNp coreutils-8.21-orig/src/mkdir.c coreutils-8.21/src/mkdir.c
+--- coreutils-8.21-orig/src/mkdir.c    2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/mkdir.c 2013-02-15 14:31:58.954469576 +0100
 @@ -38,6 +38,7 @@
  static struct option const longopts[] =
  {
@@ -593,9 +607,9 @@ diff -urNp coreutils-8.13-orig/src/mkdir.c coreutils-8.13/src/mkdir.c
    {"mode", required_argument, NULL, 'm'},
    {"parents", no_argument, NULL, 'p'},
    {"verbose", no_argument, NULL, 'v'},
-diff -urNp coreutils-8.13-orig/src/mknod.c coreutils-8.13/src/mknod.c
---- coreutils-8.13-orig/src/mknod.c    2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/mknod.c 2011-09-09 10:30:39.577563177 +0200
+diff -urNp coreutils-8.21-orig/src/mknod.c coreutils-8.21/src/mknod.c
+--- coreutils-8.21-orig/src/mknod.c    2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/mknod.c 2013-02-15 14:31:58.955470548 +0100
 @@ -35,7 +35,7 @@
  
  static struct option const longopts[] =
@@ -605,46 +619,32 @@ diff -urNp coreutils-8.13-orig/src/mknod.c coreutils-8.13/src/mknod.c
    {"mode", required_argument, NULL, 'm'},
    {GETOPT_HELP_OPTION_DECL},
    {GETOPT_VERSION_OPTION_DECL},
-diff -urNp coreutils-8.13-orig/src/mv.c coreutils-8.13/src/mv.c
---- coreutils-8.13-orig/src/mv.c       2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/mv.c    2011-09-09 10:30:39.578562234 +0200
-@@ -118,6 +118,7 @@ cp_option_init (struct cp_options *x)
-   x->preserve_mode = true;
+diff -urNp coreutils-8.21-orig/src/mv.c coreutils-8.21/src/mv.c
+--- coreutils-8.21-orig/src/mv.c       2013-02-07 10:37:05.000000000 +0100
++++ coreutils-8.21/src/mv.c    2013-02-15 14:31:58.956469593 +0100
+@@ -120,6 +120,7 @@ cp_option_init (struct cp_options *x)
    x->preserve_timestamps = true;
+   x->explicit_no_preserve_mode= false;
    x->preserve_security_context = selinux_enabled;
 +  x->set_security_context = false;
    x->reduce_diagnostics = false;
    x->data_copy_required = true;
    x->require_preserve = false;  /* FIXME: maybe make this an option */
-diff -urNp coreutils-8.13-orig/src/runcon.c coreutils-8.13/src/runcon.c
---- coreutils-8.13-orig/src/runcon.c   2011-07-28 12:38:27.000000000 +0200
-+++ coreutils-8.13/src/runcon.c        2011-09-09 10:30:39.579564283 +0200
-@@ -86,7 +86,7 @@ Usage: %s CONTEXT COMMAND [args]\n\
+diff -urNp coreutils-8.21-orig/src/runcon.c coreutils-8.21/src/runcon.c
+--- coreutils-8.21-orig/src/runcon.c   2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/src/runcon.c        2013-02-15 14:31:58.956469593 +0100
+@@ -85,7 +85,7 @@ Usage: %s CONTEXT COMMAND [args]\n\
    or:  %s [ -c ] [-u USER] [-r ROLE] [-t TYPE] [-l RANGE] COMMAND [args]\n\
  "), program_name, program_name);
        fputs (_("\
 -Run a program in a different security context.\n\
 +Run a program in a different SELinux security context.\n\
  With neither CONTEXT nor COMMAND, print the current security context.\n\
- \n\
-   CONTEXT            Complete security context\n\
-diff -urNp coreutils-8.17-orig/tests/init.cfg coreutils-8.17/tests/init.cfg
---- coreutils-8.17-orig/tests/init.cfg
-+++ coreutils-8.17/tests/init.cfg
-@@ -253,8 +253,8 @@ require_selinux_()
+ "), stdout);
  
-   # Independent of whether SELinux is enabled system-wide,
-   # the current file system may lack SELinux support.
--  case $(ls -Zd .) in
--    '? .'|'unlabeled .')
-+  case $(ls -Zd . | cut -f4 -d" ") in
-+    '?'|'unlabeled')
-       skip_ "this system (or maybe just" \
-         "the current file system) lacks SELinux support"
-     ;;
-diff -urNp coreutils-8.17-orig/tests/misc/selinux coreutils-8.17/tests/misc/selinux
---- coreutils-8.17-orig/tests/misc/selinux
-+++ coreutils-8.17/tests/misc/selinux
+diff -urNp coreutils-8.21-orig/tests/misc/selinux.sh coreutils-8.21/tests/misc/selinux.sh
+--- coreutils-8.21-orig/tests/misc/selinux.sh  2013-01-31 01:46:24.000000000 +0100
++++ coreutils-8.21/tests/misc/selinux.sh       2013-02-15 14:31:58.957469955 +0100
 @@ -37,7 +37,7 @@ chcon $ctx f d p ||
  
  # inspect that context with both ls -Z and stat.
diff --git a/ding-libs/ding-libs.nm b/ding-libs/ding-libs.nm
new file mode 100644 (file)
index 0000000..81291ce
--- /dev/null
@@ -0,0 +1,208 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = ding-libs
+version    = 0.2.91
+release    = 1
+
+groups     = System/Libraries
+url        = http://fedorahosted.org/sssd/
+license    = GPLv3+
+summary    = "Ding is not GLib" assorted utility libraries.
+
+description
+       A set of helpful libraries used by projects such as SSSD.
+end
+
+source_dl  = http://fedorahosted.org/releases/d/i/ding-libs/
+
+build
+       configure_options += \
+               --disable-static
+
+       test
+               make check
+       end
+end
+
+packages
+       # ding-libs is a meta package,
+       # which requires all sub-packages.
+       package %{name}
+               requires
+                       libbasicobjects = %{thisver}
+                       libcollection = %{thisver}
+                       libdhash = %{thisver} 
+                       libini_config = %{thisver}
+                       libpath_utils = %{thisver}
+                       libref_array = %{thisver}
+               end
+       end
+
+       # ding-libs-devel is a meta package,
+       # which requires all devel sub-packages.
+       package %{name}-devel
+               template DEVEL
+
+               requires
+                       libbasicobjects-devel = %{thisver}
+                       libcollection-devel = %{thisver}
+                       libdhash-devel = %{thisver}
+                       libini_config-devel = %{thisver}
+                       libpath_utils-devel = %{thisver}
+                       libref_array-devel = %{thisver}
+               end
+       end
+
+       package libbasicobjects
+               template LIBS
+
+               summary = Basic object types for C.
+               description = %{summary}
+
+               files
+                       %{libdir}/libbasicobjects.so.*
+               end
+       end
+
+       package libbasicobjects-devel
+               summary = Development files for libbasicobjects.
+               description = %{summary}
+
+               files
+                       %{libdir}/libbasicobjects.so
+                       %{libdir}/pkgconfig/basicobjects.pc
+                       %{includedir}/simplebuffer.h
+               end
+       end
+                       
+       package libcollection
+               template LIBS
+
+               summary = Collection data-type for C.
+               description
+                       A data-type to collect data in a hierarchical structure 
+                       for easy iteration and serialization.
+               end
+
+               files
+                       %{libdir}/libcollection.so.*
+               end
+       end
+
+       package libcollection-devel
+               summary = Development files for libcollection.
+               description = %{summary}
+
+               files
+                       %{libdir}/libcollection.so
+                       %{libdir}/pkgconfig/collection.pc
+                       %{includedir}/collection*.h
+               end
+       end
+
+       package libdhash
+               template LIBS
+
+               summary = Dynamic hash table.
+               description
+                       A hash table which will dynamically resize to achieve
+                       optimal storage & access time properties.
+               end
+
+               files
+                       %{libdir}/libdhash.so.*
+               end
+       end
+
+       package libdhash-devel
+               summary = Development files for libdhash.
+               description = %{summary}
+
+               files
+                       %{libdir}/libdhash.so
+                       %{libdir}/pkgconfig/dhash.pc
+                       %{includedir}/dhash*.h
+               end
+       end
+
+       package libini_config
+               template LIBS
+
+               summary = INI file parsr for C.
+               description
+                       Library to process config files in INI format into a
+                       libcollection data structure.
+               end
+
+               files
+                       %{libdir}/libini_config.so.*
+               end
+       end
+
+       package libini_config-devel
+               summary = Development files for libini_config.
+               description = %{summary}
+
+               files
+                       %{libdir}/libini_config.so
+                       %{libdir}/pkgconfig/ini_config.pc
+                       %{includedir}/ini_config*.h
+               end
+       end
+
+       package libpath_utils
+               template LIBS
+
+               summary = Filesystem Path Utilities.
+               description
+                       Utility functions to manipulate filesystem pathnames.
+               end
+
+               files
+                       %{libdir}/libpath_utils.so.*
+               end
+       end
+
+       package libpath_utils-devel
+               summary = Development files for libpath_utils.
+               description = %{summary}
+
+               files
+                       %{libdir}/libpath_utils.so
+                       %{libdir}/pkgconfig/path_utils.pc
+                       %{includedir}/path_utils*.h
+               end
+       end
+
+       package libref_array
+               template LIBS
+
+               summary = A refcounted array for C.
+               description
+                       A dynamically-growing, reference-counted array.
+               end
+
+               files
+                       %{libdir}/libref_array.so.*
+               end
+       end
+
+       package libref_array-devel
+               summary = Development files for libref_array.
+               description = %{summary}
+
+               files
+                       %{libdir}/libref_array.so
+                       %{libdir}/pkgconfig/ref_array.pc
+                       %{includedir}/ref_array*.h
+               end
+       end
+       
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
+
index 1ab3d5ecad216ddc7fc013eaa02eb8a972514b76..69d28ae561bf9369536a4a9134f2e79ba67ee56a 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = dosfstools
-version    = 3.0.10
+version    = 3.0.16
 release    = 1
 
 groups     = System/Filesystems
@@ -18,8 +18,8 @@ description
        drives or on floppies.
 end
 
-source_dl  =
-sources    = %{thisapp}.tar.bz2
+source_dl  = http://www.daniel-baumann.ch/files/software/dosfstools/
+sources    = %{thisapp}.tar.gz
 
 build
        install
diff --git a/dtc/dtc.nm b/dtc/dtc.nm
new file mode 100644 (file)
index 0000000..bc5d853
--- /dev/null
@@ -0,0 +1,66 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = dtc
+version    = 1.3.0
+release    = 1
+thisapp    = %{name}-v%{version}
+
+groups     = Development/Tools
+url        = http://git.jdl.com/gitweb/?p=dtc.git;a=summary
+license    = GPLv2+
+summary    = Device Tree Compiler
+
+description
+       The Device Tree Compiler generates flattened Open Firmware style
+       device trees for use with PowerPC machines that lack an Open Firmware
+       implementation.
+end
+
+sources    = %{thisapp}.tgz
+source_dl  = http://www.jdl.com/software/
+
+build
+       requires
+               bison
+               flex
+       end
+
+       make_install_targets += PREFIX=/usr LIBDIR=%{libdir}
+
+       install_cmds
+               # we don't want or need ftdump and it conflicts with
+               # freetype-demos
+               rm -vf %{BUILDROOT}%{bindir}/ftdump
+       end
+end
+
+packages
+       package %{name}
+
+       package libfdt
+               template LIBS
+
+               files
+                       %{libdir}/libfdt-%{version}.so
+                       %{libdir}/libfdt.so.1
+               end
+       end
+
+       package libfdt-devel
+               template DEVEL
+
+               requires += libfdt = %{thisver}
+
+               files
+                       %{includedir}
+                       %{libdir}/libfdt.so
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
diff --git a/dtc/patches/dtc-check.patch b/dtc/patches/dtc-check.patch
new file mode 100644 (file)
index 0000000..f3560fd
--- /dev/null
@@ -0,0 +1,65 @@
+From jwboyer@linux.vnet.ibm.com Tue Jun 28 08:47:09 2011
+Date: Tue, 28 Jun 2011 08:47:09 -0400
+From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
+To: Jon Loeliger <jdl@jdl.com>
+Cc: linuxppc-dev@lists.ozlabs.org
+Subject: [PATCH] dtc: Remove unused check variable
+Message-ID: <20110628124709.GC10237@zod.rchland.ibm.com>
+MIME-Version: 1.0
+Content-Type: text/plain; charset=us-ascii
+Content-Disposition: inline
+User-Agent: Mutt/1.5.21 (2010-09-15)
+Status: RO
+Content-Length: 1315
+Lines: 49
+
+Commit 376ab6f2 removed the old style check functionality from DTC,
+however the check option and variable were not removed.  This leads to
+build failures when -Werror=unused-but-set-variable is specified:
+
+       dtc.c: In function 'main':
+       dtc.c:102:17: error: variable 'check' set but not used [-Werror=unused-but-set-variable]
+       cc1: all warnings being treated as errors
+       make: *** [dtc.o] Error 1
+       make: *** Waiting for unfinished jobs....
+
+Remove the check variable.
+
+Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
+
+---
+
+t a/dtc.c b/dtc.c
+index cbc0193..15d2fc2 100644
+--- a/dtc.c
++++ b/dtc.c
+@@ -99,7 +99,7 @@ int main(int argc, char *argv[])
+       const char *inform = "dts";
+       const char *outform = "dts";
+       const char *outname = "-";
+-      int force = 0, check = 0, sort = 0;
++      int force = 0, sort = 0;
+       const char *arg;
+       int opt;
+       FILE *outf = NULL;
+@@ -111,7 +111,7 @@ int main(int argc, char *argv[])
+       minsize    = 0;
+       padsize    = 0;
+-      while ((opt = getopt(argc, argv, "hI:O:o:V:R:S:p:fcqb:vH:s")) != EOF) {
++      while ((opt = getopt(argc, argv, "hI:O:o:V:R:S:p:fqb:vH:s")) != EOF) {
+               switch (opt) {
+               case 'I':
+                       inform = optarg;
+@@ -137,9 +137,6 @@ int main(int argc, char *argv[])
+               case 'f':
+                       force = 1;
+                       break;
+-              case 'c':
+-                      check = 1;
+-                      break;
+               case 'q':
+                       quiet++;
+                       break;
+
+
diff --git a/dtc/patches/dtc-flattree.patch b/dtc/patches/dtc-flattree.patch
new file mode 100644 (file)
index 0000000..c8ba010
--- /dev/null
@@ -0,0 +1,52 @@
+From jwboyer@linux.vnet.ibm.com Tue Jun 28 09:42:53 2011
+Date: Tue, 28 Jun 2011 09:42:53 -0400
+From: Josh Boyer <jwboyer@linux.vnet.ibm.com>
+To: jdl@jdl.com, david@gibson.dropbear.id.au
+Cc: linuxppc-dev@lists.ozlabs.org
+Subject: [PATCH] dtc: Remove unused variable in flat_read_mem_reserve
+Message-ID: <20110628134253.GD10237@zod.rchland.ibm.com>
+MIME-Version: 1.0
+Content-Type: text/plain; charset=us-ascii
+Content-Disposition: inline
+User-Agent: Mutt/1.5.21 (2010-09-15)
+Status: RO
+Content-Length: 1865
+Lines: 68
+
+The *p variable is declared and used to save inb->ptr, however p is
+later never used.  This has been the case since commit 6c0f3676 and can
+lead to build failures with -Werror=unused-but-set-variable:
+
+       flattree.c: In function 'flat_read_mem_reserve':
+       flattree.c:700:14: error: variable 'p' set but not used [-Werror=unused-but-set-variable]
+       cc1: all warnings being treated as errors
+       make: *** [flattree.o] Error 1
+
+Remove the variable.
+
+Signed-off-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
+
+---
+
+diff --git a/flattree.c b/flattree.c
+index ead0332..28d0b23 100644
+--- a/flattree.c
++++ b/flattree.c
+@@ -697,7 +697,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
+ {
+       struct reserve_info *reservelist = NULL;
+       struct reserve_info *new;
+-      const char *p;
+       struct fdt_reserve_entry re;
+       /*
+@@ -706,7 +705,6 @@ static struct reserve_info *flat_read_mem_reserve(struct inbuf *inb)
+        *
+        * First pass, count entries.
+        */
+-      p = inb->ptr;
+       while (1) {
+               flat_read_chunk(inb, &re, sizeof(re));
+               re.address  = fdt64_to_cpu(re.address);
+
+
index c9f1f67330590ff0f0ff1672ada5cd2289b0b6aa..c9eed0dee8b3cc8791126fabd78511601f23b2d4 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = file
-version    = 5.12
+version    = 5.13
 release    = 1
 
 groups     = System/Tools
diff --git a/gnu-efi/gnu-efi.nm b/gnu-efi/gnu-efi.nm
new file mode 100644 (file)
index 0000000..6a29a44
--- /dev/null
@@ -0,0 +1,45 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = gnu-efi
+version    = 3.0q
+release    = 1
+sup_arches = x86_64 i686
+
+groups     = Development/System
+url        = ftp://ftp.hpl.hp.com/pub/linux-ia64
+license    = BSD
+summary    = Development Libraries and headers for EFI
+
+description
+       This package contains development headers and libraries for developing
+       applications that run under EFI (Extensible Firmware Interface).
+end
+
+source_dl  = %{url}
+
+build
+       # Disable hardening.
+       CFLAGS += -fno-stack-protector
+
+       make_build_targets += CFLAGS="%{CFLAGS}"
+
+       install
+               make PREFIX=%{prefix} INSTALLROOT=%{BUILDROOT} \
+                       LIBDIR=%{libdir} CFLAGS="%{CFLAGS}" install
+
+               mkdir -pv %{BUILDROOT}%{libdir}/gnuefi
+               mv -v %{BUILDROOT}%{libdir}/*.{lds,o} %{BUILDROOT}%{libdir}/gnuefi
+       end
+
+       keep_libraries
+               %{libdir}/libefi.a
+               %{libdir}/libgnuefi.a
+       end
+end
+
+packages
+       package %{name}
+end
diff --git a/gnu-efi/patches/gnu-efi-3.0q-Add-.S-and-.E-rules.patch b/gnu-efi/patches/gnu-efi-3.0q-Add-.S-and-.E-rules.patch
new file mode 100644 (file)
index 0000000..b6fdfaf
--- /dev/null
@@ -0,0 +1,25 @@
+From bb12d86aceb7d9ea6748f45a17f719a8e18c81c8 Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones@redhat.com>
+Date: Tue, 9 Aug 2011 12:30:49 -0400
+Subject: [PATCH 7/7] Add %.S and %.E rules to make debugging easier.
+
+---
+ Make.rules |    5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/Make.rules b/Make.rules
+index eab12d7..65fb612 100644
+--- a/Make.rules
++++ b/Make.rules
+@@ -44,3 +44,8 @@
+ %.o: %.c
+       $(CC) $(INCDIR) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
++%.S: %.c
++      $(CC) $(INCDIR) $(CFLAGS) $(CPPFLAGS) -S $< -o $@
++
++%.E: %.c
++      $(CC) $(INCDIR) $(CFLAGS) $(CPPFLAGS) -E $< -o $@
+-- 
+1.7.10.4
+
diff --git a/gnu-efi/patches/gnu-efi-3.0q-Fix-usage-of-INSTALLROOT-PREFIX-and-LIBDIR.patch b/gnu-efi/patches/gnu-efi-3.0q-Fix-usage-of-INSTALLROOT-PREFIX-and-LIBDIR.patch
new file mode 100644 (file)
index 0000000..ecb5c56
--- /dev/null
@@ -0,0 +1,66 @@
+From 3f40a425e763edfde77a9a6e05ed09b0676d8fa9 Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones@cutlet.install.bos.redhat.com>
+Date: Fri, 3 Oct 2008 14:40:56 -0400
+Subject: [PATCH 1/7] Fix usage of INSTALLROOT, PREFIX, and LIBDIR.
+
+I screwed it up last time.
+---
+ Make.defaults |    6 +++---
+ inc/Makefile  |   16 ++++++++--------
+ 2 files changed, 11 insertions(+), 11 deletions(-)
+
+diff --git a/Make.defaults b/Make.defaults
+index bf162c5..6278fa7 100644
+--- a/Make.defaults
++++ b/Make.defaults
+@@ -38,8 +38,9 @@
+ # Where to install the package. GNU-EFI will create and access
+ # lib and include under the root
+ #
+-INSTALLROOT=/usr/local
+-LIBDIR=lib
++INSTALLROOT:= /
++PREFIX := /usr/local
++LIBDIR := ${PREFIX}/lib
+ TOPDIR    := $(shell if [ "$$PWD" != "" ]; then echo $$PWD; else pwd; fi)
+@@ -73,7 +74,6 @@ endif
+ ifeq ($(ARCH), x86_64)
+   CFLAGS += -mno-red-zone
+-  LIBDIR = lib
+   ifeq ($(HOSTARCH), ia32)
+     ARCH3264 = -m64
+   endif
+diff --git a/inc/Makefile b/inc/Makefile
+index 9683be5..71fded5 100644
+--- a/inc/Makefile
++++ b/inc/Makefile
+@@ -13,15 +13,15 @@ all:
+ clean:
+ install:
+-      mkdir -p $(INSTALLROOT)/include/efi
+-      mkdir -p $(INSTALLROOT)/include/efi/protocol
+-      mkdir -p $(INSTALLROOT)/include/efi/$(ARCH)
+-      $(INSTALL) -m 644 *.h $(INSTALLROOT)/include/efi
+-      $(INSTALL) -m 644 protocol/*.h $(INSTALLROOT)/include/efi/protocol
+-      $(INSTALL) -m 644 $(ARCH)/*.h $(INSTALLROOT)/include/efi/$(ARCH)
++      mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi
++      mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol
++      mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
++      $(INSTALL) -m 644 *.h $(INSTALLROOT)$(PREFIX)/include/efi
++      $(INSTALL) -m 644 protocol/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol
++      $(INSTALL) -m 644 $(ARCH)/*.h $(INSTALLROOT)$(PREFIX)/include/efi/$(ARCH)
+ ifeq ($(ARCH),ia64)
+-      mkdir -p $(INSTALLROOT)/include/efi/protocol/ia64
+-      $(INSTALL) -m 644 protocol/ia64/*.h $(INSTALLROOT)/include/efi/protocol/ia64
++      mkdir -p $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64
++      $(INSTALL) -m 644 protocol/ia64/*.h $(INSTALLROOT)$(PREFIX)/include/efi/protocol/ia64
+ endif
+ include $(SRCDIR)/../Make.rules
+-- 
+1.7.10.4
+
diff --git a/gnu-efi/patches/gnu-efi-3.0q-machine-types.patch b/gnu-efi/patches/gnu-efi-3.0q-machine-types.patch
new file mode 100644 (file)
index 0000000..8c0aa72
--- /dev/null
@@ -0,0 +1,66 @@
+From 9ab3fefd9b86c567ba6b0ea1429ce932572040c1 Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones@redhat.com>
+Date: Tue, 26 Apr 2011 13:25:26 -0400
+Subject: [PATCH 5/7] Add more machine type defines.
+
+Add machine type defines for i386, arm/thumb, ia64, ebc, and x86_64.
+---
+ inc/ia32/pe.h   |    4 ++++
+ inc/ia64/pe.h   |    4 ++++
+ inc/x86_64/pe.h |    4 ++++
+ 3 files changed, 12 insertions(+)
+
+diff --git a/inc/ia32/pe.h b/inc/ia32/pe.h
+index 16e40ef..979b936 100644
+--- a/inc/ia32/pe.h
++++ b/inc/ia32/pe.h
+@@ -98,8 +98,12 @@ typedef struct _IMAGE_FILE_HEADER {
+ #define IMAGE_FILE_MACHINE_R3000             0x162   // MIPS little-endian, 0540 big-endian
+ #define IMAGE_FILE_MACHINE_R4000             0x166   // MIPS little-endian
+ #define IMAGE_FILE_MACHINE_ALPHA             0x184   // Alpha_AXP
++#define IMAGE_FILE_MACHINE_ARMTHUMB_MIXED    0x1c2   // Arm/Thumb
+ #define IMAGE_FILE_MACHINE_POWERPC           0x1F0   // IBM PowerPC Little-Endian
++#define IMAGE_FILE_MACHINE_IA64              0x200   // IA-64
+ #define IMAGE_FILE_MACHINE_TAHOE             0x7cc   // Intel EM machine
++#define IMAGE_FILE_MACHINE_EBC               0xebc   // EFI Byte Code
++#define IMAGE_FILE_MACHINE_X64               0x8664  // x86_64
+ //
+ // Directory format.
+ //
+diff --git a/inc/ia64/pe.h b/inc/ia64/pe.h
+index f67128d..b1cade2 100644
+--- a/inc/ia64/pe.h
++++ b/inc/ia64/pe.h
+@@ -113,8 +113,12 @@ typedef struct _IMAGE_FILE_HEADER {
+ #define IMAGE_FILE_MACHINE_R3000             0x162   // MIPS little-endian, 0540 big-endian
+ #define IMAGE_FILE_MACHINE_R4000             0x166   // MIPS little-endian
+ #define IMAGE_FILE_MACHINE_ALPHA             0x184   // Alpha_AXP
++#define IMAGE_FILE_MACHINE_ARMTHUMB_MIXED    0x1c2   // Arm/Thumb
+ #define IMAGE_FILE_MACHINE_POWERPC           0x1F0   // IBM PowerPC Little-Endian
++#define IMAGE_FILE_MACHINE_IA64              0x200   // IA-64
+ #define IMAGE_FILE_MACHINE_TAHOE             0x7cc   // Intel EM machine
++#define IMAGE_FILE_MACHINE_EBC               0xebc   // EFI Byte Code
++#define IMAGE_FILE_MACHINE_X64               0x8664  // x86_64
+ //
+ // Directory format.
+ //
+diff --git a/inc/x86_64/pe.h b/inc/x86_64/pe.h
+index 16e40ef..979b936 100644
+--- a/inc/x86_64/pe.h
++++ b/inc/x86_64/pe.h
+@@ -98,8 +98,12 @@ typedef struct _IMAGE_FILE_HEADER {
+ #define IMAGE_FILE_MACHINE_R3000             0x162   // MIPS little-endian, 0540 big-endian
+ #define IMAGE_FILE_MACHINE_R4000             0x166   // MIPS little-endian
+ #define IMAGE_FILE_MACHINE_ALPHA             0x184   // Alpha_AXP
++#define IMAGE_FILE_MACHINE_ARMTHUMB_MIXED    0x1c2   // Arm/Thumb
+ #define IMAGE_FILE_MACHINE_POWERPC           0x1F0   // IBM PowerPC Little-Endian
++#define IMAGE_FILE_MACHINE_IA64              0x200   // IA-64
+ #define IMAGE_FILE_MACHINE_TAHOE             0x7cc   // Intel EM machine
++#define IMAGE_FILE_MACHINE_EBC               0xebc   // EFI Byte Code
++#define IMAGE_FILE_MACHINE_X64               0x8664  // x86_64
+ //
+ // Directory format.
+ //
+-- 
+1.7.10.4
+
index ceabf1ebd03aee2f8dd2e8e73dfb718e2ab7256d..59893e2bcc3bcf27e1c2b26b316465395950caf5 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = grub
 version    = 2.00
-release    = 2
+release    = 4
 sup_arches = x86_64 i686
 
 groups     = System/Boot
@@ -39,6 +39,7 @@ build
                gettext
                libdevmapper-devel
                ncurses-devel
+               paxctl
                zlib-devel
                %{unifont}
        end
@@ -46,10 +47,6 @@ build
        prepare_cmds
                cp -vf %{unifont} unifont.pcf.gz
                ./autogen.sh
-
-               # Create a copy of the source tree to build
-               # an EFI enabled version of grub.
-               cp -pR . %{DIR_SRC}/%{thisapp}-efi
        end
 
        # As the modules contain always 32 bit code, they
@@ -62,51 +59,17 @@ build
                --program-transform-name=s,grub,grub, \
                --disable-werror \
                CFLAGS="$(echo %{CFLAGS} | sed \
+                       -e 's/-Wp,-D_FORTIFY_SOURCE=2//g' \
+                       -e 's/-fstack-protector-all//g' \
                        -e 's/-fstack-protector//g' \
+                       -e 's/-fPIC//g' \
                        -e 's/--param=ssp-buffer-size=4//g' \
                        -e 's/-mregparm=3/-mregparm=4/g' \
                        -e 's/-fexceptions//g' \
                        -e 's/-m64//g' \
                        -e 's/-fasynchronous-unwind-tables//g' )"
 
-       build_cmds
-               cd ../%{thisapp}-efi
-               ./configure \
-                       %{configure_options} \
-                       --with-platform=efi \
-                       CFLAGS="$(echo %{CFLAGS} | sed \
-                               -e 's/-O.//g' \
-                               -e 's/-fstack-protector//g' \
-                               -e 's/--param=ssp-buffer-size=4//g' \
-                               -e 's/-mregparm=3/-mregparm=4/g' \
-                               -e 's/-fexceptions//g' \
-                               -e 's/-m64//g' \
-                               -e 's/-fasynchronous-unwind-tables//g' )"
-
-               make %{PARALLELISMFLAGS}
-
-               ./grub-mkimage \
-                       -O i386-efi \
-                       -p /EFI/%{DISTRO_SNAME}/grub-efi \
-                       -o grub.efi \
-                       -d grub-core part_gpt hfsplus fat ext2 btrfs normal chain \
-                       boot configfile linux appleldr minicmd loadbios reboot halt \
-                       search font gfxterm echo video all_video
-       end
-
-       install
-               cd ../%{thisapp}-efi
-               make install DESTDIR=%{BUILDROOT}
-
-               install -m 755 -d %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/
-               install -d %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi
-               touch %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg
-               ln -svf ../boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg %{BUILDROOT}/etc/grub-efi.cfg
-               install -m 755 grub.efi %{BUILDROOT}/boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.efi
-
-               cd -
-               make install DESTDIR=%{BUILDROOT}
-
+       install_cmds
                # Install empty configuration file.
                mkdir -pv %{BUILDROOT}/boot/grub
                touch %{BUILDROOT}/boot/grub/grub.cfg
@@ -129,6 +92,11 @@ build
                %{BUILDROOT}%{bindir}/grub-mkfont -o DejaVuSans-Bold-14.pf2 \
                        -s 14 %{datadir}/fonts/dejavu/DejaVuSans-Bold.ttf
                popd
+
+               # Disable hardening.
+               paxctl -mpes \
+                       %{BUILDROOT}%{sbindir}/grub-bios-setup \
+                       %{BUILDROOT}%{sbindir}/grub-probe
        end
 
        debuginfo_strict_build_id = false
@@ -136,7 +104,7 @@ end
 
 quality-agent
        whitelist_nx
-               /usr/bin/*|/usr/sbin/*
+               %{bindir}/*|%{sbindir}/*
        end
 end
 
@@ -148,28 +116,14 @@ packages
                        system-logos >= 2
                end
 
-               configfiles
-                       /boot/grub/grub.cfg
-                       /etc/default/grub
-               end
-       end
-
-       package %{name}-efi
-               description
-                       EFI version of GRUB, the Grand Unified Boot Loader.
+               # An EFI version of grub does not exist any more.
+               obsoletes
+                       grub-efi <= 2.0.0-2
                end
-               summary = %{description}
-
-               requires += grub = %{thisver}
 
                configfiles
-                       /boot/efi/EFI/%{DISTRO_SNAME}/grub-efi/grub.cfg
-               end
-
-               files
-                       /boot/efi
-                       /etc/grub-efi.cfg
-                       /usr/lib/grub/i386-efi
+                       /boot/grub/grub.cfg
+                       /etc/default/grub
                end
        end
 
diff --git a/grub/patches/grub-2.00-ignore-gnulib-gets-stupidity.patch b/grub/patches/grub-2.00-ignore-gnulib-gets-stupidity.patch
new file mode 100644 (file)
index 0000000..345c19d
--- /dev/null
@@ -0,0 +1,26 @@
+From f66d54b934710f54999debb72e8b7c620edece1d Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones@redhat.com>
+Date: Fri, 25 May 2012 15:28:19 -0400
+Subject: [PATCH] gnulib accused in build breaking shocker.
+
+---
+ grub-core/gnulib/stdio.in.h |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/grub-core/gnulib/stdio.in.h b/grub-core/gnulib/stdio.in.h
+index 80b9dbf..69932d9 100644
+--- a/grub-core/gnulib/stdio.in.h
++++ b/grub-core/gnulib/stdio.in.h
+@@ -141,7 +141,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
+    so any use of gets warrants an unconditional warning.  Assume it is
+    always declared, since it is required by C89.  */
+ #undef gets
++#if 0
+ _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
++#endif
+ #if @GNULIB_FOPEN@
+ # if @REPLACE_FOPEN@
+-- 
+1.7.10.1
+
diff --git a/gummiboot/gummiboot.nm b/gummiboot/gummiboot.nm
new file mode 100644 (file)
index 0000000..956affc
--- /dev/null
@@ -0,0 +1,69 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = gummiboot
+version    = 26
+release    = 1
+sup_arches = x86_64 i686
+
+groups     = System/Boot
+url        = http://freedesktop.org/wiki/Software/gummiboot
+license    = LGPLv2+
+summary    = Simple EFI Boot Manager
+
+description
+       gummiboot is a simple UEFI boot manager which executes configured EFI
+       images. The default entry is selected by a configured pattern (glob)
+       or an on-screen menu.
+
+       gummiboot operates on the EFI System Partition (ESP) only. gummiboot
+       reads simple and entirely generic boot loader configuration files;
+       one file per boot loader entry to select from.
+
+       Configuration file fragments, kernels, initrds, other EFI images need
+       to reside on the ESP.
+end
+
+source_dl  = http://cgit.freedesktop.org/gummiboot/snapshot/
+
+build
+       requires
+               autoconf
+               automake
+               gnu-efi
+               libblkid-devel
+               libxslt
+               docbook-xsl
+       end
+
+       prepare_cmds
+               ./autogen.sh
+       end
+
+       configure_options += \
+               --libexecdir=%{prefix}/lib
+
+       make_build_targets += V=1
+end
+
+packages
+       package %{name}
+               provides
+                       bundled(gnu-efi)
+               end
+
+               script postin
+                       %{bindir}/gummiboot update >/dev/null 2>&1 || :
+               end
+
+               script postup
+                       %{bindir}/gummiboot update >/dev/null 2>&1 || :
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
index 433e35fe46bf5584b540370cba67203b67c09202..c466ebc067b842d0300506530d64023090e5cd06 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = iproute2
 version    = 3.5.1
-release    = 1
+release    = 2
 
 groups     = Networking/Tools
 url        = http://www.linuxfoundation.org/en/Net:Iproute2
index 8f8ae75f43f518a2c97c4fbb5d2e08c06281f1c3..7527060fef766dc3655d3d2508d01e05096278ee 100644 (file)
@@ -32,6 +32,7 @@ CONFIG_PERF_USE_VMALLOC=y
 #
 CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
 CONFIG_MODULES_USE_ELF_REL=y
+CONFIG_CLONE_BACKWARDS=y
 
 #
 # GCOV-based kernel profiling
@@ -54,7 +55,6 @@ CONFIG_ARCH_VERSATILE=y
 # CONFIG_ARCH_EBSA110 is not set
 # CONFIG_ARCH_EP93XX is not set
 # CONFIG_ARCH_FOOTBRIDGE is not set
-# CONFIG_ARCH_MXC is not set
 # CONFIG_ARCH_MXS is not set
 # CONFIG_ARCH_NETX is not set
 # CONFIG_ARCH_H720X is not set
@@ -89,8 +89,7 @@ CONFIG_ARCH_VERSATILE=y
 # CONFIG_PLAT_SPEAR is not set
 # CONFIG_ARCH_DAVINCI is not set
 # CONFIG_ARCH_OMAP is not set
-# CONFIG_ARCH_VT8500 is not set
-# CONFIG_ARCH_ZYNQ is not set
+# CONFIG_ARCH_VT8500_SINGLE is not set
 
 #
 # Versatile platform type
@@ -100,10 +99,9 @@ CONFIG_MACH_VERSATILE_AB=y
 CONFIG_MACH_VERSATILE_DT=y
 CONFIG_PLAT_VERSATILE_CLOCK=y
 CONFIG_PLAT_VERSATILE_CLCD=y
-CONFIG_PLAT_VERSATILE_FPGA_IRQ=y
-CONFIG_PLAT_VERSATILE_FPGA_IRQ_NR=4
 CONFIG_PLAT_VERSATILE_LEDS=y
 CONFIG_PLAT_VERSATILE_SCHED_CLOCK=y
+# CONFIG_ARCH_VT8500 is not set
 CONFIG_PLAT_VERSATILE=y
 CONFIG_ARM_TIMER_SP804=y
 
@@ -307,6 +305,7 @@ CONFIG_MDIO_BUS_MUX_MMIOREG=m
 # Input Device Drivers
 #
 # CONFIG_KEYBOARD_SAMSUNG is not set
+CONFIG_INPUT_PWM_BEEPER=m
 
 #
 # Hardware I/O ports
@@ -325,6 +324,7 @@ CONFIG_SERIO_AMBAKMI=m
 CONFIG_SERIAL_AMBA_PL011=y
 CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
 CONFIG_SERIAL_OF_PLATFORM=y
+# CONFIG_SERIAL_XILINX_PS_UART is not set
 # CONFIG_HVC_DCC is not set
 CONFIG_HW_RANDOM_ATMEL=m
 CONFIG_HW_RANDOM_EXYNOS=m
@@ -366,6 +366,7 @@ CONFIG_GPIO_ADNP=m
 # 1-wire Slaves
 #
 # CONFIG_APM_POWER is not set
+CONFIG_POWER_RESET_GPIO=y
 
 #
 # Watchdog Device Drivers
@@ -417,10 +418,12 @@ CONFIG_FB_SYS_FOPS=m
 CONFIG_FB_ARMCLCD=m
 # CONFIG_FB_RADEON is not set
 # CONFIG_FB_SAVAGE is not set
+CONFIG_BACKLIGHT_PWM=m
 
 #
 # Console display driver support
 #
+CONFIG_FB_SSD1307=m
 CONFIG_SND_COMPRESS_OFFLOAD=m
 # CONFIG_SND_ALI5451 is not set
 CONFIG_SND_ARM=y
@@ -472,12 +475,6 @@ CONFIG_RTC_DRV_SNVS=m
 # CONFIG_DW_DMAC is not set
 CONFIG_PL330_DMA=y
 
-#
-# Microsoft Hyper-V guest support
-#
-CONFIG_ZRAM=m
-# CONFIG_ZRAM_DEBUG is not set
-
 #
 # Android
 #
@@ -490,9 +487,11 @@ CONFIG_CLKSRC_MMIO=y
 CONFIG_OF_IOMMU=y
 
 #
-# Pseudo filesystems
+# Rpmsg drivers (EXPERIMENTAL)
 #
-# CONFIG_HUGETLB_PAGE is not set
+CONFIG_PWM=y
+CONFIG_VERSATILE_FPGA_IRQ=y
+CONFIG_VERSATILE_FPGA_IRQ_NR=4
 
 #
 # Kernel hacking
index 44924fe2aa2900ce81220b449955d5c1cae08ecd..b8ca93c04e659d302d2e18baae7d93274e1daff2 100644 (file)
@@ -31,6 +31,14 @@ CONFIG_MACH_GOFLEXNET_DT=y
 CONFIG_MACH_LSXL_DT=y
 CONFIG_MACH_IOMEGA_IX2_200_DT=y
 CONFIG_MACH_KM_KIRKWOOD_DT=y
+CONFIG_MACH_INETSPACE_V2_DT=y
+CONFIG_MACH_MPLCEC4_DT=y
+CONFIG_MACH_NETSPACE_V2_DT=y
+CONFIG_MACH_NETSPACE_MAX_V2_DT=y
+CONFIG_MACH_NETSPACE_LITE_V2_DT=y
+CONFIG_MACH_NETSPACE_MINI_V2_DT=y
+CONFIG_MACH_OPENBLOCKS_A6_DT=y
+CONFIG_MACH_TOPKICK_DT=y
 CONFIG_MACH_TS219=y
 CONFIG_MACH_TS41X=y
 CONFIG_MACH_DOCKSTAR=y
@@ -45,6 +53,7 @@ CONFIG_MACH_D2NET_V2=y
 CONFIG_MACH_NET2BIG_V2=y
 CONFIG_MACH_NET5BIG_V2=y
 CONFIG_MACH_T5325=y
+CONFIG_MACH_NSA310_DT=y
 CONFIG_PLAT_ORION=y
 CONFIG_PLAT_ORION_LEGACY=y
 
@@ -76,6 +85,11 @@ CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_FROM_BOOTLOADER=y
 #
 # CONFIG_ARM_CPU_SUSPEND is not set
 
+#
+# Bluetooth device drivers
+#
+CONFIG_RFKILL_REGULATOR=m
+
 #
 # Distributed Switch Architecture drivers
 #
@@ -89,6 +103,19 @@ CONFIG_I2C_MV64XXX=m
 #
 # Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
 #
+CONFIG_PINCTRL=y
+
+#
+# Pin controllers
+#
+CONFIG_PINMUX=y
+CONFIG_PINCONF=y
+# CONFIG_DEBUG_PINCTRL is not set
+CONFIG_PINCTRL_SINGLE=m
+# CONFIG_PINCTRL_EXYNOS is not set
+# CONFIG_PINCTRL_EXYNOS5440 is not set
+CONFIG_PINCTRL_MVEBU=y
+CONFIG_PINCTRL_KIRKWOOD=y
 CONFIG_ARCH_REQUIRE_GPIOLIB=y
 CONFIG_GPIO_GENERIC=y
 
@@ -96,17 +123,53 @@ CONFIG_GPIO_GENERIC=y
 # Memory mapped GPIO drivers:
 #
 CONFIG_GPIO_GENERIC_PLATFORM=y
+CONFIG_GPIO_MVEBU=y
 
 #
 # SPI GPIO expanders:
 #
 CONFIG_GPIO_MCP23S08=m
 
+#
+# 1-wire Slaves
+#
+# CONFIG_CHARGER_MANAGER is not set
+
 #
 # Watchdog Device Drivers
 #
 CONFIG_ORION_WATCHDOG=m
 
+#
+# Multifunction device drivers
+#
+CONFIG_REGULATOR=y
+# CONFIG_REGULATOR_DEBUG is not set
+# CONFIG_REGULATOR_DUMMY is not set
+CONFIG_REGULATOR_FIXED_VOLTAGE=y
+# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
+# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
+# CONFIG_REGULATOR_GPIO is not set
+# CONFIG_REGULATOR_AD5398 is not set
+# CONFIG_REGULATOR_FAN53555 is not set
+# CONFIG_REGULATOR_ISL6271A is not set
+# CONFIG_REGULATOR_MAX1586 is not set
+# CONFIG_REGULATOR_MAX8649 is not set
+# CONFIG_REGULATOR_MAX8660 is not set
+# CONFIG_REGULATOR_MAX8952 is not set
+# CONFIG_REGULATOR_MAX8973 is not set
+# CONFIG_REGULATOR_LP3971 is not set
+# CONFIG_REGULATOR_LP3972 is not set
+# CONFIG_REGULATOR_TPS51632 is not set
+# CONFIG_REGULATOR_TPS62360 is not set
+# CONFIG_REGULATOR_TPS65023 is not set
+# CONFIG_REGULATOR_TPS6507X is not set
+
+#
+# Frame buffer hardware drivers
+#
+# CONFIG_BACKLIGHT_PWM is not set
+
 #
 # Console display driver support
 #
@@ -125,6 +188,7 @@ CONFIG_MMC_MVSDIO=m
 #
 # LED drivers
 #
+CONFIG_LEDS_REGULATOR=m
 CONFIG_LEDS_NS2=m
 CONFIG_LEDS_NETXBIG=m
 
@@ -148,6 +212,8 @@ CONFIG_COMMON_CLK=y
 # Common Clock Framework
 #
 # CONFIG_COMMON_CLK_DEBUG is not set
+CONFIG_MVEBU_CLK_CORE=y
+CONFIG_MVEBU_CLK_GATING=y
 
 #
 # Random Number Generation
index a7bc03b1fea396eba1e6ec2ac6b7241ea11fab67..ccbfe8947ccbcdefd7c1f51d8b2106c1bbaeb87f 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_RCU_FANOUT=32
 CONFIG_RCU_FANOUT_LEAF=16
 # CONFIG_RCU_FANOUT_EXACT is not set
 CONFIG_RCU_FAST_NO_HZ=y
+CONFIG_RCU_NOCB_CPU=y
 
 #
 # Kernel Performance Events And Counters
@@ -156,8 +157,7 @@ CONFIG_CPU_HAS_ASID=y
 #
 # Processor Features
 #
-CONFIG_ARM_LPAE=y
-CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
+# CONFIG_ARM_LPAE is not set
 # CONFIG_ARM_THUMBEE is not set
 CONFIG_ARM_VIRT_EXT=y
 CONFIG_SWP_EMULATE=y
@@ -186,6 +186,7 @@ CONFIG_ARM_ERRATA_754327=y
 CONFIG_ARM_ERRATA_764369=y
 CONFIG_PL310_ERRATA_769419=y
 CONFIG_ARM_ERRATA_775420=y
+CONFIG_ARM_ERRATA_798181=y
 CONFIG_ARM_GIC=y
 CONFIG_GIC_NON_BANKED=y
 
@@ -217,7 +218,6 @@ CONFIG_SPARSEMEM_MANUAL=y
 CONFIG_SPARSEMEM=y
 CONFIG_SPARSEMEM_EXTREME=y
 CONFIG_SPLIT_PTLOCK_CPUS=4
-CONFIG_PHYS_ADDR_T_64BIT=y
 
 #
 # Boot options
@@ -229,7 +229,6 @@ CONFIG_CMDLINE="console=ttySAC1,115200 root=/dev/mmcblk0p2 rootwait"
 # CPU Frequency scaling
 #
 # CONFIG_CPU_FREQ is not set
-CONFIG_CPU_FREQ_TABLE=m
 
 #
 # At least one emulation must be selected
@@ -258,7 +257,6 @@ CONFIG_XPS=y
 # Generic Driver Options
 #
 CONFIG_REGMAP_I2C=y
-CONFIG_REGMAP_IRQ=y
 
 #
 # Bus devices
@@ -331,6 +329,7 @@ CONFIG_MTD_NAND=y
 # CONFIG_MTD_NAND_ECC_BCH is not set
 # CONFIG_MTD_SM_COMMON is not set
 # CONFIG_MTD_NAND_MUSEUM_IDS is not set
+# CONFIG_MTD_NAND_DENALI is not set
 # CONFIG_MTD_NAND_GPIO is not set
 CONFIG_MTD_NAND_IDS=y
 # CONFIG_MTD_NAND_DISKONCHIP is not set
@@ -369,12 +368,12 @@ CONFIG_INPUT_FF_MEMLESS=y
 #
 # Input Device Drivers
 #
-# CONFIG_KEYBOARD_OMAP4 is not set
 CONFIG_KEYBOARD_TWL4030=m
 CONFIG_MOUSE_GPIO=m
 CONFIG_INPUT_TWL4030_PWRBUTTON=y
 CONFIG_INPUT_TWL4030_VIBRA=y
 CONFIG_INPUT_TWL6040_VIBRA=y
+CONFIG_INPUT_DA9055_ONKEY=m
 
 #
 # Serial drivers
@@ -399,14 +398,10 @@ CONFIG_I2C=y
 # CONFIG_I2C_S3C2410 is not set
 
 #
-# PPS support
-#
-# CONFIG_PPS is not set
-
-#
-# Enable Device Drivers -> PPS to see the PTP clock options.
+# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
 #
 CONFIG_ARCH_REQUIRE_GPIOLIB=y
+CONFIG_GPIO_DA9055=m
 
 #
 # I2C GPIO expanders:
@@ -424,11 +419,12 @@ CONFIG_GPIO_TWL6040=m
 #
 # Native drivers
 #
-CONFIG_EXYNOS_THERMAL=m
+CONFIG_SENSORS_DA9055=m
 
 #
 # Watchdog Device Drivers
 #
+CONFIG_DA9055_WATCHDOG=m
 # CONFIG_S3C2410_WATCHDOG is not set
 # CONFIG_TWL4030_WATCHDOG is not set
 
@@ -443,6 +439,7 @@ CONFIG_MFD_CORE=y
 # CONFIG_MFD_TPS6586X is not set
 # CONFIG_MFD_TPS65910 is not set
 # CONFIG_MFD_TPS65912_I2C is not set
+# CONFIG_MFD_TPS80031 is not set
 CONFIG_TWL4030_CORE=y
 # CONFIG_TWL4030_MADC is not set
 CONFIG_TWL4030_POWER=y
@@ -471,6 +468,7 @@ CONFIG_MFD_TPS65090=y
 # CONFIG_MFD_AAT2870_CORE is not set
 # CONFIG_MFD_RC5T583 is not set
 # CONFIG_MFD_PALMAS is not set
+# CONFIG_MFD_AS3711 is not set
 CONFIG_REGULATOR=y
 # CONFIG_REGULATOR_DEBUG is not set
 # CONFIG_REGULATOR_DUMMY is not set
@@ -479,6 +477,7 @@ CONFIG_REGULATOR_FIXED_VOLTAGE=y
 # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
 CONFIG_REGULATOR_GPIO=y
 # CONFIG_REGULATOR_AD5398 is not set
+# CONFIG_REGULATOR_DA9055 is not set
 CONFIG_REGULATOR_FAN53555=m
 # CONFIG_REGULATOR_ISL6271A is not set
 # CONFIG_REGULATOR_MAX1586 is not set
@@ -486,10 +485,12 @@ CONFIG_REGULATOR_FAN53555=m
 # CONFIG_REGULATOR_MAX8660 is not set
 CONFIG_REGULATOR_MAX8907=m
 # CONFIG_REGULATOR_MAX8952 is not set
+# CONFIG_REGULATOR_MAX8973 is not set
 # CONFIG_REGULATOR_LP3971 is not set
 # CONFIG_REGULATOR_LP3972 is not set
 CONFIG_REGULATOR_LP872X=y
 CONFIG_REGULATOR_LP8788=y
+# CONFIG_REGULATOR_TPS51632 is not set
 CONFIG_REGULATOR_TPS62360=m
 # CONFIG_REGULATOR_TPS65023 is not set
 # CONFIG_REGULATOR_TPS6507X is not set
@@ -551,7 +552,7 @@ CONFIG_FB_S3C=y
 # CONFIG_SND_SOC_SAMSUNG is not set
 
 #
-# USB HID support
+# I2C HID support
 #
 # CONFIG_USB_ARCH_HAS_XHCI is not set
 
@@ -597,6 +598,11 @@ CONFIG_LEDS_TRIGGER_HEARTBEAT=y
 CONFIG_RTC_DRV_MAX8907=m
 # CONFIG_RTC_DRV_TWL4030 is not set
 
+#
+# Platform RTC drivers
+#
+CONFIG_RTC_DRV_DA9055=m
+
 #
 # on-CPU RTC drivers
 #
@@ -617,9 +623,9 @@ CONFIG_EXYNOS_IOMMU=y
 #
 # Rpmsg drivers (EXPERIMENTAL)
 #
-CONFIG_PWM=y
 CONFIG_PWM_SAMSUNG=y
-CONFIG_PWM_TWL6030=m
+CONFIG_PWM_TWL=m
+CONFIG_PWM_TWL_LED=m
 
 #
 # File systems
@@ -642,6 +648,7 @@ CONFIG_DEBUG_LL=y
 CONFIG_DEBUG_S3C_UART0=y
 # CONFIG_DEBUG_S3C_UART1 is not set
 # CONFIG_DEBUG_S3C_UART2 is not set
+# CONFIG_DEBUG_S3C_UART3 is not set
 # CONFIG_DEBUG_LL_UART_NONE is not set
 # CONFIG_DEBUG_ICEDCC is not set
 # CONFIG_DEBUG_SEMIHOSTING is not set
@@ -657,11 +664,12 @@ CONFIG_PAX_PAGEEXEC=y
 CONFIG_PAX_MPROTECT=y
 # CONFIG_PAX_MPROTECT_COMPAT is not set
 CONFIG_PAX_ELFRELOCS=y
-CONFIG_PAX_KERNEXEC=y
+# CONFIG_PAX_KERNEXEC is not set
 
 #
 # Miscellaneous hardening features
 #
+# CONFIG_PAX_MEMORY_UDEREF is not set
 CONFIG_PAX_REFCOUNT=y
 
 #
index 7d709db57a7792a7ceea9cac488e8878a5a87945..0fc10e0cc7043b033cae345472553b1bc956ed4f 100644 (file)
@@ -1,5 +1,4 @@
 CONFIG_ARCH_HAS_CPUFREQ=y
-CONFIG_NEED_MACH_GPIO_H=y
 
 #
 # IRQ subsystem
@@ -16,6 +15,7 @@ CONFIG_RCU_FANOUT=32
 CONFIG_RCU_FANOUT_LEAF=16
 # CONFIG_RCU_FANOUT_EXACT is not set
 CONFIG_RCU_FAST_NO_HZ=y
+CONFIG_RCU_NOCB_CPU=y
 
 #
 # Kernel Performance Events And Counters
@@ -128,9 +128,8 @@ CONFIG_CPU_HAS_ASID=y
 #
 # Processor Features
 #
-CONFIG_ARM_LPAE=y
-CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
-CONFIG_ARM_THUMBEE=y
+# CONFIG_ARM_LPAE is not set
+# CONFIG_ARM_THUMBEE is not set
 CONFIG_ARM_VIRT_EXT=y
 CONFIG_SWP_EMULATE=y
 # CONFIG_CPU_BPREDICT_DISABLE is not set
@@ -158,6 +157,7 @@ CONFIG_PL310_ERRATA_727915=y
 # CONFIG_ARM_ERRATA_764369 is not set
 CONFIG_PL310_ERRATA_769419=y
 CONFIG_ARM_ERRATA_775420=y
+CONFIG_ARM_ERRATA_798181=y
 CONFIG_ARM_GIC=y
 
 #
@@ -183,7 +183,6 @@ CONFIG_HZ=128
 # CONFIG_THUMB2_KERNEL is not set
 CONFIG_ARCH_HAS_HOLES_MEMORYMODEL=y
 CONFIG_SPLIT_PTLOCK_CPUS=4
-CONFIG_PHYS_ADDR_T_64BIT=y
 CONFIG_MMU_NOTIFIER=y
 CONFIG_FORCE_MAX_ZONEORDER=12
 CONFIG_XEN_DOM0=y
@@ -229,6 +228,7 @@ CONFIG_REGMAP_I2C=y
 #
 # Bus devices
 #
+CONFIG_OMAP_OCP2SCP=m
 CONFIG_OMAP_INTERCONNECT=y
 CONFIG_MTD=y
 CONFIG_MTD_TESTS=m
@@ -299,6 +299,7 @@ CONFIG_MTD_NAND=y
 # CONFIG_MTD_NAND_ECC_BCH is not set
 # CONFIG_MTD_SM_COMMON is not set
 # CONFIG_MTD_NAND_MUSEUM_IDS is not set
+# CONFIG_MTD_NAND_DENALI is not set
 # CONFIG_MTD_NAND_GPIO is not set
 CONFIG_MTD_NAND_OMAP2=y
 # CONFIG_MTD_NAND_OMAP_BCH is not set
@@ -397,23 +398,20 @@ CONFIG_I2C=y
 CONFIG_I2C_OMAP=y
 
 #
-# PPS support
-#
-# CONFIG_PPS is not set
-
-#
-# Enable Device Drivers -> PPS to see the PTP clock options.
+# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
 #
 CONFIG_PINCTRL=y
 
 #
 # Pin controllers
 #
-# CONFIG_PINMUX is not set
-# CONFIG_PINCONF is not set
+CONFIG_PINMUX=y
+CONFIG_PINCONF=y
 # CONFIG_DEBUG_PINCTRL is not set
 # CONFIG_PINCTRL_SINGLE is not set
-# CONFIG_PINCTRL_EXYNOS4 is not set
+CONFIG_PINCTRL_SAMSUNG=y
+CONFIG_PINCTRL_EXYNOS=y
+CONFIG_PINCTRL_EXYNOS5440=y
 CONFIG_ARCH_REQUIRE_GPIOLIB=y
 
 #
@@ -453,6 +451,7 @@ CONFIG_MFD_CORE=y
 # CONFIG_MFD_TPS6586X is not set
 # CONFIG_MFD_TPS65910 is not set
 # CONFIG_MFD_TPS65912_I2C is not set
+# CONFIG_MFD_TPS80031 is not set
 CONFIG_TWL4030_CORE=y
 # CONFIG_TWL4030_MADC is not set
 CONFIG_TWL4030_POWER=y
@@ -482,6 +481,7 @@ CONFIG_MFD_TPS65090=y
 # CONFIG_MFD_AAT2870_CORE is not set
 # CONFIG_MFD_RC5T583 is not set
 # CONFIG_MFD_PALMAS is not set
+# CONFIG_MFD_AS3711 is not set
 CONFIG_REGULATOR=y
 # CONFIG_REGULATOR_DEBUG is not set
 # CONFIG_REGULATOR_DUMMY is not set
@@ -496,9 +496,11 @@ CONFIG_REGULATOR_GPIO=y
 # CONFIG_REGULATOR_MAX8649 is not set
 # CONFIG_REGULATOR_MAX8660 is not set
 # CONFIG_REGULATOR_MAX8952 is not set
+# CONFIG_REGULATOR_MAX8973 is not set
 # CONFIG_REGULATOR_LP3971 is not set
 # CONFIG_REGULATOR_LP3972 is not set
 CONFIG_REGULATOR_LP872X=y
+# CONFIG_REGULATOR_TPS51632 is not set
 CONFIG_REGULATOR_TPS62360=m
 # CONFIG_REGULATOR_TPS65023 is not set
 # CONFIG_REGULATOR_TPS6507X is not set
@@ -539,12 +541,10 @@ CONFIG_VIDEO_IR_I2C=y
 # Frame buffer hardware drivers
 #
 CONFIG_XEN_FBDEV_FRONTEND=m
-CONFIG_OMAP2_VRAM=y
 CONFIG_OMAP2_VRFB=y
 CONFIG_OMAP2_DSS=y
-CONFIG_OMAP2_VRAM_SIZE=12
-CONFIG_OMAP2_DSS_DEBUG_SUPPORT=y
-# CONFIG_OMAP2_DSS_COLLECT_IRQ_STATS is not set
+# CONFIG_OMAP2_DSS_DEBUG is not set
+# CONFIG_OMAP2_DSS_DEBUGFS is not set
 CONFIG_OMAP2_DSS_DPI=y
 # CONFIG_OMAP2_DSS_RFBI is not set
 CONFIG_OMAP2_DSS_VENC=y
@@ -570,12 +570,13 @@ CONFIG_PANEL_SHARP_LS037V7DW01=y
 #
 # Console display driver support
 #
+# CONFIG_FB_SSD1307 is not set
 # CONFIG_SND_OPL3_LIB_SEQ is not set
 # CONFIG_SND_EMU10K1_SEQ is not set
 # CONFIG_SND_OMAP_SOC is not set
 
 #
-# USB HID support
+# I2C HID support
 #
 # CONFIG_USB_ARCH_HAS_XHCI is not set
 
@@ -585,6 +586,11 @@ CONFIG_PANEL_SHARP_LS037V7DW01=y
 CONFIG_USB_EHCI_HCD_OMAP=y
 CONFIG_USB_OHCI_HCD_OMAP3=y
 
+#
+# USB Physical Layer drivers
+#
+CONFIG_OMAP_USB2=m
+
 #
 # OTG and related infrastructure
 #
@@ -619,6 +625,11 @@ CONFIG_LEDS_TRIGGER_HEARTBEAT=y
 #
 # CONFIG_RTC_DRV_TWL4030 is not set
 
+#
+# on-CPU RTC drivers
+#
+# CONFIG_RTC_DRV_OMAP is not set
+
 #
 # DMA Devices
 #
@@ -649,6 +660,13 @@ CONFIG_DRM_OMAP_NUM_CRTCS=1
 # Android
 #
 # CONFIG_OMAP_BANDGAP is not set
+CONFIG_COMMON_CLK=y
+
+#
+# Common Clock Framework
+#
+# CONFIG_COMMON_CLK_DEBUG is not set
+# CONFIG_CLK_TWL6040 is not set
 CONFIG_HWSPINLOCK=m
 
 #
@@ -661,6 +679,7 @@ CONFIG_HWSPINLOCK_OMAP=m
 # Rpmsg drivers (EXPERIMENTAL)
 #
 CONFIG_TI_EMIF=m
+# CONFIG_PWM is not set
 
 #
 # File systems
index 320f0932ba0d4665767e3b28453940ccc1758d83..c86fdf84af127b48e41ded5f5d857425d940558b 100644 (file)
@@ -13,6 +13,7 @@ CONFIG_ARCH_SUSPEND_POSSIBLE=y
 CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
 CONFIG_HAVE_IRQ_WORK=y
 CONFIG_IRQ_WORK=y
+CONFIG_BUILDTIME_EXTABLE_SORT=y
 
 #
 # General setup
@@ -158,8 +159,8 @@ CONFIG_GENERIC_SMP_IDLE_THREAD=y
 CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
 CONFIG_HAVE_DMA_API_DEBUG=y
 CONFIG_HAVE_ARCH_JUMP_LABEL=y
-CONFIG_GENERIC_KERNEL_THREAD=y
-CONFIG_GENERIC_KERNEL_EXECVE=y
+CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
+CONFIG_SECCOMP_FILTER=y
 
 #
 # GCOV-based kernel profiling
@@ -233,6 +234,7 @@ CONFIG_PREEMPT_NONE=y
 CONFIG_SELECT_MEMORY_MODEL=y
 CONFIG_HAVE_MEMBLOCK=y
 CONFIG_PAGEFLAGS_EXTENDED=y
+CONFIG_BALLOON_COMPACTION=y
 CONFIG_COMPACTION=y
 CONFIG_MIGRATION=y
 CONFIG_BOUNCE=y
@@ -479,6 +481,7 @@ CONFIG_NETFILTER_XT_TARGET_MARK=m
 CONFIG_NETFILTER_XT_TARGET_NETMAP=m
 CONFIG_NETFILTER_XT_TARGET_NFLOG=m
 CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
+CONFIG_NETFILTER_XT_TARGET_NOTRACK=m
 CONFIG_NETFILTER_XT_TARGET_RATEEST=m
 CONFIG_NETFILTER_XT_TARGET_REDIRECT=m
 CONFIG_NETFILTER_XT_TARGET_TEE=m
@@ -589,8 +592,8 @@ CONFIG_IP_VS_PE_SIP=m
 #
 # IP: Netfilter Configuration
 #
-CONFIG_NF_DEFRAG_IPV4=m
-CONFIG_NF_CONNTRACK_IPV4=m
+CONFIG_NF_DEFRAG_IPV4=y
+CONFIG_NF_CONNTRACK_IPV4=y
 # CONFIG_NF_CONNTRACK_PROC_COMPAT is not set
 # CONFIG_IP_NF_QUEUE is not set
 CONFIG_IP_NF_IPTABLES=y
@@ -622,8 +625,8 @@ CONFIG_IP_NF_ARP_MANGLE=m
 #
 # IPv6: Netfilter Configuration
 #
-CONFIG_NF_DEFRAG_IPV6=m
-CONFIG_NF_CONNTRACK_IPV6=m
+CONFIG_NF_DEFRAG_IPV6=y
+CONFIG_NF_CONNTRACK_IPV6=y
 CONFIG_IP6_NF_IPTABLES=y
 CONFIG_IP6_NF_MATCH_AH=m
 CONFIG_IP6_NF_MATCH_EUI64=m
@@ -669,9 +672,11 @@ CONFIG_BRIDGE_EBT_NFLOG=m
 CONFIG_IP_SCTP=m
 # CONFIG_SCTP_DBG_MSG is not set
 # CONFIG_SCTP_DBG_OBJCNT is not set
-# CONFIG_SCTP_HMAC_NONE is not set
-# CONFIG_SCTP_HMAC_SHA1 is not set
-CONFIG_SCTP_HMAC_MD5=y
+# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5 is not set
+CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=y
+# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not set
+CONFIG_SCTP_COOKIE_HMAC_MD5=y
+CONFIG_SCTP_COOKIE_HMAC_SHA1=y
 # CONFIG_RDS is not set
 # CONFIG_TIPC is not set
 CONFIG_ATM=m
@@ -685,18 +690,19 @@ CONFIG_L2TP_DEBUGFS=m
 CONFIG_L2TP_V3=y
 CONFIG_L2TP_IP=m
 CONFIG_L2TP_ETH=m
-CONFIG_STP=m
-CONFIG_GARP=m
-CONFIG_BRIDGE=m
+CONFIG_STP=y
+CONFIG_GARP=y
+CONFIG_BRIDGE=y
 CONFIG_BRIDGE_IGMP_SNOOPING=y
+CONFIG_HAVE_NET_DSA=y
 CONFIG_NET_DSA=y
 CONFIG_NET_DSA_TAG_DSA=y
 CONFIG_NET_DSA_TAG_EDSA=y
 CONFIG_NET_DSA_TAG_TRAILER=y
-CONFIG_VLAN_8021Q=m
+CONFIG_VLAN_8021Q=y
 CONFIG_VLAN_8021Q_GVRP=y
 # CONFIG_DECNET is not set
-CONFIG_LLC=m
+CONFIG_LLC=y
 # CONFIG_LLC2 is not set
 # CONFIG_IPX is not set
 # CONFIG_ATALK is not set
@@ -773,6 +779,7 @@ CONFIG_NET_SCH_FIFO=y
 CONFIG_DNS_RESOLVER=y
 CONFIG_BATMAN_ADV=m
 CONFIG_BATMAN_ADV_BLA=y
+CONFIG_BATMAN_ADV_DAT=y
 # CONFIG_BATMAN_ADV_DEBUG is not set
 CONFIG_OPENVSWITCH=m
 CONFIG_NETPRIO_CGROUP=m
@@ -875,12 +882,12 @@ CONFIG_EXTRA_FIRMWARE=""
 # CONFIG_GENERIC_CPU_DEVICES is not set
 CONFIG_REGMAP=y
 CONFIG_REGMAP_I2C=m
+CONFIG_REGMAP_IRQ=y
 CONFIG_DMA_SHARED_BUFFER=y
 
 #
 # Bus devices
 #
-CONFIG_OMAP_OCP2SCP=m
 CONFIG_CONNECTOR=y
 CONFIG_PROC_EVENTS=y
 # CONFIG_MTD is not set
@@ -1054,6 +1061,9 @@ CONFIG_MEGARAID_SAS=m
 CONFIG_SCSI_MPT2SAS=m
 CONFIG_SCSI_MPT2SAS_MAX_SGE=128
 # CONFIG_SCSI_MPT2SAS_LOGGING is not set
+CONFIG_SCSI_MPT3SAS=m
+CONFIG_SCSI_MPT3SAS_MAX_SGE=128
+# CONFIG_SCSI_MPT3SAS_LOGGING is not set
 CONFIG_SCSI_UFSHCD=m
 CONFIG_SCSI_HPTIOP=m
 CONFIG_LIBFC=m
@@ -1090,6 +1100,7 @@ CONFIG_SCSI_PM8001=m
 # CONFIG_SCSI_SRP is not set
 CONFIG_SCSI_BFA_FC=m
 CONFIG_SCSI_VIRTIO=m
+CONFIG_SCSI_CHELSIO_FCOE=m
 CONFIG_SCSI_DH=y
 CONFIG_SCSI_DH_RDAC=m
 CONFIG_SCSI_DH_HP_SW=m
@@ -1320,6 +1331,9 @@ CONFIG_ATL2=m
 CONFIG_ATL1=m
 CONFIG_ATL1E=m
 CONFIG_ATL1C=m
+CONFIG_NET_CADENCE=y
+CONFIG_ARM_AT91_ETHER=m
+CONFIG_MACB=m
 CONFIG_NET_VENDOR_BROADCOM=y
 CONFIG_B44=m
 CONFIG_B44_PCI_AUTOSELECT=y
@@ -1374,16 +1388,15 @@ CONFIG_E100=m
 CONFIG_E1000=m
 CONFIG_E1000E=m
 CONFIG_IGB=m
-CONFIG_IGB_PTP=y
 CONFIG_IGBVF=m
 CONFIG_IXGB=m
 CONFIG_IXGBE=m
 CONFIG_IXGBE_HWMON=y
-CONFIG_IXGBE_PTP=y
 CONFIG_NET_VENDOR_I825XX=y
 CONFIG_IP1000=m
 CONFIG_JME=m
 CONFIG_NET_VENDOR_MARVELL=y
+CONFIG_MVMDIO=m
 CONFIG_SKGE=m
 # CONFIG_SKGE_DEBUG is not set
 CONFIG_SKGE_GENESIS=y
@@ -1406,7 +1419,6 @@ CONFIG_NET_VENDOR_NVIDIA=y
 CONFIG_FORCEDETH=m
 CONFIG_NET_VENDOR_OKI=y
 CONFIG_PCH_GBE=m
-CONFIG_PCH_PTP=y
 CONFIG_ETHOC=m
 # CONFIG_NET_PACKET_ENGINE is not set
 CONFIG_NET_VENDOR_QLOGIC=y
@@ -1434,7 +1446,6 @@ CONFIG_SIS190=m
 CONFIG_SFC=m
 CONFIG_SFC_MCDI_MON=y
 CONFIG_SFC_SRIOV=y
-CONFIG_SFC_PTP=y
 CONFIG_NET_VENDOR_SMSC=y
 CONFIG_EPIC100=m
 CONFIG_SMSC9420=m
@@ -1519,6 +1530,7 @@ CONFIG_USB_NET_AX8817X=m
 CONFIG_USB_NET_CDCETHER=m
 CONFIG_USB_NET_CDC_EEM=m
 CONFIG_USB_NET_CDC_NCM=m
+CONFIG_USB_NET_CDC_MBIM=m
 CONFIG_USB_NET_DM9601=m
 CONFIG_USB_NET_SMSC75XX=m
 CONFIG_USB_NET_SMSC95XX=m
@@ -1560,6 +1572,7 @@ CONFIG_ADM8211=m
 CONFIG_MAC80211_HWSIM=m
 CONFIG_MWL8K=m
 CONFIG_ATH_COMMON=m
+CONFIG_ATH_CARDS=m
 # CONFIG_ATH_DEBUG is not set
 CONFIG_ATH5K=m
 CONFIG_ATH5K_DEBUG=y
@@ -1582,6 +1595,9 @@ CONFIG_CARL9170_LEDS=y
 CONFIG_CARL9170_WPC=y
 # CONFIG_CARL9170_HWRNG is not set
 # CONFIG_ATH6KL is not set
+CONFIG_AR5523=m
+CONFIG_WIL6210=m
+CONFIG_WIL6210_ISR_COR=y
 CONFIG_B43=m
 CONFIG_B43_SSB=y
 CONFIG_B43_PCI_AUTOSELECT=y
@@ -1676,6 +1692,7 @@ CONFIG_RT2X00_LIB_DEBUGFS=y
 CONFIG_RTL8192CE=m
 CONFIG_RTL8192SE=m
 CONFIG_RTL8192DE=m
+CONFIG_RTL8723AE=m
 CONFIG_RTL8192CU=m
 CONFIG_RTLWIFI=m
 # CONFIG_RTLWIFI_DEBUG is not set
@@ -1846,7 +1863,6 @@ CONFIG_KEYBOARD_LM8333=m
 # CONFIG_KEYBOARD_OPENCORES is not set
 # CONFIG_KEYBOARD_STOWAWAY is not set
 # CONFIG_KEYBOARD_SUNKBD is not set
-CONFIG_KEYBOARD_OMAP4=m
 # CONFIG_KEYBOARD_XTKBD is not set
 CONFIG_INPUT_MOUSE=y
 CONFIG_MOUSE_PS2=m
@@ -1880,6 +1896,7 @@ CONFIG_INPUT_KEYSPAN_REMOTE=m
 CONFIG_INPUT_POWERMATE=m
 CONFIG_INPUT_YEALINK=m
 CONFIG_INPUT_CM109=m
+CONFIG_INPUT_RETU_PWRBUTTON=m
 CONFIG_INPUT_UINPUT=m
 # CONFIG_INPUT_PCF8574 is not set
 CONFIG_INPUT_GPIO_ROTARY_ENCODER=m
@@ -1897,6 +1914,7 @@ CONFIG_SERIO_LIBPS2=y
 CONFIG_SERIO_RAW=m
 CONFIG_SERIO_ALTERA_PS2=m
 # CONFIG_SERIO_PS2MULT is not set
+CONFIG_SERIO_ARC_PS2=m
 # CONFIG_GAMEPORT is not set
 
 #
@@ -1952,7 +1970,8 @@ CONFIG_SERIAL_SCCNXP=m
 # CONFIG_SERIAL_ALTERA_JTAGUART is not set
 # CONFIG_SERIAL_ALTERA_UART is not set
 # CONFIG_SERIAL_PCH_UART is not set
-# CONFIG_SERIAL_XILINX_PS_UART is not set
+CONFIG_SERIAL_ARC=m
+CONFIG_SERIAL_ARC_NR_PORTS=1
 CONFIG_PRINTER=m
 CONFIG_LP_CONSOLE=y
 CONFIG_PPDEV=m
@@ -2007,6 +2026,7 @@ CONFIG_I2C_VIAPRO=m
 #
 # I2C system bus drivers (mostly embedded / system-on-chip)
 #
+CONFIG_I2C_CBUS_GPIO=m
 # CONFIG_I2C_DESIGNWARE_PCI is not set
 # CONFIG_I2C_EG20T is not set
 # CONFIG_I2C_GPIO is not set
@@ -2025,6 +2045,7 @@ CONFIG_I2C_PARPORT=m
 CONFIG_I2C_PARPORT_LIGHT=m
 # CONFIG_I2C_TAOS_EVM is not set
 CONFIG_I2C_TINY_USB=m
+CONFIG_I2C_VIPERBOARD=m
 
 #
 # Other I2C/SMBus bus drivers
@@ -2078,6 +2099,7 @@ CONFIG_GPIO_SYSFS=y
 # Memory mapped GPIO drivers:
 #
 # CONFIG_GPIO_GENERIC_PLATFORM is not set
+CONFIG_GPIO_TS5500=m
 # CONFIG_GPIO_VX855 is not set
 
 #
@@ -2108,6 +2130,11 @@ CONFIG_GPIO_SYSFS=y
 #
 # MODULbus GPIO expanders:
 #
+
+#
+# USB GPIO expanders:
+#
+CONFIG_GPIO_VIPERBOARD=m
 CONFIG_W1=m
 CONFIG_W1_CON=y
 
@@ -2119,7 +2146,6 @@ CONFIG_W1_MASTER_DS2490=m
 CONFIG_W1_MASTER_DS2482=m
 CONFIG_W1_MASTER_DS1WM=m
 # CONFIG_W1_MASTER_GPIO is not set
-CONFIG_HDQ_MASTER_OMAP=m
 
 #
 # 1-wire Slaves
@@ -2152,7 +2178,9 @@ CONFIG_POWER_SUPPLY=y
 # CONFIG_CHARGER_MAX8903 is not set
 # CONFIG_CHARGER_LP8727 is not set
 # CONFIG_CHARGER_GPIO is not set
+# CONFIG_CHARGER_BQ2415X is not set
 # CONFIG_CHARGER_SMB347 is not set
+CONFIG_POWER_RESET=y
 CONFIG_POWER_AVS=y
 CONFIG_HWMON=y
 CONFIG_HWMON_VID=m
@@ -2274,6 +2302,12 @@ CONFIG_SENSORS_W83627EHF=m
 #
 CONFIG_THERMAL=y
 CONFIG_THERMAL_HWMON=y
+CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
+# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set
+# CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set
+CONFIG_FAIR_SHARE=y
+CONFIG_STEP_WISE=y
+CONFIG_USER_SPACE=y
 CONFIG_WATCHDOG=y
 CONFIG_WATCHDOG_CORE=y
 CONFIG_WATCHDOG_NOWAYOUT=y
@@ -2311,6 +2345,7 @@ CONFIG_SSB_SDIOHOST=y
 # CONFIG_SSB_DEBUG is not set
 CONFIG_SSB_DRIVER_PCICORE_POSSIBLE=y
 CONFIG_SSB_DRIVER_PCICORE=y
+CONFIG_SSB_DRIVER_GPIO=y
 CONFIG_BCMA_POSSIBLE=y
 
 #
@@ -2324,6 +2359,8 @@ CONFIG_BCMA_POSSIBLE=y
 CONFIG_MFD_CORE=m
 CONFIG_MFD_SM501=m
 CONFIG_MFD_SM501_GPIO=y
+CONFIG_MFD_RTSX_PCI=m
+# CONFIG_MFD_TI_AM335X_TSCADC is not set
 # CONFIG_HTC_PASIC3 is not set
 # CONFIG_UCB1400_CORE is not set
 CONFIG_MFD_LM3533=m
@@ -2343,6 +2380,8 @@ CONFIG_LPC_ICH=m
 # CONFIG_MFD_JANZ_CMODIO is not set
 CONFIG_MFD_VX855=m
 CONFIG_MFD_WL1273_CORE=m
+CONFIG_MFD_VIPERBOARD=m
+CONFIG_MFD_RETU=m
 # CONFIG_REGULATOR is not set
 CONFIG_MEDIA_SUPPORT=y
 
@@ -2602,10 +2641,16 @@ CONFIG_VIDEO_MEM2MEM_DEINTERLACE=m
 #
 CONFIG_DVB_FIREDTV=m
 CONFIG_DVB_FIREDTV_INPUT=y
+CONFIG_MEDIA_COMMON_OPTIONS=y
+
+#
+# common driver options
+#
 CONFIG_DVB_B2C2_FLEXCOP=m
 CONFIG_VIDEO_SAA7146=m
 CONFIG_VIDEO_SAA7146_VV=m
 CONFIG_SMS_SIANO_MDTV=m
+CONFIG_SMS_SIANO_RC=y
 CONFIG_MEDIA_SUBDRV_AUTOSELECT=y
 
 #
@@ -3111,6 +3156,7 @@ CONFIG_SND_FIREWIRE=y
 CONFIG_SND_FIREWIRE_LIB=m
 CONFIG_SND_FIREWIRE_SPEAKERS=m
 # CONFIG_SND_ISIGHT is not set
+# CONFIG_SND_SCS1X is not set
 # CONFIG_SOUND_PRIME is not set
 CONFIG_AC97_BUS=m
 
@@ -3121,7 +3167,7 @@ CONFIG_HID=y
 # CONFIG_HID_BATTERY_STRENGTH is not set
 CONFIG_HIDRAW=y
 # CONFIG_UHID is not set
-CONFIG_HID_GENERIC=m
+CONFIG_HID_GENERIC=y
 
 #
 # Special HID drivers
@@ -3145,6 +3191,7 @@ CONFIG_HID_KYE=y
 # CONFIG_HID_UCLOGIC is not set
 # CONFIG_HID_WALTOP is not set
 CONFIG_HID_GYRATION=m
+# CONFIG_HID_ICADE is not set
 CONFIG_HID_TWINHAN=m
 CONFIG_HID_KENSINGTON=y
 CONFIG_HID_LCPOWER=m
@@ -3194,6 +3241,11 @@ CONFIG_HID_SENSOR_HUB=m
 CONFIG_USB_HID=y
 CONFIG_HID_PID=y
 CONFIG_USB_HIDDEV=y
+
+#
+# I2C HID support
+#
+CONFIG_I2C_HID=m
 CONFIG_USB_ARCH_HAS_OHCI=y
 CONFIG_USB_ARCH_HAS_EHCI=y
 CONFIG_USB_ARCH_HAS_XHCI=y
@@ -3219,11 +3271,12 @@ CONFIG_USB_WUSB_CBAF=m
 # USB Host Controller Drivers
 #
 # CONFIG_USB_C67X00_HCD is not set
-CONFIG_USB_XHCI_HCD=m
+CONFIG_USB_XHCI_HCD=y
 # CONFIG_USB_XHCI_HCD_DEBUGGING is not set
 CONFIG_USB_EHCI_HCD=y
 CONFIG_USB_EHCI_ROOT_HUB_TT=y
 CONFIG_USB_EHCI_TT_NEWSCHED=y
+CONFIG_USB_EHCI_PCI=y
 # CONFIG_USB_OXU210HP_HCD is not set
 # CONFIG_USB_ISP116X_HCD is not set
 # CONFIG_USB_ISP1760_HCD is not set
@@ -3261,7 +3314,7 @@ CONFIG_USB_TMC=m
 #
 # also be needed; see USB_STORAGE Help for more info
 #
-CONFIG_USB_STORAGE=m
+CONFIG_USB_STORAGE=y
 # CONFIG_USB_STORAGE_DEBUG is not set
 CONFIG_USB_STORAGE_REALTEK=m
 CONFIG_REALTEK_AUTOPM=y
@@ -3374,8 +3427,8 @@ CONFIG_USB_EZUSB_FX2=m
 #
 # USB Physical Layer drivers
 #
-CONFIG_OMAP_USB2=m
 CONFIG_USB_ISP1301=m
+CONFIG_USB_RCAR_PHY=m
 CONFIG_USB_ATM=m
 CONFIG_USB_SPEEDTOUCH=m
 CONFIG_USB_CXACRU=m
@@ -3419,6 +3472,7 @@ CONFIG_MMC_CB710=m
 CONFIG_MMC_VIA_SDMMC=m
 CONFIG_MMC_VUB300=m
 CONFIG_MMC_USHC=m
+CONFIG_MMC_REALTEK_PCI=m
 CONFIG_MEMSTICK=m
 # CONFIG_MEMSTICK_DEBUG is not set
 
@@ -3434,6 +3488,7 @@ CONFIG_MSPRO_BLOCK=m
 CONFIG_MEMSTICK_TIFM_MS=m
 CONFIG_MEMSTICK_JMICRON_38X=m
 CONFIG_MEMSTICK_R592=m
+CONFIG_MEMSTICK_REALTEK_PCI=m
 CONFIG_NEW_LEDS=y
 CONFIG_LEDS_CLASS=y
 
@@ -3475,10 +3530,6 @@ CONFIG_LEDS_TRIGGER_DEFAULT_ON=m
 CONFIG_LEDS_TRIGGER_TRANSIENT=m
 # CONFIG_ACCESSIBILITY is not set
 # CONFIG_INFINIBAND is not set
-
-#
-# Reporting subsystems
-#
 CONFIG_RTC_LIB=y
 CONFIG_RTC_CLASS=y
 CONFIG_RTC_HCTOSYS=y
@@ -3506,6 +3557,7 @@ CONFIG_RTC_DRV_RS5C372=m
 CONFIG_RTC_DRV_ISL1208=m
 CONFIG_RTC_DRV_ISL12022=m
 CONFIG_RTC_DRV_X1205=m
+CONFIG_RTC_DRV_PCF8523=m
 CONFIG_RTC_DRV_PCF8563=m
 CONFIG_RTC_DRV_PCF8583=m
 CONFIG_RTC_DRV_M41T80=m
@@ -3563,6 +3615,7 @@ CONFIG_UIO=m
 # CONFIG_UIO_CIF is not set
 # CONFIG_UIO_PDRV is not set
 # CONFIG_UIO_PDRV_GENIRQ is not set
+# CONFIG_UIO_DMEM_GENIRQ is not set
 CONFIG_UIO_AEC=m
 CONFIG_UIO_SERCOS3=m
 CONFIG_UIO_PCI_GENERIC=m
@@ -3599,7 +3652,6 @@ CONFIG_RTLLIB_CRYPTO_TKIP=m
 CONFIG_RTLLIB_CRYPTO_WEP=m
 # CONFIG_RTL8192E is not set
 # CONFIG_R8712U is not set
-# CONFIG_RTS_PSTOR is not set
 # CONFIG_RTS5139 is not set
 # CONFIG_TRANZPORT is not set
 # CONFIG_IDE_PHISON is not set
@@ -3628,9 +3680,7 @@ CONFIG_RTLLIB_CRYPTO_WEP=m
 # Android
 #
 # CONFIG_ANDROID is not set
-# CONFIG_PHONE is not set
 # CONFIG_USB_WPAN_HCD is not set
-# CONFIG_IPACK_BUS is not set
 # CONFIG_WIMAX_GDM72XX is not set
 # CONFIG_CSR_WIFI is not set
 CONFIG_NET_VENDOR_SILICOM=y
@@ -3638,6 +3688,7 @@ CONFIG_SBYPASS=m
 CONFIG_BPCTL=m
 CONFIG_CED1401=m
 # CONFIG_DGRP is not set
+CONFIG_FIREWIRE_SERIAL=m
 
 #
 # Hardware Spinlock drivers
@@ -3658,7 +3709,7 @@ CONFIG_VIRT_DRIVERS=y
 CONFIG_MEMORY=y
 # CONFIG_IIO is not set
 # CONFIG_VME_BUS is not set
-# CONFIG_PWM is not set
+# CONFIG_IPACK_BUS is not set
 
 #
 # Firmware Drivers
@@ -3671,7 +3722,6 @@ CONFIG_MEMORY=y
 # CONFIG_EXT3_FS is not set
 CONFIG_EXT4_FS=y
 CONFIG_EXT4_USE_FOR_EXT23=y
-CONFIG_EXT4_FS_XATTR=y
 CONFIG_EXT4_FS_POSIX_ACL=y
 CONFIG_EXT4_FS_SECURITY=y
 # CONFIG_EXT4_DEBUG is not set
@@ -3757,6 +3807,7 @@ CONFIG_SYSFS=y
 CONFIG_TMPFS=y
 CONFIG_TMPFS_POSIX_ACL=y
 CONFIG_TMPFS_XATTR=y
+# CONFIG_HUGETLB_PAGE is not set
 CONFIG_CONFIGFS_FS=m
 CONFIG_MISC_FILESYSTEMS=y
 # CONFIG_ADFS_FS is not set
@@ -3784,6 +3835,7 @@ CONFIG_PSTORE=y
 # CONFIG_SYSV_FS is not set
 # CONFIG_UFS_FS is not set
 # CONFIG_EXOFS_FS is not set
+# CONFIG_F2FS_FS is not set
 CONFIG_ORE=m
 CONFIG_NETWORK_FILESYSTEMS=y
 CONFIG_NFS_FS=m
@@ -3824,7 +3876,7 @@ CONFIG_CIFS_STATS=y
 CONFIG_CIFS_XATTR=y
 CONFIG_CIFS_POSIX=y
 CONFIG_CIFS_ACL=y
-# CONFIG_CIFS_DEBUG2 is not set
+# CONFIG_CIFS_DEBUG is not set
 CONFIG_CIFS_DFS_UPCALL=y
 CONFIG_CIFS_SMB2=y
 CONFIG_CIFS_FSCACHE=y
@@ -3921,10 +3973,7 @@ CONFIG_HAVE_DEBUG_KMEMLEAK=y
 # CONFIG_RT_MUTEX_TESTER is not set
 # CONFIG_DEBUG_SPINLOCK is not set
 # CONFIG_DEBUG_MUTEXES is not set
-# CONFIG_DEBUG_LOCK_ALLOC is not set
-# CONFIG_PROVE_LOCKING is not set
 # CONFIG_SPARSE_RCU_POINTER is not set
-# CONFIG_LOCK_STAT is not set
 # CONFIG_DEBUG_ATOMIC_SLEEP is not set
 # CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
 CONFIG_STACKTRACE=y
@@ -4044,6 +4093,8 @@ CONFIG_PAX_RANDMMAP=y
 #
 # Miscellaneous hardening features
 #
+CONFIG_PAX_MEMORY_STRUCTLEAK=y
+CONFIG_PAX_CONSTIFY_PLUGIN=y
 CONFIG_PAX_USERCOPY=y
 # CONFIG_PAX_LATENT_ENTROPY is not set
 
@@ -4152,6 +4203,7 @@ CONFIG_SECURITY_SELINUX_DEVELOP=y
 CONFIG_SECURITY_SELINUX_AVC_STATS=y
 CONFIG_SECURITY_SELINUX_CHECKREQPROT_VALUE=1
 # CONFIG_SECURITY_SELINUX_POLICYDB_VERSION_MAX is not set
+# CONFIG_SECURITY_SMACK is not set
 # CONFIG_SECURITY_TOMOYO is not set
 # CONFIG_SECURITY_APPARMOR is not set
 # CONFIG_IMA is not set
@@ -4243,6 +4295,7 @@ CONFIG_CRYPTO_ARC4=m
 CONFIG_CRYPTO_BLOWFISH=m
 CONFIG_CRYPTO_BLOWFISH_COMMON=m
 CONFIG_CRYPTO_CAMELLIA=m
+CONFIG_CRYPTO_CAST_COMMON=m
 CONFIG_CRYPTO_CAST5=m
 CONFIG_CRYPTO_CAST6=m
 CONFIG_CRYPTO_DES=m
@@ -4285,6 +4338,7 @@ CONFIG_GENERIC_STRNCPY_FROM_USER=y
 CONFIG_GENERIC_STRNLEN_USER=y
 CONFIG_GENERIC_PCI_IOMAP=y
 CONFIG_GENERIC_IO=y
+CONFIG_PERCPU_RWSEM=y
 CONFIG_CRC_CCITT=m
 CONFIG_CRC16=y
 CONFIG_CRC_T10DIF=y
index cb2bec9f5ed69e7aaee6b41eaf5cddcb31d58f3e..23d112774e3300829d12bbe9fcaec0b9ef69700f 100644 (file)
@@ -22,6 +22,7 @@ CONFIG_RCU_FANOUT=32
 #
 CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
 CONFIG_MODULES_USE_ELF_REL=y
+CONFIG_CLONE_BACKWARDS=y
 
 #
 # GCOV-based kernel profiling
@@ -42,7 +43,6 @@ CONFIG_X86_32_NON_STANDARD=y
 CONFIG_X86_32_IRIS=m
 CONFIG_XEN_MAX_DOMAIN_MEMORY=64
 # CONFIG_LGUEST_GUEST is not set
-# CONFIG_M386 is not set
 # CONFIG_M486 is not set
 # CONFIG_M586 is not set
 # CONFIG_M586TSC is not set
@@ -66,9 +66,6 @@ CONFIG_M686=y
 # CONFIG_MVIAC7 is not set
 CONFIG_X86_GENERIC=y
 # CONFIG_X86_PPRO_FENCE is not set
-CONFIG_X86_INVLPG=y
-CONFIG_X86_BSWAP=y
-CONFIG_X86_POPAD_OK=y
 CONFIG_X86_ALIGNMENT_16=y
 CONFIG_X86_INTEL_USERCOPY=y
 CONFIG_X86_USE_PPRO_CHECKSUM=y
@@ -238,7 +235,7 @@ CONFIG_VIDEO_CAFE_CCIC=m
 # CONFIG_SND_SIS7019 is not set
 
 #
-# Reporting subsystems
+# iptables trigger is under Netfilter config (LED target)
 #
 # CONFIG_EDAC_AMD76X is not set
 # CONFIG_EDAC_E7XXX is not set
index d399ce82085903c75b54a9aa929b1f0c15c37b43..cc560c91eb36e826d7ea0792d2b8493be524ed88 100644 (file)
@@ -55,6 +55,7 @@ CONFIG_MDIO_BUS_MUX_MMIOREG=m
 # Input Device Drivers
 #
 CONFIG_MOUSE_PS2_OLPC=y
+CONFIG_INPUT_PWM_BEEPER=m
 
 #
 # Serial drivers
@@ -65,6 +66,7 @@ CONFIG_MOUSE_PS2_OLPC=y
 # Non-8250 serial port support
 #
 CONFIG_SERIAL_OF_PLATFORM=y
+# CONFIG_SERIAL_XILINX_PS_UART is not set
 
 #
 # I2C system bus drivers (mostly embedded / system-on-chip)
@@ -92,6 +94,7 @@ CONFIG_GPIO_CS5535=y
 # 1-wire Slaves
 #
 CONFIG_BATTERY_OLPC=y
+CONFIG_POWER_RESET_GPIO=y
 
 #
 # Multifunction device drivers
@@ -110,8 +113,14 @@ CONFIG_FB_SYS_FOPS=m
 #
 # Frame buffer hardware drivers
 #
+CONFIG_BACKLIGHT_PWM=m
 # CONFIG_BACKLIGHT_OT200 is not set
 
+#
+# Console display driver support
+#
+CONFIG_FB_SSD1307=m
+
 #
 # on-CPU RTC drivers
 #
@@ -133,10 +142,9 @@ CONFIG_XO1_RFKILL=m
 CONFIG_OF_IOMMU=y
 
 #
-# Non-executable pages
+# Rpmsg drivers (EXPERIMENTAL)
 #
-CONFIG_PAX_KERNEXEC=y
-CONFIG_PAX_KERNEXEC_MODULE_TEXT=4
+CONFIG_PWM=y
 
 #
 # Miscellaneous hardening features
index bc11f43fb0a4b75095766aaee8974e3d98c2116a..2a4fa1655631a8b5ec62209474904bd9c7cb64c3 100644 (file)
@@ -16,7 +16,6 @@ CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y
 CONFIG_X86_HT=y
 CONFIG_ARCH_CPU_PROBE_RELEASE=y
 CONFIG_ARCH_SUPPORTS_UPROBES=y
-CONFIG_BUILDTIME_EXTABLE_SORT=y
 
 #
 # General setup
@@ -47,7 +46,9 @@ CONFIG_TREE_RCU=y
 CONFIG_RCU_FANOUT_LEAF=16
 # CONFIG_RCU_FANOUT_EXACT is not set
 CONFIG_RCU_FAST_NO_HZ=y
-# CONFIG_CGROUP_HUGETLB is not set
+CONFIG_RCU_NOCB_CPU=y
+CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y
+CONFIG_ARCH_WANTS_PROT_NUMA_PROT_NONE=y
 CONFIG_SYSCTL_EXCEPTION_TRACE=y
 CONFIG_PCSPKR_PLATFORM=y
 
@@ -58,7 +59,7 @@ CONFIG_OPROFILE_NMI_TIMER=y
 CONFIG_USER_RETURN_NOTIFIER=y
 CONFIG_USE_GENERIC_SMP_HELPERS=y
 CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y
-CONFIG_SECCOMP_FILTER=y
+CONFIG_GENERIC_SIGALTSTACK=y
 
 #
 # IO Schedulers
@@ -95,10 +96,7 @@ CONFIG_NO_BOOTMEM=y
 # CONFIG_MCORE2 is not set
 # CONFIG_MATOM is not set
 CONFIG_X86_INTERNODE_CACHE_SHIFT=6
-CONFIG_X86_CMPXCHG=y
 CONFIG_X86_L1_CACHE_SHIFT=6
-CONFIG_X86_XADD=y
-CONFIG_X86_WP_WORKS_OK=y
 CONFIG_X86_TSC=y
 CONFIG_X86_CMPXCHG64=y
 CONFIG_X86_CMOV=y
@@ -127,7 +125,6 @@ CONFIG_MICROCODE=m
 CONFIG_MICROCODE_INTEL=y
 CONFIG_MICROCODE_AMD=y
 CONFIG_MICROCODE_OLD_INTERFACE=y
-CONFIG_X86_MSR=y
 CONFIG_X86_CPUID=y
 CONFIG_ARCH_PHYS_ADDR_T_64BIT=y
 CONFIG_ARCH_DMA_ADDR_T_64BIT=y
@@ -166,6 +163,8 @@ CONFIG_HZ=300
 CONFIG_SCHED_HRTICK=y
 CONFIG_RELOCATABLE=y
 CONFIG_HOTPLUG_CPU=y
+# CONFIG_BOOTPARAM_HOTPLUG_CPU0 is not set
+# CONFIG_DEBUG_HOTPLUG_CPU0 is not set
 # CONFIG_CMDLINE_BOOL is not set
 CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
 
@@ -188,12 +187,14 @@ CONFIG_ACPI_BUTTON=y
 CONFIG_ACPI_VIDEO=m
 CONFIG_ACPI_FAN=y
 CONFIG_ACPI_DOCK=y
+CONFIG_ACPI_I2C=m
 CONFIG_ACPI_PROCESSOR=y
 CONFIG_ACPI_IPMI=m
 CONFIG_ACPI_HOTPLUG_CPU=y
 CONFIG_ACPI_PROCESSOR_AGGREGATOR=m
 CONFIG_ACPI_THERMAL=y
 # CONFIG_ACPI_CUSTOM_DSDT is not set
+CONFIG_ACPI_INITRD_TABLE_OVERRIDE=y
 # CONFIG_ACPI_DEBUG is not set
 CONFIG_ACPI_PCI_SLOT=y
 CONFIG_X86_PM_TIMER=y
@@ -215,6 +216,7 @@ CONFIG_SFI=y
 #
 CONFIG_CPU_FREQ=y
 CONFIG_CPU_FREQ_TABLE=y
+CONFIG_CPU_FREQ_GOV_COMMON=y
 CONFIG_CPU_FREQ_STAT=m
 CONFIG_CPU_FREQ_STAT_DETAILS=y
 # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set
@@ -242,6 +244,7 @@ CONFIG_X86_P4_CLOCKMOD=y
 #
 CONFIG_X86_SPEEDSTEP_LIB=y
 CONFIG_CPU_IDLE=y
+# CONFIG_CPU_IDLE_MULTIPLE_DRIVERS is not set
 CONFIG_CPU_IDLE_GOV_LADDER=y
 CONFIG_CPU_IDLE_GOV_MENU=y
 CONFIG_INTEL_IDLE=y
@@ -431,6 +434,11 @@ CONFIG_I2C_NFORCE2_S4985=m
 #
 CONFIG_I2C_SCMI=m
 
+#
+# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
+#
+CONFIG_GPIO_ACPI=y
+
 #
 # Memory mapped GPIO drivers:
 #
@@ -614,6 +622,7 @@ CONFIG_SND_USB_US122L=m
 #
 # MMC/SD/SDIO Host Controller Drivers
 #
+CONFIG_MMC_SDHCI_ACPI=m
 CONFIG_MMC_WBSD=m
 
 #
@@ -627,10 +636,6 @@ CONFIG_LEDS_DELL_NETBOOKS=m
 # iptables trigger is under Netfilter config (LED target)
 #
 CONFIG_EDAC=y
-
-#
-# Reporting subsystems
-#
 # CONFIG_EDAC_LEGACY_SYSFS is not set
 # CONFIG_EDAC_DEBUG is not set
 CONFIG_EDAC_DECODE_MCE=m
@@ -684,14 +689,15 @@ CONFIG_XEN_TMEM=y
 CONFIG_XEN_PCIDEV_BACKEND=m
 CONFIG_XEN_PRIVCMD=m
 CONFIG_XEN_ACPI_PROCESSOR=m
+CONFIG_XEN_HAVE_PVMMU=y
 # CONFIG_SLICOSS is not set
 # CONFIG_COMEDI is not set
-# CONFIG_ZRAM is not set
 # CONFIG_ACPI_QUICKSTART is not set
 
 #
 # Android
 #
+CONFIG_SB105X=m
 CONFIG_X86_PLATFORM_DEVICES=y
 CONFIG_ACER_WMI=m
 CONFIG_ACERHDF=m
@@ -751,6 +757,11 @@ CONFIG_INTEL_IOMMU=y
 # CONFIG_INTEL_IOMMU_DEFAULT_ON is not set
 CONFIG_INTEL_IOMMU_FLOPPY_WA=y
 
+#
+# Rpmsg drivers (EXPERIMENTAL)
+#
+# CONFIG_PWM is not set
+
 #
 # Firmware Drivers
 #
@@ -758,6 +769,8 @@ CONFIG_EDD=m
 # CONFIG_EDD_OFF is not set
 CONFIG_FIRMWARE_MEMMAP=y
 CONFIG_EFI_VARS=y
+CONFIG_EFI_VARS_PSTORE=y
+# CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set
 CONFIG_DELL_RBU=m
 CONFIG_DCDBAS=m
 CONFIG_DMIID=y
@@ -797,7 +810,6 @@ CONFIG_EARLY_PRINTK=y
 CONFIG_DEBUG_STACKOVERFLOW=y
 # CONFIG_X86_PTDUMP is not set
 CONFIG_DEBUG_NX_TEST=m
-# CONFIG_DEBUG_TLBFLUSH is not set
 # CONFIG_IOMMU_STRESS is not set
 CONFIG_IO_DELAY_TYPE_0X80=0
 CONFIG_IO_DELAY_TYPE_0XED=1
@@ -834,6 +846,7 @@ CONFIG_PAX_RANDKSTACK=y
 #
 CONFIG_PAX_MEMORY_STACKLEAK=y
 CONFIG_PAX_REFCOUNT=y
+# CONFIG_PAX_USERCOPY_DEBUG is not set
 # CONFIG_PAX_SIZE_OVERFLOW is not set
 
 #
index 2782f9ec99cbe1acba744ea68c4c9611cdf78dfd..42e9fec1bef4b4a71a51fe2700fbef6e38dcf979 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_GENERIC_TIME_VSYSCALL=y
 #
 # CONFIG_RCU_USER_QS is not set
 CONFIG_RCU_FANOUT=64
+# CONFIG_NUMA_BALANCING is not set
 
 #
 # Kernel Performance Events And Counters
@@ -63,6 +64,7 @@ CONFIG_SPARSEMEM_EXTREME=y
 CONFIG_SPARSEMEM_VMEMMAP_ENABLE=y
 CONFIG_SPARSEMEM_ALLOC_MEM_MAP_TOGETHER=y
 CONFIG_SPARSEMEM_VMEMMAP=y
+# CONFIG_MOVABLE_NODE is not set
 # CONFIG_MEMORY_HOTPLUG is not set
 CONFIG_KEXEC_JUMP=y
 CONFIG_PHYSICAL_START=0x1000000
@@ -139,7 +141,7 @@ CONFIG_GPIO_LANGWELL=y
 # CONFIG_VIDEO_CAFE_CCIC is not set
 
 #
-# Reporting subsystems
+# iptables trigger is under Netfilter config (LED target)
 #
 CONFIG_EDAC_AMD64=m
 # CONFIG_EDAC_AMD64_ERROR_INJECTION is not set
@@ -165,6 +167,7 @@ CONFIG_QUOTACTL_COMPAT=y
 #
 # Kernel hacking
 #
+# CONFIG_DEBUG_TLBFLUSH is not set
 # CONFIG_IOMMU_DEBUG is not set
 
 #
@@ -185,6 +188,7 @@ CONFIG_INTEL_TXT=y
 #
 # Digest
 #
+CONFIG_CRYPTO_CRC32C_X86_64=y
 CONFIG_CRYPTO_SHA1_SSSE3=m
 CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=m
 
@@ -194,6 +198,7 @@ CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=m
 CONFIG_CRYPTO_AES_X86_64=y
 CONFIG_CRYPTO_BLOWFISH_X86_64=m
 CONFIG_CRYPTO_CAMELLIA_X86_64=m
+CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=m
 CONFIG_CRYPTO_CAST5_AVX_X86_64=m
 CONFIG_CRYPTO_CAST6_AVX_X86_64=m
 CONFIG_CRYPTO_SALSA20_X86_64=m
index dd2397aa7f42a096844a3a43383e81ca1a8b0b2c..ab2e1df1b6f1efe7920ead30550b0a9e0ab43bce 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = kernel
-version    = 3.7.7
-release    = 2
+version    = 3.8.6
+release    = 1
 thisapp    = linux-%{version}
 
 maintainer = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
@@ -72,22 +72,21 @@ build
        kernel_build_flags =
 
        kernel_target = bzImage
+       kernel_image = arch/%{kernel_arch}/boot/%{kernel_target}
+
        if "%{DISTRO_ARCH}" == "i686"
                # Build a default and legacy kernel for the
                # i686 architecture.
                build_kernel_default = 1
                build_kernel_legacy = 1
 
-               kernel_arch  = x86
-               kernel_image = arch/%{kernel_arch}/boot/bzImage
-
+               kernel_arch = x86
        end
 
        if "%{DISTRO_ARCH}" == "x86_64"
                build_kernel_default = 1
 
-               kernel_arch  = x86
-               kernel_image = arch/%{kernel_arch}/boot/bzImage
+               kernel_arch = x86
        end
 
        if "%{DISTRO_ARCH}" == "armv5tel"
@@ -97,8 +96,8 @@ build
                # Build a kernel for Marvell Kirkwood-based devices.
                build_kernel_kirkwood = 1
 
-               kernel_arch  = arm
-               kernel_image = arch/%{kernel_arch}/boot/zImage
+               kernel_arch = arm
+               kernel_target = zImage
 
                # http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/091404.html
                kernel_build_flags = KALLSYMS_EXTRA_PASS=1
@@ -111,8 +110,13 @@ build
                # Build a kernel for TI OMAP SoCs.
                build_kernel_omap = 1
 
-               kernel_arch  = arm
-               kernel_image = arch/%{kernel_arch}/boot/zImage
+               kernel_arch = arm
+               kernel_target = uImage
+       end
+
+       # mkimage is a requirement to build uImage images.
+       if "%{kernel_target}" == "uImage"
+               requires += u-boot-tools
        end
 
        # Build default kernel.
similarity index 80%
rename from kernel/patches/grsecurity-2.9.1-3.7.7-201302112308.patch
rename to kernel/patches/grsecurity-2.9.1-3.8.6-201304091939.patch
index ff6ef017cc3bce339996ec54e790a9e0fa4ece21..9f38e0fe3794163b224541560b946f3c78eca1fc 100644 (file)
@@ -1,5 +1,5 @@
 diff --git a/Documentation/dontdiff b/Documentation/dontdiff
-index 74c25c8..deadba2 100644
+index b89a739..b47493f 100644
 --- a/Documentation/dontdiff
 +++ b/Documentation/dontdiff
 @@ -2,9 +2,11 @@
@@ -144,7 +144,7 @@ index 74c25c8..deadba2 100644
  mkprep
  mkregtable
  mktables
-@@ -186,6 +205,8 @@ oui.c*
+@@ -185,6 +204,8 @@ oui.c*
  page-types
  parse.c
  parse.h
@@ -153,7 +153,7 @@ index 74c25c8..deadba2 100644
  patches*
  pca200e.bin
  pca200e_ecd.bin2
-@@ -195,6 +216,7 @@ perf-archive
+@@ -194,6 +215,7 @@ perf-archive
  piggyback
  piggy.gzip
  piggy.S
@@ -161,7 +161,7 @@ index 74c25c8..deadba2 100644
  pnmtologo
  ppc_defs.h*
  pss_boot.h
-@@ -204,7 +226,10 @@ r200_reg_safe.h
+@@ -203,7 +225,10 @@ r200_reg_safe.h
  r300_reg_safe.h
  r420_reg_safe.h
  r600_reg_safe.h
@@ -172,10 +172,11 @@ index 74c25c8..deadba2 100644
  relocs
  rlim_names.h
  rn50_reg_safe.h
-@@ -214,8 +239,11 @@ series
+@@ -213,8 +238,12 @@ series
  setup
  setup.bin
  setup.elf
++signing_key*
 +size_overflow_hash.h
  sImage
 +slabinfo
@@ -184,7 +185,7 @@ index 74c25c8..deadba2 100644
  split-include
  syscalltab.h
  tables.c
-@@ -225,6 +253,7 @@ tftpboot.img
+@@ -224,6 +253,7 @@ tftpboot.img
  timeconst.h
  times.h*
  trix_boot.h
@@ -192,7 +193,7 @@ index 74c25c8..deadba2 100644
  utsrelease.h*
  vdso-syms.lds
  vdso.lds
-@@ -236,13 +265,17 @@ vdso32.lds
+@@ -235,13 +265,17 @@ vdso32.lds
  vdso32.so.dbg
  vdso64.lds
  vdso64.so.dbg
@@ -210,7 +211,7 @@ index 74c25c8..deadba2 100644
  vmlinuz
  voffset.h
  vsyscall.lds
-@@ -250,9 +283,11 @@ vsyscall_32.lds
+@@ -249,9 +283,12 @@ vsyscall_32.lds
  wanxlfw.inc
  uImage
  unifdef
@@ -218,25 +219,27 @@ index 74c25c8..deadba2 100644
  wakeup.bin
  wakeup.elf
  wakeup.lds
++x509*
  zImage*
  zconf.hash.c
 +zconf.lex.c
  zoffset.h
 diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
-index 9776f06..18b1856 100644
+index 986614d..e8bfedc 100644
 --- a/Documentation/kernel-parameters.txt
 +++ b/Documentation/kernel-parameters.txt
-@@ -905,6 +905,9 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
-       gpt             [EFI] Forces disk with valid GPT signature but
-                       invalid Protective MBR to be treated as GPT.
+@@ -922,6 +922,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
+                       Format: <unsigned int> such that (rxsize & ~0x1fffc0) == 0.
+                       Default: 1024
  
-+      grsec_proc_gid= [GRKERNSEC_PROC_USERGROUP] Chooses GID to
++      grsec_proc_gid= [GRKERNSEC_PROC_USERGROUP] Chooses GID to
 +                      ignore grsecurity's /proc restrictions
++
 +
        hashdist=       [KNL,NUMA] Large hashes allocated during boot
                        are distributed across NUMA nodes.  Defaults on
                        for 64-bit NUMA, off otherwise.
-@@ -2082,6 +2085,13 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
+@@ -2121,6 +2125,18 @@ 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.
  
@@ -246,12 +249,17 @@ index 9776f06..18b1856 100644
 +                      page table updates on X86-64.
 +
 +      pax_softmode=   0/1 to disable/enable PaX softmode on boot already.
++
++      pax_extra_latent_entropy
++                      Enable a very simple form of latent entropy extraction
++                      from the first 4GB of memory as the bootmem allocator
++                      passes the memory pages to the buddy allocator.
 +
        pcbit=          [HW,ISDN]
  
        pcd.            [PARIDE]
 diff --git a/Makefile b/Makefile
-index 39f170a..5d22cce 100644
+index 10075d6..dcb3e14 100644
 --- a/Makefile
 +++ b/Makefile
 @@ -241,8 +241,9 @@ CONFIG_SHELL := $(shell if [ -x "$$BASH" ]; then echo $$BASH; \
@@ -277,18 +285,20 @@ index 39f170a..5d22cce 100644
        $(Q)$(MAKE) $(build)=scripts/basic
        $(Q)rm -f .tmp_quiet_recordmcount
  
-@@ -575,6 +576,60 @@ else
+@@ -575,6 +576,65 @@ else
  KBUILD_CFLAGS += -O2
  endif
  
 +ifndef DISABLE_PAX_PLUGINS
++ifeq ($(call cc-ifversion, -ge, 0408, y), y)
++PLUGINCC := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-plugin.sh "$(HOSTCXX)" "$(HOSTCXX)" "$(CC)")
++else
 +PLUGINCC := $(shell $(CONFIG_SHELL) $(srctree)/scripts/gcc-plugin.sh "$(HOSTCC)" "$(HOSTCXX)" "$(CC)")
++endif
 +ifneq ($(PLUGINCC),)
-+ifndef DISABLE_PAX_CONSTIFY_PLUGIN
-+ifndef CONFIG_UML
++ifdef CONFIG_PAX_CONSTIFY_PLUGIN
 +CONSTIFY_PLUGIN_CFLAGS := -fplugin=$(objtree)/tools/gcc/constify_plugin.so -DCONSTIFY_PLUGIN
 +endif
-+endif
 +ifdef CONFIG_PAX_MEMORY_STACKLEAK
 +STACKLEAK_PLUGIN_CFLAGS := -fplugin=$(objtree)/tools/gcc/stackleak_plugin.so -DSTACKLEAK_PLUGIN
 +STACKLEAK_PLUGIN_CFLAGS += -fplugin-arg-stackleak_plugin-track-lowest-sp=100
@@ -313,9 +323,12 @@ index 39f170a..5d22cce 100644
 +ifdef CONFIG_PAX_LATENT_ENTROPY
 +LATENT_ENTROPY_PLUGIN_CFLAGS := -fplugin=$(objtree)/tools/gcc/latent_entropy_plugin.so -DLATENT_ENTROPY_PLUGIN
 +endif
++ifdef CONFIG_PAX_MEMORY_STRUCTLEAK
++STRUCTLEAK_PLUGIN_CFLAGS := -fplugin=$(objtree)/tools/gcc/structleak_plugin.so -DSTRUCTLEAK_PLUGIN
++endif
 +GCC_PLUGINS_CFLAGS := $(CONSTIFY_PLUGIN_CFLAGS) $(STACKLEAK_PLUGIN_CFLAGS) $(KALLOCSTAT_PLUGIN_CFLAGS)
 +GCC_PLUGINS_CFLAGS += $(KERNEXEC_PLUGIN_CFLAGS) $(CHECKER_PLUGIN_CFLAGS) $(COLORIZE_PLUGIN_CFLAGS)
-+GCC_PLUGINS_CFLAGS += $(SIZE_OVERFLOW_PLUGIN_CFLAGS) $(LATENT_ENTROPY_PLUGIN_CFLAGS)
++GCC_PLUGINS_CFLAGS += $(SIZE_OVERFLOW_PLUGIN_CFLAGS) $(LATENT_ENTROPY_PLUGIN_CFLAGS) $(STRUCTLEAK_PLUGIN_CFLAGS)
 +GCC_PLUGINS_AFLAGS := $(KERNEXEC_PLUGIN_AFLAGS)
 +export PLUGINCC GCC_PLUGINS_CFLAGS GCC_PLUGINS_AFLAGS CONSTIFY_PLUGIN
 +ifeq ($(KBUILD_EXTMOD),)
@@ -331,14 +344,14 @@ index 39f170a..5d22cce 100644
 +else
 +      $(Q)echo "warning, your gcc version does not support plugins, you should upgrade it to gcc 4.5 at least"
 +endif
-+      $(Q)echo "PAX_MEMORY_STACKLEAK and other features will be less secure"
++      $(Q)echo "PAX_MEMORY_STACKLEAK, constification, PAX_LATENT_ENTROPY and other features will be less secure.  PAX_SIZE_OVERFLOW will not be active."
 +endif
 +endif
 +
  include $(srctree)/arch/$(SRCARCH)/Makefile
  
  ifdef CONFIG_READABLE_ASM
-@@ -731,7 +786,7 @@ export mod_sign_cmd
+@@ -731,7 +791,7 @@ export mod_sign_cmd
  
  
  ifeq ($(KBUILD_EXTMOD),)
@@ -347,7 +360,7 @@ index 39f170a..5d22cce 100644
  
  vmlinux-dirs  := $(patsubst %/,%,$(filter %/, $(init-y) $(init-m) \
                     $(core-y) $(core-m) $(drivers-y) $(drivers-m) \
-@@ -778,6 +833,8 @@ endif
+@@ -778,6 +838,8 @@ endif
  
  # The actual objects are generated when descending, 
  # make sure no implicit rule kicks in
@@ -356,7 +369,7 @@ index 39f170a..5d22cce 100644
  $(sort $(vmlinux-deps)): $(vmlinux-dirs) ;
  
  # Handle descending into subdirectories listed in $(vmlinux-dirs)
-@@ -787,7 +844,7 @@ $(sort $(vmlinux-deps)): $(vmlinux-dirs) ;
+@@ -787,7 +849,7 @@ $(sort $(vmlinux-deps)): $(vmlinux-dirs) ;
  # Error messages still appears in the original language
  
  PHONY += $(vmlinux-dirs)
@@ -365,7 +378,7 @@ index 39f170a..5d22cce 100644
        $(Q)$(MAKE) $(build)=$@
  
  # Store (new) KERNELRELASE string in include/config/kernel.release
-@@ -831,6 +888,7 @@ prepare0: archprepare FORCE
+@@ -831,6 +893,7 @@ prepare0: archprepare FORCE
        $(Q)$(MAKE) $(build)=.
  
  # All the preparing..
@@ -373,7 +386,7 @@ index 39f170a..5d22cce 100644
  prepare: prepare0
  
  # Generate some files
-@@ -938,6 +996,8 @@ all: modules
+@@ -938,6 +1001,8 @@ all: modules
  #     using awk while concatenating to the final file.
  
  PHONY += modules
@@ -382,7 +395,7 @@ index 39f170a..5d22cce 100644
  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.';
-@@ -953,7 +1013,7 @@ modules.builtin: $(vmlinux-dirs:%=%/modules.builtin)
+@@ -953,7 +1018,7 @@ modules.builtin: $(vmlinux-dirs:%=%/modules.builtin)
  
  # Target to prepare building external modules
  PHONY += modules_prepare
@@ -391,7 +404,7 @@ index 39f170a..5d22cce 100644
  
  # Target to install modules
  PHONY += modules_install
-@@ -1013,7 +1073,7 @@ MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \
+@@ -1019,7 +1084,7 @@ MRPROPER_FILES += .config .config.old .version .old_version $(version_h) \
                  Module.symvers tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \
                  signing_key.priv signing_key.x509 x509.genkey         \
                  extra_certificates signing_key.x509.keyid             \
@@ -400,7 +413,7 @@ index 39f170a..5d22cce 100644
  
  # clean - Delete most, but leave enough to build external modules
  #
-@@ -1053,6 +1113,7 @@ distclean: mrproper
+@@ -1059,6 +1124,7 @@ distclean: mrproper
                \( -name '*.orig' -o -name '*.rej' -o -name '*~' \
                -o -name '*.bak' -o -name '#*#' -o -name '.*.orig' \
                -o -name '.*.rej' \
@@ -408,7 +421,7 @@ index 39f170a..5d22cce 100644
                -o -name '*%' -o -name '.*.cmd' -o -name 'core' \) \
                -type f -print | xargs rm -f
  
-@@ -1213,6 +1274,8 @@ PHONY += $(module-dirs) modules
+@@ -1219,6 +1285,8 @@ PHONY += $(module-dirs) modules
  $(module-dirs): crmodverdir $(objtree)/Module.symvers
        $(Q)$(MAKE) $(build)=$(patsubst _module_%,%,$@)
  
@@ -417,7 +430,7 @@ index 39f170a..5d22cce 100644
  modules: $(module-dirs)
        @$(kecho) '  Building modules, stage 2.';
        $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost
-@@ -1349,17 +1412,21 @@ else
+@@ -1355,17 +1423,21 @@ else
          target-dir = $(if $(KBUILD_EXTMOD),$(dir $<),$(dir $@))
  endif
  
@@ -443,7 +456,7 @@ index 39f170a..5d22cce 100644
        $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
  %.symtypes: %.c prepare scripts FORCE
        $(Q)$(MAKE) $(build)=$(build-dir) $(target-dir)$(notdir $@)
-@@ -1369,11 +1436,15 @@ endif
+@@ -1375,11 +1447,15 @@ endif
        $(cmd_crmodverdir)
        $(Q)$(MAKE) KBUILD_MODULES=$(if $(CONFIG_MODULES),1) \
        $(build)=$(build-dir)
@@ -792,6 +805,58 @@ index 0c4132d..88f0d53 100644
        } else if (!cause) {
                /* Allow reads even for write-only mappings */
                if (!(vma->vm_flags & (VM_READ | VM_WRITE)))
+diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
+index 67874b8..9aa2d62 100644
+--- a/arch/arm/Kconfig
++++ b/arch/arm/Kconfig
+@@ -1427,6 +1427,16 @@ config ARM_ERRATA_775420
+        to deadlock. This workaround puts DSB before executing ISB if
+        an abort may occur on cache maintenance.
++config ARM_ERRATA_798181
++      bool "ARM errata: TLBI/DSB failure on Cortex-A15"
++      depends on CPU_V7 && SMP
++      help
++        On Cortex-A15 (r0p0..r3p2) the TLBI*IS/DSB operations are not
++        adequately shooting down all use of the old entries. This
++        option enables the Linux kernel workaround for this erratum
++        which sends an IPI to the CPUs that are running the same ASID
++        as the one being invalidated.
++
+ endmenu
+ source "arch/arm/common/Kconfig"
+@@ -1813,7 +1823,7 @@ config ALIGNMENT_TRAP
+ config UACCESS_WITH_MEMCPY
+       bool "Use kernel mem{cpy,set}() for {copy_to,clear}_user()"
+-      depends on MMU
++      depends on MMU && !PAX_MEMORY_UDEREF
+       default y if CPU_FEROCEON
+       help
+         Implement faster copy_to_user and clear_user methods for CPU
+diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c
+index 87dfa902..3a523fc 100644
+--- a/arch/arm/common/gic.c
++++ b/arch/arm/common/gic.c
+@@ -81,7 +81,7 @@ static u8 gic_cpu_map[NR_GIC_CPU_IF] __read_mostly;
+  * Supported arch specific GIC irq extension.
+  * Default make them NULL.
+  */
+-struct irq_chip gic_arch_extn = {
++irq_chip_no_const gic_arch_extn __read_only = {
+       .irq_eoi        = NULL,
+       .irq_mask       = NULL,
+       .irq_unmask     = NULL,
+@@ -329,7 +329,7 @@ static void gic_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
+       chained_irq_exit(chip, desc);
+ }
+-static struct irq_chip gic_chip = {
++static irq_chip_no_const gic_chip __read_only = {
+       .name                   = "GIC",
+       .irq_mask               = gic_mask_irq,
+       .irq_unmask             = gic_unmask_irq,
 diff --git a/arch/arm/include/asm/atomic.h b/arch/arm/include/asm/atomic.h
 index c79f61f..9ac0642 100644
 --- a/arch/arm/include/asm/atomic.h
@@ -1456,6 +1521,31 @@ index e1489c5..d418304 100644
  
  /*
   * Select the calling method
+diff --git a/arch/arm/include/asm/checksum.h b/arch/arm/include/asm/checksum.h
+index 6dcc164..b14d917 100644
+--- a/arch/arm/include/asm/checksum.h
++++ b/arch/arm/include/asm/checksum.h
+@@ -37,7 +37,19 @@ __wsum
+ csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum);
+ __wsum
+-csum_partial_copy_from_user(const void __user *src, void *dst, int len, __wsum sum, int *err_ptr);
++__csum_partial_copy_from_user(const void __user *src, void *dst, int len, __wsum sum, int *err_ptr);
++
++static inline __wsum
++csum_partial_copy_from_user(const void __user *src, void *dst, int len, __wsum sum, int *err_ptr)
++{
++      __wsum ret;
++      pax_open_userland();
++      ret = __csum_partial_copy_from_user(src, dst, len, sum, err_ptr);
++      pax_close_userland();
++      return ret;
++}
++
++
+ /*
+  *    Fold a partial checksum without adding pseudo headers
 diff --git a/arch/arm/include/asm/cmpxchg.h b/arch/arm/include/asm/cmpxchg.h
 index 7eb18c1..e38b6d2 100644
 --- a/arch/arm/include/asm/cmpxchg.h
@@ -1470,13 +1560,13 @@ index 7eb18c1..e38b6d2 100644
  #include <asm-generic/cmpxchg-local.h>
  
 diff --git a/arch/arm/include/asm/delay.h b/arch/arm/include/asm/delay.h
-index ab98fdd..6b19938 100644
+index 720799f..2f67631 100644
 --- a/arch/arm/include/asm/delay.h
 +++ b/arch/arm/include/asm/delay.h
-@@ -24,9 +24,9 @@ extern struct arm_delay_ops {
-       void (*delay)(unsigned long);
+@@ -25,9 +25,9 @@ extern struct arm_delay_ops {
        void (*const_udelay)(unsigned long);
        void (*udelay)(unsigned long);
+       bool const_clock;
 -} arm_delay_ops;
 +} *arm_delay_ops;
  
@@ -1485,7 +1575,7 @@ index ab98fdd..6b19938 100644
  
  /*
   * This function intentionally does not exist; if you see references to
-@@ -47,8 +47,8 @@ extern void __bad_udelay(void);
+@@ -48,8 +48,8 @@ extern void __bad_udelay(void);
   * first constant multiplications gets optimized away if the delay is
   * a constant)
   */
@@ -1496,6 +1586,67 @@ index ab98fdd..6b19938 100644
  
  #define udelay(n)                                                     \
        (__builtin_constant_p(n) ?                                      \
+diff --git a/arch/arm/include/asm/domain.h b/arch/arm/include/asm/domain.h
+index 6ddbe44..b5e38b1 100644
+--- a/arch/arm/include/asm/domain.h
++++ b/arch/arm/include/asm/domain.h
+@@ -48,18 +48,37 @@
+  * Domain types
+  */
+ #define DOMAIN_NOACCESS       0
+-#define DOMAIN_CLIENT 1
+ #ifdef CONFIG_CPU_USE_DOMAINS
++#define DOMAIN_USERCLIENT     1
++#define DOMAIN_KERNELCLIENT   1
+ #define DOMAIN_MANAGER        3
++#define DOMAIN_VECTORS                DOMAIN_USER
+ #else
++
++#ifdef CONFIG_PAX_KERNEXEC
+ #define DOMAIN_MANAGER        1
++#define DOMAIN_KERNEXEC       3
++#else
++#define DOMAIN_MANAGER        1
++#endif
++
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++#define DOMAIN_USERCLIENT     0
++#define DOMAIN_UDEREF         1
++#define DOMAIN_VECTORS                DOMAIN_KERNEL
++#else
++#define DOMAIN_USERCLIENT     1
++#define DOMAIN_VECTORS                DOMAIN_USER
++#endif
++#define DOMAIN_KERNELCLIENT   1
++
+ #endif
+ #define domain_val(dom,type)  ((type) << (2*(dom)))
+ #ifndef __ASSEMBLY__
+-#ifdef CONFIG_CPU_USE_DOMAINS
++#if defined(CONFIG_CPU_USE_DOMAINS) || defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
+ static inline void set_domain(unsigned val)
+ {
+       asm volatile(
+@@ -68,15 +87,7 @@ static inline void set_domain(unsigned val)
+       isb();
+ }
+-#define modify_domain(dom,type)                                       \
+-      do {                                                    \
+-      struct thread_info *thread = current_thread_info();     \
+-      unsigned int domain = thread->cpu_domain;               \
+-      domain &= ~domain_val(dom, DOMAIN_MANAGER);             \
+-      thread->cpu_domain = domain | domain_val(dom, type);    \
+-      set_domain(thread->cpu_domain);                         \
+-      } while (0)
+-
++extern void modify_domain(unsigned int dom, unsigned int type);
+ #else
+ static inline void set_domain(unsigned val) { }
+ static inline void modify_domain(unsigned dom, unsigned type) { }
 diff --git a/arch/arm/include/asm/elf.h b/arch/arm/include/asm/elf.h
 index 38050b1..9d90e8b 100644
 --- a/arch/arm/include/asm/elf.h
@@ -1525,6 +1676,110 @@ index 38050b1..9d90e8b 100644
 -#define arch_randomize_brk arch_randomize_brk
 -
  #endif
+diff --git a/arch/arm/include/asm/fncpy.h b/arch/arm/include/asm/fncpy.h
+index de53547..52b9a28 100644
+--- a/arch/arm/include/asm/fncpy.h
++++ b/arch/arm/include/asm/fncpy.h
+@@ -81,7 +81,9 @@
+       BUG_ON((uintptr_t)(dest_buf) & (FNCPY_ALIGN - 1) ||             \
+               (__funcp_address & ~(uintptr_t)1 & (FNCPY_ALIGN - 1))); \
+                                                                       \
++      pax_open_kernel();                                              \
+       memcpy(dest_buf, (void const *)(__funcp_address & ~1), size);   \
++      pax_close_kernel();                                             \
+       flush_icache_range((unsigned long)(dest_buf),                   \
+               (unsigned long)(dest_buf) + (size));                    \
+                                                                       \
+diff --git a/arch/arm/include/asm/futex.h b/arch/arm/include/asm/futex.h
+index e42cf59..7b94b8f 100644
+--- a/arch/arm/include/asm/futex.h
++++ b/arch/arm/include/asm/futex.h
+@@ -50,6 +50,8 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
+       if (!access_ok(VERIFY_WRITE, uaddr, sizeof(u32)))
+               return -EFAULT;
++      pax_open_userland();
++
+       smp_mb();
+       __asm__ __volatile__("@futex_atomic_cmpxchg_inatomic\n"
+       "1:     ldrex   %1, [%4]\n"
+@@ -65,6 +67,8 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
+       : "cc", "memory");
+       smp_mb();
++      pax_close_userland();
++
+       *uval = val;
+       return ret;
+ }
+@@ -95,6 +99,8 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
+       if (!access_ok(VERIFY_WRITE, uaddr, sizeof(u32)))
+               return -EFAULT;
++      pax_open_userland();
++
+       __asm__ __volatile__("@futex_atomic_cmpxchg_inatomic\n"
+       "1:     " TUSER(ldr) "  %1, [%4]\n"
+       "       teq     %1, %2\n"
+@@ -105,6 +111,8 @@ futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
+       : "r" (oldval), "r" (newval), "r" (uaddr), "Ir" (-EFAULT)
+       : "cc", "memory");
++      pax_close_userland();
++
+       *uval = val;
+       return ret;
+ }
+@@ -127,6 +135,7 @@ futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr)
+               return -EFAULT;
+       pagefault_disable();    /* implies preempt_disable() */
++      pax_open_userland();
+       switch (op) {
+       case FUTEX_OP_SET:
+@@ -148,6 +157,7 @@ futex_atomic_op_inuser (int encoded_op, u32 __user *uaddr)
+               ret = -ENOSYS;
+       }
++      pax_close_userland();
+       pagefault_enable();     /* subsumes preempt_enable() */
+       if (!ret) {
+diff --git a/arch/arm/include/asm/hardware/gic.h b/arch/arm/include/asm/hardware/gic.h
+index 4b1ce6c..bea3f73 100644
+--- a/arch/arm/include/asm/hardware/gic.h
++++ b/arch/arm/include/asm/hardware/gic.h
+@@ -34,9 +34,10 @@
+ #ifndef __ASSEMBLY__
+ #include <linux/irqdomain.h>
++#include <linux/irq.h>
+ struct device_node;
+-extern struct irq_chip gic_arch_extn;
++extern irq_chip_no_const gic_arch_extn;
+ void gic_init_bases(unsigned int, int, void __iomem *, void __iomem *,
+                   u32 offset, struct device_node *);
+diff --git a/arch/arm/include/asm/highmem.h b/arch/arm/include/asm/highmem.h
+index 8c5e828..91b99ab 100644
+--- a/arch/arm/include/asm/highmem.h
++++ b/arch/arm/include/asm/highmem.h
+@@ -41,6 +41,13 @@ extern void kunmap_high(struct page *page);
+ #endif
+ #endif
++/*
++ * Needed to be able to broadcast the TLB invalidation for kmap.
++ */
++#ifdef CONFIG_ARM_ERRATA_798181
++#undef ARCH_NEEDS_KMAP_HIGH_GET
++#endif
++
+ #ifdef ARCH_NEEDS_KMAP_HIGH_GET
+ extern void *kmap_high_get(struct page *page);
+ #else
 diff --git a/arch/arm/include/asm/kmap_types.h b/arch/arm/include/asm/kmap_types.h
 index 83eb2f7..ed77159 100644
 --- a/arch/arm/include/asm/kmap_types.h
@@ -1551,19 +1806,41 @@ index 9e614a1..3302cca 100644
  struct dma_struct {
        void            *addr;          /* single DMA address           */
 diff --git a/arch/arm/include/asm/mach/map.h b/arch/arm/include/asm/mach/map.h
-index 195ac2f..2272f0d 100644
+index 2fe141f..192dc01 100644
 --- a/arch/arm/include/asm/mach/map.h
 +++ b/arch/arm/include/asm/mach/map.h
-@@ -34,6 +34,9 @@ struct map_desc {
+@@ -27,13 +27,16 @@ struct map_desc {
+ #define MT_MINICLEAN          6
+ #define MT_LOW_VECTORS                7
+ #define MT_HIGH_VECTORS               8
+-#define MT_MEMORY             9
++#define MT_MEMORY_RWX         9
+ #define MT_ROM                        10
+-#define MT_MEMORY_NONCACHED   11
++#define MT_MEMORY_NONCACHED_RX        11
+ #define MT_MEMORY_DTCM                12
  #define MT_MEMORY_ITCM                13
  #define MT_MEMORY_SO          14
  #define MT_MEMORY_DMA_READY   15
-+#define MT_MEMORY_R           16
-+#define MT_MEMORY_RW          17
-+#define MT_MEMORY_RX          18
++#define MT_MEMORY_RW          16
++#define MT_MEMORY_RX          17
++#define MT_MEMORY_NONCACHED_RW        18
  
  #ifdef CONFIG_MMU
  extern void iotable_init(struct map_desc *, int);
+diff --git a/arch/arm/include/asm/mmu_context.h b/arch/arm/include/asm/mmu_context.h
+index 863a661..a7b85e0 100644
+--- a/arch/arm/include/asm/mmu_context.h
++++ b/arch/arm/include/asm/mmu_context.h
+@@ -27,6 +27,8 @@ void __check_vmalloc_seq(struct mm_struct *mm);
+ void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk);
+ #define init_new_context(tsk,mm)      ({ atomic64_set(&mm->context.id, 0); 0; })
++DECLARE_PER_CPU(atomic64_t, active_asids);
++
+ #else /* !CONFIG_CPU_HAS_ASID */
+ #ifdef CONFIG_MMU
 diff --git a/arch/arm/include/asm/outercache.h b/arch/arm/include/asm/outercache.h
 index 53426c6..c7baff3 100644
 --- a/arch/arm/include/asm/outercache.h
@@ -1591,7 +1868,7 @@ index 812a494..71fc0b6 100644
  #ifdef MULTI_USER
  extern struct cpu_user_fns cpu_user;
 diff --git a/arch/arm/include/asm/pgalloc.h b/arch/arm/include/asm/pgalloc.h
-index 943504f..84d0f84 100644
+index 943504f..c37a730 100644
 --- a/arch/arm/include/asm/pgalloc.h
 +++ b/arch/arm/include/asm/pgalloc.h
 @@ -17,6 +17,7 @@
@@ -1622,16 +1899,19 @@ index 943504f..84d0f84 100644
  
  #endif        /* CONFIG_ARM_LPAE */
  
-@@ -126,6 +133,16 @@ static inline void pte_free(struct mm_struct *mm, pgtable_t pte)
+@@ -126,6 +133,19 @@ static inline void pte_free(struct mm_struct *mm, pgtable_t pte)
        __free_page(pte);
  }
  
-+static inline void __pmd_update(pmd_t *pmdp, pmdval_t prot)
++static inline void __section_update(pmd_t *pmdp, unsigned long addr, pmdval_t prot)
 +{
-+      pmdval_t pmdval = pmd_val(*pmdp) | prot;
-+      pmdp[0] = __pmd(pmdval);
-+#ifndef CONFIG_ARM_LPAE
-+      pmdp[1] = __pmd(pmdval + 256 * sizeof(pte_t));
++#ifdef CONFIG_ARM_LPAE
++      pmdp[0] = __pmd(pmd_val(pmdp[0]) | prot);
++#else
++      if (addr & SECTION_SIZE)
++              pmdp[1] = __pmd(pmd_val(pmdp[1]) | prot);
++      else
++              pmdp[0] = __pmd(pmd_val(pmdp[0]) | prot);
 +#endif
 +      flush_pmd_entry(pmdp);
 +}
@@ -1639,7 +1919,7 @@ index 943504f..84d0f84 100644
  static inline void __pmd_populate(pmd_t *pmdp, phys_addr_t pte,
                                  pmdval_t prot)
  {
-@@ -155,7 +172,7 @@ pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep)
+@@ -155,7 +175,7 @@ pmd_populate_kernel(struct mm_struct *mm, pmd_t *pmdp, pte_t *ptep)
  static inline void
  pmd_populate(struct mm_struct *mm, pmd_t *pmdp, pgtable_t ptep)
  {
@@ -1649,14 +1929,14 @@ index 943504f..84d0f84 100644
  #define pmd_pgtable(pmd) pmd_page(pmd)
  
 diff --git a/arch/arm/include/asm/pgtable-2level-hwdef.h b/arch/arm/include/asm/pgtable-2level-hwdef.h
-index 5cfba15..d437dc2 100644
+index 5cfba15..f415e1a 100644
 --- a/arch/arm/include/asm/pgtable-2level-hwdef.h
 +++ b/arch/arm/include/asm/pgtable-2level-hwdef.h
 @@ -20,12 +20,15 @@
  #define PMD_TYPE_FAULT                (_AT(pmdval_t, 0) << 0)
  #define PMD_TYPE_TABLE                (_AT(pmdval_t, 1) << 0)
  #define PMD_TYPE_SECT         (_AT(pmdval_t, 2) << 0)
-+#define PMD_PXNTABLE          (_AT(pmdval_t, 1) << 2) /* PXN */
++#define PMD_PXNTABLE          (_AT(pmdval_t, 1) << 2)         /* v7 */
  #define PMD_BIT4              (_AT(pmdval_t, 1) << 4)
  #define PMD_DOMAIN(x)         (_AT(pmdval_t, (x)) << 5)
  #define PMD_PROTECTION                (_AT(pmdval_t, 1) << 9)         /* v5 */
@@ -1664,7 +1944,7 @@ index 5cfba15..d437dc2 100644
  /*
   *   - section
   */
-+#define PMD_SECT_PXN          (_AT(pmdval_t, 1) << 0) 
++#define PMD_SECT_PXN          (_AT(pmdval_t, 1) << 0)         /* v7 */
  #define PMD_SECT_BUFFERABLE   (_AT(pmdval_t, 1) << 2)
  #define PMD_SECT_CACHEABLE    (_AT(pmdval_t, 1) << 3)
  #define PMD_SECT_XN           (_AT(pmdval_t, 1) << 4)         /* v6 */
@@ -1672,27 +1952,35 @@ index 5cfba15..d437dc2 100644
  #define PMD_SECT_nG           (_AT(pmdval_t, 1) << 17)        /* v6 */
  #define PMD_SECT_SUPER                (_AT(pmdval_t, 1) << 18)        /* v6 */
  #define PMD_SECT_AF           (_AT(pmdval_t, 0))
-+#define PMD_SECT_AP_RDONLY    (_AT(pmdval_t, 0))
++#define PMD_SECT_RDONLY               (_AT(pmdval_t, 0))
  
  #define PMD_SECT_UNCACHED     (_AT(pmdval_t, 0))
  #define PMD_SECT_BUFFERED     (PMD_SECT_BUFFERABLE)
+@@ -66,6 +70,7 @@
+  *   - extended small page/tiny page
+  */
+ #define PTE_EXT_XN            (_AT(pteval_t, 1) << 0)         /* v6 */
++#define PTE_EXT_PXN           (_AT(pteval_t, 1) << 2)         /* v7 */
+ #define PTE_EXT_AP_MASK               (_AT(pteval_t, 3) << 4)
+ #define PTE_EXT_AP0           (_AT(pteval_t, 1) << 4)
+ #define PTE_EXT_AP1           (_AT(pteval_t, 2) << 4)
 diff --git a/arch/arm/include/asm/pgtable-2level.h b/arch/arm/include/asm/pgtable-2level.h
-index 2317a71..1897391 100644
+index f97ee02..07f1be5 100644
 --- a/arch/arm/include/asm/pgtable-2level.h
 +++ b/arch/arm/include/asm/pgtable-2level.h
-@@ -123,6 +123,7 @@
- #define L_PTE_USER            (_AT(pteval_t, 1) << 8)
+@@ -125,6 +125,7 @@
  #define L_PTE_XN              (_AT(pteval_t, 1) << 9)
  #define L_PTE_SHARED          (_AT(pteval_t, 1) << 10)        /* shared(v6), coherent(xsc3) */
-+#define L_PTE_PXN             (_AT(pteval_t, 1) << 11)        /* v7*/
+ #define L_PTE_NONE            (_AT(pteval_t, 1) << 11)
++#define L_PTE_PXN             (_AT(pteval_t, 1) << 12)        /* v7*/
  
  /*
   * These are the memory types, defined to be compatible with
 diff --git a/arch/arm/include/asm/pgtable-3level-hwdef.h b/arch/arm/include/asm/pgtable-3level-hwdef.h
-index d795282..d82ff13 100644
+index d795282..a43ea90 100644
 --- a/arch/arm/include/asm/pgtable-3level-hwdef.h
 +++ b/arch/arm/include/asm/pgtable-3level-hwdef.h
-@@ -32,6 +32,7 @@
+@@ -32,15 +32,18 @@
  #define PMD_TYPE_SECT         (_AT(pmdval_t, 1) << 0)
  #define PMD_BIT4              (_AT(pmdval_t, 0))
  #define PMD_DOMAIN(x)         (_AT(pmdval_t, 0))
@@ -1700,7 +1988,10 @@ index d795282..d82ff13 100644
  
  /*
   *   - section
-@@ -41,9 +42,11 @@
+  */
+ #define PMD_SECT_BUFFERABLE   (_AT(pmdval_t, 1) << 2)
+ #define PMD_SECT_CACHEABLE    (_AT(pmdval_t, 1) << 3)
++#define PMD_SECT_RDONLY               (_AT(pmdval_t, 1) << 7)
  #define PMD_SECT_S            (_AT(pmdval_t, 3) << 8)
  #define PMD_SECT_AF           (_AT(pmdval_t, 1) << 10)
  #define PMD_SECT_nG           (_AT(pmdval_t, 1) << 11)
@@ -1708,10 +1999,6 @@ index d795282..d82ff13 100644
  #define PMD_SECT_XN           (_AT(pmdval_t, 1) << 54)
  #define PMD_SECT_AP_WRITE     (_AT(pmdval_t, 0))
  #define PMD_SECT_AP_READ      (_AT(pmdval_t, 0))
-+#define PMD_SECT_AP_RDONLY    (_AT(pmdval_t, 1) << 7)
- #define PMD_SECT_TEX(x)               (_AT(pmdval_t, 0))
- /*
 @@ -66,6 +69,7 @@
  #define PTE_EXT_SHARED                (_AT(pteval_t, 3) << 8)         /* SH[1:0], inner shareable */
  #define PTE_EXT_AF            (_AT(pteval_t, 1) << 10)        /* Access Flag */
@@ -1721,10 +2008,10 @@ index d795282..d82ff13 100644
  
  /*
 diff --git a/arch/arm/include/asm/pgtable-3level.h b/arch/arm/include/asm/pgtable-3level.h
-index b249035..4ab204b 100644
+index a3f3792..7b932a6 100644
 --- a/arch/arm/include/asm/pgtable-3level.h
 +++ b/arch/arm/include/asm/pgtable-3level.h
-@@ -73,6 +73,7 @@
+@@ -74,6 +74,7 @@
  #define L_PTE_RDONLY          (_AT(pteval_t, 1) << 7)         /* AP[2] */
  #define L_PTE_SHARED          (_AT(pteval_t, 3) << 8)         /* SH[1:0], inner shareable */
  #define L_PTE_YOUNG           (_AT(pteval_t, 1) << 10)        /* AF */
@@ -1732,7 +2019,7 @@ index b249035..4ab204b 100644
  #define L_PTE_XN              (_AT(pteval_t, 1) << 54)        /* XN */
  #define L_PTE_DIRTY           (_AT(pteval_t, 1) << 55)        /* unused */
  #define L_PTE_SPECIAL         (_AT(pteval_t, 1) << 56)        /* unused */
-@@ -80,6 +81,7 @@
+@@ -82,6 +83,7 @@
  /*
   * To be used in assembly code with the upper page attributes.
   */
@@ -1741,7 +2028,7 @@ index b249035..4ab204b 100644
  #define L_PTE_DIRTY_HIGH      (1 << (55 - 32))
  
 diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
-index 08c1231..1031bb4 100644
+index c094749..a6ff605 100644
 --- a/arch/arm/include/asm/pgtable.h
 +++ b/arch/arm/include/asm/pgtable.h
 @@ -30,6 +30,9 @@
@@ -1764,7 +2051,7 @@ index 08c1231..1031bb4 100644
  extern void __pte_error(const char *file, int line, pte_t);
  extern void __pmd_error(const char *file, int line, pmd_t);
  extern void __pgd_error(const char *file, int line, pgd_t);
-@@ -53,6 +59,17 @@ extern void __pgd_error(const char *file, int line, pgd_t);
+@@ -53,6 +59,50 @@ extern void __pgd_error(const char *file, int line, pgd_t);
  #define pmd_ERROR(pmd)                __pmd_error(__FILE__, __LINE__, pmd)
  #define pgd_ERROR(pgd)                __pgd_error(__FILE__, __LINE__, pgd)
  
@@ -1772,8 +2059,41 @@ index 08c1231..1031bb4 100644
 +#define  __HAVE_ARCH_PAX_CLOSE_KERNEL
 +
 +#ifdef CONFIG_PAX_KERNEXEC
-+static inline unsigned long pax_open_kernel(void) { return 0; /* TODO */ }
-+static inline unsigned long pax_close_kernel(void) { return 0; /* TODO */ }
++#include <asm/domain.h>
++#include <linux/thread_info.h>
++#include <linux/preempt.h>
++#endif
++
++#if defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
++static inline int test_domain(int domain, int domaintype)
++{
++      return ((current_thread_info()->cpu_domain) & domain_val(domain, 3)) == domain_val(domain, domaintype);
++}
++#endif
++
++#ifdef CONFIG_PAX_KERNEXEC
++static inline unsigned long pax_open_kernel(void) {
++#ifdef CONFIG_ARM_LPAE
++      /* TODO */
++#else
++      preempt_disable();
++      BUG_ON(test_domain(DOMAIN_KERNEL, DOMAIN_KERNEXEC));
++      modify_domain(DOMAIN_KERNEL, DOMAIN_KERNEXEC);
++#endif
++      return 0;
++}
++
++static inline unsigned long pax_close_kernel(void) {
++#ifdef CONFIG_ARM_LPAE
++      /* TODO */
++#else
++      BUG_ON(test_domain(DOMAIN_KERNEL, DOMAIN_MANAGER));
++      /* DOMAIN_MANAGER = "client" under KERNEXEC */
++      modify_domain(DOMAIN_KERNEL, DOMAIN_MANAGER);
++      preempt_enable_no_resched();
++#endif
++      return 0;
++}
 +#else
 +static inline unsigned long pax_open_kernel(void) { return 0; }
 +static inline unsigned long pax_close_kernel(void) { return 0; }
@@ -1782,7 +2102,7 @@ index 08c1231..1031bb4 100644
  /*
   * This is the lowest virtual address we can permit any user space
   * mapping to be mapped at.  This is particularly important for
-@@ -63,8 +80,8 @@ extern void __pgd_error(const char *file, int line, pgd_t);
+@@ -63,8 +113,8 @@ extern void __pgd_error(const char *file, int line, pgd_t);
  /*
   * The pgprot_* and protection_map entries will be fixed up in runtime
   * to include the cachable and bufferable bits based on memory policy,
@@ -1793,12 +2113,12 @@ index 08c1231..1031bb4 100644
   */
  #define _L_PTE_DEFAULT        L_PTE_PRESENT | L_PTE_YOUNG
  
-@@ -242,7 +259,7 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; }
+@@ -241,7 +291,7 @@ static inline pte_t pte_mkspecial(pte_t pte) { return pte; }
  static inline pte_t pte_modify(pte_t pte, pgprot_t newprot)
  {
--      const pteval_t mask = L_PTE_XN | L_PTE_RDONLY | L_PTE_USER;
-+      const pteval_t mask = L_PTE_XN | L_PTE_RDONLY | L_PTE_USER | __supported_pte_mask;
+       const pteval_t mask = L_PTE_XN | L_PTE_RDONLY | L_PTE_USER |
+-              L_PTE_NONE | L_PTE_VALID;
++              L_PTE_NONE | L_PTE_VALID | __supported_pte_mask;
        pte_val(pte) = (pte_val(pte) & ~mask) | (pgprot_val(newprot) & mask);
        return pte;
  }
@@ -1815,11 +2135,27 @@ index f3628fb..a0672dd 100644
  
  #ifndef MULTI_CPU
  extern void cpu_proc_init(void);
+diff --git a/arch/arm/include/asm/processor.h b/arch/arm/include/asm/processor.h
+index 06e7d50..8a8e251 100644
+--- a/arch/arm/include/asm/processor.h
++++ b/arch/arm/include/asm/processor.h
+@@ -65,9 +65,8 @@ struct thread_struct {
+       regs->ARM_cpsr |= PSR_ENDSTATE;                                 \
+       regs->ARM_pc = pc & ~1;         /* pc */                        \
+       regs->ARM_sp = sp;              /* sp */                        \
+-      regs->ARM_r2 = stack[2];        /* r2 (envp) */                 \
+-      regs->ARM_r1 = stack[1];        /* r1 (argv) */                 \
+-      regs->ARM_r0 = stack[0];        /* r0 (argc) */                 \
++      /* r2 (envp), r1 (argv), r0 (argc) */                           \
++      (void)copy_from_user(&regs->ARM_r0, (const char __user *)stack, 3 * sizeof(unsigned long)); \
+       nommu_start_thread(regs);                                       \
+ })
 diff --git a/arch/arm/include/asm/smp.h b/arch/arm/include/asm/smp.h
-index 2e3be16..4dc90fc 100644
+index d3a22be..3a69ad5 100644
 --- a/arch/arm/include/asm/smp.h
 +++ b/arch/arm/include/asm/smp.h
-@@ -106,7 +106,7 @@ struct smp_operations {
+@@ -107,7 +107,7 @@ struct smp_operations {
        int  (*cpu_disable)(unsigned int cpu);
  #endif
  #endif
@@ -1829,40 +2165,187 @@ index 2e3be16..4dc90fc 100644
  /*
   * set platform specific SMP operations
 diff --git a/arch/arm/include/asm/thread_info.h b/arch/arm/include/asm/thread_info.h
-index 8477b4c..801a6a9 100644
+index cddda1f..ff357f7 100644
 --- a/arch/arm/include/asm/thread_info.h
 +++ b/arch/arm/include/asm/thread_info.h
-@@ -151,6 +151,12 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
- #define TIF_SYSCALL_TRACE     8
+@@ -77,9 +77,9 @@ struct thread_info {
+       .flags          = 0,                                            \
+       .preempt_count  = INIT_PREEMPT_COUNT,                           \
+       .addr_limit     = KERNEL_DS,                                    \
+-      .cpu_domain     = domain_val(DOMAIN_USER, DOMAIN_MANAGER) |     \
+-                        domain_val(DOMAIN_KERNEL, DOMAIN_MANAGER) |   \
+-                        domain_val(DOMAIN_IO, DOMAIN_CLIENT),         \
++      .cpu_domain     = domain_val(DOMAIN_USER, DOMAIN_USERCLIENT) |  \
++                        domain_val(DOMAIN_KERNEL, DOMAIN_KERNELCLIENT) |      \
++                        domain_val(DOMAIN_IO, DOMAIN_KERNELCLIENT),   \
+       .restart_block  = {                                             \
+               .fn     = do_no_restart_syscall,                        \
+       },                                                              \
+@@ -152,6 +152,12 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
  #define TIF_SYSCALL_AUDIT     9
  #define TIF_SYSCALL_TRACEPOINT        10
+ #define TIF_SECCOMP           11      /* seccomp syscall filtering active */
 +
 +/* within 8 bits of TIF_SYSCALL_TRACE
-+   to meet flexible second operand requirements
-+*/
-+#define TIF_GRSEC_SETXID      11
++ *  to meet flexible second operand requirements
++ */
++#define TIF_GRSEC_SETXID      12
 +
  #define TIF_USING_IWMMXT      17
  #define TIF_MEMDIE            18      /* is terminating due to OOM killer */
  #define TIF_RESTORE_SIGMASK   20
-@@ -165,9 +171,11 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
+@@ -165,10 +171,11 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
  #define _TIF_SYSCALL_TRACEPOINT       (1 << TIF_SYSCALL_TRACEPOINT)
- #define _TIF_USING_IWMMXT     (1 << TIF_USING_IWMMXT)
  #define _TIF_SECCOMP          (1 << TIF_SECCOMP)
+ #define _TIF_USING_IWMMXT     (1 << TIF_USING_IWMMXT)
 +#define _TIF_GRSEC_SETXID     (1 << TIF_GRSEC_SETXID)
  
  /* Checks for any syscall work in entry-common.S */
--#define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | _TIF_SYSCALL_TRACEPOINT)
-+#define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | _TIF_SYSCALL_TRACEPOINT | \
-+                         _TIF_GRSEC_SETXID)
+ #define _TIF_SYSCALL_WORK (_TIF_SYSCALL_TRACE | _TIF_SYSCALL_AUDIT | \
+-                         _TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP)
++                         _TIF_SYSCALL_TRACEPOINT | _TIF_SECCOMP | _TIF_GRSEC_SETXID)
  
  /*
   * Change these and you break ASM code in entry-common.S
+diff --git a/arch/arm/include/asm/tlbflush.h b/arch/arm/include/asm/tlbflush.h
+index 6e924d3..a9f3ddf 100644
+--- a/arch/arm/include/asm/tlbflush.h
++++ b/arch/arm/include/asm/tlbflush.h
+@@ -430,6 +430,21 @@ static inline void local_flush_tlb_kernel_page(unsigned long kaddr)
+       }
+ }
++#ifdef CONFIG_ARM_ERRATA_798181
++static inline void dummy_flush_tlb_a15_erratum(void)
++{
++      /*
++       * Dummy TLBIMVAIS. Using the unmapped address 0 and ASID 0.
++       */
++      asm("mcr p15, 0, %0, c8, c3, 1" : : "r" (0));
++      dsb();
++}
++#else
++static inline void dummy_flush_tlb_a15_erratum(void)
++{
++}
++#endif
++
+ /*
+  *    flush_pmd_entry
+  *
 diff --git a/arch/arm/include/asm/uaccess.h b/arch/arm/include/asm/uaccess.h
-index 7e1f760..f2c37b1 100644
+index 7e1f760..752fcb7 100644
 --- a/arch/arm/include/asm/uaccess.h
 +++ b/arch/arm/include/asm/uaccess.h
-@@ -418,8 +418,23 @@ do {                                                                      \
+@@ -18,6 +18,7 @@
+ #include <asm/domain.h>
+ #include <asm/unified.h>
+ #include <asm/compiler.h>
++#include <asm/pgtable.h>
+ #define VERIFY_READ 0
+ #define VERIFY_WRITE 1
+@@ -60,10 +61,34 @@ extern int __put_user_bad(void);
+ #define USER_DS               TASK_SIZE
+ #define get_fs()      (current_thread_info()->addr_limit)
++static inline void pax_open_userland(void)
++{
++
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++      if (get_fs() == USER_DS) {
++              BUG_ON(test_domain(DOMAIN_USER, DOMAIN_UDEREF));
++              modify_domain(DOMAIN_USER, DOMAIN_UDEREF);
++      }
++#endif
++
++}
++
++static inline void pax_close_userland(void)
++{
++
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++      if (get_fs() == USER_DS) {
++              BUG_ON(test_domain(DOMAIN_USER, DOMAIN_NOACCESS));
++              modify_domain(DOMAIN_USER, DOMAIN_NOACCESS);
++      }
++#endif
++
++}
++
+ static inline void set_fs(mm_segment_t fs)
+ {
+       current_thread_info()->addr_limit = fs;
+-      modify_domain(DOMAIN_KERNEL, fs ? DOMAIN_CLIENT : DOMAIN_MANAGER);
++      modify_domain(DOMAIN_KERNEL, fs ? DOMAIN_KERNELCLIENT : DOMAIN_MANAGER);
+ }
+ #define segment_eq(a,b)       ((a) == (b))
+@@ -143,8 +168,12 @@ extern int __get_user_4(void *);
+ #define get_user(x,p)                                                 \
+       ({                                                              \
++              int __e;                                                \
+               might_fault();                                          \
+-              __get_user_check(x,p);                                  \
++              pax_open_userland();                                    \
++              __e = __get_user_check(x,p);                            \
++              pax_close_userland();                                   \
++              __e;                                                    \
+        })
+ extern int __put_user_1(void *, unsigned int);
+@@ -188,8 +217,12 @@ extern int __put_user_8(void *, unsigned long long);
+ #define put_user(x,p)                                                 \
+       ({                                                              \
++              int __e;                                                \
+               might_fault();                                          \
+-              __put_user_check(x,p);                                  \
++              pax_open_userland();                                    \
++              __e = __put_user_check(x,p);                            \
++              pax_close_userland();                                   \
++              __e;                                                    \
+        })
+ #else /* CONFIG_MMU */
+@@ -230,13 +263,17 @@ static inline void set_fs(mm_segment_t fs)
+ #define __get_user(x,ptr)                                             \
+ ({                                                                    \
+       long __gu_err = 0;                                              \
++      pax_open_userland();                                            \
+       __get_user_err((x),(ptr),__gu_err);                             \
++      pax_close_userland();                                           \
+       __gu_err;                                                       \
+ })
+ #define __get_user_error(x,ptr,err)                                   \
+ ({                                                                    \
++      pax_open_userland();                                            \
+       __get_user_err((x),(ptr),err);                                  \
++      pax_close_userland();                                           \
+       (void) 0;                                                       \
+ })
+@@ -312,13 +349,17 @@ do {                                                                     \
+ #define __put_user(x,ptr)                                             \
+ ({                                                                    \
+       long __pu_err = 0;                                              \
++      pax_open_userland();                                            \
+       __put_user_err((x),(ptr),__pu_err);                             \
++      pax_close_userland();                                           \
+       __pu_err;                                                       \
+ })
+ #define __put_user_error(x,ptr,err)                                   \
+ ({                                                                    \
++      pax_open_userland();                                            \
+       __put_user_err((x),(ptr),err);                                  \
++      pax_close_userland();                                           \
+       (void) 0;                                                       \
+ })
+@@ -418,11 +459,44 @@ do {                                                                     \
  
  
  #ifdef CONFIG_MMU
@@ -1873,22 +2356,44 @@ index 7e1f760..f2c37b1 100644
 +
 +static inline unsigned long __must_check __copy_from_user(void *to, const void __user *from, unsigned long n)
 +{
-+      check_object_size(to, n, false);
++      unsigned long ret;
 +
-+      return ___copy_from_user(to, from, n);
++      check_object_size(to, n, false);
++      pax_open_userland();
++      ret = ___copy_from_user(to, from, n);
++      pax_close_userland();
++      return ret;
 +}
 +
 +static inline unsigned long __must_check __copy_to_user(void __user *to, const void *from, unsigned long n)
 +{
-+      check_object_size(from, n, true);
++      unsigned long ret;
 +
-+      return ___copy_to_user(to, from, n);
++      check_object_size(from, n, true);
++      pax_open_userland();
++      ret = ___copy_to_user(to, from, n);
++      pax_close_userland();
++      return ret;
 +}
 +
  extern unsigned long __must_check __copy_to_user_std(void __user *to, const void *from, unsigned long n);
- extern unsigned long __must_check __clear_user(void __user *addr, unsigned long n);
+-extern unsigned long __must_check __clear_user(void __user *addr, unsigned long n);
++extern unsigned long __must_check ___clear_user(void __user *addr, unsigned long n);
  extern unsigned long __must_check __clear_user_std(void __user *addr, unsigned long n);
-@@ -431,6 +446,9 @@ extern unsigned long __must_check __clear_user_std(void __user *addr, unsigned l
++
++static inline unsigned long __must_check __clear_user(void __user *addr, unsigned long n)
++{
++      unsigned long ret;
++      pax_open_userland();
++      ret = ___clear_user(addr, n);
++      pax_close_userland();
++      return ret;
++}
++
+ #else
+ #define __copy_from_user(to,from,n)   (memcpy(to, (void __force *)from, n), 0)
+ #define __copy_to_user(to,from,n)     (memcpy((void __force *)to, from, n), 0)
+@@ -431,6 +505,9 @@ extern unsigned long __must_check __clear_user_std(void __user *addr, unsigned l
  
  static inline unsigned long __must_check copy_from_user(void *to, const void __user *from, unsigned long n)
  {
@@ -1898,7 +2403,7 @@ index 7e1f760..f2c37b1 100644
        if (access_ok(VERIFY_READ, from, n))
                n = __copy_from_user(to, from, n);
        else /* security hole - plug it */
-@@ -440,6 +458,9 @@ static inline unsigned long __must_check copy_from_user(void *to, const void __u
+@@ -440,6 +517,9 @@ static inline unsigned long __must_check copy_from_user(void *to, const void __u
  
  static inline unsigned long __must_check copy_to_user(void __user *to, const void *from, unsigned long n)
  {
@@ -1922,22 +2427,380 @@ index 96ee092..37f1844 100644
  #define PSR_ENDIAN_MASK       0x00000200      /* Endianness state mask */
  
 diff --git a/arch/arm/kernel/armksyms.c b/arch/arm/kernel/armksyms.c
-index 60d3b73..9168db0 100644
+index 60d3b73..d27ee09 100644
 --- a/arch/arm/kernel/armksyms.c
 +++ b/arch/arm/kernel/armksyms.c
-@@ -89,8 +89,8 @@ EXPORT_SYMBOL(__memzero);
+@@ -89,9 +89,9 @@ EXPORT_SYMBOL(__memzero);
  #ifdef CONFIG_MMU
  EXPORT_SYMBOL(copy_page);
  
 -EXPORT_SYMBOL(__copy_from_user);
 -EXPORT_SYMBOL(__copy_to_user);
+-EXPORT_SYMBOL(__clear_user);
 +EXPORT_SYMBOL(___copy_from_user);
 +EXPORT_SYMBOL(___copy_to_user);
- EXPORT_SYMBOL(__clear_user);
++EXPORT_SYMBOL(___clear_user);
  
  EXPORT_SYMBOL(__get_user_1);
+ EXPORT_SYMBOL(__get_user_2);
+diff --git a/arch/arm/kernel/entry-armv.S b/arch/arm/kernel/entry-armv.S
+index 0f82098..3dbd3ee 100644
+--- a/arch/arm/kernel/entry-armv.S
++++ b/arch/arm/kernel/entry-armv.S
+@@ -47,6 +47,87 @@
+ 9997:
+       .endm
++      .macro  pax_enter_kernel
++#if defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
++      @ make aligned space for saved DACR
++      sub     sp, sp, #8
++      @ save regs
++      stmdb   sp!, {r1, r2}
++      @ read DACR from cpu_domain into r1
++      mov     r2, sp
++      @ assume 8K pages, since we have to split the immediate in two
++      bic     r2, r2, #(0x1fc0)
++      bic     r2, r2, #(0x3f)
++      ldr     r1, [r2, #TI_CPU_DOMAIN]
++      @ store old DACR on stack 
++      str     r1, [sp, #8]
++#ifdef CONFIG_PAX_KERNEXEC
++      @ set type of DOMAIN_KERNEL to DOMAIN_KERNELCLIENT
++      bic     r1, r1, #(domain_val(DOMAIN_KERNEL, 3))
++      orr     r1, r1, #(domain_val(DOMAIN_KERNEL, DOMAIN_KERNELCLIENT))
++#endif
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++      @ set current DOMAIN_USER to DOMAIN_NOACCESS
++      bic     r1, r1, #(domain_val(DOMAIN_USER, 3))
++#endif
++      @ write r1 to current_thread_info()->cpu_domain
++      str     r1, [r2, #TI_CPU_DOMAIN]
++      @ write r1 to DACR
++      mcr     p15, 0, r1, c3, c0, 0
++      @ instruction sync
++      instr_sync
++      @ restore regs
++      ldmia   sp!, {r1, r2}
++#endif
++      .endm
++
++      .macro  pax_open_userland
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++      @ save regs
++      stmdb   sp!, {r0, r1}
++      @ read DACR from cpu_domain into r1
++      mov     r0, sp
++      @ assume 8K pages, since we have to split the immediate in two
++      bic     r0, r0, #(0x1fc0)
++      bic     r0, r0, #(0x3f)
++      ldr     r1, [r0, #TI_CPU_DOMAIN]
++      @ set current DOMAIN_USER to DOMAIN_CLIENT
++      bic     r1, r1, #(domain_val(DOMAIN_USER, 3))
++      orr     r1, r1, #(domain_val(DOMAIN_USER, DOMAIN_UDEREF))
++      @ write r1 to current_thread_info()->cpu_domain
++      str     r1, [r0, #TI_CPU_DOMAIN]
++      @ write r1 to DACR
++      mcr     p15, 0, r1, c3, c0, 0
++      @ instruction sync
++      instr_sync
++      @ restore regs
++      ldmia   sp!, {r0, r1}
++#endif
++      .endm
++
++      .macro  pax_close_userland
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++      @ save regs
++      stmdb   sp!, {r0, r1}
++      @ read DACR from cpu_domain into r1
++      mov     r0, sp
++      @ assume 8K pages, since we have to split the immediate in two
++      bic     r0, r0, #(0x1fc0)
++      bic     r0, r0, #(0x3f)
++      ldr     r1, [r0, #TI_CPU_DOMAIN]
++      @ set current DOMAIN_USER to DOMAIN_NOACCESS
++      bic     r1, r1, #(domain_val(DOMAIN_USER, 3))
++      @ write r1 to current_thread_info()->cpu_domain
++      str     r1, [r0, #TI_CPU_DOMAIN]
++      @ write r1 to DACR
++      mcr     p15, 0, r1, c3, c0, 0
++      @ instruction sync
++      instr_sync
++      @ restore regs
++      ldmia   sp!, {r0, r1}
++#endif
++      .endm
++
+       .macro  pabt_helper
+       @ PABORT handler takes pt_regs in r2, fault address in r4 and psr in r5
+ #ifdef MULTI_PABORT
+@@ -89,11 +170,15 @@
+  * Invalid mode handlers
+  */
+       .macro  inv_entry, reason
++
++      pax_enter_kernel
++
+       sub     sp, sp, #S_FRAME_SIZE
+  ARM( stmib   sp, {r1 - lr}           )
+  THUMB(       stmia   sp, {r0 - r12}          )
+  THUMB(       str     sp, [sp, #S_SP]         )
+  THUMB(       str     lr, [sp, #S_LR]         )
++
+       mov     r1, #\reason
+       .endm
+@@ -149,7 +234,11 @@ ENDPROC(__und_invalid)
+       .macro  svc_entry, stack_hole=0
+  UNWIND(.fnstart              )
+  UNWIND(.save {r0 - pc}               )
++
++      pax_enter_kernel
++
+       sub     sp, sp, #(S_FRAME_SIZE + \stack_hole - 4)
++
+ #ifdef CONFIG_THUMB2_KERNEL
+  SPFIX(       str     r0, [sp]        )       @ temporarily saved
+  SPFIX(       mov     r0, sp          )
+@@ -164,7 +253,12 @@ ENDPROC(__und_invalid)
+       ldmia   r0, {r3 - r5}
+       add     r7, sp, #S_SP - 4       @ here for interlock avoidance
+       mov     r6, #-1                 @  ""  ""      ""       ""
++#if defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
++      @ offset sp by 8 as done in pax_enter_kernel
++      add     r2, sp, #(S_FRAME_SIZE + \stack_hole + 4)
++#else
+       add     r2, sp, #(S_FRAME_SIZE + \stack_hole - 4)
++#endif
+  SPFIX(       addeq   r2, r2, #4      )
+       str     r3, [sp, #-4]!          @ save the "real" r0 copied
+                                       @ from the exception stack
+@@ -359,6 +453,9 @@ ENDPROC(__pabt_svc)
+       .macro  usr_entry
+  UNWIND(.fnstart      )
+  UNWIND(.cantunwind   )       @ don't unwind the user space
++
++      pax_enter_kernel_user
++
+       sub     sp, sp, #S_FRAME_SIZE
+  ARM( stmib   sp, {r1 - r12}  )
+  THUMB(       stmia   sp, {r0 - r12}  )
+@@ -456,7 +553,9 @@ __und_usr:
+       tst     r3, #PSR_T_BIT                  @ Thumb mode?
+       bne     __und_usr_thumb
+       sub     r4, r2, #4                      @ ARM instr at LR - 4
++      pax_open_userland
+ 1:    ldrt    r0, [r4]
++      pax_close_userland
+ #ifdef CONFIG_CPU_ENDIAN_BE8
+       rev     r0, r0                          @ little endian instruction
+ #endif
+@@ -491,10 +590,14 @@ __und_usr_thumb:
+  */
+       .arch   armv6t2
+ #endif
++      pax_open_userland
+ 2:    ldrht   r5, [r4]
++      pax_close_userland
+       cmp     r5, #0xe800                     @ 32bit instruction if xx != 0
+       blo     __und_usr_fault_16              @ 16bit undefined instruction
++      pax_open_userland
+ 3:    ldrht   r0, [r2]
++      pax_close_userland
+       add     r2, r2, #2                      @ r2 is PC + 2, make it PC + 4
+       str     r2, [sp, #S_PC]                 @ it's a 2x16bit instr, update
+       orr     r0, r0, r5, lsl #16
+@@ -733,7 +836,7 @@ ENTRY(__switch_to)
+  THUMB(       stmia   ip!, {r4 - sl, fp}         )    @ Store most regs on stack
+  THUMB(       str     sp, [ip], #4               )
+  THUMB(       str     lr, [ip], #4               )
+-#ifdef CONFIG_CPU_USE_DOMAINS
++#if defined(CONFIG_CPU_USE_DOMAINS) || defined(CONFIG_PAX_KERNEXEC)
+       ldr     r6, [r2, #TI_CPU_DOMAIN]
+ #endif
+       set_tls r3, r4, r5
+@@ -742,7 +845,7 @@ ENTRY(__switch_to)
+       ldr     r8, =__stack_chk_guard
+       ldr     r7, [r7, #TSK_STACK_CANARY]
+ #endif
+-#ifdef CONFIG_CPU_USE_DOMAINS
++#if defined(CONFIG_CPU_USE_DOMAINS) || defined(CONFIG_PAX_KERNEXEC)
+       mcr     p15, 0, r6, c3, c0, 0           @ Set domain register
+ #endif
+       mov     r5, r0
+diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S
+index a6c301e..908821b 100644
+--- a/arch/arm/kernel/entry-common.S
++++ b/arch/arm/kernel/entry-common.S
+@@ -10,18 +10,46 @@
+ #include <asm/unistd.h>
+ #include <asm/ftrace.h>
++#include <asm/domain.h>
+ #include <asm/unwind.h>
++#include "entry-header.S"
++
+ #ifdef CONFIG_NEED_RET_TO_USER
+ #include <mach/entry-macro.S>
+ #else
+       .macro  arch_ret_to_user, tmp1, tmp2
++#if defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
++      @ save regs
++      stmdb   sp!, {r1, r2}
++        @ read DACR from cpu_domain into r1
++        mov     r2, sp
++        @ assume 8K pages, since we have to split the immediate in two
++        bic     r2, r2, #(0x1fc0)
++        bic     r2, r2, #(0x3f)
++        ldr     r1, [r2, #TI_CPU_DOMAIN]
++#ifdef CONFIG_PAX_KERNEXEC
++        @ set type of DOMAIN_KERNEL to DOMAIN_KERNELCLIENT
++        bic     r1, r1, #(domain_val(DOMAIN_KERNEL, 3))
++        orr     r1, r1, #(domain_val(DOMAIN_KERNEL, DOMAIN_KERNELCLIENT))
++#endif
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++        @ set current DOMAIN_USER to DOMAIN_UDEREF
++        bic     r1, r1, #(domain_val(DOMAIN_USER, 3))
++        orr     r1, r1, #(domain_val(DOMAIN_USER, DOMAIN_UDEREF))
++#endif
++        @ write r1 to current_thread_info()->cpu_domain
++        str     r1, [r2, #TI_CPU_DOMAIN]
++        @ write r1 to DACR
++        mcr     p15, 0, r1, c3, c0, 0
++        @ instruction sync
++        instr_sync
++      @ restore regs
++      ldmia   sp!, {r1, r2}
++#endif
+       .endm
+ #endif
+-#include "entry-header.S"
+-
+-
+       .align  5
+ /*
+  * This is the fast syscall return path.  We do as little as
+@@ -339,6 +367,7 @@ ENDPROC(ftrace_stub)
+       .align  5
+ ENTRY(vector_swi)
++
+       sub     sp, sp, #S_FRAME_SIZE
+       stmia   sp, {r0 - r12}                  @ Calling r0 - r12
+  ARM( add     r8, sp, #S_PC           )
+@@ -388,6 +417,12 @@ ENTRY(vector_swi)
+       ldr     scno, [lr, #-4]                 @ get SWI instruction
+ #endif
++      /*
++       * do this here to avoid a performance hit of wrapping the code above
++       * that directly dereferences userland to parse the SWI instruction
++       */
++      pax_enter_kernel_user
++
+ #ifdef CONFIG_ALIGNMENT_TRAP
+       ldr     ip, __cr_alignment
+       ldr     ip, [ip]
+diff --git a/arch/arm/kernel/entry-header.S b/arch/arm/kernel/entry-header.S
+index 9a8531e..812e287 100644
+--- a/arch/arm/kernel/entry-header.S
++++ b/arch/arm/kernel/entry-header.S
+@@ -73,9 +73,66 @@
+       msr     cpsr_c, \rtemp                  @ switch back to the SVC mode
+       .endm
++      .macro  pax_enter_kernel_user
++#if defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
++      @ save regs
++      stmdb   sp!, {r0, r1}
++      @ read DACR from cpu_domain into r1
++      mov     r0, sp
++      @ assume 8K pages, since we have to split the immediate in two
++      bic     r0, r0, #(0x1fc0)
++      bic     r0, r0, #(0x3f)
++      ldr     r1, [r0, #TI_CPU_DOMAIN]
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++      @ set current DOMAIN_USER to DOMAIN_NOACCESS
++      bic     r1, r1, #(domain_val(DOMAIN_USER, 3))
++#endif
++#ifdef CONFIG_PAX_KERNEXEC
++      @ set current DOMAIN_KERNEL to DOMAIN_KERNELCLIENT
++      bic     r1, r1, #(domain_val(DOMAIN_KERNEL, 3))
++      orr     r1, r1, #(domain_val(DOMAIN_KERNEL, DOMAIN_KERNELCLIENT))
++#endif
++      @ write r1 to current_thread_info()->cpu_domain
++      str     r1, [r0, #TI_CPU_DOMAIN]
++      @ write r1 to DACR
++      mcr     p15, 0, r1, c3, c0, 0
++      @ instruction sync
++      instr_sync
++      @ restore regs
++      ldmia   sp!, {r0, r1}
++#endif
++      .endm
++
++      .macro  pax_exit_kernel
++#if defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
++      @ save regs
++      stmdb   sp!, {r0, r1}
++      @ read old DACR from stack into r1
++      ldr     r1, [sp, #(8 + S_SP)]
++      sub     r1, r1, #8
++      ldr     r1, [r1]
++
++      @ write r1 to current_thread_info()->cpu_domain
++      mov     r0, sp
++      @ assume 8K pages, since we have to split the immediate in two
++      bic     r0, r0, #(0x1fc0)
++      bic     r0, r0, #(0x3f)
++      str     r1, [r0, #TI_CPU_DOMAIN]
++      @ write r1 to DACR
++      mcr     p15, 0, r1, c3, c0, 0
++      @ instruction sync
++      instr_sync
++      @ restore regs
++      ldmia   sp!, {r0, r1}
++#endif
++      .endm
++
+ #ifndef CONFIG_THUMB2_KERNEL
+       .macro  svc_exit, rpsr
+       msr     spsr_cxsf, \rpsr
++
++      pax_exit_kernel
++
+ #if defined(CONFIG_CPU_V6)
+       ldr     r0, [sp]
+       strex   r1, r2, [sp]                    @ clear the exclusive monitor
+@@ -121,6 +178,9 @@
+       .endm
+ #else /* CONFIG_THUMB2_KERNEL */
+       .macro  svc_exit, rpsr
++
++      pax_exit_kernel
++
+       ldr     lr, [sp, #S_SP]                 @ top of the stack
+       ldrd    r0, r1, [sp, #S_LR]             @ calling lr and pc
+       clrex                                   @ clear the exclusive monitor
+diff --git a/arch/arm/kernel/fiq.c b/arch/arm/kernel/fiq.c
+index 2adda11..7fbe958 100644
+--- a/arch/arm/kernel/fiq.c
++++ b/arch/arm/kernel/fiq.c
+@@ -82,7 +82,9 @@ void set_fiq_handler(void *start, unsigned int length)
+ #if defined(CONFIG_CPU_USE_DOMAINS)
+       memcpy((void *)0xffff001c, start, length);
+ #else
++      pax_open_kernel();
+       memcpy(vectors_page + 0x1c, start, length);
++      pax_close_kernel();
+ #endif
+       flush_icache_range(0xffff001c, 0xffff001c + length);
+       if (!vectors_high())
 diff --git a/arch/arm/kernel/head.S b/arch/arm/kernel/head.S
-index 486a15a..d95523a 100644
+index e0eb9a1..caee108 100644
 --- a/arch/arm/kernel/head.S
 +++ b/arch/arm/kernel/head.S
 @@ -52,7 +52,9 @@
@@ -1951,6 +2814,37 @@ index 486a15a..d95523a 100644
        .endm
  
  /*
+@@ -267,7 +269,7 @@ __create_page_tables:
+       addne   r6, r6, #1 << SECTION_SHIFT
+       strne   r6, [r3]
+-#if defined(CONFIG_LPAE) && defined(CONFIG_CPU_ENDIAN_BE8)
++#if defined(CONFIG_ARM_LPAE) && defined(CONFIG_CPU_ENDIAN_BE8)
+       sub     r4, r4, #4                      @ Fixup page table pointer
+                                               @ for 64-bit descriptors
+ #endif
+@@ -434,7 +436,7 @@ __enable_mmu:
+       mov     r5, #(domain_val(DOMAIN_USER, DOMAIN_MANAGER) | \
+                     domain_val(DOMAIN_KERNEL, DOMAIN_MANAGER) | \
+                     domain_val(DOMAIN_TABLE, DOMAIN_MANAGER) | \
+-                    domain_val(DOMAIN_IO, DOMAIN_CLIENT))
++                    domain_val(DOMAIN_IO, DOMAIN_KERNELCLIENT))
+       mcr     p15, 0, r5, c3, c0, 0           @ load domain access register
+       mcr     p15, 0, r4, c2, c0, 0           @ load page table pointer
+ #endif
+diff --git a/arch/arm/kernel/hw_breakpoint.c b/arch/arm/kernel/hw_breakpoint.c
+index 5ff2e77..556d030 100644
+--- a/arch/arm/kernel/hw_breakpoint.c
++++ b/arch/arm/kernel/hw_breakpoint.c
+@@ -1011,7 +1011,7 @@ static int __cpuinit dbg_reset_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata dbg_reset_nb = {
++static struct notifier_block dbg_reset_nb = {
+       .notifier_call = dbg_reset_notify,
+ };
 diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c
 index 1e9be5d..03edbc2 100644
 --- a/arch/arm/kernel/module.c
@@ -1995,8 +2889,41 @@ index 1e9be5d..03edbc2 100644
  #endif
  
  int
+diff --git a/arch/arm/kernel/patch.c b/arch/arm/kernel/patch.c
+index 07314af..c46655c 100644
+--- a/arch/arm/kernel/patch.c
++++ b/arch/arm/kernel/patch.c
+@@ -18,6 +18,7 @@ void __kprobes __patch_text(void *addr, unsigned int insn)
+       bool thumb2 = IS_ENABLED(CONFIG_THUMB2_KERNEL);
+       int size;
++      pax_open_kernel();
+       if (thumb2 && __opcode_is_thumb16(insn)) {
+               *(u16 *)addr = __opcode_to_mem_thumb16(insn);
+               size = sizeof(u16);
+@@ -39,6 +40,7 @@ void __kprobes __patch_text(void *addr, unsigned int insn)
+               *(u32 *)addr = insn;
+               size = sizeof(u32);
+       }
++      pax_close_kernel();
+       flush_icache_range((uintptr_t)(addr),
+                          (uintptr_t)(addr) + size);
+diff --git a/arch/arm/kernel/perf_event_cpu.c b/arch/arm/kernel/perf_event_cpu.c
+index 5f66206..dce492f 100644
+--- a/arch/arm/kernel/perf_event_cpu.c
++++ b/arch/arm/kernel/perf_event_cpu.c
+@@ -171,7 +171,7 @@ static int __cpuinit cpu_pmu_notify(struct notifier_block *b,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata cpu_pmu_hotplug_notifier = {
++static struct notifier_block cpu_pmu_hotplug_notifier = {
+       .notifier_call = cpu_pmu_notify,
+ };
 diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c
-index 90084a6..a8b26bc 100644
+index c6dec5f..e0fddd1 100644
 --- a/arch/arm/kernel/process.c
 +++ b/arch/arm/kernel/process.c
 @@ -28,7 +28,6 @@
@@ -2030,7 +2957,7 @@ index 90084a6..a8b26bc 100644
        printk("pc : [<%08lx>]    lr : [<%08lx>]    psr: %08lx\n"
               "sp : %08lx  ip : %08lx  fp : %08lx\n",
                regs->ARM_pc, regs->ARM_lr, regs->ARM_cpsr,
-@@ -451,12 +451,6 @@ unsigned long get_wchan(struct task_struct *p)
+@@ -452,12 +452,6 @@ unsigned long get_wchan(struct task_struct *p)
        return 0;
  }
  
@@ -2043,23 +2970,32 @@ index 90084a6..a8b26bc 100644
  #ifdef CONFIG_MMU
  /*
   * The vectors page is always readable from user space for the
+@@ -470,9 +464,8 @@ static int __init gate_vma_init(void)
+ {
+       gate_vma.vm_start       = 0xffff0000;
+       gate_vma.vm_end         = 0xffff0000 + PAGE_SIZE;
+-      gate_vma.vm_page_prot   = PAGE_READONLY_EXEC;
+-      gate_vma.vm_flags       = VM_READ | VM_EXEC |
+-                                VM_MAYREAD | VM_MAYEXEC;
++      gate_vma.vm_flags       = VM_NONE;
++      gate_vma.vm_page_prot   = vm_get_page_prot(gate_vma.vm_flags);
+       return 0;
+ }
+ arch_initcall(gate_vma_init);
 diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c
-index 739db3a..7f4a272 100644
+index 03deeff..741ce88 100644
 --- a/arch/arm/kernel/ptrace.c
 +++ b/arch/arm/kernel/ptrace.c
-@@ -916,6 +916,10 @@ enum ptrace_syscall_dir {
-       PTRACE_SYSCALL_EXIT,
- };
+@@ -937,10 +937,19 @@ static int tracehook_report_syscall(struct pt_regs *regs,
+       return current_thread_info()->syscall;
+ }
  
 +#ifdef CONFIG_GRKERNSEC_SETXID
 +extern void gr_delayed_cred_worker(void);
 +#endif
 +
- static int ptrace_syscall_trace(struct pt_regs *regs, int scno,
-                               enum ptrace_syscall_dir dir)
+ asmlinkage int syscall_trace_enter(struct pt_regs *regs, int scno)
  {
-@@ -923,6 +927,11 @@ static int ptrace_syscall_trace(struct pt_regs *regs, int scno,
        current_thread_info()->syscall = scno;
  
 +#ifdef CONFIG_GRKERNSEC_SETXID
@@ -2067,11 +3003,11 @@ index 739db3a..7f4a272 100644
 +              gr_delayed_cred_worker();
 +#endif
 +
-       if (!test_thread_flag(TIF_SYSCALL_TRACE))
-               return scno;
+       /* Do the secure computing check first; failures should be fast. */
+       if (secure_computing(scno) == -1)
+               return -1;
 diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
-index da1d1aa..ef9bc58 100644
+index 3f6cbb2..39305c7 100644
 --- a/arch/arm/kernel/setup.c
 +++ b/arch/arm/kernel/setup.c
 @@ -97,21 +97,23 @@ EXPORT_SYMBOL(system_serial_high);
@@ -2119,7 +3055,7 @@ index da1d1aa..ef9bc58 100644
                         (mmfr0 & 0x000000f0) == 0x00000020)
                        cpu_arch = CPU_ARCH_ARMv6;
                else
-@@ -455,7 +461,7 @@ static void __init setup_processor(void)
+@@ -462,7 +468,7 @@ static void __init setup_processor(void)
        __cpu_architecture = __get_cpu_architecture();
  
  #ifdef MULTI_CPU
@@ -2128,8 +3064,51 @@ index da1d1aa..ef9bc58 100644
  #endif
  #ifdef MULTI_TLB
        cpu_tlb = *list->tlb;
+@@ -524,7 +530,7 @@ int __init arm_add_memory(phys_addr_t start, phys_addr_t size)
+       size -= start & ~PAGE_MASK;
+       bank->start = PAGE_ALIGN(start);
+-#ifndef CONFIG_LPAE
++#ifndef CONFIG_ARM_LPAE
+       if (bank->start + size < bank->start) {
+               printk(KERN_CRIT "Truncating memory at 0x%08llx to fit in "
+                       "32-bit physical address space\n", (long long)start);
+diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
+index 56f72d2..6924200 100644
+--- a/arch/arm/kernel/signal.c
++++ b/arch/arm/kernel/signal.c
+@@ -433,22 +433,14 @@ setup_return(struct pt_regs *regs, struct k_sigaction *ka,
+                   __put_user(sigreturn_codes[idx+1], rc+1))
+                       return 1;
+-              if (cpsr & MODE32_BIT) {
+-                      /*
+-                       * 32-bit code can use the new high-page
+-                       * signal return code support.
+-                       */
+-                      retcode = KERN_SIGRETURN_CODE + (idx << 2) + thumb;
+-              } else {
+-                      /*
+-                       * Ensure that the instruction cache sees
+-                       * the return code written onto the stack.
+-                       */
+-                      flush_icache_range((unsigned long)rc,
+-                                         (unsigned long)(rc + 2));
++              /*
++               * Ensure that the instruction cache sees
++               * the return code written onto the stack.
++               */
++              flush_icache_range((unsigned long)rc,
++                                 (unsigned long)(rc + 2));
+-                      retcode = ((unsigned long)rc) + thumb;
+-              }
++              retcode = ((unsigned long)rc) + thumb;
+       }
+       regs->ARM_r0 = usig;
 diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c
-index fbc8b26..000ded0 100644
+index 58af91c..343ce99 100644
 --- a/arch/arm/kernel/smp.c
 +++ b/arch/arm/kernel/smp.c
 @@ -70,7 +70,7 @@ enum ipi_msg_type {
@@ -2141,8 +3120,132 @@ index fbc8b26..000ded0 100644
  
  void __init smp_set_ops(struct smp_operations *ops)
  {
+diff --git a/arch/arm/kernel/smp_tlb.c b/arch/arm/kernel/smp_tlb.c
+index 02c5d2c..e5695ad 100644
+--- a/arch/arm/kernel/smp_tlb.c
++++ b/arch/arm/kernel/smp_tlb.c
+@@ -12,6 +12,7 @@
+ #include <asm/smp_plat.h>
+ #include <asm/tlbflush.h>
++#include <asm/mmu_context.h>
+ /**********************************************************************/
+@@ -64,12 +65,72 @@ static inline void ipi_flush_tlb_kernel_range(void *arg)
+       local_flush_tlb_kernel_range(ta->ta_start, ta->ta_end);
+ }
++#ifdef CONFIG_ARM_ERRATA_798181
++static int erratum_a15_798181(void)
++{
++      unsigned int midr = read_cpuid_id();
++
++      /* Cortex-A15 r0p0..r3p2 affected */
++      if ((midr & 0xff0ffff0) != 0x410fc0f0 || midr > 0x413fc0f2)
++              return 0;
++      return 1;
++}
++#else
++static int erratum_a15_798181(void)
++{
++      return 0;
++}
++#endif
++
++static void ipi_flush_tlb_a15_erratum(void *arg)
++{
++      dmb();
++}
++
++static void broadcast_tlb_a15_erratum(void)
++{
++      if (!erratum_a15_798181())
++              return;
++
++      dummy_flush_tlb_a15_erratum();
++      smp_call_function_many(cpu_online_mask, ipi_flush_tlb_a15_erratum,
++                             NULL, 1);
++}
++
++static void broadcast_tlb_mm_a15_erratum(struct mm_struct *mm)
++{
++      int cpu;
++      cpumask_t mask = { CPU_BITS_NONE };
++
++      if (!erratum_a15_798181())
++              return;
++
++      dummy_flush_tlb_a15_erratum();
++      for_each_online_cpu(cpu) {
++              if (cpu == smp_processor_id())
++                      continue;
++              /*
++               * We only need to send an IPI if the other CPUs are running
++               * the same ASID as the one being invalidated. There is no
++               * need for locking around the active_asids check since the
++               * switch_mm() function has at least one dmb() (as required by
++               * this workaround) in case a context switch happens on
++               * another CPU after the condition below.
++               */
++              if (atomic64_read(&mm->context.id) ==
++                  atomic64_read(&per_cpu(active_asids, cpu)))
++                      cpumask_set_cpu(cpu, &mask);
++      }
++      smp_call_function_many(&mask, ipi_flush_tlb_a15_erratum, NULL, 1);
++}
++
+ void flush_tlb_all(void)
+ {
+       if (tlb_ops_need_broadcast())
+               on_each_cpu(ipi_flush_tlb_all, NULL, 1);
+       else
+               local_flush_tlb_all();
++      broadcast_tlb_a15_erratum();
+ }
+ void flush_tlb_mm(struct mm_struct *mm)
+@@ -78,6 +139,7 @@ void flush_tlb_mm(struct mm_struct *mm)
+               on_each_cpu_mask(mm_cpumask(mm), ipi_flush_tlb_mm, mm, 1);
+       else
+               local_flush_tlb_mm(mm);
++      broadcast_tlb_mm_a15_erratum(mm);
+ }
+ void flush_tlb_page(struct vm_area_struct *vma, unsigned long uaddr)
+@@ -90,6 +152,7 @@ void flush_tlb_page(struct vm_area_struct *vma, unsigned long uaddr)
+                                       &ta, 1);
+       } else
+               local_flush_tlb_page(vma, uaddr);
++      broadcast_tlb_mm_a15_erratum(vma->vm_mm);
+ }
+ void flush_tlb_kernel_page(unsigned long kaddr)
+@@ -100,6 +163,7 @@ void flush_tlb_kernel_page(unsigned long kaddr)
+               on_each_cpu(ipi_flush_tlb_kernel_page, &ta, 1);
+       } else
+               local_flush_tlb_kernel_page(kaddr);
++      broadcast_tlb_a15_erratum();
+ }
+ void flush_tlb_range(struct vm_area_struct *vma,
+@@ -114,6 +178,7 @@ void flush_tlb_range(struct vm_area_struct *vma,
+                                       &ta, 1);
+       } else
+               local_flush_tlb_range(vma, start, end);
++      broadcast_tlb_mm_a15_erratum(vma->vm_mm);
+ }
+ void flush_tlb_kernel_range(unsigned long start, unsigned long end)
+@@ -125,5 +190,6 @@ void flush_tlb_kernel_range(unsigned long start, unsigned long end)
+               on_each_cpu(ipi_flush_tlb_kernel_range, &ta, 1);
+       } else
+               local_flush_tlb_kernel_range(start, end);
++      broadcast_tlb_a15_erratum();
+ }
 diff --git a/arch/arm/kernel/traps.c b/arch/arm/kernel/traps.c
-index b0179b8..7713948 100644
+index b0179b8..829510e 100644
 --- a/arch/arm/kernel/traps.c
 +++ b/arch/arm/kernel/traps.c
 @@ -57,7 +57,7 @@ static void dump_mem(const char *, const char *, unsigned long, unsigned long);
@@ -2173,8 +3276,37 @@ index b0179b8..7713948 100644
        if (signr)
                do_exit(signr);
  }
+@@ -601,7 +606,9 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs)
+                        * The user helper at 0xffff0fe0 must be used instead.
+                        * (see entry-armv.S for details)
+                        */
++                      pax_open_kernel();
+                       *((unsigned int *)0xffff0ff0) = regs->ARM_r0;
++                      pax_close_kernel();
+               }
+               return 0;
+@@ -841,13 +848,10 @@ void __init early_trap_init(void *vectors_base)
+        */
+       kuser_get_tls_init(vectors);
+-      /*
+-       * Copy signal return handlers into the vector page, and
+-       * set sigreturn to be a pointer to these.
+-       */
+-      memcpy((void *)(vectors + KERN_SIGRETURN_CODE - CONFIG_VECTORS_BASE),
+-             sigreturn_codes, sizeof(sigreturn_codes));
+-
+       flush_icache_range(vectors, vectors + PAGE_SIZE);
+-      modify_domain(DOMAIN_USER, DOMAIN_CLIENT);
++
++#ifndef CONFIG_PAX_MEMORY_UDEREF
++      modify_domain(DOMAIN_USER, DOMAIN_USERCLIENT);
++#endif
++
+ }
 diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
-index 36ff15b..75d9e9d 100644
+index 11c1785..c67d54c 100644
 --- a/arch/arm/kernel/vmlinux.lds.S
 +++ b/arch/arm/kernel/vmlinux.lds.S
 @@ -8,7 +8,11 @@
@@ -2202,7 +3334,7 @@ index 36ff15b..75d9e9d 100644
        .text : {                       /* Real text segment            */
                _stext = .;             /* Text and read-only data      */
                        __exception_text_start = .;
-@@ -133,6 +142,10 @@ SECTIONS
+@@ -144,6 +153,10 @@ SECTIONS
  
        _etext = .;                     /* End of text and rodata section */
  
@@ -2213,7 +3345,7 @@ index 36ff15b..75d9e9d 100644
  #ifndef CONFIG_XIP_KERNEL
        . = ALIGN(PAGE_SIZE);
        __init_begin = .;
-@@ -192,6 +205,11 @@ SECTIONS
+@@ -203,6 +216,11 @@ SECTIONS
        . = PAGE_OFFSET + TEXT_OFFSET;
  #else
        __init_end = .;
@@ -2225,6 +3357,36 @@ index 36ff15b..75d9e9d 100644
        . = ALIGN(THREAD_SIZE);
        __data_loc = .;
  #endif
+diff --git a/arch/arm/lib/clear_user.S b/arch/arm/lib/clear_user.S
+index 14a0d98..7771a7d 100644
+--- a/arch/arm/lib/clear_user.S
++++ b/arch/arm/lib/clear_user.S
+@@ -12,14 +12,14 @@
+               .text
+-/* Prototype: int __clear_user(void *addr, size_t sz)
++/* Prototype: int ___clear_user(void *addr, size_t sz)
+  * Purpose  : clear some user memory
+  * Params   : addr - user memory address to clear
+  *          : sz   - number of bytes to clear
+  * Returns  : number of bytes NOT cleared
+  */
+ ENTRY(__clear_user_std)
+-WEAK(__clear_user)
++WEAK(___clear_user)
+               stmfd   sp!, {r1, lr}
+               mov     r2, #0
+               cmp     r1, #4
+@@ -44,7 +44,7 @@ WEAK(__clear_user)
+ USER(         strnebt r2, [r0])
+               mov     r0, #0
+               ldmfd   sp!, {r1, pc}
+-ENDPROC(__clear_user)
++ENDPROC(___clear_user)
+ ENDPROC(__clear_user_std)
+               .pushsection .fixup,"ax"
 diff --git a/arch/arm/lib/copy_from_user.S b/arch/arm/lib/copy_from_user.S
 index 66a477a..bee61d3 100644
 --- a/arch/arm/lib/copy_from_user.S
@@ -2291,11 +3453,26 @@ index d066df6..df28194 100644
  ENDPROC(__copy_to_user_std)
  
        .pushsection .fixup,"ax"
+diff --git a/arch/arm/lib/csumpartialcopyuser.S b/arch/arm/lib/csumpartialcopyuser.S
+index 7d08b43..f7ca7ea 100644
+--- a/arch/arm/lib/csumpartialcopyuser.S
++++ b/arch/arm/lib/csumpartialcopyuser.S
+@@ -57,8 +57,8 @@
+  *  Returns : r0 = checksum, [[sp, #0], #0] = 0 or -EFAULT
+  */
+-#define FN_ENTRY      ENTRY(csum_partial_copy_from_user)
+-#define FN_EXIT               ENDPROC(csum_partial_copy_from_user)
++#define FN_ENTRY      ENTRY(__csum_partial_copy_from_user)
++#define FN_EXIT               ENDPROC(__csum_partial_copy_from_user)
+ #include "csumpartialcopygeneric.S"
 diff --git a/arch/arm/lib/delay.c b/arch/arm/lib/delay.c
-index 0dc5385..45833ef 100644
+index 6b93f6a..1aa92d0 100644
 --- a/arch/arm/lib/delay.c
 +++ b/arch/arm/lib/delay.c
-@@ -28,12 +28,14 @@
+@@ -28,12 +28,15 @@
  /*
   * Default to the loop-based delay implementation.
   */
@@ -2304,6 +3481,7 @@ index 0dc5385..45833ef 100644
        .delay          = __loop_delay,
        .const_udelay   = __loop_const_udelay,
        .udelay         = __loop_udelay,
++      .const_clock    = false,
  };
  
 +struct arm_delay_ops *arm_delay_ops __read_only = &arm_loop_delay_ops;
@@ -2311,7 +3489,7 @@ index 0dc5385..45833ef 100644
  static const struct delay_timer *delay_timer;
  static bool delay_calibrated;
  
-@@ -67,6 +69,12 @@ static void __timer_udelay(unsigned long usecs)
+@@ -67,6 +70,13 @@ static void __timer_udelay(unsigned long usecs)
        __timer_const_udelay(usecs * UDELAY_MULT);
  }
  
@@ -2319,18 +3497,20 @@ index 0dc5385..45833ef 100644
 +      .delay          = __timer_delay,
 +      .const_udelay   = __timer_const_udelay,
 +      .udelay         = __timer_udelay,
++      .const_clock    = true,
 +};
 +
  void __init register_current_timer_delay(const struct delay_timer *timer)
  {
        if (!delay_calibrated) {
-@@ -74,9 +82,7 @@ void __init register_current_timer_delay(const struct delay_timer *timer)
+@@ -74,10 +84,7 @@ void __init register_current_timer_delay(const struct delay_timer *timer)
                delay_timer                     = timer;
                lpj_fine                        = timer->freq / HZ;
                loops_per_jiffy                 = lpj_fine;
 -              arm_delay_ops.delay             = __timer_delay;
 -              arm_delay_ops.const_udelay      = __timer_const_udelay;
 -              arm_delay_ops.udelay            = __timer_udelay;
+-              arm_delay_ops.const_clock       = true;
 +              arm_delay_ops                   = &arm_timer_delay_ops;
                delay_calibrated                = true;
        } else {
@@ -2349,7 +3529,7 @@ index 025f742..8432b08 100644
        /*
         * This test is stubbed out of the main function above to keep
 diff --git a/arch/arm/mach-kirkwood/common.c b/arch/arm/mach-kirkwood/common.c
-index 2c6c218..2b87c2d 100644
+index bac21a5..b67ef8e 100644
 --- a/arch/arm/mach-kirkwood/common.c
 +++ b/arch/arm/mach-kirkwood/common.c
 @@ -150,7 +150,16 @@ static void clk_gate_fn_disable(struct clk_hw *hw)
@@ -2386,10 +3566,10 @@ index 2c6c218..2b87c2d 100644
  
        if (IS_ERR(clk))
 diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c
-index d95f727..12f10dd 100644
+index 0abb30f..54064da 100644
 --- a/arch/arm/mach-omap2/board-n8x0.c
 +++ b/arch/arm/mach-omap2/board-n8x0.c
-@@ -589,7 +589,7 @@ static int n8x0_menelaus_late_init(struct device *dev)
+@@ -631,7 +631,7 @@ static int n8x0_menelaus_late_init(struct device *dev)
  }
  #endif
  
@@ -2398,14 +3578,117 @@ index d95f727..12f10dd 100644
        .late_init = n8x0_menelaus_late_init,
  };
  
+diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
+index 8033cb7..2f7cb62 100644
+--- a/arch/arm/mach-omap2/gpmc.c
++++ b/arch/arm/mach-omap2/gpmc.c
+@@ -139,7 +139,6 @@ struct omap3_gpmc_regs {
+ };
+ static struct gpmc_client_irq gpmc_client_irq[GPMC_NR_IRQ];
+-static struct irq_chip gpmc_irq_chip;
+ static unsigned gpmc_irq_start;
+ static struct resource        gpmc_mem_root;
+@@ -700,6 +699,18 @@ static void gpmc_irq_noop(struct irq_data *data) { }
+ static unsigned int gpmc_irq_noop_ret(struct irq_data *data) { return 0; }
++static struct irq_chip gpmc_irq_chip = {
++      .name = "gpmc",
++      .irq_startup = gpmc_irq_noop_ret,
++      .irq_enable = gpmc_irq_enable,
++      .irq_disable = gpmc_irq_disable,
++      .irq_shutdown = gpmc_irq_noop,
++      .irq_ack = gpmc_irq_noop,
++      .irq_mask = gpmc_irq_noop,
++      .irq_unmask = gpmc_irq_noop,
++
++};
++
+ static int gpmc_setup_irq(void)
+ {
+       int i;
+@@ -714,15 +725,6 @@ static int gpmc_setup_irq(void)
+               return gpmc_irq_start;
+       }
+-      gpmc_irq_chip.name = "gpmc";
+-      gpmc_irq_chip.irq_startup = gpmc_irq_noop_ret;
+-      gpmc_irq_chip.irq_enable = gpmc_irq_enable;
+-      gpmc_irq_chip.irq_disable = gpmc_irq_disable;
+-      gpmc_irq_chip.irq_shutdown = gpmc_irq_noop;
+-      gpmc_irq_chip.irq_ack = gpmc_irq_noop;
+-      gpmc_irq_chip.irq_mask = gpmc_irq_noop;
+-      gpmc_irq_chip.irq_unmask = gpmc_irq_noop;
+-
+       gpmc_client_irq[0].bitmask = GPMC_IRQ_FIFOEVENTENABLE;
+       gpmc_client_irq[1].bitmask = GPMC_IRQ_COUNT_EVENT;
+diff --git a/arch/arm/mach-omap2/omap-wakeupgen.c b/arch/arm/mach-omap2/omap-wakeupgen.c
+index 5d3b4f4..ddba3c0 100644
+--- a/arch/arm/mach-omap2/omap-wakeupgen.c
++++ b/arch/arm/mach-omap2/omap-wakeupgen.c
+@@ -340,7 +340,7 @@ static int __cpuinit irq_cpu_hotplug_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __refdata irq_hotplug_notifier = {
++static struct notifier_block irq_hotplug_notifier = {
+       .notifier_call = irq_cpu_hotplug_notify,
+ };
+diff --git a/arch/arm/mach-omap2/omap_device.c b/arch/arm/mach-omap2/omap_device.c
+index e065daa..7b1ad9b 100644
+--- a/arch/arm/mach-omap2/omap_device.c
++++ b/arch/arm/mach-omap2/omap_device.c
+@@ -686,7 +686,7 @@ void omap_device_delete(struct omap_device *od)
+  * passes along the return value of omap_device_build_ss().
+  */
+ struct platform_device __init *omap_device_build(const char *pdev_name, int pdev_id,
+-                                    struct omap_hwmod *oh, void *pdata,
++                                    struct omap_hwmod *oh, const void *pdata,
+                                     int pdata_len,
+                                     struct omap_device_pm_latency *pm_lats,
+                                     int pm_lats_cnt, int is_early_device)
+@@ -720,7 +720,7 @@ struct platform_device __init *omap_device_build(const char *pdev_name, int pdev
+  */
+ struct platform_device __init *omap_device_build_ss(const char *pdev_name, int pdev_id,
+                                        struct omap_hwmod **ohs, int oh_cnt,
+-                                       void *pdata, int pdata_len,
++                                       const void *pdata, int pdata_len,
+                                        struct omap_device_pm_latency *pm_lats,
+                                        int pm_lats_cnt, int is_early_device)
+ {
+diff --git a/arch/arm/mach-omap2/omap_device.h b/arch/arm/mach-omap2/omap_device.h
+index 0933c59..42b8e2d 100644
+--- a/arch/arm/mach-omap2/omap_device.h
++++ b/arch/arm/mach-omap2/omap_device.h
+@@ -91,14 +91,14 @@ int omap_device_shutdown(struct platform_device *pdev);
+ /* Core code interface */
+ struct platform_device *omap_device_build(const char *pdev_name, int pdev_id,
+-                                    struct omap_hwmod *oh, void *pdata,
++                                    struct omap_hwmod *oh, const void *pdata,
+                                     int pdata_len,
+                                     struct omap_device_pm_latency *pm_lats,
+                                     int pm_lats_cnt, int is_early_device);
+ struct platform_device *omap_device_build_ss(const char *pdev_name, int pdev_id,
+                                        struct omap_hwmod **oh, int oh_cnt,
+-                                       void *pdata, int pdata_len,
++                                       const void *pdata, int pdata_len,
+                                        struct omap_device_pm_latency *pm_lats,
+                                        int pm_lats_cnt, int is_early_device);
 diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
-index 87cc6d0..fd4f248 100644
+index 4653efb..8c60bf7 100644
 --- a/arch/arm/mach-omap2/omap_hwmod.c
 +++ b/arch/arm/mach-omap2/omap_hwmod.c
 @@ -189,10 +189,10 @@ struct omap_hwmod_soc_ops {
-       int (*is_hardreset_asserted)(struct omap_hwmod *oh,
-                                    struct omap_hwmod_rst_info *ohri);
        int (*init_clkdm)(struct omap_hwmod *oh);
+       void (*update_context_lost)(struct omap_hwmod *oh);
+       int (*get_context_lost)(struct omap_hwmod *oh);
 -};
 +} __no_const;
  
@@ -2415,8 +3698,161 @@ index 87cc6d0..fd4f248 100644
  
  /* omap_hwmod_list contains all registered struct omap_hwmods */
  static LIST_HEAD(omap_hwmod_list);
+diff --git a/arch/arm/mach-omap2/wd_timer.c b/arch/arm/mach-omap2/wd_timer.c
+index 7c2b4ed..b2ea51f 100644
+--- a/arch/arm/mach-omap2/wd_timer.c
++++ b/arch/arm/mach-omap2/wd_timer.c
+@@ -110,7 +110,9 @@ static int __init omap_init_wdt(void)
+       struct omap_hwmod *oh;
+       char *oh_name = "wd_timer2";
+       char *dev_name = "omap_wdt";
+-      struct omap_wd_timer_platform_data pdata;
++      static struct omap_wd_timer_platform_data pdata = {
++              .read_reset_sources = prm_read_reset_sources
++      };
+       if (!cpu_class_is_omap2() || of_have_populated_dt())
+               return 0;
+@@ -121,8 +123,6 @@ static int __init omap_init_wdt(void)
+               return -EINVAL;
+       }
+-      pdata.read_reset_sources = prm_read_reset_sources;
+-
+       pdev = omap_device_build(dev_name, id, oh, &pdata,
+                                sizeof(struct omap_wd_timer_platform_data),
+                                NULL, 0, 0);
+diff --git a/arch/arm/mach-ux500/include/mach/setup.h b/arch/arm/mach-ux500/include/mach/setup.h
+index 6be4c4d..32ac32a 100644
+--- a/arch/arm/mach-ux500/include/mach/setup.h
++++ b/arch/arm/mach-ux500/include/mach/setup.h
+@@ -38,13 +38,6 @@ extern struct sys_timer ux500_timer;
+       .type           = MT_DEVICE,            \
+ }
+-#define __MEM_DEV_DESC(x, sz) {               \
+-      .virtual        = IO_ADDRESS(x),        \
+-      .pfn            = __phys_to_pfn(x),     \
+-      .length         = sz,                   \
+-      .type           = MT_MEMORY,            \
+-}
+-
+ extern struct smp_operations ux500_smp_ops;
+ extern void ux500_cpu_die(unsigned int cpu);
+diff --git a/arch/arm/mm/Kconfig b/arch/arm/mm/Kconfig
+index 3fd629d..8b1aca9 100644
+--- a/arch/arm/mm/Kconfig
++++ b/arch/arm/mm/Kconfig
+@@ -425,7 +425,7 @@ config CPU_32v5
+ config CPU_32v6
+       bool
+-      select CPU_USE_DOMAINS if CPU_V6 && MMU
++      select CPU_USE_DOMAINS if CPU_V6 && MMU && !PAX_KERNEXEC
+       select TLS_REG_EMUL if !CPU_32v6K && !MMU
+ config CPU_32v6K
+@@ -577,6 +577,7 @@ config CPU_CP15_MPU
+ config CPU_USE_DOMAINS
+       bool
++      depends on !ARM_LPAE && !PAX_KERNEXEC
+       help
+         This option enables or disables the use of domain switching
+         via the set_fs() function.
+diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c
+index db26e2e..ee44569 100644
+--- a/arch/arm/mm/alignment.c
++++ b/arch/arm/mm/alignment.c
+@@ -211,10 +211,12 @@ union offset_union {
+ #define __get16_unaligned_check(ins,val,addr)                 \
+       do {                                                    \
+               unsigned int err = 0, v, a = addr;              \
++              pax_open_userland();                            \
+               __get8_unaligned_check(ins,v,a,err);            \
+               val =  v << ((BE) ? 8 : 0);                     \
+               __get8_unaligned_check(ins,v,a,err);            \
+               val |= v << ((BE) ? 0 : 8);                     \
++              pax_close_userland();                           \
+               if (err)                                        \
+                       goto fault;                             \
+       } while (0)
+@@ -228,6 +230,7 @@ union offset_union {
+ #define __get32_unaligned_check(ins,val,addr)                 \
+       do {                                                    \
+               unsigned int err = 0, v, a = addr;              \
++              pax_open_userland();                            \
+               __get8_unaligned_check(ins,v,a,err);            \
+               val =  v << ((BE) ? 24 :  0);                   \
+               __get8_unaligned_check(ins,v,a,err);            \
+@@ -236,6 +239,7 @@ union offset_union {
+               val |= v << ((BE) ?  8 : 16);                   \
+               __get8_unaligned_check(ins,v,a,err);            \
+               val |= v << ((BE) ?  0 : 24);                   \
++              pax_close_userland();                           \
+               if (err)                                        \
+                       goto fault;                             \
+       } while (0)
+@@ -249,6 +253,7 @@ union offset_union {
+ #define __put16_unaligned_check(ins,val,addr)                 \
+       do {                                                    \
+               unsigned int err = 0, v = val, a = addr;        \
++              pax_open_userland();                            \
+               __asm__( FIRST_BYTE_16                          \
+        ARM(   "1:     "ins"   %1, [%2], #1\n" )               \
+        THUMB( "1:     "ins"   %1, [%2]\n"     )               \
+@@ -268,6 +273,7 @@ union offset_union {
+               "       .popsection\n"                          \
+               : "=r" (err), "=&r" (v), "=&r" (a)              \
+               : "0" (err), "1" (v), "2" (a));                 \
++              pax_close_userland();                           \
+               if (err)                                        \
+                       goto fault;                             \
+       } while (0)
+@@ -281,6 +287,7 @@ union offset_union {
+ #define __put32_unaligned_check(ins,val,addr)                 \
+       do {                                                    \
+               unsigned int err = 0, v = val, a = addr;        \
++              pax_open_userland();                            \
+               __asm__( FIRST_BYTE_32                          \
+        ARM(   "1:     "ins"   %1, [%2], #1\n" )               \
+        THUMB( "1:     "ins"   %1, [%2]\n"     )               \
+@@ -310,6 +317,7 @@ union offset_union {
+               "       .popsection\n"                          \
+               : "=r" (err), "=&r" (v), "=&r" (a)              \
+               : "0" (err), "1" (v), "2" (a));                 \
++              pax_close_userland();                           \
+               if (err)                                        \
+                       goto fault;                             \
+       } while (0)
+diff --git a/arch/arm/mm/context.c b/arch/arm/mm/context.c
+index d07df17..59d5493 100644
+--- a/arch/arm/mm/context.c
++++ b/arch/arm/mm/context.c
+@@ -45,7 +45,7 @@ static DEFINE_RAW_SPINLOCK(cpu_asid_lock);
+ static atomic64_t asid_generation = ATOMIC64_INIT(ASID_FIRST_VERSION);
+ static DECLARE_BITMAP(asid_map, NUM_USER_ASIDS);
+-static DEFINE_PER_CPU(atomic64_t, active_asids);
++DEFINE_PER_CPU(atomic64_t, active_asids);
+ static DEFINE_PER_CPU(u64, reserved_asids);
+ static cpumask_t tlb_flush_pending;
+@@ -209,8 +209,10 @@ void check_and_switch_context(struct mm_struct *mm, struct task_struct *tsk)
+               atomic64_set(&mm->context.id, asid);
+       }
+-      if (cpumask_test_and_clear_cpu(cpu, &tlb_flush_pending))
++      if (cpumask_test_and_clear_cpu(cpu, &tlb_flush_pending)) {
+               local_flush_tlb_all();
++              dummy_flush_tlb_a15_erratum();
++      }
+       atomic64_set(&per_cpu(active_asids, cpu), asid);
+       cpumask_set_cpu(cpu, mm_cpumask(mm));
 diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
-index 5dbf13f..9be36fd 100644
+index 5dbf13f..1a60561 100644
 --- a/arch/arm/mm/fault.c
 +++ b/arch/arm/mm/fault.c
 @@ -25,6 +25,7 @@
@@ -2427,27 +3863,28 @@ index 5dbf13f..9be36fd 100644
  
  #include "fault.h"
  
-@@ -138,6 +139,19 @@ __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr,
+@@ -138,6 +139,20 @@ __do_kernel_fault(struct mm_struct *mm, unsigned long addr, unsigned int fsr,
        if (fixup_exception(regs))
                return;
  
 +#ifdef CONFIG_PAX_KERNEXEC
-+      if (fsr & FSR_WRITE) {
-+              if (((unsigned long)_stext <= addr && addr < init_mm.end_code) || (MODULES_VADDR <= addr && addr < MODULES_END)) {
-+                      if (current->signal->curr_ip)
-+                              printk(KERN_ERR "PAX: From %pI4: %s:%d, uid/euid: %u/%u, attempted to modify kernel code\n",
-+                                               &current->signal->curr_ip, current->comm, task_pid_nr(current), current_uid(), current_euid());
-+                      else
-+                              printk(KERN_ERR "PAX: %s:%d, uid/euid: %u/%u, attempted to modify kernel code\n",
-+                                               current->comm, task_pid_nr(current), current_uid(), current_euid());
-+              }
++      if ((fsr & FSR_WRITE) &&
++          (((unsigned long)_stext <= addr && addr < init_mm.end_code) ||
++           (MODULES_VADDR <= addr && addr < MODULES_END)))
++      {
++              if (current->signal->curr_ip)
++                      printk(KERN_ERR "PAX: From %pI4: %s:%d, uid/euid: %u/%u, attempted to modify kernel code\n", &current->signal->curr_ip, current->comm, task_pid_nr(current),
++                                      from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()));
++              else
++                      printk(KERN_ERR "PAX: %s:%d, uid/euid: %u/%u, attempted to modify kernel code\n", current->comm, task_pid_nr(current),
++                                      from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()));
 +      }
 +#endif
 +
        /*
         * No handler, we'll have to terminate things with extreme prejudice.
         */
-@@ -174,6 +188,13 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
+@@ -174,6 +189,13 @@ __do_user_fault(struct task_struct *tsk, unsigned long addr,
        }
  #endif
  
@@ -2461,7 +3898,7 @@ index 5dbf13f..9be36fd 100644
        tsk->thread.address = addr;
        tsk->thread.error_code = fsr;
        tsk->thread.trap_no = 14;
-@@ -398,6 +419,33 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
+@@ -398,6 +420,33 @@ do_page_fault(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
  }
  #endif                                        /* CONFIG_MMU */
  
@@ -2495,20 +3932,54 @@ index 5dbf13f..9be36fd 100644
  /*
   * First Level Translation Fault Handler
   *
-@@ -575,12 +623,41 @@ do_PrefetchAbort(unsigned long addr, unsigned int ifsr, struct pt_regs *regs)
+@@ -543,9 +592,22 @@ do_DataAbort(unsigned long addr, unsigned int fsr, struct pt_regs *regs)
+       const struct fsr_info *inf = fsr_info + fsr_fs(fsr);
+       struct siginfo info;
++#ifdef CONFIG_PAX_MEMORY_UDEREF
++      if (addr < TASK_SIZE && is_domain_fault(fsr)) {
++              if (current->signal->curr_ip)
++                      printk(KERN_ERR "PAX: From %pI4: %s:%d, uid/euid: %u/%u, attempted to access userland memory at %08lx\n", &current->signal->curr_ip, current->comm, task_pid_nr(current),
++                                      from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()), addr);
++              else
++                      printk(KERN_ERR "PAX: %s:%d, uid/euid: %u/%u, attempted to access userland memory at %08lx\n", current->comm, task_pid_nr(current),
++                                      from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()), addr);
++              goto die;
++      }
++#endif
++
+       if (!inf->fn(addr, fsr & ~FSR_LNX_PF, regs))
+               return;
++die:
+       printk(KERN_ALERT "Unhandled fault: %s (0x%03x) at 0x%08lx\n",
+               inf->name, fsr, addr);
+@@ -575,9 +637,49 @@ 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;
  
-+#ifdef CONFIG_PAX_KERNEXEC
-+      if (!user_mode(regs) && is_xn_fault(ifsr)) {
++      if (user_mode(regs)) {
++              if (addr == 0xffff0fe0UL) {
++                      /*
++                       * PaX: __kuser_get_tls emulation
++                       */
++                      regs->ARM_r0 = current_thread_info()->tp_value;
++                      regs->ARM_pc = regs->ARM_lr;
++                      return;
++              }
++      }
++
++#if defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
++      else if (is_domain_fault(ifsr) || is_xn_fault(ifsr)) {
 +              if (current->signal->curr_ip)
-+                      printk(KERN_ERR "PAX: From %pI4: %s:%d, uid/euid: %u/%u, attempted to execute %s memory at %08lx\n",
-+                                       &current->signal->curr_ip, current->comm, task_pid_nr(current), current_uid(), current_euid(),
-+                                       addr >= TASK_SIZE ? "non-executable kernel" : "userland", addr);
++                      printk(KERN_ERR "PAX: From %pI4: %s:%d, uid/euid: %u/%u, attempted to execute %s memory at %08lx\n", &current->signal->curr_ip, current->comm, task_pid_nr(current),
++                                      from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()),
++                                      addr >= TASK_SIZE ? "non-executable kernel" : "userland", addr);
 +              else
-+                      printk(KERN_ERR "PAX: %s:%d, uid/euid: %u/%u, attempted to execute %s memory at %08lx\n",
-+                                       current->comm, task_pid_nr(current), current_uid(), current_euid(),
-+                                       addr >= TASK_SIZE ? "non-executable kernel" : "userland", addr);
++                      printk(KERN_ERR "PAX: %s:%d, uid/euid: %u/%u, attempted to execute %s memory at %08lx\n", current->comm, task_pid_nr(current),
++                                      from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()),
++                                      addr >= TASK_SIZE ? "non-executable kernel" : "userland", addr);
 +              goto die;
 +      }
 +#endif
@@ -2530,15 +4001,12 @@ index 5dbf13f..9be36fd 100644
        if (!inf->fn(addr, ifsr | FSR_LNX_PF, regs))
                return;
  
++die:
        printk(KERN_ALERT "Unhandled prefetch abort: %s (0x%03x) at 0x%08lx\n",
                inf->name, ifsr, addr);
  
-+die:
-       info.si_signo = inf->sig;
-       info.si_errno = 0;
-       info.si_code  = inf->code;
 diff --git a/arch/arm/mm/fault.h b/arch/arm/mm/fault.h
-index cf08bdf..f1a0383 100644
+index cf08bdf..772656c 100644
 --- a/arch/arm/mm/fault.h
 +++ b/arch/arm/mm/fault.h
 @@ -3,6 +3,7 @@
@@ -2549,7 +4017,7 @@ index cf08bdf..f1a0383 100644
   */
  #define FSR_LNX_PF            (1 << 31)
  #define FSR_WRITE             (1 << 11)
-@@ -22,6 +23,12 @@ static inline int fsr_fs(unsigned int fsr)
+@@ -22,6 +23,17 @@ static inline int fsr_fs(unsigned int fsr)
  }
  #endif
  
@@ -2558,51 +4026,68 @@ index cf08bdf..f1a0383 100644
 +{
 +      return ((fsr_fs(fsr) & 0x3c) == 0xc);
 +}
++
++static inline int is_domain_fault(unsigned int fsr)
++{
++      return ((fsr_fs(fsr) & 0xD) == 0x9);
++}
 +
  void do_bad_area(unsigned long addr, unsigned int fsr, struct pt_regs *regs);
  unsigned long search_exception_table(unsigned long addr);
  
 diff --git a/arch/arm/mm/init.c b/arch/arm/mm/init.c
-index ad722f1..46b670e 100644
+index ad722f1..763fdd3 100644
 --- a/arch/arm/mm/init.c
 +++ b/arch/arm/mm/init.c
-@@ -734,9 +734,43 @@ void __init mem_init(void)
+@@ -30,6 +30,8 @@
+ #include <asm/setup.h>
+ #include <asm/tlb.h>
+ #include <asm/fixmap.h>
++#include <asm/system_info.h>
++#include <asm/cp15.h>
  
- void free_initmem(void)
+ #include <asm/mach/arch.h>
+ #include <asm/mach/map.h>
+@@ -736,7 +738,46 @@ void free_initmem(void)
  {
-+
+ #ifdef CONFIG_HAVE_TCM
+       extern char __tcm_start, __tcm_end;
++#endif
 +#ifdef CONFIG_PAX_KERNEXEC
 +      unsigned long addr;
 +      pgd_t *pgd;
 +      pud_t *pud;
 +      pmd_t *pmd;
-+#endif
++      int cpu_arch = cpu_architecture();
++      unsigned int cr = get_cr();
 +
- #ifdef CONFIG_HAVE_TCM
-       extern char __tcm_start, __tcm_end;
++      if (cpu_arch >= CPU_ARCH_ARMv6 && (cr & CR_XP)) {
++              /* make pages tables, etc before .text NX */
++              for (addr = PAGE_OFFSET; addr < (unsigned long)_stext; addr += SECTION_SIZE) {
++                      pgd = pgd_offset_k(addr);
++                      pud = pud_offset(pgd, addr);
++                      pmd = pmd_offset(pud, addr);
++                      __section_update(pmd, addr, PMD_SECT_XN);
++              }
++              /* make init NX */
++              for (addr = (unsigned long)__init_begin; addr < (unsigned long)_sdata; addr += SECTION_SIZE) {
++                      pgd = pgd_offset_k(addr);
++                      pud = pud_offset(pgd, addr);
++                      pmd = pmd_offset(pud, addr);
++                      __section_update(pmd, addr, PMD_SECT_XN);
++              }
++              /* make kernel code/rodata RX */
++              for (addr = (unsigned long)_stext; addr < (unsigned long)__init_begin; addr += SECTION_SIZE) {
++                      pgd = pgd_offset_k(addr);
++                      pud = pud_offset(pgd, addr);
++                      pmd = pmd_offset(pud, addr);
++#ifdef CONFIG_ARM_LPAE
++                      __section_update(pmd, addr, PMD_SECT_RDONLY);
++#else
++                      __section_update(pmd, addr, PMD_SECT_APX|PMD_SECT_AP_WRITE);
 +#endif
-+#ifdef CONFIG_PAX_KERNEXEC
-+      /* make pages tables, etc before .text NX */
-+      for (addr = PAGE_OFFSET; addr < (unsigned long)_stext; addr += PMD_SIZE) {
-+              pgd = pgd_offset_k(addr);
-+              pud = pud_offset(pgd, addr);
-+              pmd = pmd_offset(pud, addr);
-+              __pmd_update(pmd, PMD_SECT_XN);
-+      }
-+      /* make init NX */
-+      for (addr = (unsigned long)__init_begin; addr < (unsigned long)_sdata; addr += PMD_SIZE) {
-+              pgd = pgd_offset_k(addr);
-+              pud = pud_offset(pgd, addr);
-+              pmd = pmd_offset(pud, addr);
-+              __pmd_update(pmd, PMD_SECT_XN);
-+      }
-+      /* make kernel code/rodata read-only */
-+      for (addr = (unsigned long)_stext; addr < (unsigned long)__init_begin; addr += PMD_SIZE) {
-+              pgd = pgd_offset_k(addr);
-+              pud = pud_offset(pgd, addr);
-+              pmd = pmd_offset(pud, addr);
-+              __pmd_update(pmd, PMD_SECT_AP_RDONLY);
++              }
 +      }
 +#endif
 +
@@ -2610,19 +4095,35 @@ index ad722f1..46b670e 100644
        poison_init_mem(&__tcm_start, &__tcm_end - &__tcm_start);
        totalram_pages += free_area(__phys_to_pfn(__pa(&__tcm_start)),
                                    __phys_to_pfn(__pa(&__tcm_end)),
+diff --git a/arch/arm/mm/ioremap.c b/arch/arm/mm/ioremap.c
+index 88fd86c..7a224ce 100644
+--- a/arch/arm/mm/ioremap.c
++++ b/arch/arm/mm/ioremap.c
+@@ -335,9 +335,9 @@ __arm_ioremap_exec(unsigned long phys_addr, size_t size, bool cached)
+       unsigned int mtype;
+       if (cached)
+-              mtype = MT_MEMORY;
++              mtype = MT_MEMORY_RX;
+       else
+-              mtype = MT_MEMORY_NONCACHED;
++              mtype = MT_MEMORY_NONCACHED_RX;
+       return __arm_ioremap_caller(phys_addr, size, mtype,
+                       __builtin_return_address(0));
 diff --git a/arch/arm/mm/mmap.c b/arch/arm/mm/mmap.c
-index ce8cb19..061aa14 100644
+index 10062ce..aa96dd7 100644
 --- a/arch/arm/mm/mmap.c
 +++ b/arch/arm/mm/mmap.c
-@@ -72,6 +72,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
-       unsigned long start_addr;
+@@ -59,6 +59,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+       struct vm_area_struct *vma;
        int do_align = 0;
        int aliasing = cache_is_vipt_aliasing();
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
+       struct vm_unmapped_area_info info;
  
        /*
-        * We only need to do colour alignment if either the I or D
-@@ -93,6 +94,10 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -81,6 +82,10 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
        if (len > TASK_SIZE)
                return -ENOMEM;
  
@@ -2633,7 +4134,7 @@ index ce8cb19..061aa14 100644
        if (addr) {
                if (do_align)
                        addr = COLOUR_ALIGN(addr, pgoff);
-@@ -100,15 +105,14 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -88,8 +93,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
                        addr = PAGE_ALIGN(addr);
  
                vma = find_vma(mm, addr);
@@ -2642,44 +4143,16 @@ index ce8cb19..061aa14 100644
 +              if (TASK_SIZE - len >= addr && check_heap_stack_gap(vma, addr, len, offset))
                        return addr;
        }
-       if (len > mm->cached_hole_size) {
--              start_addr = addr = mm->free_area_cache;
-+              start_addr = addr = mm->free_area_cache;
-       } else {
--              start_addr = addr = mm->mmap_base;
--              mm->cached_hole_size = 0;
-+              start_addr = addr = mm->mmap_base;
-+              mm->cached_hole_size = 0;
-       }
  
- full_search:
-@@ -124,14 +128,14 @@ full_search:
-                        * Start a new search - just in case we missed
-                        * some holes.
-                        */
--                      if (start_addr != TASK_UNMAPPED_BASE) {
--                              start_addr = addr = TASK_UNMAPPED_BASE;
-+                      if (start_addr != mm->mmap_base) {
-+                              start_addr = addr = mm->mmap_base;
-                               mm->cached_hole_size = 0;
-                               goto full_search;
-                       }
-                       return -ENOMEM;
-               }
--              if (!vma || addr + len <= vma->vm_start) {
-+              if (check_heap_stack_gap(vma, addr, len, offset)) {
-                       /*
-                        * Remember the place where we stopped the search:
-                        */
-@@ -156,6 +160,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -112,6 +116,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
        unsigned long addr = addr0;
        int do_align = 0;
        int aliasing = cache_is_vipt_aliasing();
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
+       struct vm_unmapped_area_info info;
  
        /*
-        * We only need to do colour alignment if either the I or D
-@@ -175,6 +180,10 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -132,6 +137,10 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
                return addr;
        }
  
@@ -2690,7 +4163,7 @@ index ce8cb19..061aa14 100644
        /* requesting a specific address */
        if (addr) {
                if (do_align)
-@@ -182,8 +191,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -139,8 +148,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
                else
                        addr = PAGE_ALIGN(addr);
                vma = find_vma(mm, addr);
@@ -2700,61 +4173,31 @@ index ce8cb19..061aa14 100644
                        return addr;
        }
  
-@@ -203,7 +211,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, offset))
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr-len);
+@@ -162,6 +170,12 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+               VM_BUG_ON(addr != -ENOMEM);
+               info.flags = 0;
+               info.low_limit = mm->mmap_base;
++
++#ifdef CONFIG_PAX_RANDMMAP
++              if (mm->pax_flags & MF_PAX_RANDMMAP)
++                      info.low_limit += mm->delta_mmap;
++#endif
++
+               info.high_limit = TASK_SIZE;
+               addr = vm_unmapped_area(&info);
        }
-@@ -212,17 +220,17 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-               goto bottomup;
-       addr = mm->mmap_base - len;
--      if (do_align)
--              addr = COLOUR_ALIGN_DOWN(addr, pgoff);
-       do {
-+              if (do_align)
-+                      addr = COLOUR_ALIGN_DOWN(addr, pgoff);
-               /*
-                * Lookup failure means no vma is above this address,
-                * else if new region fits below vma->vm_start,
-                * return with success:
-                */
-               vma = find_vma(mm, addr);
--              if (!vma || addr+len <= vma->vm_start)
-+              if (check_heap_stack_gap(vma, addr, len, offset))
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr);
-@@ -231,10 +239,8 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-                       mm->cached_hole_size = vma->vm_start - addr;
-               /* try just below the current vma->vm_start */
--              addr = vma->vm_start - len;
--              if (do_align)
--                      addr = COLOUR_ALIGN_DOWN(addr, pgoff);
--      } while (len < vma->vm_start);
-+              addr = skip_heap_stack_gap(vma, len, offset);
-+      } while (!IS_ERR_VALUE(addr));
- bottomup:
-       /*
-@@ -259,6 +265,10 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
+@@ -173,6 +187,10 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
  {
        unsigned long random_factor = 0UL;
  
 +#ifdef CONFIG_PAX_RANDMMAP
-+      if (!(current->mm->pax_flags & MF_PAX_RANDMMAP))
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP))
 +#endif
 +
        /* 8 bits of randomness in 20 address space bits */
        if ((current->flags & PF_RANDOMIZE) &&
            !(current->personality & ADDR_NO_RANDOMIZE))
-@@ -266,10 +276,22 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
+@@ -180,10 +198,22 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
  
        if (mmap_is_legacy()) {
                mm->mmap_base = TASK_UNMAPPED_BASE + random_factor;
@@ -2778,89 +4221,244 @@ index ce8cb19..061aa14 100644
                mm->unmap_area = arch_unmap_area_topdown;
        }
 diff --git a/arch/arm/mm/mmu.c b/arch/arm/mm/mmu.c
-index 99b47b9..579b667 100644
+index ce328c7..35b88dc 100644
 --- a/arch/arm/mm/mmu.c
 +++ b/arch/arm/mm/mmu.c
-@@ -227,16 +227,16 @@ static struct mem_type mem_types[] = {
+@@ -35,6 +35,23 @@
+ #include "mm.h"
++
++#if defined(CONFIG_CPU_USE_DOMAINS) || defined(CONFIG_PAX_KERNEXEC) || defined(CONFIG_PAX_MEMORY_UDEREF)
++void modify_domain(unsigned int dom, unsigned int type)
++{
++      struct thread_info *thread = current_thread_info();
++      unsigned int domain = thread->cpu_domain;
++      /*
++       * DOMAIN_MANAGER might be defined to some other value,
++       * use the arch-defined constant
++       */
++      domain &= ~domain_val(dom, 3);
++      thread->cpu_domain = domain | domain_val(dom, type);
++      set_domain(thread->cpu_domain);
++}
++EXPORT_SYMBOL(modify_domain);
++#endif
++
+ /*
+  * empty_zero_page is a special page that is used for
+  * zero-initialized data and COW.
+@@ -195,10 +212,18 @@ void adjust_cr(unsigned long mask, unsigned long set)
+ }
+ #endif
+-#define PROT_PTE_DEVICE               L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY|L_PTE_XN
++#define PROT_PTE_DEVICE               L_PTE_PRESENT|L_PTE_YOUNG|L_PTE_DIRTY
+ #define PROT_SECT_DEVICE      PMD_TYPE_SECT|PMD_SECT_AP_WRITE
+-static struct mem_type mem_types[] = {
++#ifdef CONFIG_PAX_KERNEXEC
++#define L_PTE_KERNEXEC                L_PTE_RDONLY
++#define PMD_SECT_KERNEXEC     PMD_SECT_RDONLY
++#else
++#define L_PTE_KERNEXEC                L_PTE_DIRTY
++#define PMD_SECT_KERNEXEC     PMD_SECT_AP_WRITE
++#endif
++
++static struct mem_type mem_types[] __read_only = {
+       [MT_DEVICE] = {           /* Strongly ordered / ARMv6 shared device */
+               .prot_pte       = PROT_PTE_DEVICE | L_PTE_MT_DEV_SHARED |
+                                 L_PTE_SHARED,
+@@ -227,16 +252,16 @@ static struct mem_type mem_types[] = {
        [MT_UNCACHED] = {
                .prot_pte       = PROT_PTE_DEVICE,
                .prot_l1        = PMD_TYPE_TABLE,
 -              .prot_sect      = PMD_TYPE_SECT | PMD_SECT_XN,
-+              .prot_sect      = PROT_SECT_DEVICE | PMD_SECT_XN,
++              .prot_sect      = PROT_SECT_DEVICE,
                .domain         = DOMAIN_IO,
        },
        [MT_CACHECLEAN] = {
 -              .prot_sect = PMD_TYPE_SECT | PMD_SECT_XN,
-+              .prot_sect = PMD_TYPE_SECT | PMD_SECT_XN | PMD_SECT_AP_RDONLY,
++              .prot_sect = PMD_TYPE_SECT | PMD_SECT_RDONLY,
                .domain    = DOMAIN_KERNEL,
        },
  #ifndef CONFIG_ARM_LPAE
        [MT_MINICLEAN] = {
 -              .prot_sect = PMD_TYPE_SECT | PMD_SECT_XN | PMD_SECT_MINICACHE,
-+              .prot_sect = PMD_TYPE_SECT | PMD_SECT_XN | PMD_SECT_MINICACHE | PMD_SECT_AP_RDONLY,
++              .prot_sect = PMD_TYPE_SECT | PMD_SECT_MINICACHE | PMD_SECT_RDONLY,
                .domain    = DOMAIN_KERNEL,
        },
  #endif
-@@ -258,8 +258,26 @@ static struct mem_type mem_types[] = {
+@@ -244,36 +269,54 @@ static struct mem_type mem_types[] = {
+               .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
+                               L_PTE_RDONLY,
+               .prot_l1   = PMD_TYPE_TABLE,
+-              .domain    = DOMAIN_USER,
++              .domain    = DOMAIN_VECTORS,
+       },
+       [MT_HIGH_VECTORS] = {
+               .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
+-                              L_PTE_USER | L_PTE_RDONLY,
++                           L_PTE_RDONLY,
+               .prot_l1   = PMD_TYPE_TABLE,
+-              .domain    = DOMAIN_USER,
++              .domain    = DOMAIN_VECTORS,
+       },
+-      [MT_MEMORY] = {
++      [MT_MEMORY_RWX] = {
+               .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY,
+               .prot_l1   = PMD_TYPE_TABLE,
                .prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_WRITE,
                .domain    = DOMAIN_KERNEL,
        },
-+      [MT_MEMORY_R] = {
-+              .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_RDONLY | L_PTE_XN,
-+              .prot_l1   = PMD_TYPE_TABLE,
-+              .prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_RDONLY | PMD_SECT_XN,
-+              .domain    = DOMAIN_KERNEL,
-+      },
 +      [MT_MEMORY_RW] = {
-+              .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY | L_PTE_XN,
++              .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY,
 +              .prot_l1   = PMD_TYPE_TABLE,
-+              .prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_XN,
++              .prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_WRITE,
 +              .domain    = DOMAIN_KERNEL,
 +      },
 +      [MT_MEMORY_RX] = {
-+              .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_RDONLY,
++              .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_KERNEXEC,
 +              .prot_l1   = PMD_TYPE_TABLE,
-+              .prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_RDONLY,
++              .prot_sect = PMD_TYPE_SECT | PMD_SECT_KERNEXEC,
 +              .domain    = DOMAIN_KERNEL,
 +      },
        [MT_ROM] = {
 -              .prot_sect = PMD_TYPE_SECT,
-+              .prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_RDONLY,
++              .prot_sect = PMD_TYPE_SECT | PMD_SECT_RDONLY,
                .domain    = DOMAIN_KERNEL,
        },
-       [MT_MEMORY_NONCACHED] = {
-@@ -273,7 +291,7 @@ static struct mem_type mem_types[] = {
+-      [MT_MEMORY_NONCACHED] = {
++      [MT_MEMORY_NONCACHED_RW] = {
                .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
-                               L_PTE_XN,
+                               L_PTE_MT_BUFFERABLE,
+               .prot_l1   = PMD_TYPE_TABLE,
+               .prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_WRITE,
+               .domain    = DOMAIN_KERNEL,
+       },
++      [MT_MEMORY_NONCACHED_RX] = {
++              .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_KERNEXEC |
++                              L_PTE_MT_BUFFERABLE,
++              .prot_l1   = PMD_TYPE_TABLE,
++              .prot_sect = PMD_TYPE_SECT | PMD_SECT_KERNEXEC,
++              .domain    = DOMAIN_KERNEL,
++      },
+       [MT_MEMORY_DTCM] = {
+-              .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
+-                              L_PTE_XN,
++              .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY,
                .prot_l1   = PMD_TYPE_TABLE,
 -              .prot_sect = PMD_TYPE_SECT | PMD_SECT_XN,
-+              .prot_sect = PMD_TYPE_SECT | PMD_SECT_XN | PMD_SECT_AP_RDONLY,
++              .prot_sect = PMD_TYPE_SECT | PMD_SECT_RDONLY,
                .domain    = DOMAIN_KERNEL,
        },
        [MT_MEMORY_ITCM] = {
-@@ -432,6 +450,8 @@ static void __init build_mem_type_table(void)
+@@ -283,10 +326,10 @@ static struct mem_type mem_types[] = {
+       },
+       [MT_MEMORY_SO] = {
+               .prot_pte  = L_PTE_PRESENT | L_PTE_YOUNG | L_PTE_DIRTY |
+-                              L_PTE_MT_UNCACHED | L_PTE_XN,
++                              L_PTE_MT_UNCACHED,
+               .prot_l1   = PMD_TYPE_TABLE,
+               .prot_sect = PMD_TYPE_SECT | PMD_SECT_AP_WRITE | PMD_SECT_S |
+-                              PMD_SECT_UNCACHED | PMD_SECT_XN,
++                              PMD_SECT_UNCACHED,
+               .domain    = DOMAIN_KERNEL,
+       },
+       [MT_MEMORY_DMA_READY] = {
+@@ -371,9 +414,35 @@ static void __init build_mem_type_table(void)
+                        * to prevent speculative instruction fetches.
+                        */
+                       mem_types[MT_DEVICE].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_DEVICE].prot_pte |= L_PTE_XN;
+                       mem_types[MT_DEVICE_NONSHARED].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_DEVICE_NONSHARED].prot_pte |= L_PTE_XN;
+                       mem_types[MT_DEVICE_CACHED].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_DEVICE_CACHED].prot_pte |= L_PTE_XN;
+                       mem_types[MT_DEVICE_WC].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_DEVICE_WC].prot_pte |= L_PTE_XN;
++
++                      /* Mark other regions on ARMv6+ as execute-never */
++
++#ifdef CONFIG_PAX_KERNEXEC
++                      mem_types[MT_UNCACHED].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_UNCACHED].prot_pte |= L_PTE_XN;
++                      mem_types[MT_CACHECLEAN].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_CACHECLEAN].prot_pte |= L_PTE_XN;
++#ifndef CONFIG_ARM_LPAE
++                      mem_types[MT_MINICLEAN].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_MINICLEAN].prot_pte |= L_PTE_XN;
++#endif
++                      mem_types[MT_MEMORY_RW].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_MEMORY_RW].prot_pte |= L_PTE_XN;
++                      mem_types[MT_MEMORY_NONCACHED_RW].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_MEMORY_NONCACHED_RW].prot_pte |= PMD_SECT_XN;
++                      mem_types[MT_MEMORY_DTCM].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_MEMORY_DTCM].prot_pte |= L_PTE_XN;
++#endif
++
++                      mem_types[MT_MEMORY_SO].prot_sect |= PMD_SECT_XN;
++                      mem_types[MT_MEMORY_SO].prot_pte |= L_PTE_XN;
+               }
+               if (cpu_arch >= CPU_ARCH_ARMv7 && (cr & CR_TRE)) {
+                       /*
+@@ -432,6 +501,9 @@ static void __init build_mem_type_table(void)
                 * from SVC mode and no access from userspace.
                 */
                mem_types[MT_ROM].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
++#ifdef CONFIG_PAX_KERNEXEC
 +              mem_types[MT_MEMORY_RX].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
-+              mem_types[MT_MEMORY_R].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
++#endif
                mem_types[MT_MINICLEAN].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
                mem_types[MT_CACHECLEAN].prot_sect |= PMD_SECT_APX|PMD_SECT_AP_WRITE;
  #endif
-@@ -450,6 +470,12 @@ static void __init build_mem_type_table(void)
+@@ -448,11 +520,17 @@ static void __init build_mem_type_table(void)
+                       mem_types[MT_DEVICE_WC].prot_pte |= L_PTE_SHARED;
+                       mem_types[MT_DEVICE_CACHED].prot_sect |= PMD_SECT_S;
                        mem_types[MT_DEVICE_CACHED].prot_pte |= L_PTE_SHARED;
-                       mem_types[MT_MEMORY].prot_sect |= PMD_SECT_S;
-                       mem_types[MT_MEMORY].prot_pte |= L_PTE_SHARED;
-+                      mem_types[MT_MEMORY_R].prot_sect |= PMD_SECT_S;
-+                      mem_types[MT_MEMORY_R].prot_pte |= L_PTE_SHARED;
+-                      mem_types[MT_MEMORY].prot_sect |= PMD_SECT_S;
+-                      mem_types[MT_MEMORY].prot_pte |= L_PTE_SHARED;
++                      mem_types[MT_MEMORY_RWX].prot_sect |= PMD_SECT_S;
++                      mem_types[MT_MEMORY_RWX].prot_pte |= L_PTE_SHARED;
 +                      mem_types[MT_MEMORY_RW].prot_sect |= PMD_SECT_S;
 +                      mem_types[MT_MEMORY_RW].prot_pte |= L_PTE_SHARED;
 +                      mem_types[MT_MEMORY_RX].prot_sect |= PMD_SECT_S;
 +                      mem_types[MT_MEMORY_RX].prot_pte |= L_PTE_SHARED;
                        mem_types[MT_MEMORY_DMA_READY].prot_pte |= L_PTE_SHARED;
-                       mem_types[MT_MEMORY_NONCACHED].prot_sect |= PMD_SECT_S;
-                       mem_types[MT_MEMORY_NONCACHED].prot_pte |= L_PTE_SHARED;
-@@ -487,6 +513,8 @@ static void __init build_mem_type_table(void)
+-                      mem_types[MT_MEMORY_NONCACHED].prot_sect |= PMD_SECT_S;
+-                      mem_types[MT_MEMORY_NONCACHED].prot_pte |= L_PTE_SHARED;
++                      mem_types[MT_MEMORY_NONCACHED_RW].prot_sect |= PMD_SECT_S;
++                      mem_types[MT_MEMORY_NONCACHED_RW].prot_pte |= L_PTE_SHARED;
++                      mem_types[MT_MEMORY_NONCACHED_RX].prot_sect |= PMD_SECT_S;
++                      mem_types[MT_MEMORY_NONCACHED_RX].prot_pte |= L_PTE_SHARED;
+               }
+       }
+@@ -463,15 +541,20 @@ static void __init build_mem_type_table(void)
+       if (cpu_arch >= CPU_ARCH_ARMv6) {
+               if (cpu_arch >= CPU_ARCH_ARMv7 && (cr & CR_TRE)) {
+                       /* Non-cacheable Normal is XCB = 001 */
+-                      mem_types[MT_MEMORY_NONCACHED].prot_sect |=
++                      mem_types[MT_MEMORY_NONCACHED_RW].prot_sect |=
++                              PMD_SECT_BUFFERED;
++                      mem_types[MT_MEMORY_NONCACHED_RX].prot_sect |=
+                               PMD_SECT_BUFFERED;
+               } else {
+                       /* For both ARMv6 and non-TEX-remapping ARMv7 */
+-                      mem_types[MT_MEMORY_NONCACHED].prot_sect |=
++                      mem_types[MT_MEMORY_NONCACHED_RW].prot_sect |=
++                              PMD_SECT_TEX(1);
++                      mem_types[MT_MEMORY_NONCACHED_RX].prot_sect |=
+                               PMD_SECT_TEX(1);
+               }
+       } else {
+-              mem_types[MT_MEMORY_NONCACHED].prot_sect |= PMD_SECT_BUFFERABLE;
++              mem_types[MT_MEMORY_NONCACHED_RW].prot_sect |= PMD_SECT_BUFFERABLE;
++              mem_types[MT_MEMORY_NONCACHED_RX].prot_sect |= PMD_SECT_BUFFERABLE;
+       }
+ #ifdef CONFIG_ARM_LPAE
+@@ -487,6 +570,8 @@ static void __init build_mem_type_table(void)
        vecs_pgprot |= PTE_EXT_AF;
  #endif
  
@@ -2869,24 +4467,63 @@ index 99b47b9..579b667 100644
        for (i = 0; i < 16; i++) {
                pteval_t v = pgprot_val(protection_map[i]);
                protection_map[i] = __pgprot(v | user_pgprot);
-@@ -503,6 +531,12 @@ static void __init build_mem_type_table(void)
+@@ -501,10 +586,15 @@ static void __init build_mem_type_table(void)
+       mem_types[MT_LOW_VECTORS].prot_l1 |= ecc_mask;
        mem_types[MT_HIGH_VECTORS].prot_l1 |= ecc_mask;
-       mem_types[MT_MEMORY].prot_sect |= ecc_mask | cp->pmd;
-       mem_types[MT_MEMORY].prot_pte |= kern_pgprot;
-+      mem_types[MT_MEMORY_R].prot_sect |= ecc_mask | cp->pmd;
-+      mem_types[MT_MEMORY_R].prot_pte |= kern_pgprot;
+-      mem_types[MT_MEMORY].prot_sect |= ecc_mask | cp->pmd;
+-      mem_types[MT_MEMORY].prot_pte |= kern_pgprot;
++      mem_types[MT_MEMORY_RWX].prot_sect |= ecc_mask | cp->pmd;
++      mem_types[MT_MEMORY_RWX].prot_pte |= kern_pgprot;
 +      mem_types[MT_MEMORY_RW].prot_sect |= ecc_mask | cp->pmd;
 +      mem_types[MT_MEMORY_RW].prot_pte |= kern_pgprot;
 +      mem_types[MT_MEMORY_RX].prot_sect |= ecc_mask | cp->pmd;
 +      mem_types[MT_MEMORY_RX].prot_pte |= kern_pgprot;
        mem_types[MT_MEMORY_DMA_READY].prot_pte |= kern_pgprot;
-       mem_types[MT_MEMORY_NONCACHED].prot_sect |= ecc_mask;
+-      mem_types[MT_MEMORY_NONCACHED].prot_sect |= ecc_mask;
++      mem_types[MT_MEMORY_NONCACHED_RW].prot_sect |= ecc_mask;
++      mem_types[MT_MEMORY_NONCACHED_RX].prot_sect |= ecc_mask;
        mem_types[MT_ROM].prot_sect |= cp->pmd;
-@@ -1198,7 +1232,41 @@ static void __init map_lowmem(void)
+       switch (cp->pmd) {
+@@ -1105,18 +1195,15 @@ void __init arm_mm_memblock_reserve(void)
+  * called function.  This means you can't use any function or debugging
+  * method which may touch any device, otherwise the kernel _will_ crash.
+  */
++
++static char vectors[PAGE_SIZE] __read_only __aligned(PAGE_SIZE);
++
+ static void __init devicemaps_init(struct machine_desc *mdesc)
+ {
+       struct map_desc map;
+       unsigned long addr;
+-      void *vectors;
+-      /*
+-       * Allocate the vector page early.
+-       */
+-      vectors = early_alloc(PAGE_SIZE);
+-
+-      early_trap_init(vectors);
++      early_trap_init(&vectors);
+       for (addr = VMALLOC_START; addr; addr += PMD_SIZE)
+               pmd_clear(pmd_off_k(addr));
+@@ -1156,7 +1243,7 @@ static void __init devicemaps_init(struct machine_desc *mdesc)
+        * location (0xffff0000).  If we aren't using high-vectors, also
+        * create a mapping at the low-vectors virtual address.
+        */
+-      map.pfn = __phys_to_pfn(virt_to_phys(vectors));
++      map.pfn = __phys_to_pfn(virt_to_phys(&vectors));
+       map.virtual = 0xffff0000;
+       map.length = PAGE_SIZE;
+       map.type = MT_HIGH_VECTORS;
+@@ -1214,8 +1301,39 @@ static void __init map_lowmem(void)
                map.pfn = __phys_to_pfn(start);
                map.virtual = __phys_to_virt(start);
                map.length = end - start;
-+
+-              map.type = MT_MEMORY;
 +#ifdef CONFIG_PAX_KERNEXEC
 +              if (map.virtual <= (unsigned long)_stext && ((unsigned long)_end < (map.virtual + map.length))) {
 +                      struct map_desc kernel;
@@ -2896,19 +4533,19 @@ index 99b47b9..579b667 100644
 +                      initmap.pfn = __phys_to_pfn(__pa(__init_begin));
 +                      initmap.virtual = (unsigned long)__init_begin;
 +                      initmap.length = _sdata - __init_begin;
-+                      initmap.type = MT_MEMORY;
++                      initmap.type = MT_MEMORY_RWX;
 +                      create_mapping(&initmap);
 +
 +                      /* when freeing initmem we will make this RX */
 +                      kernel.pfn = __phys_to_pfn(__pa(_stext));
 +                      kernel.virtual = (unsigned long)_stext;
 +                      kernel.length = __init_begin - _stext;
-+                      kernel.type = MT_MEMORY;
++                      kernel.type = MT_MEMORY_RWX;
 +                      create_mapping(&kernel);
 +
 +                      if (map.virtual < (unsigned long)_stext) {
 +                              map.length = (unsigned long)_stext - map.virtual;
-+                              map.type = MT_MEMORY;
++                              map.type = MT_MEMORY_RWX;
 +                              create_mapping(&map);
 +                      }
 +
@@ -2916,27 +4553,39 @@ index 99b47b9..579b667 100644
 +                      map.virtual = (unsigned long)_sdata;
 +                      map.length = end - __pa(_sdata);
 +              }
++#endif
 +
 +              map.type = MT_MEMORY_RW;
-+#else
-               map.type = MT_MEMORY;
-+#endif
                create_mapping(&map);
        }
-diff --git a/arch/arm/plat-orion/include/plat/addr-map.h b/arch/arm/plat-orion/include/plat/addr-map.h
-index ec63e4a..62aa5f1d 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/mm/proc-v7-2level.S b/arch/arm/mm/proc-v7-2level.S
+index 6d98c13..3cfb174 100644
+--- a/arch/arm/mm/proc-v7-2level.S
++++ b/arch/arm/mm/proc-v7-2level.S
+@@ -99,6 +99,9 @@ ENTRY(cpu_v7_set_pte_ext)
+       tst     r1, #L_PTE_XN
+       orrne   r3, r3, #PTE_EXT_XN
++      tst     r1, #L_PTE_PXN
++      orrne   r3, r3, #PTE_EXT_PXN
++
+       tst     r1, #L_PTE_YOUNG
+       tstne   r1, #L_PTE_VALID
+ #ifndef CONFIG_CPU_USE_DOMAINS
+diff --git a/arch/arm/plat-omap/sram.c b/arch/arm/plat-omap/sram.c
+index a5bc92d..0bb4730 100644
+--- a/arch/arm/plat-omap/sram.c
++++ b/arch/arm/plat-omap/sram.c
+@@ -93,6 +93,8 @@ void __init omap_map_sram(unsigned long start, unsigned long size,
+        * Looks like we need to preserve some bootloader code at the
+        * beginning of SRAM for jumping to flash for reboot to work...
+        */
++      pax_open_kernel();
+       memset_io(omap_sram_base + omap_sram_skip, 0,
+                 omap_sram_size - omap_sram_skip);
++      pax_close_kernel();
+ }
 diff --git a/arch/arm/plat-samsung/include/plat/dma-ops.h b/arch/arm/plat-samsung/include/plat/dma-ops.h
 index f5144cd..71f6d1f 100644
 --- a/arch/arm/plat-samsung/include/plat/dma-ops.h
@@ -2950,6 +4599,32 @@ index f5144cd..71f6d1f 100644
  
  extern void *samsung_dmadev_get_ops(void);
  extern void *s3c_dma_get_ops(void);
+diff --git a/arch/arm64/kernel/debug-monitors.c b/arch/arm64/kernel/debug-monitors.c
+index 0c3ba9f..95722b3 100644
+--- a/arch/arm64/kernel/debug-monitors.c
++++ b/arch/arm64/kernel/debug-monitors.c
+@@ -151,7 +151,7 @@ static int __cpuinit os_lock_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata os_lock_nb = {
++static struct notifier_block os_lock_nb = {
+       .notifier_call = os_lock_notify,
+ };
+diff --git a/arch/arm64/kernel/hw_breakpoint.c b/arch/arm64/kernel/hw_breakpoint.c
+index 5ab825c..96aaec8 100644
+--- a/arch/arm64/kernel/hw_breakpoint.c
++++ b/arch/arm64/kernel/hw_breakpoint.c
+@@ -831,7 +831,7 @@ static int __cpuinit hw_breakpoint_reset_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata hw_breakpoint_reset_nb = {
++static struct notifier_block hw_breakpoint_reset_nb = {
+       .notifier_call = hw_breakpoint_reset_notify,
+ };
 diff --git a/arch/avr32/include/asm/cache.h b/arch/avr32/include/asm/cache.h
 index c3a58a1..78fbf54 100644
 --- a/arch/avr32/include/asm/cache.h
@@ -3344,19 +5019,10 @@ index 54ff557..70c88b7 100644
  
  static __always_inline void __ticket_spin_unlock_wait(arch_spinlock_t *lock)
 diff --git a/arch/ia64/include/asm/uaccess.h b/arch/ia64/include/asm/uaccess.h
-index 449c8c0..50cdf87 100644
+index 449c8c0..18965fb 100644
 --- a/arch/ia64/include/asm/uaccess.h
 +++ b/arch/ia64/include/asm/uaccess.h
-@@ -42,6 +42,8 @@
- #include <asm/pgtable.h>
- #include <asm/io.h>
-+extern void check_object_size(const void *ptr, unsigned long n, bool to);
-+
- /*
-  * For historical reasons, the following macros are grossly misnamed:
-  */
-@@ -240,12 +242,24 @@ extern unsigned long __must_check __copy_user (void __user *to, const void __use
+@@ -240,12 +240,24 @@ extern unsigned long __must_check __copy_user (void __user *to, const void __use
  static inline unsigned long
  __copy_to_user (void __user *to, const void *from, unsigned long count)
  {
@@ -3381,7 +5047,7 @@ index 449c8c0..50cdf87 100644
        return __copy_user((__force void __user *) to, from, count);
  }
  
-@@ -255,10 +269,13 @@ __copy_from_user (void *to, const void __user *from, unsigned long count)
+@@ -255,10 +267,13 @@ __copy_from_user (void *to, const void __user *from, unsigned long count)
  ({                                                                                    \
        void __user *__cu_to = (to);                                                    \
        const void *__cu_from = (from);                                                 \
@@ -3397,7 +5063,7 @@ index 449c8c0..50cdf87 100644
        __cu_len;                                                                       \
  })
  
-@@ -266,11 +283,14 @@ __copy_from_user (void *to, const void __user *from, unsigned long count)
+@@ -266,11 +281,14 @@ __copy_from_user (void *to, const void __user *from, unsigned long count)
  ({                                                                                    \
        void *__cu_to = (to);                                                           \
        const void __user *__cu_from = (from);                                          \
@@ -3414,6 +5080,32 @@ index 449c8c0..50cdf87 100644
        __cu_len;                                                                       \
  })
  
+diff --git a/arch/ia64/kernel/err_inject.c b/arch/ia64/kernel/err_inject.c
+index 2d67317..07d8bfa 100644
+--- a/arch/ia64/kernel/err_inject.c
++++ b/arch/ia64/kernel/err_inject.c
+@@ -256,7 +256,7 @@ static int __cpuinit err_inject_cpu_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata err_inject_cpu_notifier =
++static struct notifier_block err_inject_cpu_notifier =
+ {
+       .notifier_call = err_inject_cpu_callback,
+ };
+diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c
+index 65bf9cd..794f06b 100644
+--- a/arch/ia64/kernel/mca.c
++++ b/arch/ia64/kernel/mca.c
+@@ -1922,7 +1922,7 @@ static int __cpuinit mca_cpu_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block mca_cpu_notifier __cpuinitdata = {
++static struct notifier_block mca_cpu_notifier = {
+       .notifier_call = mca_cpu_callback
+ };
 diff --git a/arch/ia64/kernel/module.c b/arch/ia64/kernel/module.c
 index 24603be..948052d 100644
 --- a/arch/ia64/kernel/module.c
@@ -3506,6 +5198,32 @@ index 24603be..948052d 100644
                mod->arch.gp = gp;
                DEBUGP("%s: placing gp at 0x%lx\n", __func__, gp);
        }
+diff --git a/arch/ia64/kernel/palinfo.c b/arch/ia64/kernel/palinfo.c
+index 77597e5..6f28f3f 100644
+--- a/arch/ia64/kernel/palinfo.c
++++ b/arch/ia64/kernel/palinfo.c
+@@ -1045,7 +1045,7 @@ static int __cpuinit palinfo_cpu_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __refdata palinfo_cpu_notifier =
++static struct notifier_block palinfo_cpu_notifier =
+ {
+       .notifier_call = palinfo_cpu_callback,
+       .priority = 0,
+diff --git a/arch/ia64/kernel/salinfo.c b/arch/ia64/kernel/salinfo.c
+index 79802e5..1a89ec5 100644
+--- a/arch/ia64/kernel/salinfo.c
++++ b/arch/ia64/kernel/salinfo.c
+@@ -616,7 +616,7 @@ salinfo_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu
+       return NOTIFY_OK;
+ }
+-static struct notifier_block salinfo_cpu_notifier __cpuinitdata =
++static struct notifier_block salinfo_cpu_notifier =
+ {
+       .notifier_call = salinfo_cpu_callback,
+       .priority = 0,
 diff --git a/arch/ia64/kernel/sys_ia64.c b/arch/ia64/kernel/sys_ia64.c
 index d9439ef..d0cac6b 100644
 --- a/arch/ia64/kernel/sys_ia64.c
@@ -3551,7 +5269,7 @@ index d9439ef..d0cac6b 100644
                        mm->free_area_cache = addr + len;
                        return addr;
 diff --git a/arch/ia64/kernel/topology.c b/arch/ia64/kernel/topology.c
-index c64460b..4d250a6 100644
+index dc00b2c..cce53c2 100644
 --- a/arch/ia64/kernel/topology.c
 +++ b/arch/ia64/kernel/topology.c
 @@ -445,7 +445,7 @@ static int __cpuinit cache_cpu_callback(struct notifier_block *nfb,
@@ -3649,7 +5367,7 @@ index 5ca674b..127c3cb 100644
                addr = ALIGN(vmm->vm_end, HPAGE_SIZE);
        }
 diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c
-index 082e383..fb7be80 100644
+index b755ea9..b9a969e 100644
 --- a/arch/ia64/mm/init.c
 +++ b/arch/ia64/mm/init.c
 @@ -120,6 +120,19 @@ ia64_init_addr_space (void)
@@ -3834,10 +5552,10 @@ index c1f6afa..38cc6e9 100644
  
  #endif /* _ASM_EXEC_H */
 diff --git a/arch/mips/include/asm/page.h b/arch/mips/include/asm/page.h
-index da9bd7d..91aa7ab 100644
+index dbaec94..6a14935 100644
 --- a/arch/mips/include/asm/page.h
 +++ b/arch/mips/include/asm/page.h
-@@ -98,7 +98,7 @@ extern void copy_user_highpage(struct page *to, struct page *from,
+@@ -96,7 +96,7 @@ extern void copy_user_highpage(struct page *to, struct page *from,
    #ifdef CONFIG_CPU_MIPS32
      typedef struct { unsigned long pte_low, pte_high; } pte_t;
      #define pte_val(x)    ((x).pte_low | ((unsigned long long)(x).pte_high << 32))
@@ -3863,10 +5581,10 @@ index 881d18b..cea38bc 100644
  
  /*
 diff --git a/arch/mips/include/asm/thread_info.h b/arch/mips/include/asm/thread_info.h
-index 18806a5..141ffcf 100644
+index b2050b9..d71bb1b 100644
 --- a/arch/mips/include/asm/thread_info.h
 +++ b/arch/mips/include/asm/thread_info.h
-@@ -110,6 +110,8 @@ register struct thread_info *__current_thread_info __asm__("$28");
+@@ -111,6 +111,8 @@ register struct thread_info *__current_thread_info __asm__("$28");
  #define TIF_32BIT_ADDR                23      /* 32-bit address space (o32/n32) */
  #define TIF_FPUBOUND          24      /* thread bound to FPU-full CPU set */
  #define TIF_LOAD_WATCH                25      /* If set, load watch registers */
@@ -3875,7 +5593,7 @@ index 18806a5..141ffcf 100644
  #define TIF_SYSCALL_TRACE     31      /* syscall trace active */
  
  #define _TIF_SYSCALL_TRACE    (1<<TIF_SYSCALL_TRACE)
-@@ -125,15 +127,18 @@ register struct thread_info *__current_thread_info __asm__("$28");
+@@ -126,15 +128,18 @@ register struct thread_info *__current_thread_info __asm__("$28");
  #define _TIF_32BIT_ADDR               (1<<TIF_32BIT_ADDR)
  #define _TIF_FPUBOUND         (1<<TIF_FPUBOUND)
  #define _TIF_LOAD_WATCH               (1<<TIF_LOAD_WATCH)
@@ -3933,10 +5651,10 @@ index ff44823..97f8906 100644
  
  /*
 diff --git a/arch/mips/kernel/process.c b/arch/mips/kernel/process.c
-index 69b17a9..9db82f9 100644
+index a11c6f9..be5e164 100644
 --- a/arch/mips/kernel/process.c
 +++ b/arch/mips/kernel/process.c
-@@ -478,15 +478,3 @@ unsigned long get_wchan(struct task_struct *task)
+@@ -460,15 +460,3 @@ unsigned long get_wchan(struct task_struct *task)
  out:
        return pc;
  }
@@ -3980,7 +5698,7 @@ index 4812c6d..2069554 100644
                goto out;
  
 diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
-index 374f66e..1c882a0 100644
+index d20a4bc..7096ae5 100644
 --- a/arch/mips/kernel/scall32-o32.S
 +++ b/arch/mips/kernel/scall32-o32.S
 @@ -52,7 +52,7 @@ NESTED(handle_sys, PT_SIZE, sp)
@@ -3993,7 +5711,7 @@ index 374f66e..1c882a0 100644
        bnez    t0, syscall_trace_entry # -> yes
  
 diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S
-index 169de6a..f594a89 100644
+index b64f642..0fe6eab 100644
 --- a/arch/mips/kernel/scall64-64.S
 +++ b/arch/mips/kernel/scall64-64.S
 @@ -54,7 +54,7 @@ NESTED(handle_sys64, PT_SIZE, sp)
@@ -4006,10 +5724,10 @@ index 169de6a..f594a89 100644
        and     t0, t1, t0
        bnez    t0, syscall_trace_entry
 diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S
-index 86ec03f..1235baf 100644
+index c29ac19..c592d05 100644
 --- a/arch/mips/kernel/scall64-n32.S
 +++ b/arch/mips/kernel/scall64-n32.S
-@@ -53,7 +53,7 @@ NESTED(handle_sysn32, PT_SIZE, sp)
+@@ -47,7 +47,7 @@ NESTED(handle_sysn32, PT_SIZE, sp)
  
        sd      a3, PT_R26(sp)          # save a3 for syscall restarting
  
@@ -4019,7 +5737,7 @@ index 86ec03f..1235baf 100644
        and     t0, t1, t0
        bnez    t0, n32_syscall_trace_entry
 diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
-index 53c2d72..3734584 100644
+index cf3e75e..72e93fe 100644
 --- a/arch/mips/kernel/scall64-o32.S
 +++ b/arch/mips/kernel/scall64-o32.S
 @@ -81,7 +81,7 @@ NESTED(handle_sys, PT_SIZE, sp)
@@ -4060,18 +5778,18 @@ index ddcec1e..c7f983e 100644
   * This routine handles page faults.  It determines the address,
   * and the problem, and then passes it off to one of the appropriate
 diff --git a/arch/mips/mm/mmap.c b/arch/mips/mm/mmap.c
-index 302d779..6459dc0 100644
+index 7e5fe27..479a219 100644
 --- a/arch/mips/mm/mmap.c
 +++ b/arch/mips/mm/mmap.c
-@@ -71,6 +71,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
+@@ -59,6 +59,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
        struct vm_area_struct *vma;
        unsigned long addr = addr0;
        int do_color_align;
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
+       struct vm_unmapped_area_info info;
  
        if (unlikely(len > TASK_SIZE))
-               return -ENOMEM;
-@@ -95,6 +96,11 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
+@@ -84,6 +85,11 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
                do_color_align = 1;
  
        /* requesting a specific address */
@@ -4083,7 +5801,7 @@ index 302d779..6459dc0 100644
        if (addr) {
                if (do_color_align)
                        addr = COLOUR_ALIGN(addr, pgoff);
-@@ -102,8 +108,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
+@@ -91,8 +97,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
                        addr = PAGE_ALIGN(addr);
  
                vma = find_vma(mm, addr);
@@ -4093,70 +5811,18 @@ index 302d779..6459dc0 100644
                        return addr;
        }
  
-@@ -118,7 +123,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
-                       /* At this point:  (!vma || addr < vma->vm_end). */
-                       if (TASK_SIZE - len < addr)
-                               return -ENOMEM;
--                      if (!vma || addr + len <= vma->vm_start)
-+                      if (check_heap_stack_gap(vmm, addr, len, offset))
-                               return addr;
-                       addr = vma->vm_end;
-                       if (do_color_align)
-@@ -145,7 +150,7 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
-               /* make sure it can fit in the remaining address space */
-               if (likely(addr > len)) {
-                       vma = find_vma(mm, addr - len);
--                      if (!vma || addr <= vma->vm_start) {
-+                      if (check_heap_stack_gap(vmm, addr - len, len, offset))
-                               /* cache the address as a hint for next time */
-                               return mm->free_area_cache = addr - len;
-                       }
-@@ -155,17 +160,17 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
-                       goto bottomup;
-               addr = mm->mmap_base - len;
--              if (do_color_align)
--                      addr = COLOUR_ALIGN_DOWN(addr, pgoff);
-               do {
-+                      if (do_color_align)
-+                              addr = COLOUR_ALIGN_DOWN(addr, pgoff);
-                       /*
-                        * Lookup failure means no vma is above this address,
-                        * else if new region fits below vma->vm_start,
-                        * return with success:
-                        */
-                       vma = find_vma(mm, addr);
--                      if (likely(!vma || addr + len <= vma->vm_start)) {
-+                      if (check_heap_stack_gap(vmm, addr, len, offset)) {
-                               /* cache the address as a hint for next time */
-                               return mm->free_area_cache = addr;
-                       }
-@@ -175,10 +180,8 @@ static unsigned long arch_get_unmapped_area_common(struct file *filp,
-                               mm->cached_hole_size = vma->vm_start - addr;
-                       /* try just below the current vma->vm_start */
--                      addr = vma->vm_start - len;
--                      if (do_color_align)
--                              addr = COLOUR_ALIGN_DOWN(addr, pgoff);
--              } while (likely(len < vma->vm_start));
-+                      addr = skip_heap_stack_gap(vma, len, offset);
-+              } while (!IS_ERR_VALUE(addr));
- bottomup:
-               /*
-@@ -223,6 +226,10 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
+@@ -146,6 +151,10 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
  {
        unsigned long random_factor = 0UL;
  
 +#ifdef CONFIG_PAX_RANDMMAP
-+      if (!(current->mm->pax_flags & MF_PAX_RANDMMAP))
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP))
 +#endif
 +
        if (current->flags & PF_RANDOMIZE) {
                random_factor = get_random_int();
                random_factor = random_factor << PAGE_SHIFT;
-@@ -234,38 +241,23 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
+@@ -157,42 +166,27 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
  
        if (mmap_is_legacy()) {
                mm->mmap_base = TASK_UNMAPPED_BASE + random_factor;
@@ -4180,7 +5846,7 @@ index 302d779..6459dc0 100644
                mm->unmap_area = arch_unmap_area_topdown;
        }
  }
--
 -static inline unsigned long brk_rnd(void)
 -{
 -      unsigned long rnd = get_random_int();
@@ -4207,6 +5873,10 @@ index 302d779..6459dc0 100644
 -
 -      return ret;
 -}
+-
+ int __virt_addr_valid(const volatile void *kaddr)
+ {
+       return pfn_valid(PFN_DOWN(virt_to_phys(kaddr)));
 diff --git a/arch/mn10300/proc-mn103e010/include/proc/cache.h b/arch/mn10300/proc-mn103e010/include/proc/cache.h
 index 967d144..db12197 100644
 --- a/arch/mn10300/proc-mn103e010/include/proc/cache.h
@@ -4359,10 +6029,10 @@ index fc987a1..6e068ef 100644
  #endif
  
 diff --git a/arch/parisc/include/asm/pgtable.h b/arch/parisc/include/asm/pgtable.h
-index ee99f23..802b0a1 100644
+index 7df49fa..38b62bf 100644
 --- a/arch/parisc/include/asm/pgtable.h
 +++ b/arch/parisc/include/asm/pgtable.h
-@@ -212,6 +212,17 @@ struct vm_area_struct;
+@@ -218,6 +218,17 @@ extern void purge_tlb_entries(struct mm_struct *, unsigned long);
  #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)
@@ -4398,7 +6068,7 @@ index 4ba2c93..f5e3974 100644
          else
                  copy_from_user_overflow();
 diff --git a/arch/parisc/kernel/module.c b/arch/parisc/kernel/module.c
-index 5e34ccf..672bc9c 100644
+index 2a625fb..9908930 100644
 --- a/arch/parisc/kernel/module.c
 +++ b/arch/parisc/kernel/module.c
 @@ -98,16 +98,38 @@
@@ -4444,7 +6114,7 @@ index 5e34ccf..672bc9c 100644
  }
  
  static inline int in_local(struct module *me, void *loc)
-@@ -373,13 +395,13 @@ int module_frob_arch_sections(CONST Elf_Ehdr *hdr,
+@@ -371,13 +393,13 @@ int module_frob_arch_sections(CONST Elf_Ehdr *hdr,
        }
  
        /* align things a bit */
@@ -4464,7 +6134,7 @@ index 5e34ccf..672bc9c 100644
  
        me->arch.got_max = gots;
        me->arch.fdesc_max = fdescs;
-@@ -397,7 +419,7 @@ static Elf64_Word get_got(struct module *me, unsigned long value, long addend)
+@@ -395,7 +417,7 @@ static Elf64_Word get_got(struct module *me, unsigned long value, long addend)
  
        BUG_ON(value == 0);
  
@@ -4473,7 +6143,7 @@ index 5e34ccf..672bc9c 100644
        for (i = 0; got[i].addr; i++)
                if (got[i].addr == value)
                        goto out;
-@@ -415,7 +437,7 @@ static Elf64_Word get_got(struct module *me, unsigned long value, long addend)
+@@ -413,7 +435,7 @@ static Elf64_Word get_got(struct module *me, unsigned long value, long addend)
  #ifdef CONFIG_64BIT
  static Elf_Addr get_fdesc(struct module *me, unsigned long value)
  {
@@ -4482,7 +6152,7 @@ index 5e34ccf..672bc9c 100644
  
        if (!value) {
                printk(KERN_ERR "%s: zero OPD requested!\n", me->name);
-@@ -433,7 +455,7 @@ static Elf_Addr get_fdesc(struct module *me, unsigned long value)
+@@ -431,7 +453,7 @@ static Elf_Addr get_fdesc(struct module *me, unsigned long value)
  
        /* Create new one */
        fdesc->addr = value;
@@ -4491,7 +6161,7 @@ index 5e34ccf..672bc9c 100644
        return (Elf_Addr)fdesc;
  }
  #endif /* CONFIG_64BIT */
-@@ -845,7 +867,7 @@ register_unwind_table(struct module *me,
+@@ -843,7 +865,7 @@ register_unwind_table(struct module *me,
  
        table = (unsigned char *)sechdrs[me->arch.unwind_section].sh_addr;
        end = table + sechdrs[me->arch.unwind_section].sh_size;
@@ -4982,7 +6652,7 @@ index 4aad413..85d86bf 100644
  #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 d24c141..b60696e 100644
+index 3d5c9dc..62f8414 100644
 --- a/arch/powerpc/include/asm/reg.h
 +++ b/arch/powerpc/include/asm/reg.h
 @@ -215,6 +215,7 @@
@@ -5028,19 +6698,10 @@ index 406b7b9..af63426 100644
  #define _TIF_USER_WORK_MASK   (_TIF_SIGPENDING | _TIF_NEED_RESCHED | \
                                 _TIF_NOTIFY_RESUME | _TIF_UPROBE)
 diff --git a/arch/powerpc/include/asm/uaccess.h b/arch/powerpc/include/asm/uaccess.h
-index 4db4959..335e00c 100644
+index 4db4959..aba5c41 100644
 --- a/arch/powerpc/include/asm/uaccess.h
 +++ b/arch/powerpc/include/asm/uaccess.h
-@@ -13,6 +13,8 @@
- #define VERIFY_READ   0
- #define VERIFY_WRITE  1
-+extern void check_object_size(const void *ptr, unsigned long n, bool to);
-+
- /*
-  * The fs value determines whether argument validity checking should be
-  * performed or not.  If get_fs() == USER_DS, checking is performed, with
-@@ -318,52 +320,6 @@ do {                                                              \
+@@ -318,52 +318,6 @@ do {                                                              \
  extern unsigned long __copy_tofrom_user(void __user *to,
                const void __user *from, unsigned long size);
  
@@ -5093,7 +6754,7 @@ index 4db4959..335e00c 100644
  static inline unsigned long __copy_from_user_inatomic(void *to,
                const void __user *from, unsigned long n)
  {
-@@ -387,6 +343,10 @@ static inline unsigned long __copy_from_user_inatomic(void *to,
+@@ -387,6 +341,10 @@ static inline unsigned long __copy_from_user_inatomic(void *to,
                if (ret == 0)
                        return 0;
        }
@@ -5104,7 +6765,7 @@ index 4db4959..335e00c 100644
        return __copy_tofrom_user((__force void __user *)to, from, n);
  }
  
-@@ -413,6 +373,10 @@ static inline unsigned long __copy_to_user_inatomic(void __user *to,
+@@ -413,6 +371,10 @@ static inline unsigned long __copy_to_user_inatomic(void __user *to,
                if (ret == 0)
                        return 0;
        }
@@ -5115,7 +6776,7 @@ index 4db4959..335e00c 100644
        return __copy_tofrom_user(to, (__force const void __user *)from, n);
  }
  
-@@ -430,6 +394,92 @@ static inline unsigned long __copy_to_user(void __user *to,
+@@ -430,6 +392,92 @@ static inline unsigned long __copy_to_user(void __user *to,
        return __copy_to_user_inatomic(to, from, size);
  }
  
@@ -5231,10 +6892,10 @@ index 4684e33..acc4d19e 100644
        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 10b658a..e542888 100644
+index 3684cbd..bc89eab 100644
 --- a/arch/powerpc/kernel/exceptions-64s.S
 +++ b/arch/powerpc/kernel/exceptions-64s.S
-@@ -1013,10 +1013,10 @@ handle_page_fault:
+@@ -1206,10 +1206,10 @@ handle_page_fault:
  11:   ld      r4,_DAR(r1)
        ld      r5,_DSISR(r1)
        addi    r3,r1,STACK_FRAME_OVERHEAD
@@ -5280,7 +6941,7 @@ index 2e3200c..72095ce 100644
        /* 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 ba48233..16ac31d 100644
+index 8143067..21ae55b 100644
 --- a/arch/powerpc/kernel/process.c
 +++ b/arch/powerpc/kernel/process.c
 @@ -680,8 +680,8 @@ void show_regs(struct pt_regs * regs)
@@ -5294,7 +6955,7 @@ index ba48233..16ac31d 100644
  #endif
        show_stack(current, (unsigned long *) regs->gpr[1]);
        if (!user_mode(regs))
-@@ -1175,10 +1175,10 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
+@@ -1129,10 +1129,10 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
                newsp = stack[0];
                ip = stack[STACK_FRAME_LR_SAVE];
                if (!firstframe || ip != lr) {
@@ -5307,7 +6968,7 @@ index ba48233..16ac31d 100644
                                       (void *)current->ret_stack[curr_frame].ret);
                                curr_frame--;
                        }
-@@ -1198,7 +1198,7 @@ void show_stack(struct task_struct *tsk, unsigned long *stack)
+@@ -1152,7 +1152,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;
@@ -5316,7 +6977,7 @@ index ba48233..16ac31d 100644
                               regs->trap, (void *)regs->nip, (void *)lr);
                        firstframe = 1;
                }
-@@ -1240,58 +1240,3 @@ void __ppc64_runlatch_off(void)
+@@ -1194,58 +1194,3 @@ void __ppc64_runlatch_off(void)
        mtspr(SPRN_CTRLT, ctrl);
  }
  #endif /* CONFIG_PPC64 */
@@ -5376,10 +7037,10 @@ index ba48233..16ac31d 100644
 -      return ret;
 -}
 diff --git a/arch/powerpc/kernel/ptrace.c b/arch/powerpc/kernel/ptrace.c
-index 79d8e56..38ffcbb 100644
+index c497000..8fde506 100644
 --- a/arch/powerpc/kernel/ptrace.c
 +++ b/arch/powerpc/kernel/ptrace.c
-@@ -1663,6 +1663,10 @@ long arch_ptrace(struct task_struct *child, long request,
+@@ -1737,6 +1737,10 @@ long arch_ptrace(struct task_struct *child, long request,
        return ret;
  }
  
@@ -5390,7 +7051,7 @@ index 79d8e56..38ffcbb 100644
  /*
   * We must return the syscall number to actually look up in the table.
   * This can be -1L to skip running any syscall at all.
-@@ -1673,6 +1677,11 @@ long do_syscall_trace_enter(struct pt_regs *regs)
+@@ -1747,6 +1751,11 @@ long do_syscall_trace_enter(struct pt_regs *regs)
  
        secure_computing_strict(regs->gpr[0]);
  
@@ -5402,7 +7063,7 @@ index 79d8e56..38ffcbb 100644
        if (test_thread_flag(TIF_SYSCALL_TRACE) &&
            tracehook_report_syscall_entry(regs))
                /*
-@@ -1707,6 +1716,11 @@ void do_syscall_trace_leave(struct pt_regs *regs)
+@@ -1781,6 +1790,11 @@ void do_syscall_trace_leave(struct pt_regs *regs)
  {
        int step;
  
@@ -5428,7 +7089,7 @@ index 804e323..79181c1 100644
                        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 d183f87..1867f1a 100644
+index 1ca045d..139c3f7 100644
 --- a/arch/powerpc/kernel/signal_64.c
 +++ b/arch/powerpc/kernel/signal_64.c
 @@ -430,7 +430,7 @@ int handle_rt_signal64(int signr, struct k_sigaction *ka, siginfo_t *info,
@@ -5440,6 +7101,19 @@ index d183f87..1867f1a 100644
                regs->link = current->mm->context.vdso_base + vdso64_rt_sigtramp;
        } else {
                err |= setup_trampoline(__NR_rt_sigreturn, &frame->tramp[0]);
+diff --git a/arch/powerpc/kernel/sysfs.c b/arch/powerpc/kernel/sysfs.c
+index 3ce1f86..c30e629 100644
+--- a/arch/powerpc/kernel/sysfs.c
++++ b/arch/powerpc/kernel/sysfs.c
+@@ -522,7 +522,7 @@ static int __cpuinit sysfs_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata sysfs_cpu_nb = {
++static struct notifier_block sysfs_cpu_nb = {
+       .notifier_call  = sysfs_cpu_notify,
+ };
 diff --git a/arch/powerpc/kernel/traps.c b/arch/powerpc/kernel/traps.c
 index 3251840..3f7c77a 100644
 --- a/arch/powerpc/kernel/traps.c
@@ -5529,7 +7203,7 @@ index 5eea6f3..5d10396 100644
  EXPORT_SYMBOL(copy_in_user);
  
 diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c
-index 0a6b283..7674925 100644
+index 3a8489a..6a63b3b 100644
 --- a/arch/powerpc/mm/fault.c
 +++ b/arch/powerpc/mm/fault.c
 @@ -32,6 +32,10 @@
@@ -5577,7 +7251,7 @@ index 0a6b283..7674925 100644
  /*
   * Check whether the instruction at regs->nip is a store using
   * an update addressing form which will update r1.
-@@ -216,7 +247,7 @@ int __kprobes do_page_fault(struct pt_regs *regs, unsigned long address,
+@@ -213,7 +244,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)
@@ -5586,7 +7260,7 @@ index 0a6b283..7674925 100644
        else
                is_write = error_code & DSISR_ISSTORE;
  #else
-@@ -367,7 +398,7 @@ good_area:
+@@ -364,7 +395,7 @@ good_area:
           * "undefined".  Of those that can be set, this is the only
           * one which seems bad.
           */
@@ -5595,7 +7269,7 @@ index 0a6b283..7674925 100644
                  /* Guarded storage error. */
                goto bad_area;
  #endif /* CONFIG_8xx */
-@@ -382,7 +413,7 @@ good_area:
+@@ -379,7 +410,7 @@ good_area:
                 * processors use the same I/D cache coherency mechanism
                 * as embedded.
                 */
@@ -5604,7 +7278,7 @@ index 0a6b283..7674925 100644
                        goto bad_area;
  #endif /* CONFIG_PPC_STD_MMU */
  
-@@ -465,6 +496,23 @@ bad_area:
+@@ -462,6 +493,23 @@ bad_area:
  bad_area_nosemaphore:
        /* User mode accesses cause a SIGSEGV */
        if (user_mode(regs)) {
@@ -5629,7 +7303,7 @@ index 0a6b283..7674925 100644
                return 0;
        }
 diff --git a/arch/powerpc/mm/mmap_64.c b/arch/powerpc/mm/mmap_64.c
-index 67a42ed..c16ef80 100644
+index 67a42ed..cd463e0 100644
 --- a/arch/powerpc/mm/mmap_64.c
 +++ b/arch/powerpc/mm/mmap_64.c
 @@ -57,6 +57,10 @@ static unsigned long mmap_rnd(void)
@@ -5637,7 +7311,7 @@ index 67a42ed..c16ef80 100644
        unsigned long rnd = 0;
  
 +#ifdef CONFIG_PAX_RANDMMAP
-+      if (!(current->mm->pax_flags & MF_PAX_RANDMMAP))
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP))
 +#endif
 +
        if (current->flags & PF_RANDOMIZE) {
@@ -5666,8 +7340,34 @@ index 67a42ed..c16ef80 100644
                mm->get_unmapped_area = arch_get_unmapped_area_topdown;
                mm->unmap_area = arch_unmap_area_topdown;
        }
+diff --git a/arch/powerpc/mm/mmu_context_nohash.c b/arch/powerpc/mm/mmu_context_nohash.c
+index e779642..e5bb889 100644
+--- a/arch/powerpc/mm/mmu_context_nohash.c
++++ b/arch/powerpc/mm/mmu_context_nohash.c
+@@ -363,7 +363,7 @@ static int __cpuinit mmu_context_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata mmu_context_cpu_nb = {
++static struct notifier_block mmu_context_cpu_nb = {
+       .notifier_call  = mmu_context_cpu_notify,
+ };
+diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
+index bba87ca..c346a33 100644
+--- a/arch/powerpc/mm/numa.c
++++ b/arch/powerpc/mm/numa.c
+@@ -932,7 +932,7 @@ static void __init *careful_zallocation(int nid, unsigned long size,
+       return ret;
+ }
+-static struct notifier_block __cpuinitdata ppc64_numa_nb = {
++static struct notifier_block ppc64_numa_nb = {
+       .notifier_call = cpu_numa_callback,
+       .priority = 1 /* Must run before sched domains notifier. */
+ };
 diff --git a/arch/powerpc/mm/slice.c b/arch/powerpc/mm/slice.c
-index 5829d2a..af84242 100644
+index cf9dada..241529f 100644
 --- a/arch/powerpc/mm/slice.c
 +++ b/arch/powerpc/mm/slice.c
 @@ -103,7 +103,7 @@ static int slice_area_is_free(struct mm_struct *mm, unsigned long addr,
@@ -5736,6 +7436,35 @@ index 5829d2a..af84242 100644
        /* If hint, make sure it matches our alignment restrictions */
        if (!fixed && addr) {
                addr = _ALIGN_UP(addr, 1ul << pshift);
+diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
+index 0cfece4..2f1a0e5 100644
+--- a/arch/powerpc/platforms/cell/spufs/file.c
++++ b/arch/powerpc/platforms/cell/spufs/file.c
+@@ -281,9 +281,9 @@ spufs_mem_mmap_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
+       return VM_FAULT_NOPAGE;
+ }
+-static int spufs_mem_mmap_access(struct vm_area_struct *vma,
++static ssize_t spufs_mem_mmap_access(struct vm_area_struct *vma,
+                               unsigned long address,
+-                              void *buf, int len, int write)
++                              void *buf, size_t len, int write)
+ {
+       struct spu_context *ctx = vma->vm_file->private_data;
+       unsigned long offset = address - vma->vm_start;
+diff --git a/arch/powerpc/platforms/powermac/smp.c b/arch/powerpc/platforms/powermac/smp.c
+index bdb738a..49c9f95 100644
+--- a/arch/powerpc/platforms/powermac/smp.c
++++ b/arch/powerpc/platforms/powermac/smp.c
+@@ -885,7 +885,7 @@ static int smp_core99_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata smp_core99_cpu_nb = {
++static struct notifier_block smp_core99_cpu_nb = {
+       .notifier_call  = smp_core99_cpu_notify,
+ };
+ #endif /* CONFIG_HOTPLUG_CPU */
 diff --git a/arch/s390/include/asm/atomic.h b/arch/s390/include/asm/atomic.h
 index c797832..ce575c8 100644
 --- a/arch/s390/include/asm/atomic.h
@@ -5934,10 +7663,10 @@ index 4610dea..cf0af21 100644
                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 cd31ad4..201c5a3 100644
+index 536d645..4a5bd9e 100644
 --- a/arch/s390/kernel/process.c
 +++ b/arch/s390/kernel/process.c
-@@ -283,39 +283,3 @@ unsigned long get_wchan(struct task_struct *p)
+@@ -250,39 +250,3 @@ unsigned long get_wchan(struct task_struct *p)
        }
        return 0;
  }
@@ -6055,10 +7784,10 @@ index f9f3cd5..58ff438 100644
  
  #endif /* _ASM_SCORE_EXEC_H */
 diff --git a/arch/score/kernel/process.c b/arch/score/kernel/process.c
-index 637970c..0b6556b 100644
+index 7956846..5f37677 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)
+@@ -134,8 +134,3 @@ unsigned long get_wchan(struct task_struct *task)
  
        return task_pt_regs(task)->cp0_epc;
  }
@@ -6084,19 +7813,43 @@ index ef9e555..331bd29 100644
  
  #define __read_mostly __attribute__((__section__(".data..read_mostly")))
  
+diff --git a/arch/sh/kernel/cpu/sh4a/smp-shx3.c b/arch/sh/kernel/cpu/sh4a/smp-shx3.c
+index 03f2b55..b027032 100644
+--- a/arch/sh/kernel/cpu/sh4a/smp-shx3.c
++++ b/arch/sh/kernel/cpu/sh4a/smp-shx3.c
+@@ -143,7 +143,7 @@ shx3_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata shx3_cpu_notifier = {
++static struct notifier_block shx3_cpu_notifier = {
+       .notifier_call          = shx3_cpu_callback,
+ };
 diff --git a/arch/sh/mm/mmap.c b/arch/sh/mm/mmap.c
-index afeb710..e8366ef 100644
+index 6777177..cb5e44f 100644
 --- a/arch/sh/mm/mmap.c
 +++ b/arch/sh/mm/mmap.c
-@@ -49,6 +49,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -36,6 +36,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
+       struct mm_struct *mm = current->mm;
        struct vm_area_struct *vma;
-       unsigned long start_addr;
        int do_colour_align;
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
+       struct vm_unmapped_area_info info;
  
        if (flags & MAP_FIXED) {
-               /* We do not accept a shared mapping if it would violate
-@@ -74,8 +75,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -55,6 +56,10 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
+       if (filp || (flags & MAP_SHARED))
+               do_colour_align = 1;
++#ifdef CONFIG_PAX_RANDMMAP
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP))
++#endif
++
+       if (addr) {
+               if (do_colour_align)
+                       addr = COLOUR_ALIGN(addr, pgoff);
+@@ -62,14 +67,13 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr,
                        addr = PAGE_ALIGN(addr);
  
                vma = find_vma(mm, addr);
@@ -6106,24 +7859,33 @@ index afeb710..e8366ef 100644
                        return addr;
        }
  
-@@ -106,7 +106,7 @@ full_search:
-                       }
-                       return -ENOMEM;
-               }
--              if (likely(!vma || addr + len <= vma->vm_start)) {
-+              if (likely(check_heap_stack_gap(vma, addr, len, offset))) {
-                       /*
-                        * Remember the place where we stopped the search:
-                        */
-@@ -131,6 +131,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+       info.flags = 0;
+       info.length = len;
+-      info.low_limit = TASK_UNMAPPED_BASE;
++      info.low_limit = mm->mmap_base;
+       info.high_limit = TASK_SIZE;
+       info.align_mask = do_colour_align ? (PAGE_MASK & shm_align_mask) : 0;
+       info.align_offset = pgoff << PAGE_SHIFT;
+@@ -85,6 +89,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
        struct mm_struct *mm = current->mm;
        unsigned long addr = addr0;
        int do_colour_align;
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
+       struct vm_unmapped_area_info info;
  
        if (flags & MAP_FIXED) {
-               /* We do not accept a shared mapping if it would violate
-@@ -157,8 +158,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -104,6 +109,10 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+       if (filp || (flags & MAP_SHARED))
+               do_colour_align = 1;
++#ifdef CONFIG_PAX_RANDMMAP
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP))
++#endif
++
+       /* requesting a specific address */
+       if (addr) {
+               if (do_colour_align)
+@@ -112,8 +121,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
                        addr = PAGE_ALIGN(addr);
  
                vma = find_vma(mm, addr);
@@ -6133,51 +7895,19 @@ index afeb710..e8366ef 100644
                        return addr;
        }
  
-@@ -179,7 +179,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-       /* make sure it can fit in the remaining address space */
-       if (likely(addr > len)) {
-               vma = find_vma(mm, addr-len);
--              if (!vma || addr <= vma->vm_start) {
-+              if (check_heap_stack_gap(vma, addr - len, len, offset)) {
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr-len);
-               }
-@@ -188,18 +188,18 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-       if (unlikely(mm->mmap_base < len))
-               goto bottomup;
--      addr = mm->mmap_base-len;
--      if (do_colour_align)
--              addr = COLOUR_ALIGN_DOWN(addr, pgoff);
-+      addr = mm->mmap_base - len;
-       do {
-+              if (do_colour_align)
-+                      addr = COLOUR_ALIGN_DOWN(addr, pgoff);
-               /*
-                * Lookup failure means no vma is above this address,
-                * else if new region fits below vma->vm_start,
-                * return with success:
-                */
-               vma = find_vma(mm, addr);
--              if (likely(!vma || addr+len <= vma->vm_start)) {
-+              if (likely(check_heap_stack_gap(vma, addr, len, offset))) {
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr);
-               }
-@@ -209,10 +209,8 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-                       mm->cached_hole_size = vma->vm_start - addr;
-               /* try just below the current vma->vm_start */
--              addr = vma->vm_start-len;
--              if (do_colour_align)
--                      addr = COLOUR_ALIGN_DOWN(addr, pgoff);
--      } while (likely(len < vma->vm_start));
-+              addr = skip_heap_stack_gap(vma, len, offset);
-+      } while (!IS_ERR_VALUE(addr));
- bottomup:
-       /*
+@@ -135,6 +143,12 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+               VM_BUG_ON(addr != -ENOMEM);
+               info.flags = 0;
+               info.low_limit = TASK_UNMAPPED_BASE;
++
++#ifdef CONFIG_PAX_RANDMMAP
++              if (mm->pax_flags & MF_PAX_RANDMMAP)
++                      info.low_limit += mm->delta_mmap;
++#endif
++
+               info.high_limit = TASK_SIZE;
+               addr = vm_unmapped_area(&info);
+       }
 diff --git a/arch/sparc/include/asm/atomic_64.h b/arch/sparc/include/asm/atomic_64.h
 index be56a24..443328f 100644
 --- a/arch/sparc/include/asm/atomic_64.h
@@ -6616,7 +8346,7 @@ index 25849ae..924c54b 100644
  
  /*
 diff --git a/arch/sparc/include/asm/thread_info_64.h b/arch/sparc/include/asm/thread_info_64.h
-index a3fe4dc..cae132a 100644
+index 269bd92..e46a9b8 100644
 --- a/arch/sparc/include/asm/thread_info_64.h
 +++ b/arch/sparc/include/asm/thread_info_64.h
 @@ -63,6 +63,8 @@ struct thread_info {
@@ -6628,7 +8358,7 @@ index a3fe4dc..cae132a 100644
        unsigned long           fpregs[0] __attribute__ ((aligned(64)));
  };
  
-@@ -193,10 +195,11 @@ register struct thread_info *current_thread_info_reg asm("g6");
+@@ -192,10 +194,11 @@ register struct thread_info *current_thread_info_reg asm("g6");
  #define TIF_UNALIGNED         5       /* allowed to do unaligned accesses */
  /* flag bit 6 is available */
  #define TIF_32BIT             7       /* 32-bit binary */
@@ -6641,7 +8371,7 @@ index a3fe4dc..cae132a 100644
  /* NOTE: Thread flags >= 12 should be ones we have no interest
   *       in using in assembly, else we can't use the mask as
   *       an immediate value in instructions such as andcc.
-@@ -215,12 +218,18 @@ register struct thread_info *current_thread_info_reg asm("g6");
+@@ -214,12 +217,18 @@ register struct thread_info *current_thread_info_reg asm("g6");
  #define _TIF_SYSCALL_AUDIT    (1<<TIF_SYSCALL_AUDIT)
  #define _TIF_SYSCALL_TRACEPOINT       (1<<TIF_SYSCALL_TRACEPOINT)
  #define _TIF_POLLING_NRFLAG   (1<<TIF_POLLING_NRFLAG)
@@ -6661,19 +8391,12 @@ index a3fe4dc..cae132a 100644
   * Thread-synchronous status.
   *
 diff --git a/arch/sparc/include/asm/uaccess.h b/arch/sparc/include/asm/uaccess.h
-index 0167d26..9acd8ed 100644
+index 0167d26..767bb0c 100644
 --- a/arch/sparc/include/asm/uaccess.h
 +++ b/arch/sparc/include/asm/uaccess.h
-@@ -1,5 +1,13 @@
+@@ -1,5 +1,6 @@
  #ifndef ___ASM_SPARC_UACCESS_H
  #define ___ASM_SPARC_UACCESS_H
-+
-+#ifdef __KERNEL__
-+#ifndef __ASSEMBLY__
-+#include <linux/types.h>
-+extern void check_object_size(const void *ptr, unsigned long n, bool to);
-+#endif
-+#endif
 +
  #if defined(__sparc__) && defined(__arch64__)
  #include <asm/uaccess_64.h>
@@ -6734,7 +8457,7 @@ index 53a28dd..50c38c3 100644
  }
  
 diff --git a/arch/sparc/include/asm/uaccess_64.h b/arch/sparc/include/asm/uaccess_64.h
-index 73083e1..2bc62a6 100644
+index e562d3c..191f176 100644
 --- a/arch/sparc/include/asm/uaccess_64.h
 +++ b/arch/sparc/include/asm/uaccess_64.h
 @@ -10,6 +10,7 @@
@@ -6793,7 +8516,7 @@ index 6cf591b..b49e65a 100644
  extra-y     := head_$(BITS).o
  
 diff --git a/arch/sparc/kernel/process_32.c b/arch/sparc/kernel/process_32.c
-index 487bffb..955a925 100644
+index be8e862..5b50b12 100644
 --- a/arch/sparc/kernel/process_32.c
 +++ b/arch/sparc/kernel/process_32.c
 @@ -126,14 +126,14 @@ void show_regs(struct pt_regs *r)
@@ -6823,7 +8546,7 @@ index 487bffb..955a925 100644
        } while (++count < 16);
        printk("\n");
 diff --git a/arch/sparc/kernel/process_64.c b/arch/sparc/kernel/process_64.c
-index c6e0c29..052832b 100644
+index cdb80b2..5ca141d 100644
 --- a/arch/sparc/kernel/process_64.c
 +++ b/arch/sparc/kernel/process_64.c
 @@ -181,14 +181,14 @@ static void show_regwindow(struct pt_regs *regs)
@@ -6861,6 +8584,19 @@ index c6e0c29..052832b 100644
                               (void *) gp->tpc,
                               (void *) gp->o7,
                               (void *) gp->i7,
+diff --git a/arch/sparc/kernel/prom_common.c b/arch/sparc/kernel/prom_common.c
+index 1303021..c2a6321 100644
+--- a/arch/sparc/kernel/prom_common.c
++++ b/arch/sparc/kernel/prom_common.c
+@@ -143,7 +143,7 @@ static int __init prom_common_nextprop(phandle node, char *prev, char *buf)
+ unsigned int prom_early_allocated __initdata;
+-static struct of_pdt_ops prom_sparc_ops __initdata = {
++static struct of_pdt_ops prom_sparc_ops __initconst = {
+       .nextprop = prom_common_nextprop,
+       .getproplen = prom_getproplen,
+       .getproperty = prom_getproperty,
 diff --git a/arch/sparc/kernel/ptrace_64.c b/arch/sparc/kernel/ptrace_64.c
 index 7ff45e4..a58f271 100644
 --- a/arch/sparc/kernel/ptrace_64.c
@@ -6901,44 +8637,28 @@ index 7ff45e4..a58f271 100644
  
        if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
 diff --git a/arch/sparc/kernel/sys_sparc_32.c b/arch/sparc/kernel/sys_sparc_32.c
-index 0c9b31b..55a8ba6 100644
+index 2da0bdc..79128d2 100644
 --- a/arch/sparc/kernel/sys_sparc_32.c
 +++ b/arch/sparc/kernel/sys_sparc_32.c
-@@ -39,6 +39,7 @@ asmlinkage unsigned long sys_getpagesize(void)
- unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
- {
-       struct vm_area_struct * vmm;
-+      unsigned long offset = gr_rand_threadstack_offset(current->mm, filp, flags);
-       if (flags & MAP_FIXED) {
-               /* We do not accept a shared mapping if it would violate
-@@ -54,7 +55,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
+@@ -52,7 +52,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
        if (len > TASK_SIZE - PAGE_SIZE)
                return -ENOMEM;
        if (!addr)
 -              addr = TASK_UNMAPPED_BASE;
 +              addr = current->mm->mmap_base;
  
-       if (flags & MAP_SHARED)
-               addr = COLOUR_ALIGN(addr);
-@@ -65,7 +66,7 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
-               /* At this point:  (!vmm || addr < vmm->vm_end). */
-               if (TASK_SIZE - PAGE_SIZE - len < addr)
-                       return -ENOMEM;
--              if (!vmm || addr + len <= vmm->vm_start)
-+              if (check_heap_stack_gap(vmm, addr, len, offset))
-                       return addr;
-               addr = vmm->vm_end;
-               if (flags & MAP_SHARED)
+       info.flags = 0;
+       info.length = len;
 diff --git a/arch/sparc/kernel/sys_sparc_64.c b/arch/sparc/kernel/sys_sparc_64.c
-index 878ef3d..f100719 100644
+index 708bc29..f0129cb 100644
 --- a/arch/sparc/kernel/sys_sparc_64.c
 +++ b/arch/sparc/kernel/sys_sparc_64.c
-@@ -102,12 +102,13 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
+@@ -90,13 +90,14 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
+       struct vm_area_struct * vma;
        unsigned long task_size = TASK_SIZE;
-       unsigned long start_addr;
        int do_color_align;
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
+       struct vm_unmapped_area_info info;
  
        if (flags & MAP_FIXED) {
                /* We do not accept a shared mapping if it would violate
@@ -6949,7 +8669,7 @@ index 878ef3d..f100719 100644
                    ((addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1)))
                        return -EINVAL;
                return addr;
-@@ -122,6 +123,10 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
+@@ -111,6 +112,10 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
        if (filp || (flags & MAP_SHARED))
                do_color_align = 1;
  
@@ -6959,8 +8679,8 @@ index 878ef3d..f100719 100644
 +
        if (addr) {
                if (do_color_align)
-                       addr = COLOUR_ALIGN(addr, pgoff);
-@@ -129,15 +134,14 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
+                       addr = COLOR_ALIGN(addr, pgoff);
+@@ -118,14 +123,13 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
                        addr = PAGE_ALIGN(addr);
  
                vma = find_vma(mm, addr);
@@ -6970,42 +8690,35 @@ index 878ef3d..f100719 100644
                        return addr;
        }
  
-       if (len > mm->cached_hole_size) {
--              start_addr = addr = mm->free_area_cache;
-+              start_addr = addr = mm->free_area_cache;
-       } else {
--              start_addr = addr = TASK_UNMAPPED_BASE;
-+              start_addr = addr = mm->mmap_base;
-               mm->cached_hole_size = 0;
+       info.flags = 0;
+       info.length = len;
+-      info.low_limit = TASK_UNMAPPED_BASE;
++      info.low_limit = mm->mmap_base;
+       info.high_limit = min(task_size, VA_EXCLUDE_START);
+       info.align_mask = do_color_align ? (PAGE_MASK & (SHMLBA - 1)) : 0;
+       info.align_offset = pgoff << PAGE_SHIFT;
+@@ -134,6 +138,12 @@ unsigned long arch_get_unmapped_area(struct file *filp, unsigned long addr, unsi
+       if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) {
+               VM_BUG_ON(addr != -ENOMEM);
+               info.low_limit = VA_EXCLUDE_END;
++
++#ifdef CONFIG_PAX_RANDMMAP
++              if (mm->pax_flags & MF_PAX_RANDMMAP)
++                      info.low_limit += mm->delta_mmap;
++#endif
++
+               info.high_limit = task_size;
+               addr = vm_unmapped_area(&info);
        }
-@@ -157,14 +161,14 @@ full_search:
-                       vma = find_vma(mm, VA_EXCLUDE_END);
-               }
-               if (unlikely(task_size < addr)) {
--                      if (start_addr != TASK_UNMAPPED_BASE) {
--                              start_addr = addr = TASK_UNMAPPED_BASE;
-+                      if (start_addr != mm->mmap_base) {
-+                              start_addr = addr = mm->mmap_base;
-                               mm->cached_hole_size = 0;
-                               goto full_search;
-                       }
-                       return -ENOMEM;
-               }
--              if (likely(!vma || addr + len <= vma->vm_start)) {
-+              if (likely(check_heap_stack_gap(vma, addr, len, offset))) {
-                       /*
-                        * Remember the place where we stopped the search:
-                        */
-@@ -190,6 +194,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -151,6 +161,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
        unsigned long task_size = STACK_TOP32;
        unsigned long addr = addr0;
        int do_color_align;
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
+       struct vm_unmapped_area_info info;
  
        /* This should only ever run for 32-bit processes.  */
-       BUG_ON(!test_thread_flag(TIF_32BIT));
-@@ -198,7 +203,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -160,7 +171,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
                /* We do not accept a shared mapping if it would violate
                 * cache aliasing constraints.
                 */
@@ -7014,7 +8727,18 @@ index 878ef3d..f100719 100644
                    ((addr - (pgoff << PAGE_SHIFT)) & (SHMLBA - 1)))
                        return -EINVAL;
                return addr;
-@@ -219,8 +224,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -173,6 +184,10 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+       if (filp || (flags & MAP_SHARED))
+               do_color_align = 1;
++#ifdef CONFIG_PAX_RANDMMAP
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP))
++#endif
++
+       /* requesting a specific address */
+       if (addr) {
+               if (do_color_align)
+@@ -181,8 +196,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
                        addr = PAGE_ALIGN(addr);
  
                vma = find_vma(mm, addr);
@@ -7024,63 +8748,31 @@ index 878ef3d..f100719 100644
                        return addr;
        }
  
-@@ -241,7 +245,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-       /* make sure it can fit in the remaining address space */
-       if (likely(addr > len)) {
-               vma = find_vma(mm, addr-len);
--              if (!vma || addr <= vma->vm_start) {
-+              if (check_heap_stack_gap(vma, addr - len, len, offset)) {
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr-len);
-               }
-@@ -250,18 +254,18 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-       if (unlikely(mm->mmap_base < len))
-               goto bottomup;
--      addr = mm->mmap_base-len;
--      if (do_color_align)
--              addr = COLOUR_ALIGN_DOWN(addr, pgoff);
-+      addr = mm->mmap_base - len;
-       do {
-+              if (do_color_align)
-+                      addr = COLOUR_ALIGN_DOWN(addr, pgoff);
-               /*
-                * Lookup failure means no vma is above this address,
-                * else if new region fits below vma->vm_start,
-                * return with success:
-                */
-               vma = find_vma(mm, addr);
--              if (likely(!vma || addr+len <= vma->vm_start)) {
-+              if (likely(check_heap_stack_gap(vma, addr, len, offset))) {
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr);
-               }
-@@ -271,10 +275,8 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-                       mm->cached_hole_size = vma->vm_start - addr;
-               /* try just below the current vma->vm_start */
--              addr = vma->vm_start-len;
--              if (do_color_align)
--                      addr = COLOUR_ALIGN_DOWN(addr, pgoff);
--      } while (likely(len < vma->vm_start));
-+              addr = skip_heap_stack_gap(vma, len, offset);
-+      } while (!IS_ERR_VALUE(addr));
- bottomup:
-       /*
-@@ -348,6 +350,10 @@ static unsigned long mmap_rnd(void)
+@@ -204,6 +218,12 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+               VM_BUG_ON(addr != -ENOMEM);
+               info.flags = 0;
+               info.low_limit = TASK_UNMAPPED_BASE;
++
++#ifdef CONFIG_PAX_RANDMMAP
++              if (mm->pax_flags & MF_PAX_RANDMMAP)
++                      info.low_limit += mm->delta_mmap;
++#endif
++
+               info.high_limit = STACK_TOP32;
+               addr = vm_unmapped_area(&info);
+       }
+@@ -264,6 +284,10 @@ static unsigned long mmap_rnd(void)
  {
        unsigned long rnd = 0UL;
  
 +#ifdef CONFIG_PAX_RANDMMAP
-+      if (!(current->mm->pax_flags & MF_PAX_RANDMMAP))
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP))
 +#endif
 +
        if (current->flags & PF_RANDOMIZE) {
                unsigned long val = get_random_int();
                if (test_thread_flag(TIF_32BIT))
-@@ -373,6 +379,12 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
+@@ -289,6 +313,12 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
            gap == RLIM_INFINITY ||
            sysctl_legacy_va_layout) {
                mm->mmap_base = TASK_UNMAPPED_BASE + random_factor;
@@ -7093,7 +8785,7 @@ index 878ef3d..f100719 100644
                mm->get_unmapped_area = arch_get_unmapped_area;
                mm->unmap_area = arch_unmap_area;
        } else {
-@@ -385,6 +397,12 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
+@@ -301,6 +331,12 @@ void arch_pick_mmap_layout(struct mm_struct *mm)
                        gap = (task_size / 6 * 5);
  
                mm->mmap_base = PAGE_ALIGN(task_size - gap - random_factor);
@@ -7107,10 +8799,10 @@ index 878ef3d..f100719 100644
                mm->unmap_area = arch_unmap_area_topdown;
        }
 diff --git a/arch/sparc/kernel/syscalls.S b/arch/sparc/kernel/syscalls.S
-index bf23477..b7425a6 100644
+index e0fed77..604a7e5 100644
 --- a/arch/sparc/kernel/syscalls.S
 +++ b/arch/sparc/kernel/syscalls.S
-@@ -62,7 +62,7 @@ sys32_rt_sigreturn:
+@@ -58,7 +58,7 @@ sys32_rt_sigreturn:
  #endif
        .align  32
  1:    ldx     [%g6 + TI_FLAGS], %l5
@@ -7119,7 +8811,7 @@ index bf23477..b7425a6 100644
        be,pt   %icc, rtrap
         nop
        call    syscall_trace_leave
-@@ -189,7 +189,7 @@ linux_sparc_syscall32:
+@@ -190,7 +190,7 @@ linux_sparc_syscall32:
  
        srl     %i5, 0, %o5                             ! IEU1
        srl     %i2, 0, %o2                             ! IEU0  Group
@@ -7128,7 +8820,7 @@ index bf23477..b7425a6 100644
        bne,pn  %icc, linux_syscall_trace32             ! CTI
         mov    %i0, %l5                                ! IEU1
        call    %l7                                     ! CTI   Group brk forced
-@@ -212,7 +212,7 @@ linux_sparc_syscall:
+@@ -213,7 +213,7 @@ linux_sparc_syscall:
  
        mov     %i3, %o3                                ! IEU1
        mov     %i4, %o4                                ! IEU0  Group
@@ -7137,7 +8829,7 @@ index bf23477..b7425a6 100644
        bne,pn  %icc, linux_syscall_trace               ! CTI   Group
         mov    %i0, %l5                                ! IEU0
  2:    call    %l7                                     ! CTI   Group brk forced
-@@ -228,7 +228,7 @@ ret_sys_call:
+@@ -229,7 +229,7 @@ ret_sys_call:
  
        cmp     %o0, -ERESTART_RESTARTBLOCK
        bgeu,pn %xcc, 1f
@@ -7146,6 +8838,19 @@ index bf23477..b7425a6 100644
        ldx     [%sp + PTREGS_OFF + PT_V9_TNPC], %l1 ! pc = npc
  
  2:
+diff --git a/arch/sparc/kernel/sysfs.c b/arch/sparc/kernel/sysfs.c
+index 654e8aa..45f431b 100644
+--- a/arch/sparc/kernel/sysfs.c
++++ b/arch/sparc/kernel/sysfs.c
+@@ -266,7 +266,7 @@ static int __cpuinit sysfs_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata sysfs_cpu_nb = {
++static struct notifier_block sysfs_cpu_nb = {
+       .notifier_call  = sysfs_cpu_notify,
+ };
 diff --git a/arch/sparc/kernel/traps_32.c b/arch/sparc/kernel/traps_32.c
 index a5785ea..405c5f7 100644
 --- a/arch/sparc/kernel/traps_32.c
@@ -7180,7 +8885,7 @@ index a5785ea..405c5f7 100644
  }
  
 diff --git a/arch/sparc/kernel/traps_64.c b/arch/sparc/kernel/traps_64.c
-index b66a779..8e8d66c 100644
+index e7ecf15..6520e65 100644
 --- a/arch/sparc/kernel/traps_64.c
 +++ b/arch/sparc/kernel/traps_64.c
 @@ -76,7 +76,7 @@ static void dump_tl1_traplog(struct tl1_traplog *p)
@@ -7333,6 +9038,115 @@ index 8201c25e..072a2a7 100644
                       regs->tpc, (void *) regs->tpc);
        }
  }
+diff --git a/arch/sparc/kernel/us3_cpufreq.c b/arch/sparc/kernel/us3_cpufreq.c
+index eb1624b..f9f4ddb 100644
+--- a/arch/sparc/kernel/us3_cpufreq.c
++++ b/arch/sparc/kernel/us3_cpufreq.c
+@@ -18,14 +18,12 @@
+ #include <asm/head.h>
+ #include <asm/timer.h>
+-static struct cpufreq_driver *cpufreq_us3_driver;
+-
+ struct us3_freq_percpu_info {
+       struct cpufreq_frequency_table table[4];
+ };
+ /* Indexed by cpu number. */
+-static struct us3_freq_percpu_info *us3_freq_table;
++static struct us3_freq_percpu_info us3_freq_table[NR_CPUS];
+ /* UltraSPARC-III has three dividers: 1, 2, and 32.  These are controlled
+  * in the Safari config register.
+@@ -191,12 +189,25 @@ static int __init us3_freq_cpu_init(struct cpufreq_policy *policy)
+ static int us3_freq_cpu_exit(struct cpufreq_policy *policy)
+ {
+-      if (cpufreq_us3_driver)
+-              us3_set_cpu_divider_index(policy->cpu, 0);
++      us3_set_cpu_divider_index(policy->cpu, 0);
+       return 0;
+ }
++static int __init us3_freq_init(void);
++static void __exit us3_freq_exit(void);
++
++static struct cpufreq_driver cpufreq_us3_driver = {
++      .init   = us3_freq_cpu_init,
++      .verify = us3_freq_verify,
++      .target = us3_freq_target,
++      .get    = us3_freq_get,
++      .exit   = us3_freq_cpu_exit,
++      .owner  = THIS_MODULE,
++      .name   = "UltraSPARC-III",
++
++};
++
+ static int __init us3_freq_init(void)
+ {
+       unsigned long manuf, impl, ver;
+@@ -213,57 +224,15 @@ static int __init us3_freq_init(void)
+           (impl == CHEETAH_IMPL ||
+            impl == CHEETAH_PLUS_IMPL ||
+            impl == JAGUAR_IMPL ||
+-           impl == PANTHER_IMPL)) {
+-              struct cpufreq_driver *driver;
+-
+-              ret = -ENOMEM;
+-              driver = kzalloc(sizeof(struct cpufreq_driver), GFP_KERNEL);
+-              if (!driver)
+-                      goto err_out;
+-
+-              us3_freq_table = kzalloc(
+-                      (NR_CPUS * sizeof(struct us3_freq_percpu_info)),
+-                      GFP_KERNEL);
+-              if (!us3_freq_table)
+-                      goto err_out;
+-
+-              driver->init = us3_freq_cpu_init;
+-              driver->verify = us3_freq_verify;
+-              driver->target = us3_freq_target;
+-              driver->get = us3_freq_get;
+-              driver->exit = us3_freq_cpu_exit;
+-              driver->owner = THIS_MODULE,
+-              strcpy(driver->name, "UltraSPARC-III");
+-
+-              cpufreq_us3_driver = driver;
+-              ret = cpufreq_register_driver(driver);
+-              if (ret)
+-                      goto err_out;
+-
+-              return 0;
+-
+-err_out:
+-              if (driver) {
+-                      kfree(driver);
+-                      cpufreq_us3_driver = NULL;
+-              }
+-              kfree(us3_freq_table);
+-              us3_freq_table = NULL;
+-              return ret;
+-      }
++           impl == PANTHER_IMPL))
++              return cpufreq_register_driver(cpufreq_us3_driver);
+       return -ENODEV;
+ }
+ static void __exit us3_freq_exit(void)
+ {
+-      if (cpufreq_us3_driver) {
+-              cpufreq_unregister_driver(cpufreq_us3_driver);
+-              kfree(cpufreq_us3_driver);
+-              cpufreq_us3_driver = NULL;
+-              kfree(us3_freq_table);
+-              us3_freq_table = NULL;
+-      }
++      cpufreq_unregister_driver(cpufreq_us3_driver);
+ }
+ MODULE_AUTHOR("David S. Miller <davem@redhat.com>");
 diff --git a/arch/sparc/lib/Makefile b/arch/sparc/lib/Makefile
 index 8410065f2..4fd4ca22 100644
 --- a/arch/sparc/lib/Makefile
@@ -7914,7 +9728,7 @@ index e98bfda..ea8d221 100644
                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 097aee7..5ca6697 100644
+index 5062ff3..e0b75f3 100644
 --- a/arch/sparc/mm/fault_64.c
 +++ b/arch/sparc/mm/fault_64.c
 @@ -21,6 +21,9 @@
@@ -8434,83 +10248,60 @@ index 097aee7..5ca6697 100644
         * load/store/atomic was a write or not, it only says that there
         * was no match.  So in such a case we (carefully) read the
 diff --git a/arch/sparc/mm/hugetlbpage.c b/arch/sparc/mm/hugetlbpage.c
-index f76f83d..ee0d859 100644
+index d2b5944..bd813f2 100644
 --- a/arch/sparc/mm/hugetlbpage.c
 +++ b/arch/sparc/mm/hugetlbpage.c
-@@ -34,6 +34,7 @@ static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *filp,
-       struct vm_area_struct * vma;
-       unsigned long task_size = TASK_SIZE;
-       unsigned long start_addr;
-+      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
-       if (test_thread_flag(TIF_32BIT))
-               task_size = STACK_TOP32;
-@@ -67,7 +68,7 @@ full_search:
-                       }
-                       return -ENOMEM;
-               }
--              if (likely(!vma || addr + len <= vma->vm_start)) {
-+              if (likely(check_heap_stack_gap(vma, addr, len, offset))) {
-                       /*
-                        * Remember the place where we stopped the search:
-                        */
-@@ -90,6 +91,7 @@ hugetlb_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 offset = gr_rand_threadstack_offset(mm, filp, flags);
-       /* This should only ever run for 32-bit processes.  */
-       BUG_ON(!test_thread_flag(TIF_32BIT));
-@@ -106,7 +108,7 @@ hugetlb_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-       /* make sure it can fit in the remaining address space */
-       if (likely(addr > len)) {
-               vma = find_vma(mm, addr-len);
--              if (!vma || addr <= vma->vm_start) {
-+              if (check_heap_stack_gap(vma, addr - len, len, offset)) {
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr-len);
-               }
-@@ -115,16 +117,17 @@ hugetlb_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-       if (unlikely(mm->mmap_base < len))
-               goto bottomup;
--      addr = (mm->mmap_base-len) & HPAGE_MASK;
-+      addr = mm->mmap_base - len;
-       do {
-+              addr &= HPAGE_MASK;
-               /*
-                * Lookup failure means no vma is above this address,
-                * else if new region fits below vma->vm_start,
-                * return with success:
-                */
-               vma = find_vma(mm, addr);
--              if (likely(!vma || addr+len <= vma->vm_start)) {
-+              if (likely(check_heap_stack_gap(vma, addr, len, offset))) {
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr);
-               }
-@@ -134,8 +137,8 @@ hugetlb_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
-                       mm->cached_hole_size = vma->vm_start - addr;
-               /* try just below the current vma->vm_start */
--              addr = (vma->vm_start-len) & HPAGE_MASK;
--      } while (likely(len < vma->vm_start));
-+              addr = skip_heap_stack_gap(vma, len, offset);
-+      } while (!IS_ERR_VALUE(addr));
- bottomup:
-       /*
-@@ -163,6 +166,7 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+@@ -38,7 +38,7 @@ static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *filp,
+       info.flags = 0;
+       info.length = len;
+-      info.low_limit = TASK_UNMAPPED_BASE;
++      info.low_limit = mm->mmap_base;
+       info.high_limit = min(task_size, VA_EXCLUDE_START);
+       info.align_mask = PAGE_MASK & ~HPAGE_MASK;
+       info.align_offset = 0;
+@@ -47,6 +47,12 @@ static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *filp,
+       if ((addr & ~PAGE_MASK) && task_size > VA_EXCLUDE_END) {
+               VM_BUG_ON(addr != -ENOMEM);
+               info.low_limit = VA_EXCLUDE_END;
++
++#ifdef CONFIG_PAX_RANDMMAP
++              if (mm->pax_flags & MF_PAX_RANDMMAP)
++                      info.low_limit += mm->delta_mmap;
++#endif
++
+               info.high_limit = task_size;
+               addr = vm_unmapped_area(&info);
+       }
+@@ -85,6 +91,12 @@ hugetlb_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+               VM_BUG_ON(addr != -ENOMEM);
+               info.flags = 0;
+               info.low_limit = TASK_UNMAPPED_BASE;
++
++#ifdef CONFIG_PAX_RANDMMAP
++              if (mm->pax_flags & MF_PAX_RANDMMAP)
++                      info.low_limit += mm->delta_mmap;
++#endif
++
+               info.high_limit = STACK_TOP32;
+               addr = vm_unmapped_area(&info);
+       }
+@@ -99,6 +111,7 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
        struct mm_struct *mm = current->mm;
        struct vm_area_struct *vma;
        unsigned long task_size = TASK_SIZE;
-+      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
++      unsigned long offset = gr_rand_threadstack_offset(mm, file, flags);
  
        if (test_thread_flag(TIF_32BIT))
                task_size = STACK_TOP32;
-@@ -181,8 +185,7 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+@@ -114,11 +127,14 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+               return addr;
+       }
++#ifdef CONFIG_PAX_RANDMMAP
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP))
++#endif
++
        if (addr) {
                addr = ALIGN(addr, HPAGE_SIZE);
                vma = find_vma(mm, addr);
@@ -8649,10 +10440,10 @@ index 0032f92..cd151e0 100644
  #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 b6d699c..df7ac1d 100644
+index b462b13..e7a19aa 100644
 --- a/arch/um/kernel/process.c
 +++ b/arch/um/kernel/process.c
-@@ -387,22 +387,6 @@ int singlestepping(void * t)
+@@ -386,22 +386,6 @@ int singlestepping(void * t)
        return 2;
  }
  
@@ -8693,10 +10484,10 @@ index ad8f795..2c7eec6 100644
  /*
   * Memory returned by kmalloc() may be used for DMA, so we must make
 diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig
-index 46c3bff..b82f26b 100644
+index 0694d09..b58b3aa 100644
 --- a/arch/x86/Kconfig
 +++ b/arch/x86/Kconfig
-@@ -241,7 +241,7 @@ config X86_HT
+@@ -238,7 +238,7 @@ config X86_HT
  
  config X86_32_LAZY_GS
        def_bool y
@@ -8705,7 +10496,7 @@ index 46c3bff..b82f26b 100644
  
  config ARCH_HWEIGHT_CFLAGS
        string
-@@ -1033,6 +1033,7 @@ config MICROCODE_OLD_INTERFACE
+@@ -1031,6 +1031,7 @@ config MICROCODE_OLD_INTERFACE
  
  config X86_MSR
        tristate "/dev/cpu/*/msr - Model-specific register support"
@@ -8713,7 +10504,7 @@ index 46c3bff..b82f26b 100644
        ---help---
          This device gives privileged processes access to the x86
          Model-Specific Registers (MSRs).  It is a character device with
-@@ -1056,7 +1057,7 @@ choice
+@@ -1054,7 +1055,7 @@ choice
  
  config NOHIGHMEM
        bool "off"
@@ -8722,7 +10513,7 @@ index 46c3bff..b82f26b 100644
        ---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
-@@ -1093,7 +1094,7 @@ config NOHIGHMEM
+@@ -1091,7 +1092,7 @@ config NOHIGHMEM
  
  config HIGHMEM4G
        bool "4GB"
@@ -8731,7 +10522,7 @@ index 46c3bff..b82f26b 100644
        ---help---
          Select this if you have a 32-bit processor and between 1 and 4
          gigabytes of physical RAM.
-@@ -1147,7 +1148,7 @@ config PAGE_OFFSET
+@@ -1145,7 +1146,7 @@ config PAGE_OFFSET
        hex
        default 0xB0000000 if VMSPLIT_3G_OPT
        default 0x80000000 if VMSPLIT_2G
@@ -8740,7 +10531,7 @@ index 46c3bff..b82f26b 100644
        default 0x40000000 if VMSPLIT_1G
        default 0xC0000000
        depends on X86_32
-@@ -1548,6 +1549,7 @@ config SECCOMP
+@@ -1542,6 +1543,7 @@ config SECCOMP
  
  config CC_STACKPROTECTOR
        bool "Enable -fstack-protector buffer overflow detection"
@@ -8748,7 +10539,7 @@ index 46c3bff..b82f26b 100644
        ---help---
          This option turns on the -fstack-protector GCC feature. This
          feature puts, at the beginning of functions, a canary value on
-@@ -1605,6 +1607,7 @@ config KEXEC_JUMP
+@@ -1599,6 +1601,7 @@ config KEXEC_JUMP
  config PHYSICAL_START
        hex "Physical address where the kernel is loaded" if (EXPERT || CRASH_DUMP)
        default "0x1000000"
@@ -8756,7 +10547,7 @@ index 46c3bff..b82f26b 100644
        ---help---
          This gives the physical address where the kernel is loaded.
  
-@@ -1668,6 +1671,7 @@ config X86_NEED_RELOCS
+@@ -1662,6 +1665,7 @@ config X86_NEED_RELOCS
  config PHYSICAL_ALIGN
        hex "Alignment value to which kernel should be aligned" if X86_32
        default "0x1000000"
@@ -8764,8 +10555,8 @@ index 46c3bff..b82f26b 100644
        range 0x2000 0x1000000
        ---help---
          This value puts the alignment restrictions on physical address
-@@ -1699,9 +1703,10 @@ config HOTPLUG_CPU
-         Say N if you want to disable CPU hotplug.
+@@ -1737,9 +1741,10 @@ config DEBUG_HOTPLUG_CPU0
+         If unsure, say N.
  
  config COMPAT_VDSO
 -      def_bool y
@@ -8777,19 +10568,19 @@ index 46c3bff..b82f26b 100644
          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 f3b86d0..17fd30f 100644
+index c026cca..14657ae 100644
 --- a/arch/x86/Kconfig.cpu
 +++ b/arch/x86/Kconfig.cpu
-@@ -335,7 +335,7 @@ config X86_PPRO_FENCE
+@@ -319,7 +319,7 @@ config X86_PPRO_FENCE
  
  config X86_F00F_BUG
        def_bool y
--      depends on M586MMX || M586TSC || M586 || M486 || M386
-+      depends on (M586MMX || M586TSC || M586 || M486 || M386) && !PAX_KERNEXEC
+-      depends on M586MMX || M586TSC || M586 || M486
++      depends on (M586MMX || M586TSC || M586 || M486) && !PAX_KERNEXEC
  
  config X86_INVD_BUG
        def_bool y
-@@ -359,7 +359,7 @@ config X86_POPAD_OK
+@@ -327,7 +327,7 @@ config X86_INVD_BUG
  
  config X86_ALIGNMENT_16
        def_bool y
@@ -8798,7 +10589,7 @@ index f3b86d0..17fd30f 100644
  
  config X86_INTEL_USERCOPY
        def_bool y
-@@ -405,7 +405,7 @@ config X86_CMPXCHG64
+@@ -373,7 +373,7 @@ config X86_CMPXCHG64
  # generates cmov.
  config X86_CMOV
        def_bool y
@@ -8839,7 +10630,7 @@ index b322f12..652d0d9 100644
          Enabling this option turns a certain set of sanity checks for user
          copy operations into compile time failures.
 diff --git a/arch/x86/Makefile b/arch/x86/Makefile
-index 05afcca..b6ecb51 100644
+index e71fc42..7829607 100644
 --- a/arch/x86/Makefile
 +++ b/arch/x86/Makefile
 @@ -50,6 +50,7 @@ else
@@ -8850,7 +10641,7 @@ index 05afcca..b6ecb51 100644
          KBUILD_AFLAGS += -m64
          KBUILD_CFLAGS += -m64
  
-@@ -229,3 +230,12 @@ define archhelp
+@@ -230,3 +231,12 @@ define archhelp
    echo  '                  FDARGS="..."  arguments for the booted kernel'
    echo  '                  FDINITRD=file initrd for the booted kernel'
  endef
@@ -8864,7 +10655,7 @@ index 05afcca..b6ecb51 100644
 +archprepare:
 +      $(if $(LDFLAGS_BUILD_ID),,$(error $(OLD_LD)))
 diff --git a/arch/x86/boot/Makefile b/arch/x86/boot/Makefile
-index ccce0ed..fd9da25 100644
+index 379814b..add62ce 100644
 --- a/arch/x86/boot/Makefile
 +++ b/arch/x86/boot/Makefile
 @@ -65,6 +65,9 @@ KBUILD_CFLAGS        := $(USERINCLUDE) -g -Os -D_SETUP -D__KERNEL__ \
@@ -8936,10 +10727,10 @@ index 8a84501..b2d165f 100644
  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 ccae7e2..8ac70be 100644
+index c205035..5853587 100644
 --- a/arch/x86/boot/compressed/eboot.c
 +++ b/arch/x86/boot/compressed/eboot.c
-@@ -144,7 +144,6 @@ again:
+@@ -150,7 +150,6 @@ again:
                *addr = max_addr;
        }
  
@@ -8947,7 +10738,7 @@ index ccae7e2..8ac70be 100644
        efi_call_phys1(sys_table->boottime->free_pool, map);
  
  fail:
-@@ -208,7 +207,6 @@ static efi_status_t low_alloc(unsigned long size, unsigned long align,
+@@ -214,7 +213,6 @@ static efi_status_t low_alloc(unsigned long size, unsigned long align,
        if (i == map_size / desc_size)
                status = EFI_NOT_FOUND;
  
@@ -8956,7 +10747,7 @@ index ccae7e2..8ac70be 100644
  fail:
        return status;
 diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S
-index ccb2f4a..e49b20e 100644
+index 1e3184f..0d11e2e 100644
 --- a/arch/x86/boot/compressed/head_32.S
 +++ b/arch/x86/boot/compressed/head_32.S
 @@ -118,7 +118,7 @@ preferred_addr:
@@ -8988,7 +10779,7 @@ index ccb2f4a..e49b20e 100644
        jmp     1b
  2:
 diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S
-index 2c4b171..e1fa5b1 100644
+index f5d1aaa..cce11dc 100644
 --- a/arch/x86/boot/compressed/head_64.S
 +++ b/arch/x86/boot/compressed/head_64.S
 @@ -91,7 +91,7 @@ ENTRY(startup_32)
@@ -9131,10 +10922,10 @@ index 4d3ff03..e4972ff 100644
                err = check_flags();
        }
 diff --git a/arch/x86/boot/header.S b/arch/x86/boot/header.S
-index 8c132a6..13e5c96 100644
+index 944ce59..87ee37a 100644
 --- a/arch/x86/boot/header.S
 +++ b/arch/x86/boot/header.S
-@@ -387,10 +387,14 @@ setup_data:              .quad 0                 # 64-bit physical pointer to
+@@ -401,10 +401,14 @@ setup_data:              .quad 0                 # 64-bit physical pointer to
                                                # single linked list of
                                                # struct setup_data
  
@@ -9515,7 +11306,7 @@ index 0b33743..7a56206 100644
 +      pax_force_retaddr 0, 1
        ret;
 diff --git a/arch/x86/crypto/cast5-avx-x86_64-asm_64.S b/arch/x86/crypto/cast5-avx-x86_64-asm_64.S
-index a41a3aa..bdf5753 100644
+index 15b00ac..2071784 100644
 --- a/arch/x86/crypto/cast5-avx-x86_64-asm_64.S
 +++ b/arch/x86/crypto/cast5-avx-x86_64-asm_64.S
 @@ -23,6 +23,8 @@
@@ -9526,33 +11317,55 @@ index a41a3aa..bdf5753 100644
 +
  .file "cast5-avx-x86_64-asm_64.S"
  
- .extern cast5_s1
-@@ -293,6 +295,7 @@ __skip_enc:
-       leaq 3*(2*4*4)(%r11), %rax;
-       outunpack_blocks(%rax, RR4, RL4, RTMP, RX, RKM);
+ .extern cast_s1
+@@ -281,6 +283,7 @@ __skip_enc:
+       outunpack_blocks(RR3, RL3, RTMP, RX, RKM);
+       outunpack_blocks(RR4, RL4, RTMP, RX, RKM);
  
 +      pax_force_retaddr 0, 1
        ret;
  
- __enc_xor16:
-@@ -303,6 +306,7 @@ __enc_xor16:
-       leaq 3*(2*4*4)(%r11), %rax;
-       outunpack_xor_blocks(%rax, RR4, RL4, RTMP, RX, RKM);
+ .align 16
+@@ -353,6 +356,7 @@ __dec_tail:
+       outunpack_blocks(RR3, RL3, RTMP, RX, RKM);
+       outunpack_blocks(RR4, RL4, RTMP, RX, RKM);
  
 +      pax_force_retaddr 0, 1
        ret;
  
+ __skip_dec:
+@@ -392,6 +396,7 @@ cast5_ecb_enc_16way:
+       vmovdqu RR4, (6*4*4)(%r11);
+       vmovdqu RL4, (7*4*4)(%r11);
++      pax_force_retaddr
+       ret;
  .align 16
-@@ -369,6 +373,7 @@ __dec_tail:
-       leaq 3*(2*4*4)(%r11), %rax;
-       outunpack_blocks(%rax, RR4, RL4, RTMP, RX, RKM);
+@@ -427,6 +432,7 @@ cast5_ecb_dec_16way:
+       vmovdqu RR4, (6*4*4)(%r11);
+       vmovdqu RL4, (7*4*4)(%r11);
  
-+      pax_force_retaddr 0, 1
++      pax_force_retaddr
        ret;
  
- __skip_dec:
+ .align 16
+@@ -479,6 +485,7 @@ cast5_cbc_dec_16way:
+       popq %r12;
++      pax_force_retaddr
+       ret;
+ .align 16
+@@ -555,4 +562,5 @@ cast5_ctr_16way:
+       popq %r12;
++      pax_force_retaddr
+       ret;
 diff --git a/arch/x86/crypto/cast6-avx-x86_64-asm_64.S b/arch/x86/crypto/cast6-avx-x86_64-asm_64.S
-index 218d283..819e6da 100644
+index 2569d0d..637c289 100644
 --- a/arch/x86/crypto/cast6-avx-x86_64-asm_64.S
 +++ b/arch/x86/crypto/cast6-avx-x86_64-asm_64.S
 @@ -23,6 +23,8 @@
@@ -9561,29 +11374,54 @@ index 218d283..819e6da 100644
  
 +#include <asm/alternative-asm.h>
 +
.file "cast6-avx-x86_64-asm_64.S"
#include "glue_helper-asm-avx.S"
  
- .extern cast6_s1
-@@ -324,12 +326,14 @@ __cast6_enc_blk_8way:
-       outunpack_blocks(%r11, RA1, RB1, RC1, RD1, RTMP, RX, RKRF, RKM);
-       outunpack_blocks(%rax, RA2, RB2, RC2, RD2, RTMP, RX, RKRF, RKM);
+ .file "cast6-avx-x86_64-asm_64.S"
+@@ -294,6 +296,7 @@ __cast6_enc_blk8:
+       outunpack_blocks(RA1, RB1, RC1, RD1, RTMP, RX, RKRF, RKM);
+       outunpack_blocks(RA2, RB2, RC2, RD2, RTMP, RX, RKRF, RKM);
  
 +      pax_force_retaddr 0, 1
        ret;
  
- __enc_xor8:
-       outunpack_xor_blocks(%r11, RA1, RB1, RC1, RD1, RTMP, RX, RKRF, RKM);
-       outunpack_xor_blocks(%rax, RA2, RB2, RC2, RD2, RTMP, RX, RKRF, RKM);
+ .align 8
+@@ -340,6 +343,7 @@ __cast6_dec_blk8:
+       outunpack_blocks(RA1, RB1, RC1, RD1, RTMP, RX, RKRF, RKM);
+       outunpack_blocks(RA2, RB2, RC2, RD2, RTMP, RX, RKRF, RKM);
  
 +      pax_force_retaddr 0, 1
        ret;
  
- .align 16
-@@ -380,4 +384,5 @@ cast6_dec_blk_8way:
-       outunpack_blocks(%r11, RA1, RB1, RC1, RD1, RTMP, RX, RKRF, RKM);
-       outunpack_blocks(%rax, RA2, RB2, RC2, RD2, RTMP, RX, RKRF, RKM);
+ .align 8
+@@ -361,6 +365,7 @@ cast6_ecb_enc_8way:
  
-+      pax_force_retaddr 0, 1
+       store_8way(%r11, RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2);
++      pax_force_retaddr
+       ret;
+ .align 8
+@@ -382,6 +387,7 @@ cast6_ecb_dec_8way:
+       store_8way(%r11, RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2);
++      pax_force_retaddr
+       ret;
+ .align 8
+@@ -408,6 +414,7 @@ cast6_cbc_dec_8way:
+       popq %r12;
++      pax_force_retaddr
+       ret;
+ .align 8
+@@ -436,4 +443,5 @@ cast6_ctr_8way:
+       popq %r12;
++      pax_force_retaddr
        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
@@ -9618,7 +11456,7 @@ index 6214a9b..1f4fc9a 100644
 +      pax_force_retaddr
        ret
 diff --git a/arch/x86/crypto/serpent-avx-x86_64-asm_64.S b/arch/x86/crypto/serpent-avx-x86_64-asm_64.S
-index 504106b..4e50951 100644
+index 02b0e9f..cf4cf5c 100644
 --- a/arch/x86/crypto/serpent-avx-x86_64-asm_64.S
 +++ b/arch/x86/crypto/serpent-avx-x86_64-asm_64.S
 @@ -24,6 +24,8 @@
@@ -9627,27 +11465,52 @@ index 504106b..4e50951 100644
  
 +#include <asm/alternative-asm.h>
 +
+ #include "glue_helper-asm-avx.S"
  .file "serpent-avx-x86_64-asm_64.S"
- .text
+@@ -618,6 +620,7 @@ __serpent_enc_blk8_avx:
+       write_blocks(RA1, RB1, RC1, RD1, RK0, RK1, RK2);
+       write_blocks(RA2, RB2, RC2, RD2, RK0, RK1, RK2);
  
-@@ -638,12 +640,14 @@ __serpent_enc_blk_8way_avx:
-       write_blocks(%rsi, RA1, RB1, RC1, RD1, RK0, RK1, RK2);
-       write_blocks(%rax, RA2, RB2, RC2, RD2, RK0, RK1, RK2);
++      pax_force_retaddr
+       ret;
+ .align 8
+@@ -673,6 +676,7 @@ __serpent_dec_blk8_avx:
+       write_blocks(RC1, RD1, RB1, RE1, RK0, RK1, RK2);
+       write_blocks(RC2, RD2, RB2, RE2, RK0, RK1, RK2);
  
 +      pax_force_retaddr
        ret;
  
- __enc_xor8:
-       xor_blocks(%rsi, RA1, RB1, RC1, RD1, RK0, RK1, RK2);
-       xor_blocks(%rax, RA2, RB2, RC2, RD2, RK0, RK1, RK2);
+ .align 8
+@@ -692,6 +696,7 @@ serpent_ecb_enc_8way_avx:
+       store_8way(%rsi, RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2);
  
 +      pax_force_retaddr
        ret;
  
  .align 8
-@@ -701,4 +705,5 @@ serpent_dec_blk_8way_avx:
-       write_blocks(%rsi, RC1, RD1, RB1, RE1, RK0, RK1, RK2);
-       write_blocks(%rax, RC2, RD2, RB2, RE2, RK0, RK1, RK2);
+@@ -711,6 +716,7 @@ serpent_ecb_dec_8way_avx:
+       store_8way(%rsi, RC1, RD1, RB1, RE1, RC2, RD2, RB2, RE2);
++      pax_force_retaddr
+       ret;
+ .align 8
+@@ -730,6 +736,7 @@ serpent_cbc_dec_8way_avx:
+       store_cbc_8way(%rdx, %rsi, RC1, RD1, RB1, RE1, RC2, RD2, RB2, RE2);
++      pax_force_retaddr
+       ret;
+ .align 8
+@@ -751,4 +758,5 @@ serpent_ctr_8way_avx:
+       store_ctr_8way(%rdx, %rsi, RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2);
  
 +      pax_force_retaddr
        ret;
@@ -9707,7 +11570,7 @@ index 49d6987..df66bd4 100644
  
        .size   \name, .-\name
 diff --git a/arch/x86/crypto/twofish-avx-x86_64-asm_64.S b/arch/x86/crypto/twofish-avx-x86_64-asm_64.S
-index 1585abb..1ff9d9b 100644
+index ebac16b..8092eb9 100644
 --- a/arch/x86/crypto/twofish-avx-x86_64-asm_64.S
 +++ b/arch/x86/crypto/twofish-avx-x86_64-asm_64.S
 @@ -23,6 +23,8 @@
@@ -9716,27 +11579,52 @@ index 1585abb..1ff9d9b 100644
  
 +#include <asm/alternative-asm.h>
 +
+ #include "glue_helper-asm-avx.S"
  .file "twofish-avx-x86_64-asm_64.S"
- .text
+@@ -283,6 +285,7 @@ __twofish_enc_blk8:
+       outunpack_blocks(RC1, RD1, RA1, RB1, RK1, RX0, RY0, RK2);
+       outunpack_blocks(RC2, RD2, RA2, RB2, RK1, RX0, RY0, RK2);
  
-@@ -303,12 +305,14 @@ __twofish_enc_blk_8way:
-       outunpack_blocks(%r11, RC1, RD1, RA1, RB1, RK1, RX0, RY0, RK2);
-       outunpack_blocks(%rax, RC2, RD2, RA2, RB2, RK1, RX0, RY0, RK2);
++      pax_force_retaddr 0, 1
+       ret;
+ .align 8
+@@ -324,6 +327,7 @@ __twofish_dec_blk8:
+       outunpack_blocks(RA1, RB1, RC1, RD1, RK1, RX0, RY0, RK2);
+       outunpack_blocks(RA2, RB2, RC2, RD2, RK1, RX0, RY0, RK2);
  
 +      pax_force_retaddr 0, 1
        ret;
  
- __enc_xor8:
-       outunpack_xor_blocks(%r11, RC1, RD1, RA1, RB1, RK1, RX0, RY0, RK2);
-       outunpack_xor_blocks(%rax, RC2, RD2, RA2, RB2, RK1, RX0, RY0, RK2);
+ .align 8
+@@ -345,6 +349,7 @@ twofish_ecb_enc_8way:
+       store_8way(%r11, RC1, RD1, RA1, RB1, RC2, RD2, RA2, RB2);
++      pax_force_retaddr 0, 1
+       ret;
+ .align 8
+@@ -366,6 +371,7 @@ twofish_ecb_dec_8way:
+       store_8way(%r11, RA1, RB1, RC1, RD1, RA2, RB2, RC2, RD2);
++      pax_force_retaddr 0, 1
+       ret;
+ .align 8
+@@ -392,6 +398,7 @@ twofish_cbc_dec_8way:
+       popq %r12;
  
 +      pax_force_retaddr 0, 1
        ret;
  
  .align 8
-@@ -354,4 +358,5 @@ twofish_dec_blk_8way:
-       outunpack_blocks(%r11, RA1, RB1, RC1, RD1, RK1, RX0, RY0, RK2);
-       outunpack_blocks(%rax, RA2, RB2, RC2, RD2, RK1, RX0, RY0, RK2);
+@@ -420,4 +427,5 @@ twofish_ctr_8way:
+       popq %r12;
  
 +      pax_force_retaddr 0, 1
        ret;
@@ -9803,7 +11691,7 @@ index 7bcf3fc..f53832f 100644
 +      pax_force_retaddr 0, 1
        ret
 diff --git a/arch/x86/ia32/ia32_aout.c b/arch/x86/ia32/ia32_aout.c
-index 07b3a68..bd2a388 100644
+index a703af1..f5b9c36 100644
 --- a/arch/x86/ia32/ia32_aout.c
 +++ b/arch/x86/ia32/ia32_aout.c
 @@ -159,6 +159,8 @@ static int aout_core_dump(long signr, struct pt_regs *regs, struct file *file,
@@ -9816,21 +11704,10 @@ index 07b3a68..bd2a388 100644
        set_fs(KERNEL_DS);
        has_dumped = 1;
 diff --git a/arch/x86/ia32/ia32_signal.c b/arch/x86/ia32/ia32_signal.c
-index efc6a95..95abfe2 100644
+index a1daf4a..f8c4537 100644
 --- a/arch/x86/ia32/ia32_signal.c
 +++ b/arch/x86/ia32/ia32_signal.c
-@@ -163,8 +163,8 @@ asmlinkage long sys32_sigaltstack(const stack_ia32_t __user *uss_ptr,
-       }
-       seg = get_fs();
-       set_fs(KERNEL_DS);
--      ret = do_sigaltstack((stack_t __force __user *) (uss_ptr ? &uss : NULL),
--                           (stack_t __force __user *) &uoss, regs->sp);
-+      ret = do_sigaltstack((stack_t __force_user *) (uss_ptr ? &uss : NULL),
-+                           (stack_t __force_user *) &uoss, regs->sp);
-       set_fs(seg);
-       if (ret >= 0 && uoss_ptr)  {
-               if (!access_ok(VERIFY_WRITE, uoss_ptr, sizeof(stack_ia32_t)))
-@@ -396,7 +396,7 @@ static void __user *get_sigframe(struct k_sigaction *ka, struct pt_regs *regs,
+@@ -348,7 +348,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. */
@@ -9839,7 +11716,7 @@ index efc6a95..95abfe2 100644
        return (void __user *) sp;
  }
  
-@@ -454,7 +454,7 @@ int ia32_setup_frame(int sig, struct k_sigaction *ka,
+@@ -406,7 +406,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.
                 */
@@ -9848,7 +11725,7 @@ index efc6a95..95abfe2 100644
        } put_user_catch(err);
  
        if (err)
-@@ -496,7 +496,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
+@@ -448,7 +448,7 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
                0xb8,
                __NR_ia32_rt_sigreturn,
                0x80cd,
@@ -9857,7 +11734,7 @@ index efc6a95..95abfe2 100644
        };
  
        frame = get_sigframe(ka, regs, sizeof(*frame), &fpstate);
-@@ -522,16 +522,18 @@ int ia32_setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
+@@ -471,16 +471,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;
@@ -9880,7 +11757,7 @@ index efc6a95..95abfe2 100644
  
        err |= copy_siginfo_to_user32(&frame->info, info);
 diff --git a/arch/x86/ia32/ia32entry.S b/arch/x86/ia32/ia32entry.S
-index e7fa545..9e6fe1a 100644
+index 142c4ce..19b683f 100644
 --- a/arch/x86/ia32/ia32entry.S
 +++ b/arch/x86/ia32/ia32entry.S
 @@ -15,8 +15,10 @@
@@ -10192,7 +12069,7 @@ index e7fa545..9e6fe1a 100644
  END(ia32_syscall)
  
 diff --git a/arch/x86/ia32/sys_ia32.c b/arch/x86/ia32/sys_ia32.c
-index 86d68d1..f9960fe 100644
+index d0b689b..6811ddc 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,
@@ -10215,7 +12092,14 @@ index 86d68d1..f9960fe 100644
        set_fs(old_fs);
        if (put_compat_timespec(&t, interval))
                return -EFAULT;
-@@ -319,7 +319,7 @@ asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *set,
+@@ -313,13 +313,13 @@ asmlinkage long sys32_sched_rr_get_interval(compat_pid_t pid,
+ asmlinkage long sys32_rt_sigpending(compat_sigset_t __user *set,
+                                   compat_size_t sigsetsize)
+ {
+-      sigset_t s;
++      sigset_t s = { };
+       compat_sigset_t s32;
+       int ret;
        mm_segment_t old_fs = get_fs();
  
        set_fs(KERNEL_DS);
@@ -10315,7 +12199,7 @@ index 58ed6d9..f1cbe58 100644
        ALTINSTR_REPLACEMENT(newinstr2, feature2, 2)                    \
        ".popsection"
 diff --git a/arch/x86/include/asm/apic.h b/arch/x86/include/asm/apic.h
-index 3388034..ba52312 100644
+index 3388034..050f0b9 100644
 --- a/arch/x86/include/asm/apic.h
 +++ b/arch/x86/include/asm/apic.h
 @@ -44,7 +44,7 @@ static inline void generic_apic_probe(void)
@@ -10327,15 +12211,6 @@ index 3388034..ba52312 100644
  extern int local_apic_timer_c2_ok;
  
  extern int disable_apic;
-@@ -391,7 +391,7 @@ struct apic {
-        */
-       int (*x86_32_numa_cpu_node)(int cpu);
- #endif
--};
-+} __do_const;
- /*
-  * Pointer to the local APIC driver in use on this system (there's
 diff --git a/arch/x86/include/asm/apm.h b/arch/x86/include/asm/apm.h
 index 20370c6..a2eb9b0 100644
 --- a/arch/x86/include/asm/apm.h
@@ -10359,7 +12234,7 @@ index 20370c6..a2eb9b0 100644
                "popl %%ebp\n\t"
                "popl %%edi\n\t"
 diff --git a/arch/x86/include/asm/atomic.h b/arch/x86/include/asm/atomic.h
-index b6c3b82..b4c077a 100644
+index 722aa3b..3a0bb27 100644
 --- a/arch/x86/include/asm/atomic.h
 +++ b/arch/x86/include/asm/atomic.h
 @@ -22,7 +22,18 @@
@@ -10612,19 +12487,14 @@ index b6c3b82..b4c077a 100644
                     : "+m" (v->counter), "=qm" (c)
                     : "ir" (i) : "memory");
        return c;
-@@ -179,7 +341,7 @@ static inline int atomic_add_return(int i, atomic_t *v)
-               goto no_xadd;
- #endif
-       /* Modern 486+ processor */
--      return i + xadd(&v->counter, i);
+@@ -172,6 +334,18 @@ static inline int atomic_add_negative(int i, atomic_t *v)
+  */
+ static inline int atomic_add_return(int i, atomic_t *v)
+ {
 +      return i + xadd_check_overflow(&v->counter, i);
- #ifdef CONFIG_M386
- no_xadd: /* Legacy 386 processor */
-@@ -192,6 +354,34 @@ no_xadd: /* Legacy 386 processor */
- }
- /**
++}
++
++/**
 + * atomic_add_return_unchecked - add integer and return
 + * @i: integer value to add
 + * @v: pointer of type atomic_unchecked_t
@@ -10633,30 +12503,10 @@ index b6c3b82..b4c077a 100644
 + */
 +static inline int atomic_add_return_unchecked(int i, atomic_unchecked_t *v)
 +{
-+#ifdef CONFIG_M386
-+      int __i;
-+      unsigned long flags;
-+      if (unlikely(boot_cpu_data.x86 <= 3))
-+              goto no_xadd;
-+#endif
-+      /* Modern 486+ processor */
-+      return i + xadd(&v->counter, i);
-+
-+#ifdef CONFIG_M386
-+no_xadd: /* Legacy 386 processor */
-+      raw_local_irq_save(flags);
-+      __i = atomic_read_unchecked(v);
-+      atomic_set_unchecked(v, i + __i);
-+      raw_local_irq_restore(flags);
-+      return i + __i;
-+#endif
-+}
-+
-+/**
-  * atomic_sub_return - subtract integer and return
-  * @v: pointer of type atomic_t
-  * @i: integer value to subtract
-@@ -204,6 +394,10 @@ static inline int atomic_sub_return(int i, atomic_t *v)
+       return i + xadd(&v->counter, i);
+ }
+@@ -188,6 +362,10 @@ static inline int atomic_sub_return(int i, atomic_t *v)
  }
  
  #define atomic_inc_return(v)  (atomic_add_return(1, v))
@@ -10667,7 +12517,7 @@ index b6c3b82..b4c077a 100644
  #define atomic_dec_return(v)  (atomic_sub_return(1, v))
  
  static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
-@@ -211,11 +405,21 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
+@@ -195,11 +373,21 @@ static inline int atomic_cmpxchg(atomic_t *v, int old, int new)
        return cmpxchg(&v->counter, old, new);
  }
  
@@ -10689,7 +12539,7 @@ index b6c3b82..b4c077a 100644
  /**
   * __atomic_add_unless - add unless the number is already a given value
   * @v: pointer of type atomic_t
-@@ -227,12 +431,25 @@ static inline int atomic_xchg(atomic_t *v, int new)
+@@ -211,12 +399,25 @@ static inline int atomic_xchg(atomic_t *v, int new)
   */
  static inline int __atomic_add_unless(atomic_t *v, int a, int u)
  {
@@ -10718,7 +12568,7 @@ index b6c3b82..b4c077a 100644
                if (likely(old == c))
                        break;
                c = old;
-@@ -241,6 +458,49 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
+@@ -225,6 +426,49 @@ static inline int __atomic_add_unless(atomic_t *v, int a, int u)
  }
  
  /**
@@ -10768,7 +12618,7 @@ index b6c3b82..b4c077a 100644
   * atomic_inc_short - increment of a short integer
   * @v: pointer to type int
   *
-@@ -269,14 +529,37 @@ static inline void atomic_or_long(unsigned long *v1, unsigned long v2)
+@@ -253,14 +497,37 @@ static inline void atomic_or_long(unsigned long *v1, unsigned long v2)
  #endif
  
  /* These are x86-specific, used by some header files */
@@ -11300,7 +13150,7 @@ index 0e1cbfc..5623683 100644
  
  #define atomic64_inc_not_zero(v) atomic64_add_unless((v), 1, 0)
 diff --git a/arch/x86/include/asm/bitops.h b/arch/x86/include/asm/bitops.h
-index 6dfd019..0c6699f 100644
+index 6dfd019..28e188d 100644
 --- a/arch/x86/include/asm/bitops.h
 +++ b/arch/x86/include/asm/bitops.h
 @@ -40,7 +40,7 @@
@@ -11312,12 +13162,21 @@ index 6dfd019..0c6699f 100644
  #define CONST_MASK(nr)                        (1 << ((nr) & 7))
  
  /**
+@@ -486,7 +486,7 @@ static inline int fls(int x)
+  * at position 64.
+  */
+ #ifdef CONFIG_X86_64
+-static __always_inline int fls64(__u64 x)
++static __always_inline long fls64(__u64 x)
+ {
+       int bitpos = -1;
+       /*
 diff --git a/arch/x86/include/asm/boot.h b/arch/x86/include/asm/boot.h
-index b13fe63..0dab13a 100644
+index 4fa687a..60f2d39 100644
 --- a/arch/x86/include/asm/boot.h
 +++ b/arch/x86/include/asm/boot.h
-@@ -11,10 +11,15 @@
- #include <asm/pgtable_types.h>
+@@ -6,10 +6,15 @@
+ #include <uapi/asm/boot.h>
  
  /* Physical address where kernel should be loaded. */
 -#define LOAD_PHYSICAL_ADDR ((CONFIG_PHYSICAL_START \
@@ -11465,11 +13324,24 @@ index 8d871ea..c1a0dc9 100644
  #define __add(ptr, inc, lock)                                         \
        ({                                                              \
                __typeof__ (*(ptr)) __ret = (inc);                      \
+diff --git a/arch/x86/include/asm/compat.h b/arch/x86/include/asm/compat.h
+index 59c6c40..5e0b22c 100644
+--- a/arch/x86/include/asm/compat.h
++++ b/arch/x86/include/asm/compat.h
+@@ -41,7 +41,7 @@ typedef s64 __attribute__((aligned(4))) compat_s64;
+ typedef u32           compat_uint_t;
+ typedef u32           compat_ulong_t;
+ typedef u64 __attribute__((aligned(4))) compat_u64;
+-typedef u32           compat_uptr_t;
++typedef u32           __user compat_uptr_t;
+ struct compat_timespec {
+       compat_time_t   tv_sec;
 diff --git a/arch/x86/include/asm/cpufeature.h b/arch/x86/include/asm/cpufeature.h
-index 8c297aa..7a90f03 100644
+index 2d9075e..b75a844 100644
 --- a/arch/x86/include/asm/cpufeature.h
 +++ b/arch/x86/include/asm/cpufeature.h
-@@ -205,7 +205,7 @@
+@@ -206,7 +206,7 @@
  #define X86_FEATURE_BMI1      (9*32+ 3) /* 1st group bit manipulation extensions */
  #define X86_FEATURE_HLE               (9*32+ 4) /* Hardware Lock Elision */
  #define X86_FEATURE_AVX2      (9*32+ 5) /* AVX2 instructions */
@@ -11478,7 +13350,7 @@ index 8c297aa..7a90f03 100644
  #define X86_FEATURE_BMI2      (9*32+ 8) /* 2nd group bit manipulation extensions */
  #define X86_FEATURE_ERMS      (9*32+ 9) /* Enhanced REP MOVSB/STOSB */
  #define X86_FEATURE_INVPCID   (9*32+10) /* Invalidate Processor Context ID */
-@@ -379,7 +379,7 @@ static __always_inline __pure bool __static_cpu_has(u16 bit)
+@@ -375,7 +375,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"
@@ -11488,7 +13360,7 @@ index 8c297aa..7a90f03 100644
                             "4:\n"
                             ".previous\n"
 diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h
-index 8bf1c06..f723dfd 100644
+index 8bf1c06..b6ae785 100644
 --- a/arch/x86/include/asm/desc.h
 +++ b/arch/x86/include/asm/desc.h
 @@ -4,6 +4,7 @@
@@ -11596,6 +13468,15 @@ index 8bf1c06..f723dfd 100644
  }
  
  #define _LDT_empty(info)                              \
+@@ -287,7 +300,7 @@ static inline void load_LDT(mm_context_t *pc)
+       preempt_enable();
+ }
+-static inline unsigned long get_desc_base(const struct desc_struct *desc)
++static inline unsigned long __intentional_overflow(-1) get_desc_base(const struct desc_struct *desc)
+ {
+       return (unsigned)(desc->base0 | ((desc->base1) << 16) | ((desc->base2) << 24));
+ }
 @@ -311,7 +324,7 @@ static inline void set_desc_limit(struct desc_struct *desc, unsigned long limit)
  }
  
@@ -11698,21 +13579,21 @@ index 278441f..b95a174 100644
        };
  } __attribute__((packed));
  
-diff --git a/arch/x86/include/asm/e820.h b/arch/x86/include/asm/e820.h
-index 3778256..c5d4fce 100644
---- a/arch/x86/include/asm/e820.h
-+++ b/arch/x86/include/asm/e820.h
-@@ -69,7 +69,7 @@ struct e820map {
- #define ISA_START_ADDRESS     0xa0000
- #define ISA_END_ADDRESS               0x100000
--#define BIOS_BEGIN            0x000a0000
-+#define BIOS_BEGIN            0x000c0000
- #define BIOS_END              0x00100000
+diff --git a/arch/x86/include/asm/div64.h b/arch/x86/include/asm/div64.h
+index ced283a..ffe04cc 100644
+--- a/arch/x86/include/asm/div64.h
++++ b/arch/x86/include/asm/div64.h
+@@ -39,7 +39,7 @@
+       __mod;                                                  \
+ })
  
- #define BIOS_ROM_BASE         0xffe00000
+-static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
++static inline u64 __intentional_overflow(-1) div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
+ {
+       union {
+               u64 v64;
 diff --git a/arch/x86/include/asm/elf.h b/arch/x86/include/asm/elf.h
-index 5939f44..f8845f6 100644
+index 9c999c1..3860cb8 100644
 --- a/arch/x86/include/asm/elf.h
 +++ b/arch/x86/include/asm/elf.h
 @@ -243,7 +243,25 @@ extern int force_personality32;
@@ -11816,7 +13697,7 @@ index 41ab26e..a88c9e6 100644
        return fpu_restore_checking(&tsk->thread.fpu);
  }
 diff --git a/arch/x86/include/asm/futex.h b/arch/x86/include/asm/futex.h
-index f373046..02653e2 100644
+index be27ba1..8f13ff9 100644
 --- a/arch/x86/include/asm/futex.h
 +++ b/arch/x86/include/asm/futex.h
 @@ -12,6 +12,7 @@
@@ -11855,7 +13736,7 @@ index f373046..02653e2 100644
                     : "r" (oparg), "i" (-EFAULT), "1" (0))
  
  static inline int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr)
-@@ -65,10 +67,10 @@ static inline int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr)
+@@ -59,10 +61,10 @@ static inline int futex_atomic_op_inuser(int encoded_op, u32 __user *uaddr)
  
        switch (op) {
        case FUTEX_OP_SET:
@@ -11868,7 +13749,7 @@ index f373046..02653e2 100644
                                   uaddr, oparg);
                break;
        case FUTEX_OP_OR:
-@@ -128,14 +130,14 @@ static inline int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
+@@ -116,14 +118,14 @@ static inline int futex_atomic_cmpxchg_inatomic(u32 *uval, u32 __user *uaddr,
                return -EFAULT;
  
        asm volatile("\t" ASM_STAC "\n"
@@ -11900,10 +13781,40 @@ index eb92a6e..b98b2f4 100644
  
  /* EISA */
  extern void eisa_set_level_irq(unsigned int irq);
+diff --git a/arch/x86/include/asm/i8259.h b/arch/x86/include/asm/i8259.h
+index a203659..9889f1c 100644
+--- a/arch/x86/include/asm/i8259.h
++++ b/arch/x86/include/asm/i8259.h
+@@ -62,7 +62,7 @@ struct legacy_pic {
+       void (*init)(int auto_eoi);
+       int (*irq_pending)(unsigned int irq);
+       void (*make_irq)(unsigned int irq);
+-};
++} __do_const;
+ extern struct legacy_pic *legacy_pic;
+ extern struct legacy_pic null_legacy_pic;
 diff --git a/arch/x86/include/asm/io.h b/arch/x86/include/asm/io.h
-index d8e8eef..15b1179 100644
+index d8e8eef..1765f78 100644
 --- a/arch/x86/include/asm/io.h
 +++ b/arch/x86/include/asm/io.h
+@@ -51,12 +51,12 @@ static inline void name(type val, volatile void __iomem *addr) \
+ "m" (*(volatile type __force *)addr) barrier); }
+ build_mmio_read(readb, "b", unsigned char, "=q", :"memory")
+-build_mmio_read(readw, "w", unsigned short, "=r", :"memory")
+-build_mmio_read(readl, "l", unsigned int, "=r", :"memory")
++build_mmio_read(__intentional_overflow(-1) readw, "w", unsigned short, "=r", :"memory")
++build_mmio_read(__intentional_overflow(-1) readl, "l", unsigned int, "=r", :"memory")
+ build_mmio_read(__readb, "b", unsigned char, "=q", )
+-build_mmio_read(__readw, "w", unsigned short, "=r", )
+-build_mmio_read(__readl, "l", unsigned int, "=r", )
++build_mmio_read(__intentional_overflow(-1) __readw, "w", unsigned short, "=r", )
++build_mmio_read(__intentional_overflow(-1) __readl, "l", unsigned int, "=r", )
+ build_mmio_write(writeb, "b", unsigned char, "q", :"memory")
+ build_mmio_write(writew, "w", unsigned short, "r", :"memory")
 @@ -184,7 +184,7 @@ static inline void __iomem *ioremap(resource_size_t offset, unsigned long size)
        return ioremap_nocache(offset, size);
  }
@@ -11968,20 +13879,22 @@ index d3ddd17..c9fb0cc 100644
  #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 b2e11f4..f293e2e 100644
+index dc87b65..85039f9 100644
 --- a/arch/x86/include/asm/kvm_host.h
 +++ b/arch/x86/include/asm/kvm_host.h
-@@ -707,7 +707,7 @@ struct kvm_x86_ops {
-       int (*check_intercept)(struct kvm_vcpu *vcpu,
-                              struct x86_instruction_info *info,
-                              enum x86_intercept_stage stage);
--};
-+} __do_const;
+@@ -419,8 +419,8 @@ struct kvm_vcpu_arch {
+       gpa_t time;
+       struct pvclock_vcpu_time_info hv_clock;
+       unsigned int hw_tsc_khz;
+-      unsigned int time_offset;
+-      struct page *time_page;
++      struct gfn_to_hva_cache pv_time;
++      bool pv_time_enabled;
+       /* set guest stopped flag in pvclock flags field */
+       bool pvclock_set_guest_stopped_request;
  
- struct kvm_arch_async_pf {
-       u32 token;
 diff --git a/arch/x86/include/asm/local.h b/arch/x86/include/asm/local.h
-index c8bed0d..85c03fd 100644
+index 2d89e39..baee879 100644
 --- a/arch/x86/include/asm/local.h
 +++ b/arch/x86/include/asm/local.h
 @@ -10,33 +10,97 @@ typedef struct {
@@ -12158,11 +14071,10 @@ index c8bed0d..85c03fd 100644
                     : "+m" (l->a.counter), "=qm" (c)
                     : "ir" (i) : "memory");
        return c;
-@@ -132,7 +232,15 @@ static inline long local_add_return(long i, local_t *l)
- #endif
-       /* Modern 486+ processor */
-       __i = i;
--      asm volatile(_ASM_XADD "%0, %1;"
+@@ -125,6 +225,30 @@ static inline int local_add_negative(long i, local_t *l)
+ static inline long local_add_return(long i, local_t *l)
+ {
+       long __i = i;
 +      asm volatile(_ASM_XADD "%0, %1\n"
 +
 +#ifdef CONFIG_PAX_REFCOUNT
@@ -12172,13 +14084,11 @@ index c8bed0d..85c03fd 100644
 +                   _ASM_EXTABLE(0b, 0b)
 +#endif
 +
-                    : "+r" (i), "+m" (l->a.counter)
-                    : : "memory");
-       return i + __i;
-@@ -147,6 +255,38 @@ no_xadd: /* Legacy 386 processor */
- #endif
- }
++                   : "+r" (i), "+m" (l->a.counter)
++                   : : "memory");
++      return i + __i;
++}
++
 +/**
 + * local_add_return_unchecked - add and return
 + * @i: integer value to add
@@ -12188,33 +14098,11 @@ index c8bed0d..85c03fd 100644
 + */
 +static inline long local_add_return_unchecked(long i, local_unchecked_t *l)
 +{
-+      long __i;
-+#ifdef CONFIG_M386
-+      unsigned long flags;
-+      if (unlikely(boot_cpu_data.x86 <= 3))
-+              goto no_xadd;
-+#endif
-+      /* Modern 486+ processor */
-+      __i = i;
-+      asm volatile(_ASM_XADD "%0, %1\n"
-+                   : "+r" (i), "+m" (l->a.counter)
-+                   : : "memory");
-+      return i + __i;
-+
-+#ifdef CONFIG_M386
-+no_xadd: /* Legacy 386 processor */
-+      local_irq_save(flags);
-+      __i = local_read_unchecked(l);
-+      local_set_unchecked(l, i + __i);
-+      local_irq_restore(flags);
-+      return i + __i;
-+#endif
-+}
-+
- static inline long local_sub_return(long i, local_t *l)
- {
-       return local_add_return(-i, l);
-@@ -157,6 +297,8 @@ static inline long local_sub_return(long i, local_t *l)
++      long __i = i;
+       asm volatile(_ASM_XADD "%0, %1;"
+                    : "+r" (i), "+m" (l->a.counter)
+                    : : "memory");
+@@ -141,6 +265,8 @@ static inline long local_sub_return(long i, local_t *l)
  
  #define local_cmpxchg(l, o, n) \
        (cmpxchg_local(&((l)->a.counter), (o), (n)))
@@ -12224,24 +14112,26 @@ index c8bed0d..85c03fd 100644
  #define local_xchg(l, n) (xchg(&((l)->a.counter), (n)))
  
 diff --git a/arch/x86/include/asm/mman.h b/arch/x86/include/asm/mman.h
-index 593e51d..fa69c9a 100644
---- a/arch/x86/include/asm/mman.h
+new file mode 100644
+index 0000000..2bfd3ba
+--- /dev/null
 +++ b/arch/x86/include/asm/mman.h
-@@ -5,4 +5,14 @@
- #include <asm-generic/mman.h>
+@@ -0,0 +1,15 @@
++#ifndef _X86_MMAN_H
++#define _X86_MMAN_H
++
++#include <uapi/asm/mman.h>
++
 +#ifdef __KERNEL__
 +#ifndef __ASSEMBLY__
 +#ifdef CONFIG_X86_32
 +#define arch_mmap_check       i386_mmap_check
-+int i386_mmap_check(unsigned long addr, unsigned long len,
-+              unsigned long flags);
++int i386_mmap_check(unsigned long addr, unsigned long len, unsigned long flags);
 +#endif
 +#endif
 +#endif
 +
- #endif /* _ASM_X86_MMAN_H */
++#endif /* X86_MMAN_H */
 diff --git a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h
 index 5f55e69..e20bfb1 100644
 --- a/arch/x86/include/asm/mmu.h
@@ -12401,7 +14291,7 @@ index cdbf367..adb37ac 100644
  
  #define activate_mm(prev, next)                       \
 diff --git a/arch/x86/include/asm/module.h b/arch/x86/include/asm/module.h
-index 9eae775..c914fea 100644
+index e3b7819..b257c64 100644
 --- a/arch/x86/include/asm/module.h
 +++ b/arch/x86/include/asm/module.h
 @@ -5,6 +5,7 @@
@@ -12409,10 +14299,10 @@ index 9eae775..c914fea 100644
  #ifdef CONFIG_X86_64
  /* X86_64 does not define MODULE_PROC_FAMILY */
 +#define MODULE_PROC_FAMILY ""
- #elif defined CONFIG_M386
- #define MODULE_PROC_FAMILY "386 "
  #elif defined CONFIG_M486
-@@ -59,8 +60,20 @@
+ #define MODULE_PROC_FAMILY "486 "
+ #elif defined CONFIG_M586
+@@ -57,8 +58,20 @@
  #error unknown processor family
  #endif
  
@@ -12435,6 +14325,33 @@ index 9eae775..c914fea 100644
 +#define MODULE_ARCH_VERMAGIC MODULE_PROC_FAMILY MODULE_PAX_KERNEXEC MODULE_PAX_UDEREF
 +
  #endif /* _ASM_X86_MODULE_H */
+diff --git a/arch/x86/include/asm/nmi.h b/arch/x86/include/asm/nmi.h
+index c0fa356..07a498a 100644
+--- a/arch/x86/include/asm/nmi.h
++++ b/arch/x86/include/asm/nmi.h
+@@ -42,11 +42,11 @@ struct nmiaction {
+       nmi_handler_t           handler;
+       unsigned long           flags;
+       const char              *name;
+-};
++} __do_const;
+ #define register_nmi_handler(t, fn, fg, n, init...)   \
+ ({                                                    \
+-      static struct nmiaction init fn##_na = {        \
++      static const struct nmiaction init fn##_na = {  \
+               .handler = (fn),                        \
+               .name = (n),                            \
+               .flags = (fg),                          \
+@@ -54,7 +54,7 @@ struct nmiaction {
+       __register_nmi_handler((t), &fn##_na);          \
+ })
+-int __register_nmi_handler(unsigned int, struct nmiaction *);
++int __register_nmi_handler(unsigned int, const struct nmiaction *);
+ void unregister_nmi_handler(unsigned int, const char *);
 diff --git a/arch/x86/include/asm/page_64_types.h b/arch/x86/include/asm/page_64_types.h
 index 320f7bb..e89f8f8 100644
 --- a/arch/x86/include/asm/page_64_types.h
@@ -12449,10 +14366,19 @@ index 320f7bb..e89f8f8 100644
  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 a0facf3..c017b15 100644
+index 5edd174..c395822 100644
 --- a/arch/x86/include/asm/paravirt.h
 +++ b/arch/x86/include/asm/paravirt.h
-@@ -632,6 +632,18 @@ static inline void set_pgd(pgd_t *pgdp, pgd_t pgd)
+@@ -564,7 +564,7 @@ static inline pmd_t __pmd(pmdval_t val)
+       return (pmd_t) { ret };
+ }
+-static inline pmdval_t pmd_val(pmd_t pmd)
++static inline __intentional_overflow(-1) pmdval_t pmd_val(pmd_t pmd)
+ {
+       pmdval_t ret;
+@@ -630,6 +630,18 @@ static inline void set_pgd(pgd_t *pgdp, pgd_t pgd)
                            val);
  }
  
@@ -12471,7 +14397,7 @@ index a0facf3..c017b15 100644
  static inline void pgd_clear(pgd_t *pgdp)
  {
        set_pgd(pgdp, __pgd(0));
-@@ -713,6 +725,21 @@ static inline void __set_fixmap(unsigned /* enum fixed_addresses */ idx,
+@@ -711,6 +723,21 @@ static inline void __set_fixmap(unsigned /* enum fixed_addresses */ idx,
        pv_mmu_ops.set_fixmap(idx, phys, flags);
  }
  
@@ -12493,7 +14419,7 @@ index a0facf3..c017b15 100644
  #if defined(CONFIG_SMP) && defined(CONFIG_PARAVIRT_SPINLOCKS)
  
  static inline int arch_spin_is_locked(struct arch_spinlock *lock)
-@@ -929,7 +956,7 @@ extern void default_banner(void);
+@@ -927,7 +954,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)
@@ -12502,7 +14428,7 @@ index a0facf3..c017b15 100644
  #endif
  
  #define INTERRUPT_RETURN                                              \
-@@ -1004,6 +1031,21 @@ extern void default_banner(void);
+@@ -1002,6 +1029,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))
@@ -12525,9 +14451,45 @@ index a0facf3..c017b15 100644
  
  #endif /* __ASSEMBLY__ */
 diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h
-index 142236e..57cf5ea 100644
+index 142236e..5446ffbc 100644
 --- a/arch/x86/include/asm/paravirt_types.h
 +++ b/arch/x86/include/asm/paravirt_types.h
+@@ -84,7 +84,7 @@ struct pv_init_ops {
+        */
+       unsigned (*patch)(u8 type, u16 clobber, void *insnbuf,
+                         unsigned long addr, unsigned len);
+-};
++} __no_const;
+ struct pv_lazy_ops {
+@@ -97,7 +97,7 @@ struct pv_time_ops {
+       unsigned long long (*sched_clock)(void);
+       unsigned long long (*steal_clock)(int cpu);
+       unsigned long (*get_tsc_khz)(void);
+-};
++} __no_const;
+ struct pv_cpu_ops {
+       /* hooks for various privileged instructions */
+@@ -191,7 +191,7 @@ struct pv_cpu_ops {
+       void (*start_context_switch)(struct task_struct *prev);
+       void (*end_context_switch)(struct task_struct *next);
+-};
++} __no_const;
+ struct pv_irq_ops {
+       /*
+@@ -222,7 +222,7 @@ struct pv_apic_ops {
+                                unsigned long start_eip,
+                                unsigned long start_esp);
+ #endif
+-};
++} __no_const;
+ struct pv_mmu_ops {
+       unsigned long (*read_cr2)(void);
 @@ -312,6 +312,7 @@ struct pv_mmu_ops {
        struct paravirt_callee_save make_pud;
  
@@ -12549,6 +14511,15 @@ index 142236e..57cf5ea 100644
  };
  
  struct arch_spinlock;
+@@ -333,7 +340,7 @@ struct pv_lock_ops {
+       void (*spin_lock_flags)(struct arch_spinlock *lock, unsigned long flags);
+       int (*spin_trylock)(struct arch_spinlock *lock);
+       void (*spin_unlock)(struct arch_spinlock *lock);
+-};
++} __no_const;
+ /* This contains all the paravirt structures: we get a convenient
+  * number for each function using the offset which we use to indicate
 diff --git a/arch/x86/include/asm/pgalloc.h b/arch/x86/include/asm/pgalloc.h
 index b4389a4..7024269 100644
 --- a/arch/x86/include/asm/pgalloc.h
@@ -12639,7 +14610,7 @@ index 4cc9f2b..5fd9226 100644
  
  /*
 diff --git a/arch/x86/include/asm/pgtable.h b/arch/x86/include/asm/pgtable.h
-index a1f780d..a3eb32f 100644
+index 1c1a955..50f828c 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);
@@ -12702,7 +14673,7 @@ index a1f780d..a3eb32f 100644
  static inline int pte_dirty(pte_t pte)
  {
        return pte_flags(pte) & _PAGE_DIRTY;
-@@ -195,9 +235,29 @@ static inline pte_t pte_wrprotect(pte_t pte)
+@@ -200,9 +240,29 @@ static inline pte_t pte_wrprotect(pte_t pte)
        return pte_clear_flags(pte, _PAGE_RW);
  }
  
@@ -12733,7 +14704,7 @@ index a1f780d..a3eb32f 100644
  }
  
  static inline pte_t pte_mkdirty(pte_t pte)
-@@ -389,6 +449,15 @@ pte_t *populate_extra_pte(unsigned long vaddr);
+@@ -394,6 +454,15 @@ pte_t *populate_extra_pte(unsigned long vaddr);
  #endif
  
  #ifndef __ASSEMBLY__
@@ -12749,7 +14720,7 @@ index a1f780d..a3eb32f 100644
  #include <linux/mm_types.h>
  
  static inline int pte_none(pte_t pte)
-@@ -565,7 +634,7 @@ static inline pud_t *pud_offset(pgd_t *pgd, unsigned long address)
+@@ -583,7 +652,7 @@ static inline pud_t *pud_offset(pgd_t *pgd, unsigned long address)
  
  static inline int pgd_bad(pgd_t pgd)
  {
@@ -12758,7 +14729,7 @@ index a1f780d..a3eb32f 100644
  }
  
  static inline int pgd_none(pgd_t pgd)
-@@ -588,7 +657,12 @@ static inline int pgd_none(pgd_t pgd)
+@@ -606,7 +675,12 @@ static inline int pgd_none(pgd_t pgd)
   * pgd_offset() returns a (pgd_t *)
   * pgd_index() is used get the offset into the pgd page's array of pgd_t's;
   */
@@ -12772,7 +14743,7 @@ index a1f780d..a3eb32f 100644
  /*
   * a shortcut which implies the use of the kernel's pgd, instead
   * of a process's
-@@ -599,6 +673,20 @@ static inline int pgd_none(pgd_t pgd)
+@@ -617,6 +691,20 @@ static inline int pgd_none(pgd_t pgd)
  #define KERNEL_PGD_BOUNDARY   pgd_index(PAGE_OFFSET)
  #define KERNEL_PGD_PTRS               (PTRS_PER_PGD - KERNEL_PGD_BOUNDARY)
  
@@ -12793,7 +14764,7 @@ index a1f780d..a3eb32f 100644
  #ifndef __ASSEMBLY__
  
  extern int direct_gbpages;
-@@ -763,11 +851,23 @@ static inline void pmdp_set_wrprotect(struct mm_struct *mm,
+@@ -781,11 +869,23 @@ static inline void pmdp_set_wrprotect(struct mm_struct *mm,
   * dst and src can be on the same page, but the range must not overlap,
   * and must not cross a page boundary.
   */
@@ -12970,7 +14941,7 @@ index 766ea16..5b96cb3 100644
  
  #endif /* _ASM_X86_PGTABLE_64_DEFS_H */
 diff --git a/arch/x86/include/asm/pgtable_types.h b/arch/x86/include/asm/pgtable_types.h
-index ec8a1fc..7ccb593 100644
+index 3c32db8..1ddccf5 100644
 --- a/arch/x86/include/asm/pgtable_types.h
 +++ b/arch/x86/include/asm/pgtable_types.h
 @@ -16,13 +16,12 @@
@@ -13010,7 +14981,7 @@ index ec8a1fc..7ccb593 100644
  #endif
  
  #define _PAGE_FILE    (_AT(pteval_t, 1) << _PAGE_BIT_FILE)
-@@ -96,6 +96,9 @@
+@@ -116,6 +116,9 @@
  #define PAGE_READONLY_EXEC    __pgprot(_PAGE_PRESENT | _PAGE_USER |   \
                                         _PAGE_ACCESSED)
  
@@ -13020,7 +14991,7 @@ index ec8a1fc..7ccb593 100644
  #define __PAGE_KERNEL_EXEC                                            \
        (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_GLOBAL)
  #define __PAGE_KERNEL         (__PAGE_KERNEL_EXEC | _PAGE_NX)
-@@ -106,7 +109,7 @@
+@@ -126,7 +129,7 @@
  #define __PAGE_KERNEL_WC              (__PAGE_KERNEL | _PAGE_CACHE_WC)
  #define __PAGE_KERNEL_NOCACHE         (__PAGE_KERNEL | _PAGE_PCD | _PAGE_PWT)
  #define __PAGE_KERNEL_UC_MINUS                (__PAGE_KERNEL | _PAGE_PCD)
@@ -13029,7 +15000,7 @@ index ec8a1fc..7ccb593 100644
  #define __PAGE_KERNEL_VVAR            (__PAGE_KERNEL_RO | _PAGE_USER)
  #define __PAGE_KERNEL_VVAR_NOCACHE    (__PAGE_KERNEL_VVAR | _PAGE_PCD | _PAGE_PWT)
  #define __PAGE_KERNEL_LARGE           (__PAGE_KERNEL | _PAGE_PSE)
-@@ -168,8 +171,8 @@
+@@ -188,8 +191,8 @@
   * bits are combined, this will alow user to access the high address mapped
   * VDSO in the presence of CONFIG_COMPAT_VDSO
   */
@@ -13040,7 +15011,7 @@ index ec8a1fc..7ccb593 100644
  #define PGD_IDENT_ATTR         0x001          /* PRESENT (no other attributes) */
  #endif
  
-@@ -207,7 +210,17 @@ static inline pgdval_t pgd_flags(pgd_t pgd)
+@@ -227,7 +230,17 @@ static inline pgdval_t pgd_flags(pgd_t pgd)
  {
        return native_pgd_val(pgd) & PTE_FLAGS_MASK;
  }
@@ -13058,7 +15029,7 @@ index ec8a1fc..7ccb593 100644
  #if PAGETABLE_LEVELS > 3
  typedef struct { pudval_t pud; } pud_t;
  
-@@ -221,8 +234,6 @@ static inline pudval_t native_pud_val(pud_t pud)
+@@ -241,8 +254,6 @@ static inline pudval_t native_pud_val(pud_t pud)
        return pud.pud;
  }
  #else
@@ -13067,7 +15038,7 @@ index ec8a1fc..7ccb593 100644
  static inline pudval_t native_pud_val(pud_t pud)
  {
        return native_pgd_val(pud.pgd);
-@@ -242,8 +253,6 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
+@@ -262,8 +273,6 @@ static inline pmdval_t native_pmd_val(pmd_t pmd)
        return pmd.pmd;
  }
  #else
@@ -13076,7 +15047,7 @@ index ec8a1fc..7ccb593 100644
  static inline pmdval_t native_pmd_val(pmd_t pmd)
  {
        return native_pgd_val(pmd.pud.pgd);
-@@ -283,7 +292,6 @@ typedef struct page *pgtable_t;
+@@ -303,7 +312,6 @@ typedef struct page *pgtable_t;
  
  extern pteval_t __supported_pte_mask;
  extern void set_nx(void);
@@ -13085,10 +15056,10 @@ index ec8a1fc..7ccb593 100644
  #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 ad1fc85..0b15fe1 100644
+index 888184b..a07ac89 100644
 --- a/arch/x86/include/asm/processor.h
 +++ b/arch/x86/include/asm/processor.h
-@@ -289,7 +289,7 @@ struct tss_struct {
+@@ -287,7 +287,7 @@ struct tss_struct {
  
  } ____cacheline_aligned;
  
@@ -13097,7 +15068,7 @@ index ad1fc85..0b15fe1 100644
  
  /*
   * Save the original ist values for checking stack pointers during debugging
-@@ -818,11 +818,18 @@ static inline void spin_lock_prefetch(const void *x)
+@@ -827,11 +827,18 @@ static inline void spin_lock_prefetch(const void *x)
   */
  #define TASK_SIZE             PAGE_OFFSET
  #define TASK_SIZE_MAX         TASK_SIZE
@@ -13118,7 +15089,7 @@ index ad1fc85..0b15fe1 100644
        .vm86_info              = NULL,                                   \
        .sysenter_cs            = __KERNEL_CS,                            \
        .io_bitmap_ptr          = NULL,                                   \
-@@ -836,7 +843,7 @@ static inline void spin_lock_prefetch(const void *x)
+@@ -845,7 +852,7 @@ static inline void spin_lock_prefetch(const void *x)
   */
  #define INIT_TSS  {                                                     \
        .x86_tss = {                                                      \
@@ -13127,7 +15098,7 @@ index ad1fc85..0b15fe1 100644
                .ss0            = __KERNEL_DS,                            \
                .ss1            = __KERNEL_CS,                            \
                .io_bitmap_base = INVALID_IO_BITMAP_OFFSET,               \
-@@ -847,11 +854,7 @@ static inline void spin_lock_prefetch(const void *x)
+@@ -856,11 +863,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))
@@ -13140,7 +15111,7 @@ index ad1fc85..0b15fe1 100644
  
  /*
   * The below -8 is to reserve 8 bytes on top of the ring0 stack.
-@@ -866,7 +869,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
+@@ -875,7 +878,7 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
  #define task_pt_regs(task)                                             \
  ({                                                                     \
         struct pt_regs *__regs__;                                       \
@@ -13149,7 +15120,7 @@ index ad1fc85..0b15fe1 100644
         __regs__ - 1;                                                   \
  })
  
-@@ -876,13 +879,13 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
+@@ -885,13 +888,13 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
  /*
   * User space process size. 47bits minus one guard page.
   */
@@ -13165,7 +15136,7 @@ index ad1fc85..0b15fe1 100644
  
  #define TASK_SIZE             (test_thread_flag(TIF_ADDR32) ? \
                                        IA32_PAGE_OFFSET : TASK_SIZE_MAX)
-@@ -893,11 +896,11 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
+@@ -902,11 +905,11 @@ extern unsigned long thread_saved_pc(struct task_struct *tsk);
  #define STACK_TOP_MAX         TASK_SIZE_MAX
  
  #define INIT_THREAD  { \
@@ -13179,7 +15150,7 @@ index ad1fc85..0b15fe1 100644
  }
  
  /*
-@@ -925,6 +928,10 @@ extern void start_thread(struct pt_regs *regs, unsigned long new_ip,
+@@ -934,6 +937,10 @@ extern void start_thread(struct pt_regs *regs, unsigned long new_ip,
   */
  #define TASK_UNMAPPED_BASE    (PAGE_ALIGN(TASK_SIZE / 3))
  
@@ -13190,7 +15161,7 @@ index ad1fc85..0b15fe1 100644
  #define KSTK_EIP(task)                (task_pt_regs(task)->ip)
  
  /* Get/set a process' ability to use the timestamp counter instruction */
-@@ -985,12 +992,12 @@ extern bool cpu_has_amd_erratum(const int *);
+@@ -994,12 +1001,12 @@ extern bool cpu_has_amd_erratum(const int *);
  #define cpu_has_amd_erratum(x)        (false)
  #endif /* CONFIG_CPU_SUP_AMD */
  
@@ -13206,10 +15177,10 @@ index ad1fc85..0b15fe1 100644
  
  #endif /* _ASM_X86_PROCESSOR_H */
 diff --git a/arch/x86/include/asm/ptrace.h b/arch/x86/include/asm/ptrace.h
-index 19f16eb..b50624b 100644
+index 942a086..6c26446 100644
 --- a/arch/x86/include/asm/ptrace.h
 +++ b/arch/x86/include/asm/ptrace.h
-@@ -155,28 +155,29 @@ static inline unsigned long regs_return_value(struct pt_regs *regs)
+@@ -85,28 +85,29 @@ static inline unsigned long regs_return_value(struct pt_regs *regs)
  }
  
  /*
@@ -13245,7 +15216,7 @@ index 19f16eb..b50624b 100644
  #endif
  }
  
-@@ -192,15 +193,16 @@ static inline int v8086_mode(struct pt_regs *regs)
+@@ -122,15 +123,16 @@ static inline int v8086_mode(struct pt_regs *regs)
  #ifdef CONFIG_X86_64
  static inline bool user_64bit_mode(struct pt_regs *regs)
  {
@@ -13263,7 +15234,22 @@ index 19f16eb..b50624b 100644
 +      return cs == __USER_CS || cs == pv_info.extra_user_64bit_cs;
  #endif
  }
+@@ -181,9 +183,11 @@ static inline unsigned long regs_get_register(struct pt_regs *regs,
+        * Traps from the kernel do not save sp and ss.
+        * Use the helper function to retrieve sp.
+        */
+-      if (offset == offsetof(struct pt_regs, sp) &&
+-          regs->cs == __KERNEL_CS)
+-              return kernel_stack_pointer(regs);
++      if (offset == offsetof(struct pt_regs, sp)) {
++              unsigned long cs = regs->cs & 0xffff;
++              if (cs == __KERNEL_CS || cs == __KERNEXEC_KERNEL_CS)
++                      return kernel_stack_pointer(regs);
++      }
  #endif
+       return *(unsigned long *)((unsigned long)regs + offset);
+ }
 diff --git a/arch/x86/include/asm/realmode.h b/arch/x86/include/asm/realmode.h
 index fe1ec5b..dc5c3fe 100644
 --- a/arch/x86/include/asm/realmode.h
@@ -13287,10 +15273,10 @@ index fe1ec5b..dc5c3fe 100644
        u32 gdt_base;
  #else
 diff --git a/arch/x86/include/asm/reboot.h b/arch/x86/include/asm/reboot.h
-index a82c4f1..f9c9696 100644
+index a82c4f1..ac45053 100644
 --- a/arch/x86/include/asm/reboot.h
 +++ b/arch/x86/include/asm/reboot.h
-@@ -6,12 +6,12 @@
+@@ -6,13 +6,13 @@
  struct pt_regs;
  
  struct machine_ops {
@@ -13303,10 +15289,12 @@ index a82c4f1..f9c9696 100644
        void (*shutdown)(void);
        void (*crash_shutdown)(struct pt_regs *);
 -      void (*emergency_restart)(void);
+-};
 +      void (* __noreturn emergency_restart)(void);
- };
++} __no_const;
  
  extern struct machine_ops machine_ops;
 diff --git a/arch/x86/include/asm/rwsem.h b/arch/x86/include/asm/rwsem.h
 index 2dbe4a7..ce1db00 100644
 --- a/arch/x86/include/asm/rwsem.h
@@ -13507,7 +15495,7 @@ index c48a950..c6d7468 100644
  
  #endif /* !__ASSEMBLY__ */
 diff --git a/arch/x86/include/asm/smp.h b/arch/x86/include/asm/smp.h
-index 4f19a15..e04d86f 100644
+index b073aae..39f9bdd 100644
 --- a/arch/x86/include/asm/smp.h
 +++ b/arch/x86/include/asm/smp.h
 @@ -36,7 +36,7 @@ DECLARE_PER_CPU_READ_MOSTLY(cpumask_var_t, cpu_core_map);
@@ -13519,7 +15507,16 @@ index 4f19a15..e04d86f 100644
  
  static inline struct cpumask *cpu_sibling_mask(int cpu)
  {
-@@ -190,14 +190,8 @@ extern unsigned disabled_cpus __cpuinitdata;
+@@ -79,7 +79,7 @@ struct smp_ops {
+       void (*send_call_func_ipi)(const struct cpumask *mask);
+       void (*send_call_func_single_ipi)(int cpu);
+-};
++} __no_const;
+ /* Globals due to paravirt */
+ extern void set_cpu_sibling_map(int cpu);
+@@ -191,14 +191,8 @@ extern unsigned disabled_cpus __cpuinitdata;
  extern int safe_smp_processor_id(void);
  
  #elif defined(CONFIG_X86_64_SMP)
@@ -13903,7 +15900,7 @@ index 2d946e6..e453ec4 100644
  #endif
  #endif /* _ASM_X86_THREAD_INFO_H */
 diff --git a/arch/x86/include/asm/uaccess.h b/arch/x86/include/asm/uaccess.h
-index 7ccf8d1..9a18110 100644
+index 1709801..0a60f2f 100644
 --- a/arch/x86/include/asm/uaccess.h
 +++ b/arch/x86/include/asm/uaccess.h
 @@ -7,6 +7,7 @@
@@ -13999,7 +15996,7 @@ index 7ccf8d1..9a18110 100644
                     "3: " ASM_CLAC "\n"                                \
                     _ASM_EXTABLE_EX(1b, 2b)                            \
                     _ASM_EXTABLE_EX(2b, 3b)                            \
-@@ -261,7 +300,7 @@ extern void __put_user_8(void);
+@@ -259,7 +298,7 @@ extern void __put_user_8(void);
        __typeof__(*(ptr)) __pu_val;                            \
        __chk_user_ptr(ptr);                                    \
        might_fault();                                          \
@@ -14008,7 +16005,7 @@ index 7ccf8d1..9a18110 100644
        switch (sizeof(*(ptr))) {                               \
        case 1:                                                 \
                __put_user_x(1, __pu_val, ptr, __ret_pu);       \
-@@ -383,7 +422,7 @@ do {                                                                       \
+@@ -358,7 +397,7 @@ do {                                                                       \
  
  #define __get_user_asm(x, addr, err, itype, rtype, ltype, errret)     \
        asm volatile(ASM_STAC "\n"                                      \
@@ -14017,7 +16014,7 @@ index 7ccf8d1..9a18110 100644
                     "2: " ASM_CLAC "\n"                                \
                     ".section .fixup,\"ax\"\n"                         \
                     "3:        mov %3,%0\n"                            \
-@@ -391,7 +430,7 @@ do {                                                                       \
+@@ -366,7 +405,7 @@ do {                                                                       \
                     "  jmp 2b\n"                                       \
                     ".previous\n"                                      \
                     _ASM_EXTABLE(1b, 3b)                               \
@@ -14026,7 +16023,7 @@ index 7ccf8d1..9a18110 100644
                     : "m" (__m(addr)), "i" (errret), "0" (err))
  
  #define __get_user_size_ex(x, ptr, size)                              \
-@@ -416,7 +455,7 @@ do {                                                                       \
+@@ -391,7 +430,7 @@ do {                                                                       \
  } while (0)
  
  #define __get_user_asm_ex(x, addr, itype, rtype, ltype)                       \
@@ -14035,7 +16032,7 @@ index 7ccf8d1..9a18110 100644
                     "2:\n"                                             \
                     _ASM_EXTABLE_EX(1b, 2b)                            \
                     : ltype(x) : "m" (__m(addr)))
-@@ -433,13 +472,24 @@ do {                                                                     \
+@@ -408,13 +447,24 @@ do {                                                                     \
        int __gu_err;                                                   \
        unsigned long __gu_val;                                         \
        __get_user_size(__gu_val, (ptr), (size), __gu_err, -EFAULT);    \
@@ -14062,7 +16059,7 @@ index 7ccf8d1..9a18110 100644
  
  /*
   * Tell gcc we read from memory instead of writing: this is because
-@@ -448,7 +498,7 @@ struct __large_struct { unsigned long buf[100]; };
+@@ -423,7 +473,7 @@ struct __large_struct { unsigned long buf[100]; };
   */
  #define __put_user_asm(x, addr, err, itype, rtype, ltype, errret)     \
        asm volatile(ASM_STAC "\n"                                      \
@@ -14071,7 +16068,7 @@ index 7ccf8d1..9a18110 100644
                     "2: " ASM_CLAC "\n"                                \
                     ".section .fixup,\"ax\"\n"                         \
                     "3:        mov %3,%0\n"                            \
-@@ -456,10 +506,10 @@ struct __large_struct { unsigned long buf[100]; };
+@@ -431,10 +481,10 @@ struct __large_struct { unsigned long buf[100]; };
                     ".previous\n"                                      \
                     _ASM_EXTABLE(1b, 3b)                               \
                     : "=r"(err)                                        \
@@ -14084,7 +16081,7 @@ index 7ccf8d1..9a18110 100644
                     "2:\n"                                             \
                     _ASM_EXTABLE_EX(1b, 2b)                            \
                     : : ltype(x), "m" (__m(addr)))
-@@ -498,8 +548,12 @@ struct __large_struct { unsigned long buf[100]; };
+@@ -473,8 +523,12 @@ struct __large_struct { unsigned long buf[100]; };
   * On error, the variable @x is set to zero.
   */
  
@@ -14097,7 +16094,7 @@ index 7ccf8d1..9a18110 100644
  
  /**
   * __put_user: - Write a simple value into user space, with less checking.
-@@ -521,8 +575,12 @@ struct __large_struct { unsigned long buf[100]; };
+@@ -496,8 +550,12 @@ struct __large_struct { unsigned long buf[100]; };
   * Returns zero on success, or -EFAULT on error.
   */
  
@@ -14110,7 +16107,7 @@ index 7ccf8d1..9a18110 100644
  
  #define __get_user_unaligned __get_user
  #define __put_user_unaligned __put_user
-@@ -540,7 +598,7 @@ struct __large_struct { unsigned long buf[100]; };
+@@ -515,7 +573,7 @@ struct __large_struct { unsigned long buf[100]; };
  #define get_user_ex(x, ptr)   do {                                    \
        unsigned long __gue_val;                                        \
        __get_user_size_ex((__gue_val), (ptr), (sizeof(*(ptr))));       \
@@ -14118,8 +16115,8 @@ index 7ccf8d1..9a18110 100644
 +      (x) = (__typeof__(*(ptr)))__gue_val;                            \
  } while (0)
  
- #ifdef CONFIG_X86_WP_WORKS_OK
-@@ -574,8 +632,8 @@ strncpy_from_user(char *dst, const char __user *src, long count);
+ #define put_user_try          uaccess_try
+@@ -532,8 +590,8 @@ strncpy_from_user(char *dst, const char __user *src, long count);
  extern __must_check long strlen_user(const char __user *str);
  extern __must_check long strnlen_user(const char __user *str, long n);
  
@@ -14305,7 +16302,7 @@ index 7f760a9..04b1c65 100644
  }
  
 diff --git a/arch/x86/include/asm/uaccess_64.h b/arch/x86/include/asm/uaccess_64.h
-index 142810c..4b68a3e 100644
+index 142810c..1f2a0a7 100644
 --- a/arch/x86/include/asm/uaccess_64.h
 +++ b/arch/x86/include/asm/uaccess_64.h
 @@ -10,6 +10,9 @@
@@ -14336,7 +16333,7 @@ index 142810c..4b68a3e 100644
  copy_user_generic(void *to, const void *from, unsigned len)
  {
        unsigned ret;
-@@ -41,142 +44,203 @@ copy_user_generic(void *to, const void *from, unsigned len)
+@@ -41,142 +44,204 @@ 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)
@@ -14346,16 +16343,16 @@ index 142810c..4b68a3e 100644
  }
  
 +static __always_inline __must_check unsigned long
-+__copy_to_user(void __user *to, const void *from, unsigned long len) __size_overflow(3);
++__copy_to_user(void __user *to, const void *from, unsigned long len);
 +static __always_inline __must_check unsigned long
-+__copy_from_user(void *to, const void __user *from, unsigned long len) __size_overflow(3);
++__copy_from_user(void *to, const void __user *from, unsigned long len);
  __must_check unsigned long
 -_copy_to_user(void __user *to, const void *from, unsigned len);
 -__must_check unsigned long
 -_copy_from_user(void *to, const void __user *from, unsigned 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);
++copy_in_user(void __user *to, const void __user *from, unsigned long len);
 +
 +extern void copy_to_user_overflow(void)
 +#ifdef CONFIG_DEBUG_STRICT_USER_COPY_CHECKS
@@ -14388,6 +16385,7 @@ index 142810c..4b68a3e 100644
 -#endif
 +
 +      check_object_size(to, n, false);
++
 +      if (access_ok(VERIFY_READ, from, n))
 +              n = __copy_from_user(to, from, n);
 +      else if (n < INT_MAX)
@@ -14585,7 +16583,7 @@ index 142810c..4b68a3e 100644
                               ret, "b", "b", "=q", 1);
                if (likely(!ret))
                        __put_user_asm(tmp, (u8 __user *)dst,
-@@ -185,7 +249,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
+@@ -185,7 +250,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
        }
        case 2: {
                u16 tmp;
@@ -14594,7 +16592,7 @@ index 142810c..4b68a3e 100644
                               ret, "w", "w", "=r", 2);
                if (likely(!ret))
                        __put_user_asm(tmp, (u16 __user *)dst,
-@@ -195,7 +259,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
+@@ -195,7 +260,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
  
        case 4: {
                u32 tmp;
@@ -14603,7 +16601,7 @@ index 142810c..4b68a3e 100644
                               ret, "l", "k", "=r", 4);
                if (likely(!ret))
                        __put_user_asm(tmp, (u32 __user *)dst,
-@@ -204,7 +268,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
+@@ -204,7 +269,7 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
        }
        case 8: {
                u64 tmp;
@@ -14612,7 +16610,7 @@ index 142810c..4b68a3e 100644
                               ret, "q", "", "=r", 8);
                if (likely(!ret))
                        __put_user_asm(tmp, (u64 __user *)dst,
-@@ -212,41 +276,72 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
+@@ -212,41 +277,72 @@ int __copy_in_user(void __user *dst, const void __user *src, unsigned size)
                return ret;
        }
        default:
@@ -14714,6 +16712,54 @@ index 5b238981..77fdd78 100644
  };
  
  #define WORD_AT_A_TIME_CONSTANTS { REPEAT_BYTE(0x01), REPEAT_BYTE(0x80) }
+diff --git a/arch/x86/include/asm/x86_init.h b/arch/x86/include/asm/x86_init.h
+index 5769349..a3d3e2a 100644
+--- a/arch/x86/include/asm/x86_init.h
++++ b/arch/x86/include/asm/x86_init.h
+@@ -141,7 +141,7 @@ struct x86_init_ops {
+       struct x86_init_timers          timers;
+       struct x86_init_iommu           iommu;
+       struct x86_init_pci             pci;
+-};
++} __no_const;
+ /**
+  * struct x86_cpuinit_ops - platform specific cpu hotplug setups
+@@ -152,7 +152,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
+@@ -178,7 +178,7 @@ struct x86_platform_ops {
+       void (*save_sched_clock_state)(void);
+       void (*restore_sched_clock_state)(void);
+       void (*apic_post_init)(void);
+-};
++} __no_const;
+ struct pci_dev;
+@@ -187,14 +187,14 @@ 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);
+-};
++} __no_const;
+ struct x86_io_apic_ops {
+       void            (*init)  (void);
+       unsigned int    (*read)  (unsigned int apic, unsigned int reg);
+       void            (*write) (unsigned int apic, unsigned int reg, unsigned int value);
+       void            (*modify)(unsigned int apic, unsigned int reg, unsigned int value);
+-};
++} __no_const;
+ extern struct x86_init_ops x86_init;
+ extern struct x86_cpuinit_ops x86_cpuinit;
 diff --git a/arch/x86/include/asm/xsave.h b/arch/x86/include/asm/xsave.h
 index 0415cda..b43d877 100644
 --- a/arch/x86/include/asm/xsave.h
@@ -14746,11 +16792,24 @@ index 0415cda..b43d877 100644
                             "2: " ASM_CLAC "\n"
                             ".section .fixup,\"ax\"\n"
                             "3:  movl $-1,%[err]\n"
+diff --git a/arch/x86/include/uapi/asm/e820.h b/arch/x86/include/uapi/asm/e820.h
+index bbae024..e1528f9 100644
+--- a/arch/x86/include/uapi/asm/e820.h
++++ b/arch/x86/include/uapi/asm/e820.h
+@@ -63,7 +63,7 @@ struct e820map {
+ #define ISA_START_ADDRESS     0xa0000
+ #define ISA_END_ADDRESS               0x100000
+-#define BIOS_BEGIN            0x000a0000
++#define BIOS_BEGIN            0x000c0000
+ #define BIOS_END              0x00100000
+ #define BIOS_ROM_BASE         0xffe00000
 diff --git a/arch/x86/kernel/Makefile b/arch/x86/kernel/Makefile
-index 91ce48f..a48ea05 100644
+index 34e923a..0c6bb6e 100644
 --- a/arch/x86/kernel/Makefile
 +++ b/arch/x86/kernel/Makefile
-@@ -23,7 +23,7 @@ obj-y                        += time.o ioport.o ldt.o dumpstack.o nmi.o
+@@ -22,7 +22,7 @@ obj-y                        += time.o ioport.o ldt.o dumpstack.o nmi.o
  obj-y                 += setup.o x86_init.o i8259.o irqinit.o jump_label.o
  obj-$(CONFIG_IRQ_WORK)  += irq_work.o
  obj-y                 += probe_roms.o
@@ -14760,20 +16819,29 @@ index 91ce48f..a48ea05 100644
  obj-y                 += syscall_$(BITS).o
  obj-$(CONFIG_X86_64)  += vsyscall_64.o
 diff --git a/arch/x86/kernel/acpi/boot.c b/arch/x86/kernel/acpi/boot.c
-index e651f7a..c995dc4 100644
+index bacf4b0..4ede72e 100644
 --- a/arch/x86/kernel/acpi/boot.c
 +++ b/arch/x86/kernel/acpi/boot.c
-@@ -1576,7 +1576,7 @@ int __init acpi_boot_init(void)
-       acpi_table_parse(ACPI_SIG_HPET, acpi_parse_hpet);
-       if (!acpi_noirq)
--              x86_init.pci.init = pci_acpi_init;
-+              *(void **)&x86_init.pci.init = pci_acpi_init;
+@@ -1358,7 +1358,7 @@ static int __init dmi_ignore_irq0_timer_override(const struct dmi_system_id *d)
+  * If your system is blacklisted here, but you find that acpi=force
+  * works for you, please contact linux-acpi@vger.kernel.org
+  */
+-static struct dmi_system_id __initdata acpi_dmi_table[] = {
++static const struct dmi_system_id __initconst acpi_dmi_table[] = {
+       /*
+        * Boxes that need ACPI disabled
+        */
+@@ -1433,7 +1433,7 @@ static struct dmi_system_id __initdata acpi_dmi_table[] = {
+ };
  
-       return 0;
- }
+ /* second table for DMI checks that should run after early-quirks */
+-static struct dmi_system_id __initdata acpi_dmi_table_late[] = {
++static const struct dmi_system_id __initconst acpi_dmi_table_late[] = {
+       /*
+        * HP laptops which use a DSDT reporting as HP/SB400/10000,
+        * which includes some code which overrides all temperature
 diff --git a/arch/x86/kernel/acpi/sleep.c b/arch/x86/kernel/acpi/sleep.c
-index 11676cf..a8cf3ec 100644
+index d5e0d71..6533e08 100644
 --- a/arch/x86/kernel/acpi/sleep.c
 +++ b/arch/x86/kernel/acpi/sleep.c
 @@ -74,8 +74,12 @@ int acpi_suspend_lowlevel(void)
@@ -14946,37 +17014,11 @@ index ef5ccca..bd83949 100644
        return addr;
  }
  
-diff --git a/arch/x86/kernel/amd_gart_64.c b/arch/x86/kernel/amd_gart_64.c
-index e663112..21938a3 100644
---- a/arch/x86/kernel/amd_gart_64.c
-+++ b/arch/x86/kernel/amd_gart_64.c
-@@ -851,7 +851,7 @@ int __init gart_iommu_init(void)
-       flush_gart();
-       dma_ops = &gart_dma_ops;
--      x86_platform.iommu_shutdown = gart_iommu_shutdown;
-+      *(void **)&x86_platform.iommu_shutdown = gart_iommu_shutdown;
-       swiotlb = 0;
-       return 0;
-diff --git a/arch/x86/kernel/aperture_64.c b/arch/x86/kernel/aperture_64.c
-index d5fd66f..6119b16 100644
---- a/arch/x86/kernel/aperture_64.c
-+++ b/arch/x86/kernel/aperture_64.c
-@@ -390,7 +390,7 @@ int __init gart_iommu_hole_init(void)
-                       iommu_detected = 1;
-                       gart_iommu_aperture = 1;
--                      x86_init.iommu.iommu_init = gart_iommu_init;
-+                      *(void **)&x86_init.iommu.iommu_init = gart_iommu_init;
-                       ctl = read_pci_config(bus, slot, 3,
-                                             AMD64_GARTAPERTURECTL);
 diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
-index b17416e..be6e5dc 100644
+index cbf5121..812b537 100644
 --- a/arch/x86/kernel/apic/apic.c
 +++ b/arch/x86/kernel/apic/apic.c
-@@ -185,7 +185,7 @@ int first_system_vector = 0xfe;
+@@ -189,7 +189,7 @@ int first_system_vector = 0xfe;
  /*
   * Debug level, exported for io_apic.c
   */
@@ -14985,7 +17027,7 @@ index b17416e..be6e5dc 100644
  
  int pic_mode;
  
-@@ -1923,7 +1923,7 @@ void smp_error_interrupt(struct pt_regs *regs)
+@@ -1956,7 +1956,7 @@ void smp_error_interrupt(struct pt_regs *regs)
        apic_write(APIC_ESR, 0);
        v1 = apic_read(APIC_ESR);
        ack_APIC_irq();
@@ -14994,32 +17036,79 @@ index b17416e..be6e5dc 100644
  
        apic_printk(APIC_DEBUG, KERN_DEBUG "APIC error on CPU%d: %02x(%02x)",
                    smp_processor_id(), v0 , v1);
-@@ -2155,7 +2155,9 @@ void __init apic_set_eoi_write(void (*eoi_write)(u32 reg, u32 v))
-       for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) {
-               /* Should happen once for each apic */
-               WARN_ON((*drv)->eoi_write == eoi_write);
--              (*drv)->eoi_write = eoi_write;
-+              pax_open_kernel();
-+              *(void **)&(*drv)->eoi_write = eoi_write;
-+              pax_close_kernel();
-       }
+diff --git a/arch/x86/kernel/apic/apic_flat_64.c b/arch/x86/kernel/apic/apic_flat_64.c
+index 00c77cf..2dc6a2d 100644
+--- a/arch/x86/kernel/apic/apic_flat_64.c
++++ b/arch/x86/kernel/apic/apic_flat_64.c
+@@ -157,7 +157,7 @@ static int flat_probe(void)
+       return 1;
  }
  
-diff --git a/arch/x86/kernel/apic/apic_numachip.c b/arch/x86/kernel/apic/apic_numachip.c
-index a65829a..6ddc249 100644
---- a/arch/x86/kernel/apic/apic_numachip.c
-+++ b/arch/x86/kernel/apic/apic_numachip.c
-@@ -178,7 +178,7 @@ static int __init numachip_system_init(void)
-       if (!numachip_system)
-               return 0;
+-static struct apic apic_flat =  {
++static struct apic apic_flat __read_only =  {
+       .name                           = "flat",
+       .probe                          = flat_probe,
+       .acpi_madt_oem_check            = flat_acpi_madt_oem_check,
+@@ -271,7 +271,7 @@ static int physflat_probe(void)
+       return 0;
+ }
  
--      x86_cpuinit.fixup_cpu_id = fixup_cpu_id;
-+      *(void **)&x86_cpuinit.fixup_cpu_id = fixup_cpu_id;
+-static struct apic apic_physflat =  {
++static struct apic apic_physflat __read_only =  {
+       .name                           = "physical flat",
+       .probe                          = physflat_probe,
+diff --git a/arch/x86/kernel/apic/apic_noop.c b/arch/x86/kernel/apic/apic_noop.c
+index e145f28..2752888 100644
+--- a/arch/x86/kernel/apic/apic_noop.c
++++ b/arch/x86/kernel/apic/apic_noop.c
+@@ -119,7 +119,7 @@ static void noop_apic_write(u32 reg, u32 v)
+       WARN_ON_ONCE(cpu_has_apic && !disable_apic);
+ }
+-struct apic apic_noop = {
++struct apic apic_noop __read_only = {
+       .name                           = "noop",
+       .probe                          = noop_probe,
+       .acpi_madt_oem_check            = NULL,
+diff --git a/arch/x86/kernel/apic/bigsmp_32.c b/arch/x86/kernel/apic/bigsmp_32.c
+index d50e364..543bee3 100644
+--- a/arch/x86/kernel/apic/bigsmp_32.c
++++ b/arch/x86/kernel/apic/bigsmp_32.c
+@@ -152,7 +152,7 @@ static int probe_bigsmp(void)
+       return dmi_bigsmp;
+ }
+-static struct apic apic_bigsmp = {
++static struct apic apic_bigsmp __read_only = {
+       .name                           = "bigsmp",
+       .probe                          = probe_bigsmp,
+diff --git a/arch/x86/kernel/apic/es7000_32.c b/arch/x86/kernel/apic/es7000_32.c
+index 0874799..a7a7892 100644
+--- a/arch/x86/kernel/apic/es7000_32.c
++++ b/arch/x86/kernel/apic/es7000_32.c
+@@ -608,8 +608,7 @@ static int es7000_mps_oem_check_cluster(struct mpc_table *mpc, char *oem,
+       return ret && es7000_apic_is_cluster();
+ }
+-/* We've been warned by a false positive warning.Use __refdata to keep calm. */
+-static struct apic __refdata apic_es7000_cluster = {
++static struct apic apic_es7000_cluster __read_only = {
+       .name                           = "es7000",
+       .probe                          = probe_es7000,
+@@ -675,7 +674,7 @@ static struct apic __refdata apic_es7000_cluster = {
+       .x86_32_early_logical_apicid    = es7000_early_logical_apicid,
+ };
  
-       map_csrs();
+-static struct apic __refdata apic_es7000 = {
++static struct apic apic_es7000 __read_only = {
  
+       .name                           = "es7000",
+       .probe                          = probe_es7000,
 diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
-index 1817fa9..7bff097 100644
+index b739d39..aebc14c 100644
 --- a/arch/x86/kernel/apic/io_apic.c
 +++ b/arch/x86/kernel/apic/io_apic.c
 @@ -1084,7 +1084,7 @@ int IO_APIC_get_PCI_irq_vector(int bus, int slot, int pin,
@@ -15040,7 +17129,7 @@ index 1817fa9..7bff097 100644
  {
        raw_spin_unlock(&vector_lock);
  }
-@@ -2411,7 +2411,7 @@ static void ack_apic_edge(struct irq_data *data)
+@@ -2399,7 +2399,7 @@ static void ack_apic_edge(struct irq_data *data)
        ack_APIC_irq();
  }
  
@@ -15049,7 +17138,7 @@ index 1817fa9..7bff097 100644
  
  #ifdef CONFIG_GENERIC_PENDING_IRQ
  static bool io_apic_level_ack_pending(struct irq_cfg *cfg)
-@@ -2552,7 +2552,7 @@ static void ack_apic_level(struct irq_data *data)
+@@ -2540,7 +2540,7 @@ static void ack_apic_level(struct irq_data *data)
         * at the cpu.
         */
        if (!(v & (1 << (i & 0x1f)))) {
@@ -15058,48 +17147,112 @@ index 1817fa9..7bff097 100644
  
                eoi_ioapic_irq(irq, cfg);
        }
+@@ -2567,11 +2567,13 @@ static void ir_print_prefix(struct irq_data *data, struct seq_file *p)
+ static void irq_remap_modify_chip_defaults(struct irq_chip *chip)
+ {
+-      chip->irq_print_chip = ir_print_prefix;
+-      chip->irq_ack = ir_ack_apic_edge;
+-      chip->irq_eoi = ir_ack_apic_level;
++      pax_open_kernel();
++      *(void **)&chip->irq_print_chip = ir_print_prefix;
++      *(void **)&chip->irq_ack = ir_ack_apic_edge;
++      *(void **)&chip->irq_eoi = ir_ack_apic_level;
+-      chip->irq_set_affinity = set_remapped_irq_affinity;
++      *(void **)&chip->irq_set_affinity = set_remapped_irq_affinity;
++      pax_close_kernel();
+ }
+ #endif /* CONFIG_IRQ_REMAP */
 diff --git a/arch/x86/kernel/apic/numaq_32.c b/arch/x86/kernel/apic/numaq_32.c
-index d661ee9..512c0a1 100644
+index d661ee9..791fd33 100644
 --- a/arch/x86/kernel/apic/numaq_32.c
 +++ b/arch/x86/kernel/apic/numaq_32.c
-@@ -257,14 +257,14 @@ static __init void early_check_numaq(void)
-               early_get_smp_config();
-       if (found_numaq) {
--              x86_init.mpparse.mpc_record = numaq_mpc_record;
--              x86_init.mpparse.setup_ioapic_ids = x86_init_noop;
--              x86_init.mpparse.mpc_apic_id = mpc_apic_id;
--              x86_init.mpparse.smp_read_mpc_oem = smp_read_mpc_oem;
--              x86_init.mpparse.mpc_oem_pci_bus = mpc_oem_pci_bus;
--              x86_init.mpparse.mpc_oem_bus_info = mpc_oem_bus_info;
--              x86_init.timers.tsc_pre_init = numaq_tsc_init;
--              x86_init.pci.init = pci_numaq_init;
-+              *(void **)&x86_init.mpparse.mpc_record = numaq_mpc_record;
-+              *(void **)&x86_init.mpparse.setup_ioapic_ids = x86_init_noop;
-+              *(void **)&x86_init.mpparse.mpc_apic_id = mpc_apic_id;
-+              *(void **)&x86_init.mpparse.smp_read_mpc_oem = smp_read_mpc_oem;
-+              *(void **)&x86_init.mpparse.mpc_oem_pci_bus = mpc_oem_pci_bus;
-+              *(void **)&x86_init.mpparse.mpc_oem_bus_info = mpc_oem_bus_info;
-+              *(void **)&x86_init.timers.tsc_pre_init = numaq_tsc_init;
-+              *(void **)&x86_init.pci.init = pci_numaq_init;
-       }
+@@ -455,8 +455,7 @@ static void numaq_setup_portio_remap(void)
+               (u_long) xquad_portio, (u_long) num_quads*XQUAD_PORTIO_QUAD);
+ }
+-/* Use __refdata to keep false positive warning calm.  */
+-static struct apic __refdata apic_numaq = {
++static struct apic apic_numaq __read_only = {
+       .name                           = "NUMAQ",
+       .probe                          = probe_numaq,
+diff --git a/arch/x86/kernel/apic/probe_32.c b/arch/x86/kernel/apic/probe_32.c
+index eb35ef9..f184a21 100644
+--- a/arch/x86/kernel/apic/probe_32.c
++++ b/arch/x86/kernel/apic/probe_32.c
+@@ -72,7 +72,7 @@ static int probe_default(void)
+       return 1;
+ }
+-static struct apic apic_default = {
++static struct apic apic_default __read_only = {
+       .name                           = "default",
+       .probe                          = probe_default,
+diff --git a/arch/x86/kernel/apic/summit_32.c b/arch/x86/kernel/apic/summit_32.c
+index 77c95c0..434f8a4 100644
+--- a/arch/x86/kernel/apic/summit_32.c
++++ b/arch/x86/kernel/apic/summit_32.c
+@@ -486,7 +486,7 @@ void setup_summit(void)
+ }
+ #endif
+-static struct apic apic_summit = {
++static struct apic apic_summit __read_only = {
+       .name                           = "summit",
+       .probe                          = probe_summit,
+diff --git a/arch/x86/kernel/apic/x2apic_cluster.c b/arch/x86/kernel/apic/x2apic_cluster.c
+index c88baa4..757aee1 100644
+--- a/arch/x86/kernel/apic/x2apic_cluster.c
++++ b/arch/x86/kernel/apic/x2apic_cluster.c
+@@ -183,7 +183,7 @@ update_clusterinfo(struct notifier_block *nfb, unsigned long action, void *hcpu)
+       return notifier_from_errno(err);
+ }
+-static struct notifier_block __refdata x2apic_cpu_notifier = {
++static struct notifier_block x2apic_cpu_notifier = {
+       .notifier_call = update_clusterinfo,
+ };
+@@ -235,7 +235,7 @@ static void cluster_vector_allocation_domain(int cpu, struct cpumask *retmask,
+               cpumask_and(retmask, mask, per_cpu(cpus_in_cluster, cpu));
  }
  
+-static struct apic apic_x2apic_cluster = {
++static struct apic apic_x2apic_cluster __read_only = {
+       .name                           = "cluster x2apic",
+       .probe                          = x2apic_cluster_probe,
+diff --git a/arch/x86/kernel/apic/x2apic_phys.c b/arch/x86/kernel/apic/x2apic_phys.c
+index 562a76d..a003c0f 100644
+--- a/arch/x86/kernel/apic/x2apic_phys.c
++++ b/arch/x86/kernel/apic/x2apic_phys.c
+@@ -89,7 +89,7 @@ static int x2apic_phys_probe(void)
+       return apic == &apic_x2apic_phys;
+ }
+-static struct apic apic_x2apic_phys = {
++static struct apic apic_x2apic_phys __read_only = {
+       .name                           = "physical x2apic",
+       .probe                          = x2apic_phys_probe,
 diff --git a/arch/x86/kernel/apic/x2apic_uv_x.c b/arch/x86/kernel/apic/x2apic_uv_x.c
-index 8cfade9..8ea7b51 100644
+index 8cfade9..b9d04fc 100644
 --- a/arch/x86/kernel/apic/x2apic_uv_x.c
 +++ b/arch/x86/kernel/apic/x2apic_uv_x.c
-@@ -139,8 +139,8 @@ static int __init uv_acpi_madt_oem_check(char *oem_id, char *oem_table_id)
-                       is_uv1 ? UV1_HUB_REVISION_BASE : UV2_HUB_REVISION_BASE;
-               pnodeid = early_get_pnodeid();
-               early_get_apic_pnode_shift();
--              x86_platform.is_untracked_pat_range =  uv_is_untracked_pat_range;
--              x86_platform.nmi_init = uv_nmi_init;
-+              *(void **)&x86_platform.is_untracked_pat_range =  uv_is_untracked_pat_range;
-+              *(void **)&x86_platform.nmi_init = uv_nmi_init;
-               if (!strcmp(oem_table_id, "UVL"))
-                       uv_system_type = UV_LEGACY_APIC;
-               else if (!strcmp(oem_table_id, "UVX"))
+@@ -333,7 +333,7 @@ static int uv_probe(void)
+       return apic == &apic_x2apic_uv_x;
+ }
+-static struct apic __refdata apic_x2apic_uv_x = {
++static struct apic apic_x2apic_uv_x __read_only = {
+       .name                           = "UV large system",
+       .probe                          = uv_probe,
 diff --git a/arch/x86/kernel/apm_32.c b/arch/x86/kernel/apm_32.c
 index d65464e..1035d31 100644
 --- a/arch/x86/kernel/apm_32.c
@@ -15243,10 +17396,10 @@ index a0e067d..9c7db16 100644
  obj-y                 += proc.o capflags.o powerflags.o common.o
  obj-y                 += vmware.o hypervisor.o mshyperv.o
 diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
-index 1b7d165..b9e2627 100644
+index 15239ff..e23e04e 100644
 --- a/arch/x86/kernel/cpu/amd.c
 +++ b/arch/x86/kernel/cpu/amd.c
-@@ -738,7 +738,7 @@ static unsigned int __cpuinit amd_size_cache(struct cpuinfo_x86 *c,
+@@ -733,7 +733,7 @@ static unsigned int __cpuinit amd_size_cache(struct cpuinfo_x86 *c,
                                                        unsigned int size)
  {
        /* AMD errata T13 (order #21922) */
@@ -15256,7 +17409,7 @@ index 1b7d165..b9e2627 100644
                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 7505f7b..d59dac0 100644
+index 9c3ab43..51e6366 100644
 --- a/arch/x86/kernel/cpu/common.c
 +++ b/arch/x86/kernel/cpu/common.c
 @@ -86,60 +86,6 @@ static const struct cpu_dev __cpuinitconst default_cpu = {
@@ -15364,16 +17517,7 @@ index 7505f7b..d59dac0 100644
  EXPORT_PER_CPU_SYMBOL(kernel_stack);
  
  DEFINE_PER_CPU(char *, irq_stack_ptr) =
-@@ -1178,7 +1130,7 @@ struct pt_regs * __cpuinit idle_regs(struct pt_regs *regs)
- {
-       memset(regs, 0, sizeof(struct pt_regs));
-       regs->fs = __KERNEL_PERCPU;
--      regs->gs = __KERNEL_STACK_CANARY;
-+      savesegment(gs, regs->gs);
-       return regs;
- }
-@@ -1233,7 +1185,7 @@ void __cpuinit cpu_init(void)
+@@ -1224,7 +1176,7 @@ void __cpuinit cpu_init(void)
        int i;
  
        cpu = stack_smp_processor_id();
@@ -15382,7 +17526,7 @@ index 7505f7b..d59dac0 100644
        oist = &per_cpu(orig_ist, cpu);
  
  #ifdef CONFIG_NUMA
-@@ -1259,7 +1211,7 @@ void __cpuinit cpu_init(void)
+@@ -1250,7 +1202,7 @@ void __cpuinit cpu_init(void)
        switch_to_new_gdt(cpu);
        loadsegment(fs, 0);
  
@@ -15391,15 +17535,15 @@ index 7505f7b..d59dac0 100644
  
        memset(me->thread.tls_array, 0, GDT_ENTRY_TLS_ENTRIES * 8);
        syscall_init();
-@@ -1268,7 +1220,6 @@ void __cpuinit cpu_init(void)
+@@ -1259,7 +1211,6 @@ void __cpuinit cpu_init(void)
        wrmsrl(MSR_KERNEL_GS_BASE, 0);
        barrier();
  
 -      x86_configure_nx();
-       if (cpu != 0)
-               enable_x2apic();
+       enable_x2apic();
  
-@@ -1321,7 +1272,7 @@ void __cpuinit cpu_init(void)
+       /*
+@@ -1311,7 +1262,7 @@ void __cpuinit cpu_init(void)
  {
        int cpu = smp_processor_id();
        struct task_struct *curr = current;
@@ -15409,7 +17553,7 @@ index 7505f7b..d59dac0 100644
  
        if (cpumask_test_and_set_cpu(cpu, cpu_initialized_mask)) {
 diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
-index 198e019..867575e 100644
+index fcaabd0..7b55a26 100644
 --- a/arch/x86/kernel/cpu/intel.c
 +++ b/arch/x86/kernel/cpu/intel.c
 @@ -174,7 +174,7 @@ static void __cpuinit trap_init_f00f_bug(void)
@@ -15422,10 +17566,10 @@ index 198e019..867575e 100644
  }
  #endif
 diff --git a/arch/x86/kernel/cpu/intel_cacheinfo.c b/arch/x86/kernel/cpu/intel_cacheinfo.c
-index 93c5451..3887433 100644
+index 84c1309..39b7224 100644
 --- a/arch/x86/kernel/cpu/intel_cacheinfo.c
 +++ b/arch/x86/kernel/cpu/intel_cacheinfo.c
-@@ -983,6 +983,22 @@ static struct attribute *default_attrs[] = {
+@@ -1017,6 +1017,22 @@ static struct attribute *default_attrs[] = {
  };
  
  #ifdef CONFIG_AMD_NB
@@ -15448,7 +17592,7 @@ index 93c5451..3887433 100644
  static struct attribute ** __cpuinit amd_l3_attrs(void)
  {
        static struct attribute **attrs;
-@@ -993,18 +1009,7 @@ static struct attribute ** __cpuinit amd_l3_attrs(void)
+@@ -1027,18 +1043,7 @@ static struct attribute ** __cpuinit amd_l3_attrs(void)
  
        n = ARRAY_SIZE(default_attrs);
  
@@ -15468,7 +17612,7 @@ index 93c5451..3887433 100644
  
        if (amd_nb_has_feature(AMD_NB_L3_INDEX_DISABLE)) {
                attrs[n++] = &cache_disable_0.attr;
-@@ -1055,6 +1060,13 @@ static struct kobj_type ktype_cache = {
+@@ -1089,6 +1094,13 @@ static struct kobj_type ktype_cache = {
        .default_attrs  = default_attrs,
  };
  
@@ -15482,7 +17626,7 @@ index 93c5451..3887433 100644
  static struct kobj_type ktype_percpu_entry = {
        .sysfs_ops      = &sysfs_ops,
  };
-@@ -1120,20 +1132,26 @@ static int __cpuinit cache_add_dev(struct device *dev)
+@@ -1154,20 +1166,26 @@ static int __cpuinit cache_add_dev(struct device *dev)
                return retval;
        }
  
@@ -15512,8 +17656,17 @@ index 93c5451..3887433 100644
                                              per_cpu(ici_cache_kobject, cpu),
                                              "index%1lu", i);
                if (unlikely(retval)) {
+@@ -1222,7 +1240,7 @@ static int __cpuinit cacheinfo_cpu_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata cacheinfo_cpu_notifier = {
++static struct notifier_block cacheinfo_cpu_notifier = {
+       .notifier_call = cacheinfo_cpu_callback,
+ };
 diff --git a/arch/x86/kernel/cpu/mcheck/mce.c b/arch/x86/kernel/cpu/mcheck/mce.c
-index 46cbf86..55c7292 100644
+index 80dbda8..be16652 100644
 --- a/arch/x86/kernel/cpu/mcheck/mce.c
 +++ b/arch/x86/kernel/cpu/mcheck/mce.c
 @@ -45,6 +45,7 @@
@@ -15524,7 +17677,7 @@ index 46cbf86..55c7292 100644
  
  #include "mce-internal.h"
  
-@@ -254,7 +255,7 @@ static void print_mce(struct mce *m)
+@@ -246,7 +247,7 @@ static void print_mce(struct mce *m)
                        !(m->mcgstatus & MCG_STATUS_EIPV) ? " !INEXACT!" : "",
                                m->cs, m->ip);
  
@@ -15533,7 +17686,7 @@ index 46cbf86..55c7292 100644
                        print_symbol("{%s}", m->ip);
                pr_cont("\n");
        }
-@@ -287,10 +288,10 @@ static void print_mce(struct mce *m)
+@@ -279,10 +280,10 @@ static void print_mce(struct mce *m)
  
  #define PANIC_TIMEOUT 5 /* 5 seconds */
  
@@ -15546,7 +17699,7 @@ index 46cbf86..55c7292 100644
  
  /* Panic in progress. Enable interrupts and wait for final IPI */
  static void wait_for_panic(void)
-@@ -314,7 +315,7 @@ static void mce_panic(char *msg, struct mce *final, char *exp)
+@@ -306,7 +307,7 @@ static void mce_panic(char *msg, struct mce *final, char *exp)
                /*
                 * Make sure only one CPU runs in machine check panic
                 */
@@ -15555,7 +17708,7 @@ index 46cbf86..55c7292 100644
                        wait_for_panic();
                barrier();
  
-@@ -322,7 +323,7 @@ static void mce_panic(char *msg, struct mce *final, char *exp)
+@@ -314,7 +315,7 @@ static void mce_panic(char *msg, struct mce *final, char *exp)
                console_verbose();
        } else {
                /* Don't log too much for fake panic */
@@ -15564,16 +17717,16 @@ index 46cbf86..55c7292 100644
                        return;
        }
        /* First print corrected ones that are still unlogged */
-@@ -694,7 +695,7 @@ static int mce_timed_out(u64 *t)
+@@ -686,7 +687,7 @@ static int mce_timed_out(u64 *t)
         * might have been modified by someone else.
         */
        rmb();
 -      if (atomic_read(&mce_paniced))
 +      if (atomic_read_unchecked(&mce_paniced))
                wait_for_panic();
-       if (!monarch_timeout)
+       if (!mca_cfg.monarch_timeout)
                goto out;
-@@ -1659,7 +1660,7 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code)
+@@ -1662,7 +1663,7 @@ static void unexpected_machine_check(struct pt_regs *regs, long error_code)
  }
  
  /* Call the installed machine check handler for this CPU setup. */
@@ -15582,7 +17735,7 @@ index 46cbf86..55c7292 100644
                                                unexpected_machine_check;
  
  /*
-@@ -1682,7 +1683,9 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
+@@ -1685,7 +1686,9 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
                return;
        }
  
@@ -15592,7 +17745,7 @@ index 46cbf86..55c7292 100644
  
        __mcheck_cpu_init_generic();
        __mcheck_cpu_init_vendor(c);
-@@ -1696,7 +1699,7 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
+@@ -1699,7 +1702,7 @@ void __cpuinit mcheck_cpu_init(struct cpuinfo_x86 *c)
   */
  
  static DEFINE_SPINLOCK(mce_chrdev_state_lock);
@@ -15601,7 +17754,7 @@ index 46cbf86..55c7292 100644
  static int mce_chrdev_open_exclu;     /* already open exclusive? */
  
  static int mce_chrdev_open(struct inode *inode, struct file *file)
-@@ -1704,7 +1707,7 @@ static int mce_chrdev_open(struct inode *inode, struct file *file)
+@@ -1707,7 +1710,7 @@ static int mce_chrdev_open(struct inode *inode, struct file *file)
        spin_lock(&mce_chrdev_state_lock);
  
        if (mce_chrdev_open_exclu ||
@@ -15610,7 +17763,7 @@ index 46cbf86..55c7292 100644
                spin_unlock(&mce_chrdev_state_lock);
  
                return -EBUSY;
-@@ -1712,7 +1715,7 @@ static int mce_chrdev_open(struct inode *inode, struct file *file)
+@@ -1715,7 +1718,7 @@ static int mce_chrdev_open(struct inode *inode, struct file *file)
  
        if (file->f_flags & O_EXCL)
                mce_chrdev_open_exclu = 1;
@@ -15619,7 +17772,7 @@ index 46cbf86..55c7292 100644
  
        spin_unlock(&mce_chrdev_state_lock);
  
-@@ -1723,7 +1726,7 @@ static int mce_chrdev_release(struct inode *inode, struct file *file)
+@@ -1726,7 +1729,7 @@ static int mce_chrdev_release(struct inode *inode, struct file *file)
  {
        spin_lock(&mce_chrdev_state_lock);
  
@@ -15628,16 +17781,25 @@ index 46cbf86..55c7292 100644
        mce_chrdev_open_exclu = 0;
  
        spin_unlock(&mce_chrdev_state_lock);
-@@ -2367,7 +2370,7 @@ mce_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
+@@ -2372,7 +2375,7 @@ mce_cpu_callback(struct notifier_block *nfb, unsigned long action, void *hcpu)
        return NOTIFY_OK;
  }
  
 -static struct notifier_block mce_cpu_notifier __cpuinitdata = {
-+static struct notifier_block mce_cpu_notifier __cpuinitconst = {
++static struct notifier_block mce_cpu_notifier = {
        .notifier_call = mce_cpu_callback,
  };
  
-@@ -2445,7 +2448,7 @@ struct dentry *mce_get_debugfs_dir(void)
+@@ -2382,7 +2385,7 @@ static __init void mce_init_banks(void)
+       for (i = 0; i < mca_cfg.banks; i++) {
+               struct mce_bank *b = &mce_banks[i];
+-              struct device_attribute *a = &b->attr;
++              device_attribute_no_const *a = &b->attr;
+               sysfs_attr_init(&a->attr);
+               a->attr.name    = b->attrname;
+@@ -2450,7 +2453,7 @@ struct dentry *mce_get_debugfs_dir(void)
  static void mce_reset(void)
  {
        cpu_missing = 0;
@@ -15668,6 +17830,19 @@ index 2d5454c..51987eb 100644
        /* Make sure the vector pointer is visible before we enable MCEs: */
        wmb();
  
+diff --git a/arch/x86/kernel/cpu/mcheck/therm_throt.c b/arch/x86/kernel/cpu/mcheck/therm_throt.c
+index 47a1870..8c019a7 100644
+--- a/arch/x86/kernel/cpu/mcheck/therm_throt.c
++++ b/arch/x86/kernel/cpu/mcheck/therm_throt.c
+@@ -288,7 +288,7 @@ thermal_throttle_cpu_callback(struct notifier_block *nfb,
+       return notifier_from_errno(err);
+ }
+-static struct notifier_block thermal_throttle_cpu_notifier __cpuinitdata =
++static struct notifier_block thermal_throttle_cpu_notifier =
+ {
+       .notifier_call = thermal_throttle_cpu_callback,
+ };
 diff --git a/arch/x86/kernel/cpu/mcheck/winchip.c b/arch/x86/kernel/cpu/mcheck/winchip.c
 index 2d7998f..17c9de1 100644
 --- a/arch/x86/kernel/cpu/mcheck/winchip.c
@@ -15691,7 +17866,7 @@ index 2d7998f..17c9de1 100644
        wmb();
  
 diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c
-index 6b96110..0da73eb 100644
+index 726bf96..81f0526 100644
 --- a/arch/x86/kernel/cpu/mtrr/main.c
 +++ b/arch/x86/kernel/cpu/mtrr/main.c
 @@ -62,7 +62,7 @@ static DEFINE_MUTEX(mtrr_mutex);
@@ -15717,10 +17892,37 @@ index df5e41f..816c719 100644
  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 d18b2b8..d3b834c 100644
+index 6774c17..72c1b22 100644
 --- a/arch/x86/kernel/cpu/perf_event.c
 +++ b/arch/x86/kernel/cpu/perf_event.c
-@@ -1759,7 +1759,7 @@ static unsigned long get_segment_base(unsigned int segment)
+@@ -1305,7 +1305,7 @@ static void __init pmu_check_apic(void)
+       pr_info("no hardware sampling interrupt available.\n");
+ }
+-static struct attribute_group x86_pmu_format_group = {
++static attribute_group_no_const x86_pmu_format_group = {
+       .name = "format",
+       .attrs = NULL,
+ };
+@@ -1313,7 +1313,7 @@ static struct attribute_group x86_pmu_format_group = {
+ struct perf_pmu_events_attr {
+       struct device_attribute attr;
+       u64 id;
+-};
++} __do_const;
+ /*
+  * Remove all undefined events (x86_pmu.event_map(id) == 0)
+@@ -1381,7 +1381,7 @@ static struct attribute *events_attr[] = {
+       NULL,
+ };
+-static struct attribute_group x86_pmu_events_group = {
++static attribute_group_no_const x86_pmu_events_group = {
+       .name = "events",
+       .attrs = events_attr,
+ };
+@@ -1880,7 +1880,7 @@ static unsigned long get_segment_base(unsigned int segment)
                if (idx > GDT_ENTRIES)
                        return 0;
  
@@ -15729,7 +17931,7 @@ index d18b2b8..d3b834c 100644
        }
  
        return get_desc_base(desc + idx);
-@@ -1849,7 +1849,7 @@ perf_callchain_user(struct perf_callchain_entry *entry, struct pt_regs *regs)
+@@ -1970,7 +1970,7 @@ perf_callchain_user(struct perf_callchain_entry *entry, struct pt_regs *regs)
                        break;
  
                perf_callchain_store(entry, frame.return_address);
@@ -15739,10 +17941,10 @@ index d18b2b8..d3b834c 100644
  }
  
 diff --git a/arch/x86/kernel/cpu/perf_event_intel.c b/arch/x86/kernel/cpu/perf_event_intel.c
-index 324bb52..1a93d85 100644
+index 4914e94..60b06e3 100644
 --- a/arch/x86/kernel/cpu/perf_event_intel.c
 +++ b/arch/x86/kernel/cpu/perf_event_intel.c
-@@ -1949,10 +1949,10 @@ __init int intel_pmu_init(void)
+@@ -1958,10 +1958,10 @@ __init int intel_pmu_init(void)
         * v2 and above have a perf capabilities MSR
         */
        if (version > 1) {
@@ -15756,24 +17958,86 @@ index 324bb52..1a93d85 100644
        }
  
        intel_ds_init();
-diff --git a/arch/x86/kernel/cpu/vmware.c b/arch/x86/kernel/cpu/vmware.c
-index d22d0c4..088eb6f 100644
---- a/arch/x86/kernel/cpu/vmware.c
-+++ b/arch/x86/kernel/cpu/vmware.c
-@@ -79,7 +79,7 @@ static void __init vmware_platform_setup(void)
-       VMWARE_PORT(GETHZ, eax, ebx, ecx, edx);
-       if (ebx != UINT_MAX)
--              x86_platform.calibrate_tsc = vmware_get_tsc_khz;
-+              *(void **)&x86_platform.calibrate_tsc = vmware_get_tsc_khz;
-       else
-               printk(KERN_WARNING
-                      "Failed to get TSC freq from the hypervisor\n");
+diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.c b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
+index b43200d..d235b3e 100644
+--- a/arch/x86/kernel/cpu/perf_event_intel_uncore.c
++++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.c
+@@ -2428,7 +2428,7 @@ static void __init uncore_types_exit(struct intel_uncore_type **types)
+ static int __init uncore_type_init(struct intel_uncore_type *type)
+ {
+       struct intel_uncore_pmu *pmus;
+-      struct attribute_group *events_group;
++      attribute_group_no_const *attr_group;
+       struct attribute **attrs;
+       int i, j;
+@@ -2455,19 +2455,19 @@ static int __init uncore_type_init(struct intel_uncore_type *type)
+               while (type->event_descs[i].attr.attr.name)
+                       i++;
+-              events_group = kzalloc(sizeof(struct attribute *) * (i + 1) +
+-                                      sizeof(*events_group), GFP_KERNEL);
+-              if (!events_group)
++              attr_group = kzalloc(sizeof(struct attribute *) * (i + 1) +
++                                      sizeof(*attr_group), GFP_KERNEL);
++              if (!attr_group)
+                       goto fail;
+-              attrs = (struct attribute **)(events_group + 1);
+-              events_group->name = "events";
+-              events_group->attrs = attrs;
++              attrs = (struct attribute **)(attr_group + 1);
++              attr_group->name = "events";
++              attr_group->attrs = attrs;
+               for (j = 0; j < i; j++)
+                       attrs[j] = &type->event_descs[j].attr.attr;
+-              type->events_group = events_group;
++              type->events_group = attr_group;
+       }
+       type->pmu_group = &uncore_pmu_attr_group;
+@@ -2826,7 +2826,7 @@ static int
+       return NOTIFY_OK;
+ }
+-static struct notifier_block uncore_cpu_nb __cpuinitdata = {
++static struct notifier_block uncore_cpu_nb = {
+       .notifier_call  = uncore_cpu_notifier,
+       /*
+        * to migrate uncore events, our notifier should be executed
+diff --git a/arch/x86/kernel/cpu/perf_event_intel_uncore.h b/arch/x86/kernel/cpu/perf_event_intel_uncore.h
+index e68a455..975a932 100644
+--- a/arch/x86/kernel/cpu/perf_event_intel_uncore.h
++++ b/arch/x86/kernel/cpu/perf_event_intel_uncore.h
+@@ -428,7 +428,7 @@ struct intel_uncore_box {
+ struct uncore_event_desc {
+       struct kobj_attribute attr;
+       const char *config;
+-};
++} __do_const;
+ #define INTEL_UNCORE_EVENT_DESC(_name, _config)                       \
+ {                                                             \
+diff --git a/arch/x86/kernel/cpuid.c b/arch/x86/kernel/cpuid.c
+index 60c7891..9e911d3 100644
+--- a/arch/x86/kernel/cpuid.c
++++ b/arch/x86/kernel/cpuid.c
+@@ -171,7 +171,7 @@ static int __cpuinit cpuid_class_cpu_callback(struct notifier_block *nfb,
+       return notifier_from_errno(err);
+ }
+-static struct notifier_block __refdata cpuid_class_cpu_notifier =
++static struct notifier_block cpuid_class_cpu_notifier =
+ {
+       .notifier_call = cpuid_class_cpu_callback,
+ };
 diff --git a/arch/x86/kernel/crash.c b/arch/x86/kernel/crash.c
-index 13ad899..f642b9a 100644
+index 74467fe..18793d5 100644
 --- a/arch/x86/kernel/crash.c
 +++ b/arch/x86/kernel/crash.c
-@@ -36,10 +36,8 @@ static void kdump_nmi_callback(int cpu, struct pt_regs *regs)
+@@ -58,10 +58,8 @@ static void kdump_nmi_callback(int cpu, struct pt_regs *regs)
  {
  #ifdef CONFIG_X86_32
        struct pt_regs fixed_regs;
@@ -16204,7 +18468,7 @@ index 9b9f18b..9fcaa04 100644
  #include <asm/processor.h>
  #include <asm/fcntl.h>
 diff --git a/arch/x86/kernel/entry_32.S b/arch/x86/kernel/entry_32.S
-index cf8639b..6c6a674 100644
+index 6ed91d9..6cc365b 100644
 --- a/arch/x86/kernel/entry_32.S
 +++ b/arch/x86/kernel/entry_32.S
 @@ -177,13 +177,153 @@
@@ -16678,7 +18942,7 @@ index cf8639b..6c6a674 100644
        CFI_ENDPROC
  /*
   * End of kprobes section
-@@ -772,8 +1004,15 @@ ENDPROC(ptregs_clone)
+@@ -753,8 +985,15 @@ PTREGSCALL1(vm86old)
   * normal stack and adjusts ESP with the matching offset.
   */
        /* fixup the stack */
@@ -16696,7 +18960,7 @@ index cf8639b..6c6a674 100644
        shl $16, %eax
        addl %esp, %eax                 /* the adjusted stack pointer */
        pushl_cfi $__KERNEL_DS
-@@ -826,7 +1065,7 @@ vector=vector+1
+@@ -807,7 +1046,7 @@ vector=vector+1
    .endr
  2:    jmp common_interrupt
  .endr
@@ -16705,7 +18969,7 @@ index cf8639b..6c6a674 100644
  
  .previous
  END(interrupt)
-@@ -877,7 +1116,7 @@ ENTRY(coprocessor_error)
+@@ -858,7 +1097,7 @@ ENTRY(coprocessor_error)
        pushl_cfi $do_coprocessor_error
        jmp error_code
        CFI_ENDPROC
@@ -16714,7 +18978,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(simd_coprocessor_error)
        RING0_INT_FRAME
-@@ -899,7 +1138,7 @@ ENTRY(simd_coprocessor_error)
+@@ -880,7 +1119,7 @@ ENTRY(simd_coprocessor_error)
  #endif
        jmp error_code
        CFI_ENDPROC
@@ -16723,7 +18987,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(device_not_available)
        RING0_INT_FRAME
-@@ -908,18 +1147,18 @@ ENTRY(device_not_available)
+@@ -889,18 +1128,18 @@ ENTRY(device_not_available)
        pushl_cfi $do_device_not_available
        jmp error_code
        CFI_ENDPROC
@@ -16745,7 +19009,7 @@ index cf8639b..6c6a674 100644
  #endif
  
  ENTRY(overflow)
-@@ -929,7 +1168,7 @@ ENTRY(overflow)
+@@ -910,7 +1149,7 @@ ENTRY(overflow)
        pushl_cfi $do_overflow
        jmp error_code
        CFI_ENDPROC
@@ -16754,7 +19018,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(bounds)
        RING0_INT_FRAME
-@@ -938,7 +1177,7 @@ ENTRY(bounds)
+@@ -919,7 +1158,7 @@ ENTRY(bounds)
        pushl_cfi $do_bounds
        jmp error_code
        CFI_ENDPROC
@@ -16763,7 +19027,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(invalid_op)
        RING0_INT_FRAME
-@@ -947,7 +1186,7 @@ ENTRY(invalid_op)
+@@ -928,7 +1167,7 @@ ENTRY(invalid_op)
        pushl_cfi $do_invalid_op
        jmp error_code
        CFI_ENDPROC
@@ -16772,7 +19036,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(coprocessor_segment_overrun)
        RING0_INT_FRAME
-@@ -956,7 +1195,7 @@ ENTRY(coprocessor_segment_overrun)
+@@ -937,7 +1176,7 @@ ENTRY(coprocessor_segment_overrun)
        pushl_cfi $do_coprocessor_segment_overrun
        jmp error_code
        CFI_ENDPROC
@@ -16781,7 +19045,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(invalid_TSS)
        RING0_EC_FRAME
-@@ -964,7 +1203,7 @@ ENTRY(invalid_TSS)
+@@ -945,7 +1184,7 @@ ENTRY(invalid_TSS)
        pushl_cfi $do_invalid_TSS
        jmp error_code
        CFI_ENDPROC
@@ -16790,7 +19054,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(segment_not_present)
        RING0_EC_FRAME
-@@ -972,7 +1211,7 @@ ENTRY(segment_not_present)
+@@ -953,7 +1192,7 @@ ENTRY(segment_not_present)
        pushl_cfi $do_segment_not_present
        jmp error_code
        CFI_ENDPROC
@@ -16799,7 +19063,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(stack_segment)
        RING0_EC_FRAME
-@@ -980,7 +1219,7 @@ ENTRY(stack_segment)
+@@ -961,7 +1200,7 @@ ENTRY(stack_segment)
        pushl_cfi $do_stack_segment
        jmp error_code
        CFI_ENDPROC
@@ -16808,7 +19072,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(alignment_check)
        RING0_EC_FRAME
-@@ -988,7 +1227,7 @@ ENTRY(alignment_check)
+@@ -969,7 +1208,7 @@ ENTRY(alignment_check)
        pushl_cfi $do_alignment_check
        jmp error_code
        CFI_ENDPROC
@@ -16817,7 +19081,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(divide_error)
        RING0_INT_FRAME
-@@ -997,7 +1236,7 @@ ENTRY(divide_error)
+@@ -978,7 +1217,7 @@ ENTRY(divide_error)
        pushl_cfi $do_divide_error
        jmp error_code
        CFI_ENDPROC
@@ -16826,7 +19090,7 @@ index cf8639b..6c6a674 100644
  
  #ifdef CONFIG_X86_MCE
  ENTRY(machine_check)
-@@ -1007,7 +1246,7 @@ ENTRY(machine_check)
+@@ -988,7 +1227,7 @@ ENTRY(machine_check)
        pushl_cfi machine_check_vector
        jmp error_code
        CFI_ENDPROC
@@ -16835,7 +19099,7 @@ index cf8639b..6c6a674 100644
  #endif
  
  ENTRY(spurious_interrupt_bug)
-@@ -1017,7 +1256,7 @@ ENTRY(spurious_interrupt_bug)
+@@ -998,7 +1237,7 @@ ENTRY(spurious_interrupt_bug)
        pushl_cfi $do_spurious_interrupt_bug
        jmp error_code
        CFI_ENDPROC
@@ -16844,7 +19108,7 @@ index cf8639b..6c6a674 100644
  /*
   * End of kprobes section
   */
-@@ -1120,7 +1359,7 @@ BUILD_INTERRUPT3(xen_hvm_callback_vector, XEN_HVM_EVTCHN_CALLBACK,
+@@ -1101,7 +1340,7 @@ BUILD_INTERRUPT3(xen_hvm_callback_vector, XEN_HVM_EVTCHN_CALLBACK,
  
  ENTRY(mcount)
        ret
@@ -16853,7 +19117,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(ftrace_caller)
        cmpl $0, function_trace_stop
-@@ -1153,7 +1392,7 @@ ftrace_graph_call:
+@@ -1134,7 +1373,7 @@ ftrace_graph_call:
  .globl ftrace_stub
  ftrace_stub:
        ret
@@ -16862,7 +19126,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(ftrace_regs_caller)
        pushf   /* push flags before compare (in cs location) */
-@@ -1254,7 +1493,7 @@ trace:
+@@ -1235,7 +1474,7 @@ trace:
        popl %ecx
        popl %eax
        jmp ftrace_stub
@@ -16871,7 +19135,7 @@ index cf8639b..6c6a674 100644
  #endif /* CONFIG_DYNAMIC_FTRACE */
  #endif /* CONFIG_FUNCTION_TRACER */
  
-@@ -1272,7 +1511,7 @@ ENTRY(ftrace_graph_caller)
+@@ -1253,7 +1492,7 @@ ENTRY(ftrace_graph_caller)
        popl %ecx
        popl %eax
        ret
@@ -16880,7 +19144,7 @@ index cf8639b..6c6a674 100644
  
  .globl return_to_handler
  return_to_handler:
-@@ -1328,15 +1567,18 @@ error_code:
+@@ -1309,15 +1548,18 @@ error_code:
        movl $-1, PT_ORIG_EAX(%esp)     # no syscall to restart
        REG_TO_PTGS %ecx
        SET_KERNEL_GS %ecx
@@ -16901,7 +19165,7 @@ index cf8639b..6c6a674 100644
  
  /*
   * Debug traps and NMI can happen at the one SYSENTER instruction
-@@ -1379,7 +1621,7 @@ debug_stack_correct:
+@@ -1360,7 +1602,7 @@ debug_stack_correct:
        call do_debug
        jmp ret_from_exception
        CFI_ENDPROC
@@ -16910,7 +19174,7 @@ index cf8639b..6c6a674 100644
  
  /*
   * NMI is doubly nasty. It can happen _while_ we're handling
-@@ -1417,6 +1659,9 @@ nmi_stack_correct:
+@@ -1398,6 +1640,9 @@ nmi_stack_correct:
        xorl %edx,%edx          # zero error code
        movl %esp,%eax          # pt_regs pointer
        call do_nmi
@@ -16920,7 +19184,7 @@ index cf8639b..6c6a674 100644
        jmp restore_all_notrace
        CFI_ENDPROC
  
-@@ -1453,12 +1698,15 @@ nmi_espfix_stack:
+@@ -1434,12 +1679,15 @@ nmi_espfix_stack:
        FIXUP_ESPFIX_STACK              # %eax == %esp
        xorl %edx,%edx                  # zero error code
        call do_nmi
@@ -16937,7 +19201,7 @@ index cf8639b..6c6a674 100644
  
  ENTRY(int3)
        RING0_INT_FRAME
-@@ -1471,14 +1719,14 @@ ENTRY(int3)
+@@ -1452,14 +1700,14 @@ ENTRY(int3)
        call do_int3
        jmp ret_from_exception
        CFI_ENDPROC
@@ -16954,7 +19218,7 @@ index cf8639b..6c6a674 100644
  
  #ifdef CONFIG_KVM_GUEST
  ENTRY(async_page_fault)
-@@ -1487,7 +1735,7 @@ ENTRY(async_page_fault)
+@@ -1468,7 +1716,7 @@ ENTRY(async_page_fault)
        pushl_cfi $do_async_page_fault
        jmp error_code
        CFI_ENDPROC
@@ -16964,11 +19228,11 @@ index cf8639b..6c6a674 100644
  
  /*
 diff --git a/arch/x86/kernel/entry_64.S b/arch/x86/kernel/entry_64.S
-index 1328fe4..cb03298 100644
+index cb3c591..bc63707 100644
 --- a/arch/x86/kernel/entry_64.S
 +++ b/arch/x86/kernel/entry_64.S
 @@ -59,6 +59,8 @@
- #include <asm/rcu.h>
+ #include <asm/context_tracking.h>
  #include <asm/smap.h>
  #include <linux/err.h>
 +#include <asm/pgtable.h>
@@ -17530,8 +19794,20 @@ index 1328fe4..cb03298 100644
 +ENDPROC(\label)
        .endm
  
-       PTREGSCALL stub_clone, sys_clone, %r8
-@@ -860,9 +1158,10 @@ ENTRY(ptregscall_common)
+       .macro FORK_LIKE func
+@@ -856,9 +1154,10 @@ ENTRY(stub_\func)
+       DEFAULT_FRAME 0 8               /* offset 8: return address */
+       call sys_\func
+       RESTORE_TOP_OF_STACK %r11, 8
++      pax_force_retaddr
+       ret $REST_SKIP          /* pop extended registers */
+       CFI_ENDPROC
+-END(stub_\func)
++ENDPROC(stub_\func)
+       .endm
+       FORK_LIKE  clone
+@@ -875,9 +1174,10 @@ ENTRY(ptregscall_common)
        movq_cfi_restore R12+8, r12
        movq_cfi_restore RBP+8, rbp
        movq_cfi_restore RBX+8, rbx
@@ -17543,7 +19819,7 @@ index 1328fe4..cb03298 100644
  
  ENTRY(stub_execve)
        CFI_STARTPROC
-@@ -876,7 +1175,7 @@ ENTRY(stub_execve)
+@@ -891,7 +1191,7 @@ ENTRY(stub_execve)
        RESTORE_REST
        jmp int_ret_from_sys_call
        CFI_ENDPROC
@@ -17552,7 +19828,7 @@ index 1328fe4..cb03298 100644
  
  /*
   * sigreturn is special because it needs to restore all registers on return.
-@@ -894,7 +1193,7 @@ ENTRY(stub_rt_sigreturn)
+@@ -909,7 +1209,7 @@ ENTRY(stub_rt_sigreturn)
        RESTORE_REST
        jmp int_ret_from_sys_call
        CFI_ENDPROC
@@ -17560,8 +19836,8 @@ index 1328fe4..cb03298 100644
 +ENDPROC(stub_rt_sigreturn)
  
  #ifdef CONFIG_X86_X32_ABI
-       PTREGSCALL stub_x32_sigaltstack, sys32_sigaltstack, %rdx
-@@ -962,7 +1261,7 @@ vector=vector+1
+ ENTRY(stub_x32_rt_sigreturn)
+@@ -975,7 +1275,7 @@ vector=vector+1
  2:    jmp common_interrupt
  .endr
        CFI_ENDPROC
@@ -17570,7 +19846,7 @@ index 1328fe4..cb03298 100644
  
  .previous
  END(interrupt)
-@@ -982,6 +1281,16 @@ END(interrupt)
+@@ -995,6 +1295,16 @@ END(interrupt)
        subq $ORIG_RAX-RBP, %rsp
        CFI_ADJUST_CFA_OFFSET ORIG_RAX-RBP
        SAVE_ARGS_IRQ
@@ -17587,7 +19863,7 @@ index 1328fe4..cb03298 100644
        call \func
        .endm
  
-@@ -1014,7 +1323,7 @@ ret_from_intr:
+@@ -1027,7 +1337,7 @@ ret_from_intr:
  
  exit_intr:
        GET_THREAD_INFO(%rcx)
@@ -17596,7 +19872,7 @@ index 1328fe4..cb03298 100644
        je retint_kernel
  
        /* Interrupt came from user space */
-@@ -1036,12 +1345,16 @@ retint_swapgs:         /* return to user-space */
+@@ -1049,12 +1359,16 @@ retint_swapgs:         /* return to user-space */
         * The iretq could re-enable interrupts:
         */
        DISABLE_INTERRUPTS(CLBR_ANY)
@@ -17613,7 +19889,7 @@ index 1328fe4..cb03298 100644
        /*
         * The iretq could re-enable interrupts:
         */
-@@ -1124,7 +1437,7 @@ ENTRY(retint_kernel)
+@@ -1137,7 +1451,7 @@ ENTRY(retint_kernel)
  #endif
  
        CFI_ENDPROC
@@ -17622,7 +19898,7 @@ index 1328fe4..cb03298 100644
  /*
   * End of kprobes section
   */
-@@ -1142,7 +1455,7 @@ ENTRY(\sym)
+@@ -1155,7 +1469,7 @@ ENTRY(\sym)
        interrupt \do_sym
        jmp ret_from_intr
        CFI_ENDPROC
@@ -17631,7 +19907,7 @@ index 1328fe4..cb03298 100644
  .endm
  
  #ifdef CONFIG_SMP
-@@ -1198,12 +1511,22 @@ ENTRY(\sym)
+@@ -1211,12 +1525,22 @@ ENTRY(\sym)
        CFI_ADJUST_CFA_OFFSET ORIG_RAX-R15
        call error_entry
        DEFAULT_FRAME 0
@@ -17655,7 +19931,7 @@ index 1328fe4..cb03298 100644
  .endm
  
  .macro paranoidzeroentry sym do_sym
-@@ -1216,15 +1539,25 @@ ENTRY(\sym)
+@@ -1229,15 +1553,25 @@ ENTRY(\sym)
        CFI_ADJUST_CFA_OFFSET ORIG_RAX-R15
        call save_paranoid
        TRACE_IRQS_OFF
@@ -17683,7 +19959,7 @@ index 1328fe4..cb03298 100644
  .macro paranoidzeroentry_ist sym do_sym ist
  ENTRY(\sym)
        INTR_FRAME
-@@ -1235,14 +1568,30 @@ ENTRY(\sym)
+@@ -1248,14 +1582,30 @@ ENTRY(\sym)
        CFI_ADJUST_CFA_OFFSET ORIG_RAX-R15
        call save_paranoid
        TRACE_IRQS_OFF_DEBUG
@@ -17715,7 +19991,7 @@ index 1328fe4..cb03298 100644
  .endm
  
  .macro errorentry sym do_sym
-@@ -1254,13 +1603,23 @@ ENTRY(\sym)
+@@ -1267,13 +1617,23 @@ ENTRY(\sym)
        CFI_ADJUST_CFA_OFFSET ORIG_RAX-R15
        call error_entry
        DEFAULT_FRAME 0
@@ -17740,7 +20016,7 @@ index 1328fe4..cb03298 100644
  .endm
  
        /* error code is on the stack already */
-@@ -1274,13 +1633,23 @@ ENTRY(\sym)
+@@ -1287,13 +1647,23 @@ ENTRY(\sym)
        call save_paranoid
        DEFAULT_FRAME 0
        TRACE_IRQS_OFF
@@ -17765,7 +20041,7 @@ index 1328fe4..cb03298 100644
  .endm
  
  zeroentry divide_error do_divide_error
-@@ -1310,9 +1679,10 @@ gs_change:
+@@ -1323,9 +1693,10 @@ gs_change:
  2:    mfence          /* workaround */
        SWAPGS
        popfq_cfi
@@ -17777,7 +20053,7 @@ index 1328fe4..cb03298 100644
  
        _ASM_EXTABLE(gs_change,bad_gs)
        .section .fixup,"ax"
-@@ -1340,9 +1710,10 @@ ENTRY(call_softirq)
+@@ -1353,9 +1724,10 @@ ENTRY(call_softirq)
        CFI_DEF_CFA_REGISTER    rsp
        CFI_ADJUST_CFA_OFFSET   -8
        decl PER_CPU_VAR(irq_count)
@@ -17789,7 +20065,7 @@ index 1328fe4..cb03298 100644
  
  #ifdef CONFIG_XEN
  zeroentry xen_hypervisor_callback xen_do_hypervisor_callback
-@@ -1380,7 +1751,7 @@ ENTRY(xen_do_hypervisor_callback)   # do_hypervisor_callback(struct *pt_regs)
+@@ -1393,7 +1765,7 @@ ENTRY(xen_do_hypervisor_callback)   # do_hypervisor_callback(struct *pt_regs)
        decl PER_CPU_VAR(irq_count)
        jmp  error_exit
        CFI_ENDPROC
@@ -17798,7 +20074,7 @@ index 1328fe4..cb03298 100644
  
  /*
   * Hypervisor uses this for application faults while it executes.
-@@ -1439,7 +1810,7 @@ ENTRY(xen_failsafe_callback)
+@@ -1452,7 +1824,7 @@ ENTRY(xen_failsafe_callback)
        SAVE_ALL
        jmp error_exit
        CFI_ENDPROC
@@ -17807,7 +20083,7 @@ index 1328fe4..cb03298 100644
  
  apicinterrupt XEN_HVM_EVTCHN_CALLBACK \
        xen_hvm_callback_vector xen_evtchn_do_upcall
-@@ -1488,16 +1859,31 @@ ENTRY(paranoid_exit)
+@@ -1501,16 +1873,31 @@ ENTRY(paranoid_exit)
        TRACE_IRQS_OFF_DEBUG
        testl %ebx,%ebx                         /* swapgs needed? */
        jnz paranoid_restore
@@ -17840,7 +20116,7 @@ index 1328fe4..cb03298 100644
        jmp irq_return
  paranoid_userspace:
        GET_THREAD_INFO(%rcx)
-@@ -1526,7 +1912,7 @@ paranoid_schedule:
+@@ -1539,7 +1926,7 @@ paranoid_schedule:
        TRACE_IRQS_OFF
        jmp paranoid_userspace
        CFI_ENDPROC
@@ -17849,7 +20125,7 @@ index 1328fe4..cb03298 100644
  
  /*
   * Exception entry point. This expects an error code/orig_rax on the stack.
-@@ -1553,12 +1939,13 @@ ENTRY(error_entry)
+@@ -1566,12 +1953,13 @@ ENTRY(error_entry)
        movq_cfi r14, R14+8
        movq_cfi r15, R15+8
        xorl %ebx,%ebx
@@ -17864,7 +20140,7 @@ index 1328fe4..cb03298 100644
        ret
  
  /*
-@@ -1585,7 +1972,7 @@ bstep_iret:
+@@ -1598,7 +1986,7 @@ bstep_iret:
        movq %rcx,RIP+8(%rsp)
        jmp error_swapgs
        CFI_ENDPROC
@@ -17873,7 +20149,7 @@ index 1328fe4..cb03298 100644
  
  
  /* ebx:       no swapgs flag (1: don't need swapgs, 0: need it) */
-@@ -1605,7 +1992,7 @@ ENTRY(error_exit)
+@@ -1618,7 +2006,7 @@ ENTRY(error_exit)
        jnz retint_careful
        jmp retint_swapgs
        CFI_ENDPROC
@@ -17882,7 +20158,7 @@ index 1328fe4..cb03298 100644
  
  /*
   * Test if a given stack is an NMI stack or not.
-@@ -1663,9 +2050,11 @@ ENTRY(nmi)
+@@ -1676,9 +2064,11 @@ ENTRY(nmi)
         * If %cs was not the kernel segment, then the NMI triggered in user
         * space, which means it is definitely not nested.
         */
@@ -17895,7 +20171,7 @@ index 1328fe4..cb03298 100644
        /*
         * Check the special variable on the stack to see if NMIs are
         * executing.
-@@ -1824,6 +2213,17 @@ end_repeat_nmi:
+@@ -1847,6 +2237,17 @@ end_repeat_nmi:
         */
        movq %cr2, %r12
  
@@ -17913,7 +20189,7 @@ index 1328fe4..cb03298 100644
        /* paranoidentry do_nmi, 0; without TRACE_IRQS_OFF */
        movq %rsp,%rdi
        movq $-1,%rsi
-@@ -1839,21 +2239,32 @@ end_repeat_nmi:
+@@ -1862,23 +2263,34 @@ end_repeat_nmi:
        testl %ebx,%ebx                         /* swapgs needed? */
        jnz nmi_restore
  nmi_swapgs:
@@ -17923,16 +20199,18 @@ index 1328fe4..cb03298 100644
 +      pax_exit_kernel
 +#endif
        SWAPGS_UNSAFE_STACK
-+      RESTORE_ALL 8
++      RESTORE_ALL 6*8
 +      /* Clear the NMI executing stack variable */
-+      movq $0, 10*8(%rsp)
++      movq $0, 5*8(%rsp)
 +      jmp irq_return
  nmi_restore:
 +      pax_exit_kernel
-       RESTORE_ALL 8
+       /* Pop the extra iret frame at once */
+       RESTORE_ALL 6*8
 +      pax_force_retaddr_bts
        /* Clear the NMI executing stack variable */
-       movq $0, 10*8(%rsp)
+       movq $0, 5*8(%rsp)
        jmp irq_return
        CFI_ENDPROC
 -END(nmi)
@@ -18016,10 +20294,10 @@ index 1d41402..af9a46a 100644
                return -EFAULT;
  
 diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head32.c
-index c18f59d..69ddbc4 100644
+index c18f59d..9c0c9f6 100644
 --- a/arch/x86/kernel/head32.c
 +++ b/arch/x86/kernel/head32.c
-@@ -18,20 +18,20 @@
+@@ -18,6 +18,7 @@
  #include <asm/io_apic.h>
  #include <asm/bios_ebda.h>
  #include <asm/tlbflush.h>
@@ -18027,14 +20305,7 @@ index c18f59d..69ddbc4 100644
  
  static void __init i386_default_early_setup(void)
  {
-       /* Initialize 32bit specific setup functions */
--      x86_init.resources.reserve_resources = i386_reserve_resources;
--      x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc;
-+      *(void **)&x86_init.resources.reserve_resources = i386_reserve_resources;
-+      *(void **)&x86_init.mpparse.setup_ioapic_ids = setup_ioapic_ids_from_mpc;
-       reserve_ebda_region();
- }
+@@ -30,8 +31,7 @@ static void __init i386_default_early_setup(void)
  
  void __init i386_start_kernel(void)
  {
@@ -18045,7 +20316,7 @@ index c18f59d..69ddbc4 100644
  #ifdef CONFIG_BLK_DEV_INITRD
        /* Reserve INITRD */
 diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S
-index 4dac2f6..bc6a335 100644
+index c8932c7..d56b622 100644
 --- a/arch/x86/kernel/head_32.S
 +++ b/arch/x86/kernel/head_32.S
 @@ -26,6 +26,12 @@
@@ -18215,7 +20486,7 @@ index 4dac2f6..bc6a335 100644
  num_subarch_entries = (. - subarch_entries) / 4
  .previous
  #else
-@@ -316,6 +388,7 @@ default_entry:
+@@ -335,6 +407,7 @@ default_entry:
        movl pa(mmu_cr4_features),%eax
        movl %eax,%cr4
  
@@ -18223,7 +20494,7 @@ index 4dac2f6..bc6a335 100644
        testb $X86_CR4_PAE, %al         # check if PAE is enabled
        jz 6f
  
-@@ -344,6 +417,9 @@ default_entry:
+@@ -363,6 +436,9 @@ default_entry:
        /* Make changes effective */
        wrmsr
  
@@ -18233,7 +20504,7 @@ index 4dac2f6..bc6a335 100644
  6:
  
  /*
-@@ -442,14 +518,20 @@ is386:   movl $2,%ecx            # set MP
+@@ -460,14 +536,20 @@ is386:   movl $2,%ecx            # set MP
  1:    movl $(__KERNEL_DS),%eax        # reload all the segment registers
        movl %eax,%ss                   # after changing gdt.
  
@@ -18255,7 +20526,7 @@ index 4dac2f6..bc6a335 100644
        movl %eax,%gs
  
        xorl %eax,%eax                  # Clear LDT
-@@ -526,8 +608,11 @@ setup_once:
+@@ -544,8 +626,11 @@ setup_once:
         * relocation.  Manually set base address in stack canary
         * segment descriptor.
         */
@@ -18268,7 +20539,7 @@ index 4dac2f6..bc6a335 100644
        movw %cx, 8 * GDT_ENTRY_STACK_CANARY + 2(%eax)
        shrl $16, %ecx
        movb %cl, 8 * GDT_ENTRY_STACK_CANARY + 4(%eax)
-@@ -558,7 +643,7 @@ ENDPROC(early_idt_handlers)
+@@ -576,7 +661,7 @@ ENDPROC(early_idt_handlers)
        /* This is global to keep gas from relaxing the jumps */
  ENTRY(early_idt_handler)
        cld
@@ -18277,7 +20548,7 @@ index 4dac2f6..bc6a335 100644
        je hlt_loop
        incl %ss:early_recursion_flag
  
-@@ -596,8 +681,8 @@ ENTRY(early_idt_handler)
+@@ -614,8 +699,8 @@ ENTRY(early_idt_handler)
        pushl (20+6*4)(%esp)    /* trapno */
        pushl $fault_msg
        call printk
@@ -18287,7 +20558,7 @@ index 4dac2f6..bc6a335 100644
  hlt_loop:
        hlt
        jmp hlt_loop
-@@ -616,8 +701,11 @@ ENDPROC(early_idt_handler)
+@@ -634,8 +719,11 @@ ENDPROC(early_idt_handler)
  /* This is the default interrupt "handler" :-) */
        ALIGN
  ignore_int:
@@ -18300,7 +20571,7 @@ index 4dac2f6..bc6a335 100644
        pushl %eax
        pushl %ecx
        pushl %edx
-@@ -626,9 +714,6 @@ ignore_int:
+@@ -644,9 +732,6 @@ ignore_int:
        movl $(__KERNEL_DS),%eax
        movl %eax,%ds
        movl %eax,%es
@@ -18310,7 +20581,7 @@ index 4dac2f6..bc6a335 100644
        pushl 16(%esp)
        pushl 24(%esp)
        pushl 32(%esp)
-@@ -662,29 +747,43 @@ ENTRY(setup_once_ref)
+@@ -680,29 +765,43 @@ ENTRY(setup_once_ref)
  /*
   * BSS section
   */
@@ -18359,7 +20630,7 @@ index 4dac2f6..bc6a335 100644
  ENTRY(initial_page_table)
        .long   pa(initial_pg_pmd+PGD_IDENT_ATTR),0     /* low identity map */
  # if KPMDS == 3
-@@ -703,12 +802,20 @@ ENTRY(initial_page_table)
+@@ -721,12 +820,20 @@ ENTRY(initial_page_table)
  #  error "Kernel PMDs should be 1, 2 or 3"
  # endif
        .align PAGE_SIZE                /* needs to be page-sized too */
@@ -18381,7 +20652,7 @@ index 4dac2f6..bc6a335 100644
  
  __INITRODATA
  int_msg:
-@@ -736,7 +843,7 @@ fault_msg:
+@@ -754,7 +861,7 @@ fault_msg:
   * segment size, and 32-bit linear address value:
   */
  
@@ -18390,7 +20661,7 @@ index 4dac2f6..bc6a335 100644
  .globl boot_gdt_descr
  .globl idt_descr
  
-@@ -745,7 +852,7 @@ fault_msg:
+@@ -763,7 +870,7 @@ fault_msg:
        .word 0                         # 32 bit align gdt_desc.address
  boot_gdt_descr:
        .word __BOOT_DS+7
@@ -18399,7 +20670,7 @@ index 4dac2f6..bc6a335 100644
  
        .word 0                         # 32-bit align idt_desc.address
  idt_descr:
-@@ -756,7 +863,7 @@ idt_descr:
+@@ -774,7 +881,7 @@ idt_descr:
        .word 0                         # 32 bit align gdt_desc.address
  ENTRY(early_gdt_descr)
        .word GDT_ENTRIES*8-1
@@ -18408,7 +20679,7 @@ index 4dac2f6..bc6a335 100644
  
  /*
   * The boot_gdt must mirror the equivalent in setup.S and is
-@@ -765,5 +872,65 @@ ENTRY(early_gdt_descr)
+@@ -783,5 +890,65 @@ ENTRY(early_gdt_descr)
        .align L1_CACHE_BYTES
  ENTRY(boot_gdt)
        .fill GDT_ENTRY_BOOT_CS,8,0
@@ -18477,7 +20748,7 @@ index 4dac2f6..bc6a335 100644
 +      .fill PAGE_SIZE_asm - GDT_SIZE,1,0
 +      .endr
 diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S
-index 94bf9cc..400455a 100644
+index 980053c..74d3b44 100644
 --- a/arch/x86/kernel/head_64.S
 +++ b/arch/x86/kernel/head_64.S
 @@ -20,6 +20,8 @@
@@ -18587,7 +20858,7 @@ index 94bf9cc..400455a 100644
        movq    initial_code(%rip),%rax
        pushq   $0              # fake return address to stop unwinder
        pushq   $__KERNEL_CS    # set correct cs
-@@ -268,7 +273,7 @@ ENTRY(secondary_startup_64)
+@@ -284,7 +289,7 @@ ENDPROC(start_cpu0)
  bad_address:
        jmp bad_address
  
@@ -18596,7 +20867,16 @@ index 94bf9cc..400455a 100644
        .globl early_idt_handlers
  early_idt_handlers:
        # 104(%rsp) %rflags
-@@ -347,11 +352,15 @@ ENTRY(early_idt_handler)
+@@ -343,7 +348,7 @@ ENTRY(early_idt_handler)
+       call dump_stack
+ #ifdef CONFIG_KALLSYMS        
+       leaq early_idt_ripmsg(%rip),%rdi
+-      movq 40(%rsp),%rsi      # %rip again
++      movq 88(%rsp),%rsi      # %rip again
+       call __print_symbol
+ #endif
+ #endif /* EARLY_PRINTK */
+@@ -363,11 +368,15 @@ ENTRY(early_idt_handler)
        addq $16,%rsp           # drop vector number and error code
        decl early_recursion_flag(%rip)
        INTERRUPT_RETURN
@@ -18612,7 +20892,7 @@ index 94bf9cc..400455a 100644
  #ifdef CONFIG_EARLY_PRINTK
  early_idt_msg:
        .asciz "PANIC: early exception %02lx rip %lx:%lx error %lx cr2 %lx\n"
-@@ -360,6 +369,7 @@ early_idt_ripmsg:
+@@ -376,6 +385,7 @@ early_idt_ripmsg:
  #endif /* CONFIG_EARLY_PRINTK */
        .previous
  
@@ -18620,7 +20900,7 @@ index 94bf9cc..400455a 100644
  #define NEXT_PAGE(name) \
        .balign PAGE_SIZE; \
  ENTRY(name)
-@@ -372,7 +382,6 @@ ENTRY(name)
+@@ -388,7 +398,6 @@ ENTRY(name)
        i = i + 1 ;                                     \
        .endr
  
@@ -18628,7 +20908,7 @@ index 94bf9cc..400455a 100644
        /*
         * This default setting generates an ident mapping at address 0x100000
         * and a mapping for the kernel that precisely maps virtual address
-@@ -383,13 +392,41 @@ NEXT_PAGE(init_level4_pgt)
+@@ -399,13 +408,41 @@ NEXT_PAGE(init_level4_pgt)
        .quad   level3_ident_pgt - __START_KERNEL_map + _KERNPG_TABLE
        .org    init_level4_pgt + L4_PAGE_OFFSET*8, 0
        .quad   level3_ident_pgt - __START_KERNEL_map + _KERNPG_TABLE
@@ -18670,7 +20950,7 @@ index 94bf9cc..400455a 100644
  
  NEXT_PAGE(level3_kernel_pgt)
        .fill   L3_START_KERNEL,8,0
-@@ -397,20 +434,23 @@ NEXT_PAGE(level3_kernel_pgt)
+@@ -413,20 +450,23 @@ NEXT_PAGE(level3_kernel_pgt)
        .quad   level2_kernel_pgt - __START_KERNEL_map + _KERNPG_TABLE
        .quad   level2_fixmap_pgt - __START_KERNEL_map + _PAGE_TABLE
  
@@ -18702,7 +20982,7 @@ index 94bf9cc..400455a 100644
  
  NEXT_PAGE(level2_kernel_pgt)
        /*
-@@ -423,37 +463,59 @@ NEXT_PAGE(level2_kernel_pgt)
+@@ -439,37 +479,59 @@ NEXT_PAGE(level2_kernel_pgt)
         *  If you want to increase this then increase MODULES_VADDR
         *  too.)
         */
@@ -18799,7 +21079,7 @@ index 9c3bd4a..e1d9b35 100644
 +EXPORT_SYMBOL(__LOAD_PHYSICAL_ADDR);
 +#endif
 diff --git a/arch/x86/kernel/i387.c b/arch/x86/kernel/i387.c
-index 675a050..95febfd 100644
+index 245a71d..89d9ce4 100644
 --- a/arch/x86/kernel/i387.c
 +++ b/arch/x86/kernel/i387.c
 @@ -55,7 +55,7 @@ static inline bool interrupted_kernel_fpu_idle(void)
@@ -18812,7 +21092,7 @@ index 675a050..95febfd 100644
  
  /*
 diff --git a/arch/x86/kernel/i8259.c b/arch/x86/kernel/i8259.c
-index 9a5c460..dc4374d 100644
+index 9a5c460..b332a4b 100644
 --- a/arch/x86/kernel/i8259.c
 +++ b/arch/x86/kernel/i8259.c
 @@ -209,7 +209,7 @@ spurious_8259A_irq:
@@ -18824,6 +21104,38 @@ index 9a5c460..dc4374d 100644
                /*
                 * Theoretically we do not have to handle this IRQ,
                 * but in Linux this does not cause problems and is
+@@ -333,14 +333,16 @@ static void init_8259A(int auto_eoi)
+       /* (slave's support for AEOI in flat mode is to be investigated) */
+       outb_pic(SLAVE_ICW4_DEFAULT, PIC_SLAVE_IMR);
++      pax_open_kernel();
+       if (auto_eoi)
+               /*
+                * In AEOI mode we just have to mask the interrupt
+                * when acking.
+                */
+-              i8259A_chip.irq_mask_ack = disable_8259A_irq;
++              *(void **)&i8259A_chip.irq_mask_ack = disable_8259A_irq;
+       else
+-              i8259A_chip.irq_mask_ack = mask_and_ack_8259A;
++              *(void **)&i8259A_chip.irq_mask_ack = mask_and_ack_8259A;
++      pax_close_kernel();
+       udelay(100);            /* wait for 8259A to initialize */
+diff --git a/arch/x86/kernel/io_delay.c b/arch/x86/kernel/io_delay.c
+index a979b5b..1d6db75 100644
+--- a/arch/x86/kernel/io_delay.c
++++ b/arch/x86/kernel/io_delay.c
+@@ -58,7 +58,7 @@ static int __init dmi_io_delay_0xed_port(const struct dmi_system_id *id)
+  * Quirk table for systems that misbehave (lock up, etc.) if port
+  * 0x80 is used:
+  */
+-static struct dmi_system_id __initdata io_delay_0xed_port_dmi_table[] = {
++static const struct dmi_system_id __initconst io_delay_0xed_port_dmi_table[] = {
+       {
+               .callback       = dmi_io_delay_0xed_port,
+               .ident          = "Compaq Presario V6000",
 diff --git a/arch/x86/kernel/ioport.c b/arch/x86/kernel/ioport.c
 index 8c96897..be66bfa 100644
 --- a/arch/x86/kernel/ioport.c
@@ -19347,73 +21659,18 @@ index 57916c0..9e0b9d0 100644
  
        switch (val) {
 diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c
-index 4180a87..4678e4f 100644
+index 9c2bd8b..bb1131c 100644
 --- a/arch/x86/kernel/kvm.c
 +++ b/arch/x86/kernel/kvm.c
-@@ -267,7 +267,7 @@ static void __init paravirt_ops_setup(void)
-       pv_info.paravirt_enabled = 1;
-       if (kvm_para_has_feature(KVM_FEATURE_NOP_IO_DELAY))
--              pv_cpu_ops.io_delay = kvm_io_delay;
-+              *(void **)&pv_cpu_ops.io_delay = kvm_io_delay;
- #ifdef CONFIG_X86_IO_APIC
-       no_timer_check = 1;
-@@ -461,18 +461,18 @@ void __init kvm_guest_init(void)
-       for (i = 0; i < KVM_TASK_SLEEP_HASHSIZE; i++)
-               spin_lock_init(&async_pf_sleepers[i].lock);
-       if (kvm_para_has_feature(KVM_FEATURE_ASYNC_PF))
--              x86_init.irqs.trap_init = kvm_apf_trap_init;
-+              *(void **)&x86_init.irqs.trap_init = kvm_apf_trap_init;
-       if (kvm_para_has_feature(KVM_FEATURE_STEAL_TIME)) {
-               has_steal_clock = 1;
--              pv_time_ops.steal_clock = kvm_steal_clock;
-+              *(void **)&pv_time_ops.steal_clock = kvm_steal_clock;
-       }
-       if (kvm_para_has_feature(KVM_FEATURE_PV_EOI))
-               apic_set_eoi_write(kvm_guest_apic_eoi_write);
+@@ -452,7 +452,7 @@ static int __cpuinit kvm_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
  
- #ifdef CONFIG_SMP
--      smp_ops.smp_prepare_boot_cpu = kvm_smp_prepare_boot_cpu;
-+      *(void **)&smp_ops.smp_prepare_boot_cpu = kvm_smp_prepare_boot_cpu;
-       register_cpu_notifier(&kvm_cpu_notifier);
- #else
-       kvm_guest_cpu_init();
-diff --git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c
-index f1b42b3..27ac4e7 100644
---- a/arch/x86/kernel/kvmclock.c
-+++ b/arch/x86/kernel/kvmclock.c
-@@ -211,19 +211,19 @@ void __init kvmclock_init(void)
-       if (kvm_register_clock("boot clock"))
-               return;
--      pv_time_ops.sched_clock = kvm_clock_read;
--      x86_platform.calibrate_tsc = kvm_get_tsc_khz;
--      x86_platform.get_wallclock = kvm_get_wallclock;
--      x86_platform.set_wallclock = kvm_set_wallclock;
-+      *(void **)&pv_time_ops.sched_clock = kvm_clock_read;
-+      *(void **)&x86_platform.calibrate_tsc = kvm_get_tsc_khz;
-+      *(void **)&x86_platform.get_wallclock = kvm_get_wallclock;
-+      *(void **)&x86_platform.set_wallclock = kvm_set_wallclock;
- #ifdef CONFIG_X86_LOCAL_APIC
--      x86_cpuinit.early_percpu_clock_init =
-+      *(void **)&x86_cpuinit.early_percpu_clock_init =
-               kvm_setup_secondary_clock;
- #endif
--      x86_platform.save_sched_clock_state = kvm_save_sched_clock_state;
--      x86_platform.restore_sched_clock_state = kvm_restore_sched_clock_state;
--      machine_ops.shutdown  = kvm_shutdown;
-+      *(void **)&x86_platform.save_sched_clock_state = kvm_save_sched_clock_state;
-+      *(void **)&x86_platform.restore_sched_clock_state = kvm_restore_sched_clock_state;
-+      *(void **)&machine_ops.shutdown  = kvm_shutdown;
- #ifdef CONFIG_KEXEC
--      machine_ops.crash_shutdown  = kvm_crash_shutdown;
-+      *(void **)&machine_ops.crash_shutdown  = kvm_crash_shutdown;
+-static struct notifier_block __cpuinitdata kvm_cpu_notifier = {
++static struct notifier_block kvm_cpu_notifier = {
+         .notifier_call  = kvm_cpu_notify,
+ };
  #endif
-       kvm_get_preset_lpj();
-       clocksource_register_hz(&kvm_clock, NSEC_PER_SEC);
 diff --git a/arch/x86/kernel/ldt.c b/arch/x86/kernel/ldt.c
 index ebc9873..1b9724b 100644
 --- a/arch/x86/kernel/ldt.c
@@ -19513,6 +21770,19 @@ index 5b19e4d..6476a76 100644
  
        relocate_kernel_ptr = control_page;
        page_list[PA_CONTROL_PAGE] = __pa(control_page);
+diff --git a/arch/x86/kernel/microcode_core.c b/arch/x86/kernel/microcode_core.c
+index 3a04b22..1d2eb09 100644
+--- a/arch/x86/kernel/microcode_core.c
++++ b/arch/x86/kernel/microcode_core.c
+@@ -512,7 +512,7 @@ mc_cpu_callback(struct notifier_block *nb, unsigned long action, void *hcpu)
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __refdata mc_cpu_notifier = {
++static struct notifier_block mc_cpu_notifier = {
+       .notifier_call  = mc_cpu_callback,
+ };
 diff --git a/arch/x86/kernel/microcode_intel.c b/arch/x86/kernel/microcode_intel.c
 index 3544aed..01ddc1c 100644
 --- a/arch/x86/kernel/microcode_intel.c
@@ -19670,10 +21940,53 @@ index 216a4d7..228255a 100644
  #if 0
                        if ((s64)val != *(s32 *)loc)
                                goto overflow;
+diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c
+index 4929502..686c291 100644
+--- a/arch/x86/kernel/msr.c
++++ b/arch/x86/kernel/msr.c
+@@ -234,7 +234,7 @@ static int __cpuinit msr_class_cpu_callback(struct notifier_block *nfb,
+       return notifier_from_errno(err);
+ }
+-static struct notifier_block __refdata msr_class_cpu_notifier = {
++static struct notifier_block msr_class_cpu_notifier = {
+       .notifier_call = msr_class_cpu_callback,
+ };
 diff --git a/arch/x86/kernel/nmi.c b/arch/x86/kernel/nmi.c
-index f84f5c5..e27e54b 100644
+index f84f5c5..f404e81 100644
 --- a/arch/x86/kernel/nmi.c
 +++ b/arch/x86/kernel/nmi.c
+@@ -105,7 +105,7 @@ static int __kprobes nmi_handle(unsigned int type, struct pt_regs *regs, bool b2
+       return handled;
+ }
+-int __register_nmi_handler(unsigned int type, struct nmiaction *action)
++int __register_nmi_handler(unsigned int type, const struct nmiaction *action)
+ {
+       struct nmi_desc *desc = nmi_to_desc(type);
+       unsigned long flags;
+@@ -129,9 +129,9 @@ int __register_nmi_handler(unsigned int type, struct nmiaction *action)
+        * event confuses some handlers (kdump uses this flag)
+        */
+       if (action->flags & NMI_FLAG_FIRST)
+-              list_add_rcu(&action->list, &desc->head);
++              pax_list_add_rcu((struct list_head *)&action->list, &desc->head);
+       else
+-              list_add_tail_rcu(&action->list, &desc->head);
++              pax_list_add_tail_rcu((struct list_head *)&action->list, &desc->head);
+       
+       spin_unlock_irqrestore(&desc->lock, flags);
+       return 0;
+@@ -154,7 +154,7 @@ void unregister_nmi_handler(unsigned int type, const char *name)
+               if (!strcmp(n->name, name)) {
+                       WARN(in_nmi(),
+                               "Trying to free NMI (%s) from NMI context!\n", n->name);
+-                      list_del_rcu(&n->list);
++                      pax_list_del_rcu((struct list_head *)&n->list);
+                       break;
+               }
+       }
 @@ -479,6 +479,17 @@ static inline void nmi_nesting_postprocess(void)
  dotraplinkage notrace __kprobes void
  do_nmi(struct pt_regs *regs, long error_code)
@@ -19692,6 +22005,28 @@ index f84f5c5..e27e54b 100644
        nmi_nesting_preprocess(regs);
  
        nmi_enter();
+diff --git a/arch/x86/kernel/nmi_selftest.c b/arch/x86/kernel/nmi_selftest.c
+index 6d9582e..f746287 100644
+--- a/arch/x86/kernel/nmi_selftest.c
++++ b/arch/x86/kernel/nmi_selftest.c
+@@ -43,7 +43,7 @@ static void __init init_nmi_testsuite(void)
+ {
+       /* trap all the unknown NMIs we may generate */
+       register_nmi_handler(NMI_UNKNOWN, nmi_unk_cb, 0, "nmi_selftest_unk",
+-                      __initdata);
++                      __initconst);
+ }
+ static void __init cleanup_nmi_testsuite(void)
+@@ -66,7 +66,7 @@ static void __init test_nmi_ipi(struct cpumask *mask)
+       unsigned long timeout;
+       if (register_nmi_handler(NMI_LOCAL, test_nmi_ipi_callback,
+-                               NMI_FLAG_FIRST, "nmi_selftest", __initdata)) {
++                               NMI_FLAG_FIRST, "nmi_selftest", __initconst)) {
+               nmi_fail = FAILURE;
+               return;
+       }
 diff --git a/arch/x86/kernel/paravirt-spinlocks.c b/arch/x86/kernel/paravirt-spinlocks.c
 index 676b8c7..870ba04 100644
 --- a/arch/x86/kernel/paravirt-spinlocks.c
@@ -19706,7 +22041,7 @@ index 676b8c7..870ba04 100644
        .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 17fff18..0f5f957 100644
+index 17fff18..5cfa0f4 100644
 --- a/arch/x86/kernel/paravirt.c
 +++ b/arch/x86/kernel/paravirt.c
 @@ -55,6 +55,9 @@ u64 _paravirt_ident_64(u64 x)
@@ -19760,7 +22095,18 @@ index 17fff18..0f5f957 100644
        .name = "bare hardware",
        .paravirt_enabled = 0,
        .kernel_rpl = 0,
-@@ -324,7 +331,7 @@ struct pv_time_ops pv_time_ops = {
+@@ -315,16 +322,16 @@ struct pv_info pv_info = {
+ #endif
+ };
+-struct pv_init_ops pv_init_ops = {
++struct pv_init_ops pv_init_ops __read_only = {
+       .patch = native_patch,
+ };
+-struct pv_time_ops pv_time_ops = {
++struct pv_time_ops pv_time_ops __read_only = {
+       .sched_clock = native_sched_clock,
        .steal_clock = native_steal_clock,
  };
  
@@ -19769,7 +22115,23 @@ index 17fff18..0f5f957 100644
        .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),
-@@ -401,15 +408,20 @@ struct pv_apic_ops pv_apic_ops = {
+@@ -336,7 +343,7 @@ struct pv_irq_ops pv_irq_ops = {
+ #endif
+ };
+-struct pv_cpu_ops pv_cpu_ops = {
++struct pv_cpu_ops pv_cpu_ops __read_only = {
+       .cpuid = native_cpuid,
+       .get_debugreg = native_get_debugreg,
+       .set_debugreg = native_set_debugreg,
+@@ -395,21 +402,26 @@ struct pv_cpu_ops pv_cpu_ops = {
+       .end_context_switch = paravirt_nop,
+ };
+-struct pv_apic_ops pv_apic_ops = {
++struct pv_apic_ops pv_apic_ops __read_only= {
+ #ifdef CONFIG_X86_LOCAL_APIC
+       .startup_ipi_hook = paravirt_nop,
  #endif
  };
  
@@ -19813,19 +22175,6 @@ index 17fff18..0f5f957 100644
  };
  
  EXPORT_SYMBOL_GPL(pv_time_ops);
-diff --git a/arch/x86/kernel/pci-calgary_64.c b/arch/x86/kernel/pci-calgary_64.c
-index 299d493..79c13dd 100644
---- a/arch/x86/kernel/pci-calgary_64.c
-+++ b/arch/x86/kernel/pci-calgary_64.c
-@@ -1461,7 +1461,7 @@ int __init detect_calgary(void)
-               printk(KERN_INFO "PCI-DMA: Calgary TCE table spec is %d\n",
-                      specified_table_size);
--              x86_init.iommu.iommu_init = calgary_iommu_init;
-+              *(void **)&x86_init.iommu.iommu_init = calgary_iommu_init;
-       }
-       return calgary_found;
 diff --git a/arch/x86/kernel/pci-iommu_table.c b/arch/x86/kernel/pci-iommu_table.c
 index 35ccf75..7a15747 100644
 --- a/arch/x86/kernel/pci-iommu_table.c
@@ -19839,8 +22188,21 @@ index 35ccf75..7a15747 100644
  
  #define DEBUG 1
  
+diff --git a/arch/x86/kernel/pci-swiotlb.c b/arch/x86/kernel/pci-swiotlb.c
+index 6c483ba..d10ce2f 100644
+--- a/arch/x86/kernel/pci-swiotlb.c
++++ b/arch/x86/kernel/pci-swiotlb.c
+@@ -32,7 +32,7 @@ static void x86_swiotlb_free_coherent(struct device *dev, size_t size,
+                                     void *vaddr, dma_addr_t dma_addr,
+                                     struct dma_attrs *attrs)
+ {
+-      swiotlb_free_coherent(dev, size, vaddr, dma_addr);
++      swiotlb_free_coherent(dev, size, vaddr, dma_addr, attrs);
+ }
+ static struct dma_map_ops swiotlb_dma_ops = {
 diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
-index b644e1c..4a6d379 100644
+index 2ed787f..f70c9f6 100644
 --- a/arch/x86/kernel/process.c
 +++ b/arch/x86/kernel/process.c
 @@ -36,7 +36,8 @@
@@ -19890,7 +22252,7 @@ index b644e1c..4a6d379 100644
        flush_ptrace_hw_breakpoint(tsk);
        memset(tsk->thread.tls_array, 0, sizeof(tsk->thread.tls_array));
        drop_init_fpu(tsk);
-@@ -336,7 +340,7 @@ static void __exit_idle(void)
+@@ -301,7 +305,7 @@ static void __exit_idle(void)
  void exit_idle(void)
  {
        /* idle loop has pid 0 */
@@ -19899,7 +22261,7 @@ index b644e1c..4a6d379 100644
                return;
        __exit_idle();
  }
-@@ -445,7 +449,7 @@ bool set_pm_idle_to_default(void)
+@@ -404,7 +408,7 @@ bool set_pm_idle_to_default(void)
  
        return ret;
  }
@@ -19908,7 +22270,7 @@ index b644e1c..4a6d379 100644
  {
        local_irq_disable();
        /*
-@@ -673,16 +677,37 @@ static int __init idle_setup(char *str)
+@@ -632,16 +636,37 @@ static int __init idle_setup(char *str)
  }
  early_param("idle", idle_setup);
  
@@ -19957,7 +22319,7 @@ index b644e1c..4a6d379 100644
 +}
 +#endif
 diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c
-index 44e0bff..5ceb99c 100644
+index b5a8905..d9cacac 100644
 --- a/arch/x86/kernel/process_32.c
 +++ b/arch/x86/kernel/process_32.c
 @@ -65,6 +65,7 @@ asmlinkage void ret_from_kernel_thread(void) __asm__("ret_from_kernel_thread");
@@ -19993,9 +22355,9 @@ index 44e0bff..5ceb99c 100644
        print_symbol("EIP is at %s\n", regs->ip);
  
        printk(KERN_DEFAULT "EAX: %08lx EBX: %08lx ECX: %08lx EDX: %08lx\n",
-@@ -131,20 +131,21 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
      unsigned long arg,
-       struct task_struct *p, struct pt_regs *regs)
+@@ -130,20 +130,21 @@ void release_thread(struct task_struct *dead_task)
int copy_thread(unsigned long clone_flags, unsigned long sp,
+       unsigned long arg, struct task_struct *p)
  {
 -      struct pt_regs *childregs = task_pt_regs(p);
 +      struct pt_regs *childregs = task_stack_page(p) + THREAD_SIZE - sizeof(struct pt_regs) - 8;
@@ -20006,7 +22368,7 @@ index 44e0bff..5ceb99c 100644
        p->thread.sp0 = (unsigned long) (childregs+1);
 +      p->tinfo.lowest_stack = (unsigned long)task_stack_page(p);
  
-       if (unlikely(!regs)) {
+       if (unlikely(p->flags & PF_KTHREAD)) {
                /* kernel thread */
                memset(childregs, 0, sizeof(struct pt_regs));
                p->thread.ip = (unsigned long) ret_from_kernel_thread;
@@ -20064,10 +22426,10 @@ index 44e0bff..5ceb99c 100644
  }
 -
 diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c
-index 16c6365..5d32218 100644
+index 6e68a61..955a9a5 100644
 --- a/arch/x86/kernel/process_64.c
 +++ b/arch/x86/kernel/process_64.c
-@@ -153,10 +153,11 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
+@@ -152,10 +152,11 @@ int copy_thread(unsigned long clone_flags, unsigned long sp,
        struct pt_regs *childregs;
        struct task_struct *me = current;
  
@@ -20118,10 +22480,10 @@ index 16c6365..5d32218 100644
                ip = *(u64 *)(fp+8);
                if (!in_sched_functions(ip))
 diff --git a/arch/x86/kernel/ptrace.c b/arch/x86/kernel/ptrace.c
-index 974b67e..12cb2b5 100644
+index b629bbe..0fa615a 100644
 --- a/arch/x86/kernel/ptrace.c
 +++ b/arch/x86/kernel/ptrace.c
-@@ -183,14 +183,13 @@ unsigned long kernel_stack_pointer(struct pt_regs *regs)
+@@ -184,14 +184,13 @@ unsigned long kernel_stack_pointer(struct pt_regs *regs)
  {
        unsigned long context = (unsigned long)regs & ~(THREAD_SIZE - 1);
        unsigned long sp = (unsigned long)&regs->sp;
@@ -20140,7 +22502,7 @@ index 974b67e..12cb2b5 100644
  
        return (unsigned long)regs;
  }
-@@ -587,7 +586,7 @@ static void ptrace_triggered(struct perf_event *bp,
+@@ -588,7 +587,7 @@ static void ptrace_triggered(struct perf_event *bp,
  static unsigned long ptrace_get_dr7(struct perf_event *bp[])
  {
        int i;
@@ -20149,7 +22511,7 @@ index 974b67e..12cb2b5 100644
        struct arch_hw_breakpoint *info;
  
        for (i = 0; i < HBP_NUM; i++) {
-@@ -855,7 +854,7 @@ long arch_ptrace(struct task_struct *child, long request,
+@@ -856,7 +855,7 @@ long arch_ptrace(struct task_struct *child, long request,
                 unsigned long addr, unsigned long data)
  {
        int ret;
@@ -20158,7 +22520,7 @@ index 974b67e..12cb2b5 100644
  
        switch (request) {
        /* read the word at location addr in the USER area. */
-@@ -940,14 +939,14 @@ long arch_ptrace(struct task_struct *child, long request,
+@@ -941,14 +940,14 @@ long arch_ptrace(struct task_struct *child, long request,
                if ((int) addr < 0)
                        return -EIO;
                ret = do_get_thread_area(child, addr,
@@ -20175,25 +22537,25 @@ index 974b67e..12cb2b5 100644
                break;
  #endif
  
-@@ -1325,7 +1324,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
+@@ -1326,7 +1325,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
  
  #ifdef CONFIG_X86_64
  
 -static struct user_regset x86_64_regsets[] __read_mostly = {
-+static struct user_regset x86_64_regsets[] = {
++static user_regset_no_const x86_64_regsets[] __read_only = {
        [REGSET_GENERAL] = {
                .core_note_type = NT_PRSTATUS,
                .n = sizeof(struct user_regs_struct) / sizeof(long),
-@@ -1366,7 +1365,7 @@ static const struct user_regset_view user_x86_64_view = {
+@@ -1367,7 +1366,7 @@ static const struct user_regset_view user_x86_64_view = {
  #endif        /* CONFIG_X86_64 */
  
  #if defined CONFIG_X86_32 || defined CONFIG_IA32_EMULATION
 -static struct user_regset x86_32_regsets[] __read_mostly = {
-+static struct user_regset x86_32_regsets[] = {
++static user_regset_no_const x86_32_regsets[] __read_only = {
        [REGSET_GENERAL] = {
                .core_note_type = NT_PRSTATUS,
                .n = sizeof(struct user_regs_struct32) / sizeof(u32),
-@@ -1419,13 +1418,13 @@ static const struct user_regset_view user_x86_32_view = {
+@@ -1420,7 +1419,7 @@ static const struct user_regset_view user_x86_32_view = {
   */
  u64 xstate_fx_sw_bytes[USER_XSTATE_FX_SW_WORDS];
  
@@ -20201,16 +22563,8 @@ index 974b67e..12cb2b5 100644
 +void __init update_regset_xstate_info(unsigned int size, u64 xstate_mask)
  {
  #ifdef CONFIG_X86_64
--      x86_64_regsets[REGSET_XSTATE].n = size / sizeof(u64);
-+      *(unsigned int *)&x86_64_regsets[REGSET_XSTATE].n = size / sizeof(u64);
- #endif
- #if defined CONFIG_X86_32 || defined CONFIG_IA32_EMULATION
--      x86_32_regsets[REGSET_XSTATE].n = size / sizeof(u64);
-+      *(unsigned int *)&x86_32_regsets[REGSET_XSTATE].n = size / sizeof(u64);
- #endif
-       xstate_fx_sw_bytes[USER_XSTATE_XCR0_WORD] = xstate_mask;
- }
-@@ -1454,7 +1453,7 @@ static void fill_sigtrap_info(struct task_struct *tsk,
+       x86_64_regsets[REGSET_XSTATE].n = size / sizeof(u64);
+@@ -1455,7 +1454,7 @@ static void fill_sigtrap_info(struct task_struct *tsk,
        memset(info, 0, sizeof(*info));
        info->si_signo = SIGTRAP;
        info->si_code = si_code;
@@ -20219,7 +22573,7 @@ index 974b67e..12cb2b5 100644
  }
  
  void user_single_step_siginfo(struct task_struct *tsk,
-@@ -1483,6 +1482,10 @@ void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,
+@@ -1484,6 +1483,10 @@ void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs,
  # define IS_IA32      0
  #endif
  
@@ -20230,9 +22584,9 @@ index 974b67e..12cb2b5 100644
  /*
   * We must return the syscall number to actually look up in the table.
   * This can be -1L to skip running any syscall at all.
-@@ -1493,6 +1496,11 @@ long syscall_trace_enter(struct pt_regs *regs)
+@@ -1494,6 +1497,11 @@ long syscall_trace_enter(struct pt_regs *regs)
  
-       rcu_user_exit();
+       user_exit();
  
 +#ifdef CONFIG_GRKERNSEC_SETXID
 +      if (unlikely(test_and_clear_thread_flag(TIF_GRSEC_SETXID)))
@@ -20242,9 +22596,9 @@ index 974b67e..12cb2b5 100644
        /*
         * If we stepped into a sysenter/syscall insn, it trapped in
         * kernel mode; do_debug() cleared TF and set TIF_SINGLESTEP.
-@@ -1548,6 +1556,11 @@ void syscall_trace_leave(struct pt_regs *regs)
+@@ -1549,6 +1557,11 @@ void syscall_trace_leave(struct pt_regs *regs)
         */
-       rcu_user_exit();
+       user_exit();
  
 +#ifdef CONFIG_GRKERNSEC_SETXID
 +      if (unlikely(test_and_clear_thread_flag(TIF_GRSEC_SETXID)))
@@ -20255,10 +22609,10 @@ index 974b67e..12cb2b5 100644
  
        if (unlikely(test_thread_flag(TIF_SYSCALL_TRACEPOINT)))
 diff --git a/arch/x86/kernel/pvclock.c b/arch/x86/kernel/pvclock.c
-index 42eb330..139955c 100644
+index 2cb9470..ff1fd80 100644
 --- a/arch/x86/kernel/pvclock.c
 +++ b/arch/x86/kernel/pvclock.c
-@@ -81,11 +81,11 @@ unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src)
+@@ -43,11 +43,11 @@ unsigned long pvclock_tsc_khz(struct pvclock_vcpu_time_info *src)
        return pv_tsc_khz;
  }
  
@@ -20271,8 +22625,8 @@ index 42eb330..139955c 100644
 +      atomic64_set_unchecked(&last_value, 0);
  }
  
cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src)
-@@ -121,11 +121,11 @@ cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src)
u8 pvclock_read_flags(struct pvclock_vcpu_time_info *src)
+@@ -92,11 +92,11 @@ cycle_t pvclock_clocksource_read(struct pvclock_vcpu_time_info *src)
         * updating at the same time, and one of them could be slightly behind,
         * making the assumption that last_value always go forward fail to hold.
         */
@@ -20287,7 +22641,7 @@ index 42eb330..139955c 100644
  
        return ret;
 diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c
-index 76fa1e9..a93c759 100644
+index 76fa1e9..abf09ea 100644
 --- a/arch/x86/kernel/reboot.c
 +++ b/arch/x86/kernel/reboot.c
 @@ -36,7 +36,7 @@ void (*pm_power_off)(void);
@@ -20385,14 +22739,18 @@ index 76fa1e9..a93c759 100644
  {
        if (pm_power_off) {
                if (!reboot_force)
-@@ -688,6 +715,7 @@ static void native_machine_power_off(void)
+@@ -688,9 +715,10 @@ static void native_machine_power_off(void)
        }
        /* A fallback in case there is no PM info available */
        tboot_shutdown(TB_SHUTDOWN_HALT);
 +      unreachable();
  }
  
- struct machine_ops machine_ops = {
+-struct machine_ops machine_ops = {
++struct machine_ops machine_ops __read_only = {
+       .power_off = native_machine_power_off,
+       .shutdown = native_machine_shutdown,
+       .emergency_restart = native_machine_emergency_restart,
 diff --git a/arch/x86/kernel/relocate_kernel_64.S b/arch/x86/kernel/relocate_kernel_64.S
 index 7a6f3b3..bed145d7 100644
 --- a/arch/x86/kernel/relocate_kernel_64.S
@@ -20422,10 +22780,10 @@ index 7a6f3b3..bed145d7 100644
  
  1:
 diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c
-index aeacb0e..f9d4c02 100644
+index 8b24289..d37b58b 100644
 --- a/arch/x86/kernel/setup.c
 +++ b/arch/x86/kernel/setup.c
-@@ -441,7 +441,7 @@ static void __init parse_setup_data(void)
+@@ -437,7 +437,7 @@ static void __init parse_setup_data(void)
  
                switch (data->type) {
                case SETUP_E820_EXT:
@@ -20434,7 +22792,7 @@ index aeacb0e..f9d4c02 100644
                        break;
                case SETUP_DTB:
                        add_dtb(pa_data);
-@@ -710,7 +710,7 @@ static void __init trim_bios_range(void)
+@@ -706,7 +706,7 @@ static void __init trim_bios_range(void)
         * area (640->1Mb) as ram even though it is not.
         * take them out.
         */
@@ -20443,7 +22801,7 @@ index aeacb0e..f9d4c02 100644
  
        sanitize_e820_map(e820.map, ARRAY_SIZE(e820.map), &e820.nr_map);
  }
-@@ -834,14 +834,14 @@ void __init setup_arch(char **cmdline_p)
+@@ -830,14 +830,14 @@ void __init setup_arch(char **cmdline_p)
  
        if (!boot_params.hdr.root_flags)
                root_mountflags &= ~MS_RDONLY;
@@ -20464,7 +22822,7 @@ index aeacb0e..f9d4c02 100644
        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 5cdff03..5810740 100644
+index 5cdff03..80fa283 100644
 --- a/arch/x86/kernel/setup_percpu.c
 +++ b/arch/x86/kernel/setup_percpu.c
 @@ -21,19 +21,17 @@
@@ -20491,6 +22849,15 @@ index 5cdff03..5810740 100644
        [0 ... NR_CPUS-1] = BOOT_PERCPU_OFFSET,
  };
  EXPORT_SYMBOL(__per_cpu_offset);
+@@ -66,7 +64,7 @@ static bool __init pcpu_need_numa(void)
+ {
+ #ifdef CONFIG_NEED_MULTIPLE_NODES
+       pg_data_t *last = NULL;
+-      unsigned int cpu;
++      int cpu;
+       for_each_possible_cpu(cpu) {
+               int node = early_cpu_to_node(cpu);
 @@ -155,10 +153,10 @@ static inline void setup_percpu_segment(int cpu)
  {
  #ifdef CONFIG_X86_32
@@ -20531,10 +22898,10 @@ index 5cdff03..5810740 100644
                 * 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 70b27ee..fcf827f 100644
+index d6bf1f3..3ffce5a 100644
 --- a/arch/x86/kernel/signal.c
 +++ b/arch/x86/kernel/signal.c
-@@ -195,7 +195,7 @@ static unsigned long align_sigframe(unsigned long sp)
+@@ -196,7 +196,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.
         */
@@ -20543,7 +22910,7 @@ index 70b27ee..fcf827f 100644
  #else /* !CONFIG_X86_32 */
        sp = round_down(sp, 16) - 8;
  #endif
-@@ -303,9 +303,9 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
+@@ -304,9 +304,9 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
        }
  
        if (current->mm->context.vdso)
@@ -20555,7 +22922,7 @@ index 70b27ee..fcf827f 100644
        if (ka->sa.sa_flags & SA_RESTORER)
                restorer = ka->sa.sa_restorer;
  
-@@ -319,7 +319,7 @@ __setup_frame(int sig, struct k_sigaction *ka, sigset_t *set,
+@@ -320,7 +320,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.
         */
@@ -20564,8 +22931,8 @@ index 70b27ee..fcf827f 100644
  
        if (err)
                return -EFAULT;
-@@ -369,7 +369,10 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
-               put_user_ex(current->sas_ss_size, &frame->uc.uc_stack.ss_size);
+@@ -367,7 +367,10 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
+               err |= __save_altstack(&frame->uc.uc_stack, regs->sp);
  
                /* Set up to return from userspace.  */
 -              restorer = VDSO32_SYMBOL(current->mm->context.vdso, rt_sigreturn);
@@ -20576,7 +22943,7 @@ index 70b27ee..fcf827f 100644
                if (ka->sa.sa_flags & SA_RESTORER)
                        restorer = ka->sa.sa_restorer;
                put_user_ex(restorer, &frame->pretcode);
-@@ -381,7 +384,7 @@ static int __setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
+@@ -379,7 +382,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.
                 */
@@ -20585,11 +22952,24 @@ index 70b27ee..fcf827f 100644
        } put_user_catch(err);
        
        err |= copy_siginfo_to_user(&frame->info, info);
+diff --git a/arch/x86/kernel/smp.c b/arch/x86/kernel/smp.c
+index 48d2b7d..90d328a 100644
+--- a/arch/x86/kernel/smp.c
++++ b/arch/x86/kernel/smp.c
+@@ -285,7 +285,7 @@ static int __init nonmi_ipi_setup(char *str)
+ __setup("nonmi_ipi", nonmi_ipi_setup);
+-struct smp_ops smp_ops = {
++struct smp_ops smp_ops __read_only = {
+       .smp_prepare_boot_cpu   = native_smp_prepare_boot_cpu,
+       .smp_prepare_cpus       = native_smp_prepare_cpus,
+       .smp_cpus_done          = native_smp_cpus_done,
 diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
-index f3e2ec8..ad5287a 100644
+index ed0fe38..87fc692 100644
 --- a/arch/x86/kernel/smpboot.c
 +++ b/arch/x86/kernel/smpboot.c
-@@ -673,6 +673,7 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu, struct task_struct *idle)
+@@ -748,6 +748,7 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu, struct task_struct *idle)
        idle->thread.sp = (unsigned long) (((struct pt_regs *)
                          (THREAD_SIZE +  task_stack_page(idle))) - 1);
        per_cpu(current_task, cpu) = idle;
@@ -20597,7 +22977,7 @@ index f3e2ec8..ad5287a 100644
  
  #ifdef CONFIG_X86_32
        /* Stack for startup_32 can be just as for start_secondary onwards */
-@@ -680,11 +681,13 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu, struct task_struct *idle)
+@@ -755,11 +756,13 @@ static int __cpuinit do_boot_cpu(int apicid, int cpu, struct task_struct *idle)
  #else
        clear_tsk_thread_flag(idle, TIF_FORK);
        initial_gs = per_cpu_offset(cpu);
@@ -20614,7 +22994,7 @@ index f3e2ec8..ad5287a 100644
        initial_code = (unsigned long)start_secondary;
        stack_start  = idle->thread.sp;
  
-@@ -823,6 +826,15 @@ int __cpuinit native_cpu_up(unsigned int cpu, struct task_struct *tidle)
+@@ -908,6 +911,15 @@ int __cpuinit native_cpu_up(unsigned int cpu, struct task_struct *tidle)
        /* the FPU context is blank, nobody can own it */
        __cpu_disable_lazy_restore(cpu);
  
@@ -20669,10 +23049,10 @@ index 9b4d51d..5d28b58 100644
                switch (opcode[i]) {
 diff --git a/arch/x86/kernel/sys_i386_32.c b/arch/x86/kernel/sys_i386_32.c
 new file mode 100644
-index 0000000..26bb1af
+index 0000000..207bec6
 --- /dev/null
 +++ b/arch/x86/kernel/sys_i386_32.c
-@@ -0,0 +1,249 @@
+@@ -0,0 +1,250 @@
 +/*
 + * This file contains various random system calls that
 + * have a non-standard calling sequence on the Linux/i386
@@ -20708,8 +23088,9 @@ index 0000000..26bb1af
 +              pax_task_size = SEGMEXEC_TASK_SIZE;
 +#endif
 +
-+      if (len > pax_task_size || addr > pax_task_size - len)
-+              return -EINVAL;
++      if (flags & MAP_FIXED)
++              if (len > pax_task_size || addr > pax_task_size - len)
++                      return -EINVAL;
 +
 +      return 0;
 +}
@@ -20923,10 +23304,10 @@ index 0000000..26bb1af
 +      return addr;
 +}
 diff --git a/arch/x86/kernel/sys_x86_64.c b/arch/x86/kernel/sys_x86_64.c
-index b4d3c39..d699d77 100644
+index 97ef74b..57a1882 100644
 --- a/arch/x86/kernel/sys_x86_64.c
 +++ b/arch/x86/kernel/sys_x86_64.c
-@@ -95,8 +95,8 @@ out:
+@@ -81,8 +81,8 @@ out:
        return error;
  }
  
@@ -20937,7 +23318,7 @@ index b4d3c39..d699d77 100644
  {
        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,
+@@ -101,7 +101,7 @@ static void find_start_end(unsigned long flags, unsigned long *begin,
                                *begin = new_begin;
                }
        } else {
@@ -20946,9 +23327,9 @@ index b4d3c39..d699d77 100644
                *end = TASK_SIZE;
        }
  }
-@@ -128,20 +128,24 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -114,20 +114,24 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
        struct vm_area_struct *vma;
-       unsigned long start_addr;
+       struct vm_unmapped_area_info info;
        unsigned long begin, end;
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
  
@@ -20973,27 +23354,8 @@ index b4d3c39..d699d77 100644
 +              if (end - len >= addr && check_heap_stack_gap(vma, addr, len, offset))
                        return addr;
        }
-       if (((flags & MAP_32BIT) || test_thread_flag(TIF_ADDR32))
-@@ -172,7 +176,7 @@ full_search:
-                       }
-                       return -ENOMEM;
-               }
--              if (!vma || addr + len <= vma->vm_start) {
-+              if (check_heap_stack_gap(vma, addr, len, offset)) {
-                       /*
-                        * Remember the place where we stopped the search:
-                        */
-@@ -195,7 +199,8 @@ 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, start_addr;
-+      unsigned long base = mm->mmap_base, addr = addr0, start_addr;
-+      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
  
-       /* requested length too big for entire address space */
-       if (len > TASK_SIZE)
-@@ -208,13 +213,18 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -161,6 +165,10 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
        if (!test_thread_flag(TIF_ADDR32) && (flags & MAP_32BIT))
                goto bottomup;
  
@@ -21004,64 +23366,8 @@ index b4d3c39..d699d77 100644
        /* requesting a specific address */
        if (addr) {
                addr = PAGE_ALIGN(addr);
--              vma = find_vma(mm, addr);
--              if (TASK_SIZE - len >= addr &&
--                              (!vma || addr + len <= vma->vm_start))
--                      return addr;
-+              if (TASK_SIZE - len >= addr) {
-+                      vma = find_vma(mm, addr);
-+                      if (check_heap_stack_gap(vma, addr, len, offset))
-+                              return addr;
-+              }
-       }
-       /* check if free_area_cache is useful for us */
-@@ -240,7 +250,7 @@ try_again:
-                * return with success:
-                */
-               vma = find_vma(mm, addr);
--              if (!vma || addr+len <= vma->vm_start)
-+              if (check_heap_stack_gap(vma, addr, len, offset))
-                       /* remember the address as a hint for next time */
-                       return mm->free_area_cache = addr;
-@@ -249,8 +259,8 @@ try_again:
-                       mm->cached_hole_size = vma->vm_start - addr;
-               /* try just below the current vma->vm_start */
--              addr = vma->vm_start-len;
--      } while (len < vma->vm_start);
-+              addr = skip_heap_stack_gap(vma, len, offset);
-+      } while (!IS_ERR_VALUE(addr));
- fail:
-       /*
-@@ -270,13 +280,21 @@ bottomup:
-        * can happen with large stack limits and large mmap()
-        * allocations.
-        */
-+      mm->mmap_base = TASK_UNMAPPED_BASE;
-+
-+#ifdef CONFIG_PAX_RANDMMAP
-+      if (mm->pax_flags & MF_PAX_RANDMMAP)
-+              mm->mmap_base += mm->delta_mmap;
-+#endif
-+
-+      mm->free_area_cache = mm->mmap_base;
-       mm->cached_hole_size = ~0UL;
--      mm->free_area_cache = TASK_UNMAPPED_BASE;
-       addr = arch_get_unmapped_area(filp, addr0, len, pgoff, flags);
-       /*
-        * Restore the topdown base:
-        */
--      mm->free_area_cache = mm->mmap_base;
-+      mm->mmap_base = base;
-+      mm->free_area_cache = base;
-       mm->cached_hole_size = ~0UL;
-       return addr;
 diff --git a/arch/x86/kernel/tboot.c b/arch/x86/kernel/tboot.c
-index f84fe00..93fe08f 100644
+index f84fe00..f41d9f1 100644
 --- a/arch/x86/kernel/tboot.c
 +++ b/arch/x86/kernel/tboot.c
 @@ -220,7 +220,7 @@ static int tboot_setup_sleep(void)
@@ -21091,7 +23397,7 @@ index f84fe00..93fe08f 100644
  
  static int tboot_wait_for_aps(int num_aps)
  {
-@@ -324,9 +324,9 @@ static int __cpuinit tboot_cpu_callback(struct notifier_block *nfb,
+@@ -324,16 +324,16 @@ static int __cpuinit tboot_cpu_callback(struct notifier_block *nfb,
  {
        switch (action) {
        case CPU_DYING:
@@ -21103,6 +23409,14 @@ index f84fe00..93fe08f 100644
                                return NOTIFY_BAD;
                break;
        }
+       return NOTIFY_OK;
+ }
+-static struct notifier_block tboot_cpu_notifier __cpuinitdata =
++static struct notifier_block tboot_cpu_notifier =
+ {
+       .notifier_call = tboot_cpu_callback,
+ };
 @@ -345,7 +345,7 @@ static __init int tboot_late_init(void)
  
        tboot_create_trampoline();
@@ -21172,13 +23486,13 @@ index 9d9d2f9..cad418a 100644
        else
                info = infobuf;
 diff --git a/arch/x86/kernel/traps.c b/arch/x86/kernel/traps.c
-index 8276dc6..4ca48a2 100644
+index ecffca1..95c4d13 100644
 --- a/arch/x86/kernel/traps.c
 +++ b/arch/x86/kernel/traps.c
-@@ -71,12 +71,6 @@ asmlinkage int system_call(void);
+@@ -68,12 +68,6 @@
+ #include <asm/setup.h>
  
- /* Do we ignore FPU interrupts ? */
- char ignore_fpu_irq;
+ asmlinkage int system_call(void);
 -
 -/*
 - * The IDT has to be page-aligned to simplify the Pentium
@@ -21188,7 +23502,7 @@ index 8276dc6..4ca48a2 100644
  #endif
  
  DECLARE_BITMAP(used_vectors, NR_VECTORS);
-@@ -109,11 +103,11 @@ static inline void preempt_conditional_cli(struct pt_regs *regs)
+@@ -106,11 +100,11 @@ static inline void preempt_conditional_cli(struct pt_regs *regs)
  }
  
  static int __kprobes
@@ -21202,7 +23516,7 @@ index 8276dc6..4ca48a2 100644
                /*
                 * Traps 0, 1, 3, 4, and 5 should be forwarded to vm86.
                 * On nmi (interrupt 2), do_trap should not be called.
-@@ -126,12 +120,24 @@ do_trap_no_signal(struct task_struct *tsk, int trapnr, char *str,
+@@ -123,12 +117,24 @@ do_trap_no_signal(struct task_struct *tsk, int trapnr, char *str,
                return -1;
        }
  #endif
@@ -21228,7 +23542,7 @@ index 8276dc6..4ca48a2 100644
                return 0;
        }
  
-@@ -139,7 +145,7 @@ do_trap_no_signal(struct task_struct *tsk, int trapnr, char *str,
+@@ -136,7 +142,7 @@ do_trap_no_signal(struct task_struct *tsk, int trapnr, char *str,
  }
  
  static void __kprobes
@@ -21237,7 +23551,7 @@ index 8276dc6..4ca48a2 100644
        long error_code, siginfo_t *info)
  {
        struct task_struct *tsk = current;
-@@ -163,7 +169,7 @@ do_trap(int trapnr, int signr, char *str, struct pt_regs *regs,
+@@ -160,7 +166,7 @@ do_trap(int trapnr, int signr, char *str, struct pt_regs *regs,
        if (show_unhandled_signals && unhandled_signal(tsk, signr) &&
            printk_ratelimit()) {
                pr_info("%s[%d] trap %s ip:%lx sp:%lx error:%lx",
@@ -21246,7 +23560,7 @@ index 8276dc6..4ca48a2 100644
                        regs->ip, regs->sp, error_code);
                print_vma_addr(" in ", regs->ip);
                pr_cont("\n");
-@@ -269,7 +275,7 @@ do_general_protection(struct pt_regs *regs, long error_code)
+@@ -266,7 +272,7 @@ do_general_protection(struct pt_regs *regs, long error_code)
        conditional_sti(regs);
  
  #ifdef CONFIG_X86_32
@@ -21255,7 +23569,7 @@ index 8276dc6..4ca48a2 100644
                local_irq_enable();
                handle_vm86_fault((struct kernel_vm86_regs *) regs, error_code);
                goto exit;
-@@ -277,18 +283,42 @@ do_general_protection(struct pt_regs *regs, long error_code)
+@@ -274,18 +280,42 @@ do_general_protection(struct pt_regs *regs, long error_code)
  #endif
  
        tsk = current;
@@ -21300,7 +23614,7 @@ index 8276dc6..4ca48a2 100644
        tsk->thread.error_code = error_code;
        tsk->thread.trap_nr = X86_TRAP_GP;
  
-@@ -443,7 +473,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)
+@@ -440,7 +470,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);
  
@@ -21309,7 +23623,7 @@ index 8276dc6..4ca48a2 100644
                handle_vm86_trap((struct kernel_vm86_regs *) regs, error_code,
                                        X86_TRAP_DB);
                preempt_conditional_cli(regs);
-@@ -458,7 +488,7 @@ dotraplinkage void __kprobes do_debug(struct pt_regs *regs, long error_code)
+@@ -455,7 +485,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.
         */
@@ -21318,7 +23632,7 @@ index 8276dc6..4ca48a2 100644
                tsk->thread.debugreg6 &= ~DR_STEP;
                set_tsk_thread_flag(tsk, TIF_SINGLESTEP);
                regs->flags &= ~X86_EFLAGS_TF;
-@@ -490,7 +520,7 @@ void math_error(struct pt_regs *regs, int error_code, int trapnr)
+@@ -487,7 +517,7 @@ void math_error(struct pt_regs *regs, int error_code, int trapnr)
                return;
        conditional_sti(regs);
  
@@ -21328,10 +23642,10 @@ index 8276dc6..4ca48a2 100644
                if (!fixup_exception(regs)) {
                        task->thread.error_code = error_code;
 diff --git a/arch/x86/kernel/uprobes.c b/arch/x86/kernel/uprobes.c
-index aafa555..a04691a 100644
+index c71025b..b117501 100644
 --- a/arch/x86/kernel/uprobes.c
 +++ b/arch/x86/kernel/uprobes.c
-@@ -614,7 +614,7 @@ int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val,
+@@ -629,7 +629,7 @@ int arch_uprobe_exception_notify(struct notifier_block *self, unsigned long val,
        int ret = NOTIFY_DONE;
  
        /* We are only interested in userspace traps */
@@ -21353,7 +23667,7 @@ index b9242ba..50c5edd 100644
   *    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 5c9687b..5f857d3 100644
+index 1dfe69c..a3df6f6 100644
 --- a/arch/x86/kernel/vm86_32.c
 +++ b/arch/x86/kernel/vm86_32.c
 @@ -43,6 +43,7 @@
@@ -21685,41 +23999,8 @@ index 22a1530..8fbaaad 100644
           "kernel image bigger than KERNEL_IMAGE_SIZE");
  
  #ifdef CONFIG_SMP
-diff --git a/arch/x86/kernel/vsmp_64.c b/arch/x86/kernel/vsmp_64.c
-index 992f890..0ab1aae 100644
---- a/arch/x86/kernel/vsmp_64.c
-+++ b/arch/x86/kernel/vsmp_64.c
-@@ -114,7 +114,7 @@ static void __init set_vsmp_pv_ops(void)
-               pv_irq_ops.irq_enable  = PV_CALLEE_SAVE(vsmp_irq_enable);
-               pv_irq_ops.save_fl  = PV_CALLEE_SAVE(vsmp_save_fl);
-               pv_irq_ops.restore_fl  = PV_CALLEE_SAVE(vsmp_restore_fl);
--              pv_init_ops.patch = vsmp_patch;
-+              *(void **)&pv_init_ops.patch = vsmp_patch;
-               ctl &= ~(1 << 4);
-       }
-       writel(ctl, address + 4);
-@@ -217,8 +217,8 @@ static void fill_vector_allocation_domain(int cpu, struct cpumask *retmask,
- static void vsmp_apic_post_init(void)
- {
-       /* need to update phys_pkg_id */
--      apic->phys_pkg_id = apicid_phys_pkg_id;
--      apic->vector_allocation_domain = fill_vector_allocation_domain;
-+      *(void **)&apic->phys_pkg_id = apicid_phys_pkg_id;
-+      *(void **)&apic->vector_allocation_domain = fill_vector_allocation_domain;
- }
- void __init vsmp_init(void)
-@@ -227,7 +227,7 @@ void __init vsmp_init(void)
-       if (!is_vsmp_box())
-               return;
--      x86_platform.apic_post_init = vsmp_apic_post_init;
-+      *(void **)&x86_platform.apic_post_init = vsmp_apic_post_init;
-       vsmp_cap_cpus();
 diff --git a/arch/x86/kernel/vsyscall_64.c b/arch/x86/kernel/vsyscall_64.c
-index 3a3e8c9..1af9465 100644
+index 9a907a6..f83f921 100644
 --- a/arch/x86/kernel/vsyscall_64.c
 +++ b/arch/x86/kernel/vsyscall_64.c
 @@ -56,15 +56,13 @@
@@ -21739,7 +24020,7 @@ index 3a3e8c9..1af9465 100644
                else if (!strcmp("none", str))
                        vsyscall_mode = NONE;
                else
-@@ -315,8 +313,7 @@ done:
+@@ -323,8 +321,7 @@ do_ret:
        return true;
  
  sigsegv:
@@ -21749,7 +24030,7 @@ index 3a3e8c9..1af9465 100644
  }
  
  /*
-@@ -369,10 +366,7 @@ void __init map_vsyscall(void)
+@@ -377,10 +374,7 @@ void __init map_vsyscall(void)
        extern char __vvar_page;
        unsigned long physaddr_vvar_page = __pa_symbol(&__vvar_page);
  
@@ -21774,6 +24055,45 @@ index 1330dd1..d220b99 100644
  
  EXPORT_SYMBOL(copy_page);
  EXPORT_SYMBOL(clear_page);
+diff --git a/arch/x86/kernel/x86_init.c b/arch/x86/kernel/x86_init.c
+index 7a3d075..6cb373d 100644
+--- a/arch/x86/kernel/x86_init.c
++++ b/arch/x86/kernel/x86_init.c
+@@ -88,7 +88,7 @@ struct x86_init_ops x86_init __initdata = {
+       },
+ };
+-struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {
++struct x86_cpuinit_ops x86_cpuinit __cpuinitconst = {
+       .early_percpu_clock_init        = x86_init_noop,
+       .setup_percpu_clockev           = setup_secondary_APIC_clock,
+ };
+@@ -96,7 +96,7 @@ struct x86_cpuinit_ops x86_cpuinit __cpuinitdata = {
+ static void default_nmi_init(void) { };
+ static int default_i8042_detect(void) { return 1; };
+-struct x86_platform_ops x86_platform = {
++struct x86_platform_ops x86_platform __read_only = {
+       .calibrate_tsc                  = native_calibrate_tsc,
+       .get_wallclock                  = mach_get_cmos_time,
+       .set_wallclock                  = mach_set_rtc_mmss,
+@@ -110,14 +110,14 @@ struct x86_platform_ops x86_platform = {
+ };
+ EXPORT_SYMBOL_GPL(x86_platform);
+-struct x86_msi_ops x86_msi = {
++struct x86_msi_ops x86_msi __read_only = {
+       .setup_msi_irqs = native_setup_msi_irqs,
+       .teardown_msi_irq = native_teardown_msi_irq,
+       .teardown_msi_irqs = default_teardown_msi_irqs,
+       .restore_msi_irqs = default_restore_msi_irqs,
+ };
+-struct x86_io_apic_ops x86_io_apic_ops = {
++struct x86_io_apic_ops x86_io_apic_ops __read_only = {
+       .init   = native_io_apic_init_mappings,
+       .read   = native_io_apic_read,
+       .write  = native_io_apic_write,
 diff --git a/arch/x86/kernel/xsave.c b/arch/x86/kernel/xsave.c
 index ada87a3..afea76d 100644
 --- a/arch/x86/kernel/xsave.c
@@ -21795,7 +24115,7 @@ index ada87a3..afea76d 100644
                if ((unsigned long)buf % 64 || fx_only) {
                        u64 init_bv = pcntxt_mask & ~XSTATE_FPSSE;
 diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
-index ec79e77..420f5cc 100644
+index a20ecb5..d0e2194 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,
@@ -21846,7 +24166,7 @@ index ec79e77..420f5cc 100644
  
  out:
 diff --git a/arch/x86/kvm/emulate.c b/arch/x86/kvm/emulate.c
-index bba39bf..296540a 100644
+index a27e763..54bfe43 100644
 --- a/arch/x86/kvm/emulate.c
 +++ b/arch/x86/kvm/emulate.c
 @@ -292,6 +292,7 @@ static void invalidate_registers(struct x86_emulate_ctxt *ctxt)
@@ -21875,7 +24195,7 @@ index bba39bf..296540a 100644
                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 43e9fad..3b7c059 100644
+index 9392f52..0e56d77 100644
 --- a/arch/x86/kvm/lapic.c
 +++ b/arch/x86/kvm/lapic.c
 @@ -55,7 +55,7 @@
@@ -21888,7 +24208,7 @@ index 43e9fad..3b7c059 100644
  #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 714e2c0..3f7a086 100644
+index 891eb6d..e027900 100644
 --- a/arch/x86/kvm/paging_tmpl.h
 +++ b/arch/x86/kvm/paging_tmpl.h
 @@ -208,7 +208,7 @@ retry_walk:
@@ -21901,10 +24221,10 @@ index 714e2c0..3f7a086 100644
                        goto error;
                walker->ptep_user[walker->level - 1] = ptep_user;
 diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
-index d017df3..61ae42e 100644
+index d29d3cd..ec9d522 100644
 --- a/arch/x86/kvm/svm.c
 +++ b/arch/x86/kvm/svm.c
-@@ -3500,7 +3500,11 @@ static void reload_tss(struct kvm_vcpu *vcpu)
+@@ -3507,7 +3507,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);
@@ -21916,7 +24236,7 @@ index d017df3..61ae42e 100644
        load_TR_desc();
  }
  
-@@ -3874,6 +3878,10 @@ static void svm_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -3881,6 +3885,10 @@ static void svm_vcpu_run(struct kvm_vcpu *vcpu)
  #endif
  #endif
  
@@ -21928,10 +24248,10 @@ index d017df3..61ae42e 100644
  
        local_irq_disable();
 diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
-index f858159..4ab7dba 100644
+index 9120ae1..238abc0 100644
 --- a/arch/x86/kvm/vmx.c
 +++ b/arch/x86/kvm/vmx.c
-@@ -1332,7 +1332,11 @@ static void reload_tss(void)
+@@ -1370,7 +1370,11 @@ static void reload_tss(void)
        struct desc_struct *descs;
  
        descs = (void *)gdt->address;
@@ -21943,7 +24263,7 @@ index f858159..4ab7dba 100644
        load_TR_desc();
  }
  
-@@ -1546,6 +1550,10 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
+@@ -1594,6 +1598,10 @@ static void vmx_vcpu_load(struct kvm_vcpu *vcpu, int cpu)
                vmcs_writel(HOST_TR_BASE, kvm_read_tr_base()); /* 22.2.4 */
                vmcs_writel(HOST_GDTR_BASE, gdt->address);   /* 22.2.4 */
  
@@ -21954,7 +24274,7 @@ index f858159..4ab7dba 100644
                rdmsrl(MSR_IA32_SYSENTER_ESP, sysenter_esp);
                vmcs_writel(HOST_IA32_SYSENTER_ESP, sysenter_esp); /* 22.2.3 */
                vmx->loaded_vmcs->cpu = cpu;
-@@ -2669,8 +2677,11 @@ static __init int hardware_setup(void)
+@@ -2738,8 +2746,11 @@ static __init int hardware_setup(void)
        if (!cpu_has_vmx_flexpriority())
                flexpriority_enabled = 0;
  
@@ -21968,7 +24288,7 @@ index f858159..4ab7dba 100644
  
        if (enable_ept && !cpu_has_vmx_ept_2m_page())
                kvm_disable_largepages();
-@@ -3712,7 +3723,10 @@ static void vmx_set_constant_host_state(void)
+@@ -3782,7 +3793,10 @@ static void vmx_set_constant_host_state(void)
  
        vmcs_writel(HOST_CR0, read_cr0() & ~X86_CR0_TS);  /* 22.2.3 */
        vmcs_writel(HOST_CR4, read_cr4());  /* 22.2.3, 22.2.5 */
@@ -21979,7 +24299,7 @@ index f858159..4ab7dba 100644
  
        vmcs_write16(HOST_CS_SELECTOR, __KERNEL_CS);  /* 22.2.4 */
  #ifdef CONFIG_X86_64
-@@ -3733,7 +3747,7 @@ static void vmx_set_constant_host_state(void)
+@@ -3803,7 +3817,7 @@ static void vmx_set_constant_host_state(void)
        native_store_idt(&dt);
        vmcs_writel(HOST_IDTR_BASE, dt.address);   /* 22.2.4 */
  
@@ -21988,7 +24308,7 @@ index f858159..4ab7dba 100644
  
        rdmsr(MSR_IA32_SYSENTER_CS, low32, high32);
        vmcs_write32(HOST_IA32_SYSENTER_CS, low32);
-@@ -6279,6 +6293,12 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -6355,6 +6369,12 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
                "jmp 2f \n\t"
                "1: " __ex(ASM_VMX_VMRESUME) "\n\t"
                "2: "
@@ -22001,7 +24321,7 @@ index f858159..4ab7dba 100644
                /* Save guest registers, load host registers, keep flags */
                "mov %0, %c[wordsize](%%" _ASM_SP ") \n\t"
                "pop %0 \n\t"
-@@ -6331,6 +6351,11 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -6407,6 +6427,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))
@@ -22013,7 +24333,7 @@ index f858159..4ab7dba 100644
              : "cc", "memory"
  #ifdef CONFIG_X86_64
                , "rax", "rbx", "rdi", "rsi"
-@@ -6344,7 +6369,7 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -6420,7 +6445,7 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
        if (debugctlmsr)
                update_debugctlmsr(debugctlmsr);
  
@@ -22022,7 +24342,7 @@ index f858159..4ab7dba 100644
        /*
         * The sysexit path does not restore ds/es, so we must set them to
         * a reasonable value ourselves.
-@@ -6353,8 +6378,18 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
+@@ -6429,8 +6454,18 @@ static void __noclone vmx_vcpu_run(struct kvm_vcpu *vcpu)
         * may be executed in interrupt context, which saves and restore segments
         * around it, nullifying its effect.
         */
@@ -22044,10 +24364,64 @@ index f858159..4ab7dba 100644
  
        vcpu->arch.regs_avail = ~((1 << VCPU_REGS_RIP) | (1 << VCPU_REGS_RSP)
 diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
-index 4f76417..93429b5 100644
+index c243b81..b692af3 100644
 --- a/arch/x86/kvm/x86.c
 +++ b/arch/x86/kvm/x86.c
-@@ -1390,8 +1390,8 @@ static int xen_hvm_config(struct kvm_vcpu *vcpu, u64 data)
+@@ -1408,10 +1408,9 @@ static int kvm_guest_time_update(struct kvm_vcpu *v)
+       unsigned long flags, this_tsc_khz;
+       struct kvm_vcpu_arch *vcpu = &v->arch;
+       struct kvm_arch *ka = &v->kvm->arch;
+-      void *shared_kaddr;
+       s64 kernel_ns, max_kernel_ns;
+       u64 tsc_timestamp, host_tsc;
+-      struct pvclock_vcpu_time_info *guest_hv_clock;
++      struct pvclock_vcpu_time_info guest_hv_clock;
+       u8 pvclock_flags;
+       bool use_master_clock;
+@@ -1465,7 +1464,7 @@ static int kvm_guest_time_update(struct kvm_vcpu *v)
+       local_irq_restore(flags);
+-      if (!vcpu->time_page)
++      if (!vcpu->pv_time_enabled)
+               return 0;
+       /*
+@@ -1527,12 +1526,12 @@ static int kvm_guest_time_update(struct kvm_vcpu *v)
+        */
+       vcpu->hv_clock.version += 2;
+-      shared_kaddr = kmap_atomic(vcpu->time_page);
+-
+-      guest_hv_clock = shared_kaddr + vcpu->time_offset;
++      if (unlikely(kvm_read_guest_cached(v->kvm, &vcpu->pv_time,
++              &guest_hv_clock, sizeof(guest_hv_clock))))
++              return 0;
+       /* retain PVCLOCK_GUEST_STOPPED if set in guest copy */
+-      pvclock_flags = (guest_hv_clock->flags & PVCLOCK_GUEST_STOPPED);
++      pvclock_flags = (guest_hv_clock.flags & PVCLOCK_GUEST_STOPPED);
+       if (vcpu->pvclock_set_guest_stopped_request) {
+               pvclock_flags |= PVCLOCK_GUEST_STOPPED;
+@@ -1545,12 +1544,9 @@ static int kvm_guest_time_update(struct kvm_vcpu *v)
+       vcpu->hv_clock.flags = pvclock_flags;
+-      memcpy(shared_kaddr + vcpu->time_offset, &vcpu->hv_clock,
+-             sizeof(vcpu->hv_clock));
+-
+-      kunmap_atomic(shared_kaddr);
+-
+-      mark_page_dirty(v->kvm, vcpu->time >> PAGE_SHIFT);
++      kvm_write_guest_cached(v->kvm, &vcpu->pv_time,
++                              &vcpu->hv_clock,
++                              sizeof(vcpu->hv_clock));
+       return 0;
+ }
+@@ -1692,8 +1688,8 @@ static int xen_hvm_config(struct kvm_vcpu *vcpu, u64 data)
  {
        struct kvm *kvm = vcpu->kvm;
        int lm = is_long_mode(vcpu);
@@ -22058,7 +24432,51 @@ index 4f76417..93429b5 100644
        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;
-@@ -2255,6 +2255,8 @@ long kvm_arch_dev_ioctl(struct file *filp,
+@@ -1839,10 +1835,7 @@ static int kvm_pv_enable_async_pf(struct kvm_vcpu *vcpu, u64 data)
+ static void kvmclock_reset(struct kvm_vcpu *vcpu)
+ {
+-      if (vcpu->arch.time_page) {
+-              kvm_release_page_dirty(vcpu->arch.time_page);
+-              vcpu->arch.time_page = NULL;
+-      }
++      vcpu->arch.pv_time_enabled = false;
+ }
+ static void accumulate_steal_time(struct kvm_vcpu *vcpu)
+@@ -1948,6 +1941,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
+               break;
+       case MSR_KVM_SYSTEM_TIME_NEW:
+       case MSR_KVM_SYSTEM_TIME: {
++              u64 gpa_offset;
+               kvmclock_reset(vcpu);
+               vcpu->arch.time = data;
+@@ -1957,14 +1951,17 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
+               if (!(data & 1))
+                       break;
+-              /* ...but clean it before doing the actual write */
+-              vcpu->arch.time_offset = data & ~(PAGE_MASK | 1);
++              gpa_offset = data & ~(PAGE_MASK | 1);
+-              vcpu->arch.time_page =
+-                              gfn_to_page(vcpu->kvm, data >> PAGE_SHIFT);
++              /* Check that the address is 32-byte aligned. */
++              if (gpa_offset & (sizeof(struct pvclock_vcpu_time_info) - 1))
++                      break;
+-              if (is_error_page(vcpu->arch.time_page))
+-                      vcpu->arch.time_page = NULL;
++              if (kvm_gfn_to_hva_cache_init(vcpu->kvm,
++                   &vcpu->arch.pv_time, data & ~1ULL))
++                      vcpu->arch.pv_time_enabled = false;
++              else
++                      vcpu->arch.pv_time_enabled = true;
+               break;
+       }
+@@ -2571,6 +2568,8 @@ long kvm_arch_dev_ioctl(struct file *filp,
                if (n < msr_list.nmsrs)
                        goto out;
                r = -EFAULT;
@@ -22067,7 +24485,7 @@ index 4f76417..93429b5 100644
                if (copy_to_user(user_msr_list->indices, &msrs_to_save,
                                 num_msrs_to_save * sizeof(u32)))
                        goto out;
-@@ -2379,7 +2381,7 @@ static int kvm_vcpu_ioctl_set_lapic(struct kvm_vcpu *vcpu,
+@@ -2700,7 +2699,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)
  {
@@ -22076,38 +24494,36 @@ index 4f76417..93429b5 100644
                return -EINVAL;
        if (irqchip_in_kernel(vcpu->kvm))
                return -ENXIO;
-@@ -4881,7 +4883,7 @@ static void kvm_set_mmio_spte_mask(void)
-       kvm_mmu_set_mmio_spte_mask(mask);
- }
+@@ -2967,7 +2966,7 @@ static int kvm_vcpu_ioctl_x86_set_xcrs(struct kvm_vcpu *vcpu,
+  */
+ static int kvm_set_guest_paused(struct kvm_vcpu *vcpu)
+ {
+-      if (!vcpu->arch.time_page)
++      if (!vcpu->arch.pv_time_enabled)
+               return -EINVAL;
+       vcpu->arch.pvclock_set_guest_stopped_request = true;
+       kvm_make_request(KVM_REQ_CLOCK_UPDATE, vcpu);
+@@ -5213,7 +5212,7 @@ static struct notifier_block pvclock_gtod_notifier = {
+ };
+ #endif
  
 -int kvm_arch_init(void *opaque)
 +int kvm_arch_init(const void *opaque)
  {
        int r;
        struct kvm_x86_ops *ops = (struct kvm_x86_ops *)opaque;
+@@ -6661,6 +6660,7 @@ int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu)
+               goto fail_free_wbinvd_dirty_mask;
+       vcpu->arch.ia32_tsc_adjust_msr = 0x0;
++      vcpu->arch.pv_time_enabled = false;
+       kvm_async_pf_hash_reset(vcpu);
+       kvm_pmu_init(vcpu);
 diff --git a/arch/x86/lguest/boot.c b/arch/x86/lguest/boot.c
-index 642d880..5dd034e 100644
+index df4176c..23ce092 100644
 --- a/arch/x86/lguest/boot.c
 +++ b/arch/x86/lguest/boot.c
-@@ -1116,12 +1116,12 @@ static u32 lguest_apic_safe_wait_icr_idle(void)
- static void set_lguest_basic_apic_ops(void)
- {
--      apic->read = lguest_apic_read;
--      apic->write = lguest_apic_write;
--      apic->icr_read = lguest_apic_icr_read;
--      apic->icr_write = lguest_apic_icr_write;
--      apic->wait_icr_idle = lguest_apic_wait_icr_idle;
--      apic->safe_wait_icr_idle = lguest_apic_safe_wait_icr_idle;
-+      *(void **)&apic->read = lguest_apic_read;
-+      *(void **)&apic->write = lguest_apic_write;
-+      *(void **)&apic->icr_read = lguest_apic_icr_read;
-+      *(void **)&apic->icr_write = lguest_apic_icr_write;
-+      *(void **)&apic->wait_icr_idle = lguest_apic_wait_icr_idle;
-+      *(void **)&apic->safe_wait_icr_idle = lguest_apic_safe_wait_icr_idle;
- };
- #endif
 @@ -1200,9 +1200,10 @@ static __init int early_put_chars(u32 vtermno, const char *buf, int count)
   * Rebooting also tells the Host we're finished, but the RESTART flag tells the
   * Launcher to reboot us.
@@ -22120,81 +24536,6 @@ index 642d880..5dd034e 100644
  }
  
  /*G:050
-@@ -1292,28 +1293,28 @@ __init void lguest_init(void)
-       pv_irq_ops.safe_halt = lguest_safe_halt;
-       /* Setup operations */
--      pv_init_ops.patch = lguest_patch;
-+      *(void **)&pv_init_ops.patch = lguest_patch;
-       /* Intercepts of various CPU instructions */
--      pv_cpu_ops.load_gdt = lguest_load_gdt;
--      pv_cpu_ops.cpuid = lguest_cpuid;
--      pv_cpu_ops.load_idt = lguest_load_idt;
--      pv_cpu_ops.iret = lguest_iret;
--      pv_cpu_ops.load_sp0 = lguest_load_sp0;
--      pv_cpu_ops.load_tr_desc = lguest_load_tr_desc;
--      pv_cpu_ops.set_ldt = lguest_set_ldt;
--      pv_cpu_ops.load_tls = lguest_load_tls;
--      pv_cpu_ops.set_debugreg = lguest_set_debugreg;
--      pv_cpu_ops.clts = lguest_clts;
--      pv_cpu_ops.read_cr0 = lguest_read_cr0;
--      pv_cpu_ops.write_cr0 = lguest_write_cr0;
--      pv_cpu_ops.read_cr4 = lguest_read_cr4;
--      pv_cpu_ops.write_cr4 = lguest_write_cr4;
--      pv_cpu_ops.write_gdt_entry = lguest_write_gdt_entry;
--      pv_cpu_ops.write_idt_entry = lguest_write_idt_entry;
--      pv_cpu_ops.wbinvd = lguest_wbinvd;
--      pv_cpu_ops.start_context_switch = paravirt_start_context_switch;
--      pv_cpu_ops.end_context_switch = lguest_end_context_switch;
-+      *(void **)&pv_cpu_ops.load_gdt = lguest_load_gdt;
-+      *(void **)&pv_cpu_ops.cpuid = lguest_cpuid;
-+      *(void **)&pv_cpu_ops.load_idt = lguest_load_idt;
-+      *(void **)&pv_cpu_ops.iret = lguest_iret;
-+      *(void **)&pv_cpu_ops.load_sp0 = lguest_load_sp0;
-+      *(void **)&pv_cpu_ops.load_tr_desc = lguest_load_tr_desc;
-+      *(void **)&pv_cpu_ops.set_ldt = lguest_set_ldt;
-+      *(void **)&pv_cpu_ops.load_tls = lguest_load_tls;
-+      *(void **)&pv_cpu_ops.set_debugreg = lguest_set_debugreg;
-+      *(void **)&pv_cpu_ops.clts = lguest_clts;
-+      *(void **)&pv_cpu_ops.read_cr0 = lguest_read_cr0;
-+      *(void **)&pv_cpu_ops.write_cr0 = lguest_write_cr0;
-+      *(void **)&pv_cpu_ops.read_cr4 = lguest_read_cr4;
-+      *(void **)&pv_cpu_ops.write_cr4 = lguest_write_cr4;
-+      *(void **)&pv_cpu_ops.write_gdt_entry = lguest_write_gdt_entry;
-+      *(void **)&pv_cpu_ops.write_idt_entry = lguest_write_idt_entry;
-+      *(void **)&pv_cpu_ops.wbinvd = lguest_wbinvd;
-+      *(void **)&pv_cpu_ops.start_context_switch = paravirt_start_context_switch;
-+      *(void **)&pv_cpu_ops.end_context_switch = lguest_end_context_switch;
-       /* Pagetable management */
-       pv_mmu_ops.write_cr3 = lguest_write_cr3;
-@@ -1341,11 +1342,11 @@ __init void lguest_init(void)
-       set_lguest_basic_apic_ops();
- #endif
--      x86_init.resources.memory_setup = lguest_memory_setup;
--      x86_init.irqs.intr_init = lguest_init_IRQ;
--      x86_init.timers.timer_init = lguest_time_init;
--      x86_platform.calibrate_tsc = lguest_tsc_khz;
--      x86_platform.get_wallclock =  lguest_get_wallclock;
-+      *(void **)&x86_init.resources.memory_setup = lguest_memory_setup;
-+      *(void **)&x86_init.irqs.intr_init = lguest_init_IRQ;
-+      *(void **)&x86_init.timers.timer_init = lguest_time_init;
-+      *(void **)&x86_platform.calibrate_tsc = lguest_tsc_khz;
-+      *(void **)&x86_platform.get_wallclock =  lguest_get_wallclock;
-       /*
-        * Now is a good time to look at the implementations of these functions
-@@ -1434,7 +1435,7 @@ __init void lguest_init(void)
-        * routine.
-        */
-       pm_power_off = lguest_power_off;
--      machine_ops.restart = lguest_restart;
-+      *(void **)&machine_ops.restart = lguest_restart;
-       /*
-        * Now we're set up, call i386_start_kernel() in head32.c and we proceed
 diff --git a/arch/x86/lib/atomic64_386_32.S b/arch/x86/lib/atomic64_386_32.S
 index 00933d5..3a64af9 100644
 --- a/arch/x86/lib/atomic64_386_32.S
@@ -22983,92 +25324,92 @@ index 1e572c5..2a162cd 100644
  
  CFI_ENDPROC
 diff --git a/arch/x86/lib/copy_page_64.S b/arch/x86/lib/copy_page_64.S
-index 6b34d04..dccb07f 100644
+index 176cca6..1166c50 100644
 --- a/arch/x86/lib/copy_page_64.S
 +++ b/arch/x86/lib/copy_page_64.S
-@@ -9,6 +9,7 @@ copy_page_c:
+@@ -9,6 +9,7 @@ copy_page_rep:
        CFI_STARTPROC
-       movl $4096/8,%ecx
-       rep movsq
+       movl    $4096/8, %ecx
+       rep     movsq
 +      pax_force_retaddr
        ret
        CFI_ENDPROC
- ENDPROC(copy_page_c)
-@@ -20,12 +21,14 @@ ENDPROC(copy_page_c)
+ ENDPROC(copy_page_rep)
+@@ -20,12 +21,14 @@ ENDPROC(copy_page_rep)
  
  ENTRY(copy_page)
        CFI_STARTPROC
--      subq    $2*8,%rsp
+-      subq    $2*8,   %rsp
 -      CFI_ADJUST_CFA_OFFSET 2*8
-+      subq    $3*8,%rsp
++      subq    $3*8,   %rsp
 +      CFI_ADJUST_CFA_OFFSET 3*8
-       movq    %rbx,(%rsp)
+       movq    %rbx,   (%rsp)
        CFI_REL_OFFSET rbx, 0
-       movq    %r12,1*8(%rsp)
+       movq    %r12,   1*8(%rsp)
        CFI_REL_OFFSET r12, 1*8
-+      movq    %r13,2*8(%rsp)
++      movq    %r13,   2*8(%rsp)
 +      CFI_REL_OFFSET r13, 2*8
  
-       movl    $(4096/64)-5,%ecx
+       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     40 (%rsi), %r10
-+      movq     40 (%rsi), %r13
-       movq     48 (%rsi), %r11
-       movq     56 (%rsi), %r12
-@@ -48,7 +51,7 @@ ENTRY(copy_page)
-       movq     %rdx, 16 (%rdi)
-       movq     %r8,  24 (%rdi)
-       movq     %r9,  32 (%rdi)
--      movq     %r10, 40 (%rdi)
-+      movq     %r13, 40 (%rdi)
-       movq     %r11, 48 (%rdi)
-       movq     %r12, 56 (%rdi)
-@@ -67,7 +70,7 @@ ENTRY(copy_page)
-       movq     16 (%rsi), %rdx
-       movq     24 (%rsi), %r8
-       movq     32 (%rsi), %r9
--      movq     40 (%rsi), %r10
-+      movq     40 (%rsi), %r13
-       movq     48 (%rsi), %r11
-       movq     56 (%rsi), %r12
-@@ -76,7 +79,7 @@ ENTRY(copy_page)
-       movq     %rdx, 16 (%rdi)
-       movq     %r8,  24 (%rdi)
-       movq     %r9,  32 (%rdi)
--      movq     %r10, 40 (%rdi)
-+      movq     %r13, 40 (%rdi)
-       movq     %r11, 48 (%rdi)
-       movq     %r12, 56 (%rdi)
-@@ -89,8 +92,11 @@ ENTRY(copy_page)
+@@ -36,7 +39,7 @@ ENTRY(copy_page)
+       movq    0x8*2(%rsi), %rdx
+       movq    0x8*3(%rsi), %r8
+       movq    0x8*4(%rsi), %r9
+-      movq    0x8*5(%rsi), %r10
++      movq    0x8*5(%rsi), %r13
+       movq    0x8*6(%rsi), %r11
+       movq    0x8*7(%rsi), %r12
+@@ -47,7 +50,7 @@ ENTRY(copy_page)
+       movq    %rdx, 0x8*2(%rdi)
+       movq    %r8,  0x8*3(%rdi)
+       movq    %r9,  0x8*4(%rdi)
+-      movq    %r10, 0x8*5(%rdi)
++      movq    %r13, 0x8*5(%rdi)
+       movq    %r11, 0x8*6(%rdi)
+       movq    %r12, 0x8*7(%rdi)
+@@ -66,7 +69,7 @@ ENTRY(copy_page)
+       movq    0x8*2(%rsi), %rdx
+       movq    0x8*3(%rsi), %r8
+       movq    0x8*4(%rsi), %r9
+-      movq    0x8*5(%rsi), %r10
++      movq    0x8*5(%rsi), %r13
+       movq    0x8*6(%rsi), %r11
+       movq    0x8*7(%rsi), %r12
+@@ -75,7 +78,7 @@ ENTRY(copy_page)
+       movq    %rdx, 0x8*2(%rdi)
+       movq    %r8,  0x8*3(%rdi)
+       movq    %r9,  0x8*4(%rdi)
+-      movq    %r10, 0x8*5(%rdi)
++      movq    %r13, 0x8*5(%rdi)
+       movq    %r11, 0x8*6(%rdi)
+       movq    %r12, 0x8*7(%rdi)
+@@ -87,8 +90,11 @@ ENTRY(copy_page)
        CFI_RESTORE rbx
-       movq    1*8(%rsp),%r12
+       movq    1*8(%rsp), %r12
        CFI_RESTORE r12
--      addq    $2*8,%rsp
+-      addq    $2*8, %rsp
 -      CFI_ADJUST_CFA_OFFSET -2*8
-+      movq    2*8(%rsp),%r13
++      movq    2*8(%rsp), %r13
 +      CFI_RESTORE r13
-+      addq    $3*8,%rsp
++      addq    $3*8, %rsp
 +      CFI_ADJUST_CFA_OFFSET -3*8
 +      pax_force_retaddr
        ret
  .Lcopy_page_end:
        CFI_ENDPROC
-@@ -101,7 +107,7 @@ ENDPROC(copy_page)
+@@ -99,7 +105,7 @@ ENDPROC(copy_page)
  
  #include <asm/cpufeature.h>
  
 -      .section .altinstr_replacement,"ax"
 +      .section .altinstr_replacement,"a"
  1:    .byte 0xeb                                      /* jmp <disp8> */
-       .byte (copy_page_c - copy_page) - (2f - 1b)     /* offset */
+       .byte (copy_page_rep - copy_page) - (2f - 1b)   /* offset */
  2:
 diff --git a/arch/x86/lib/copy_user_64.S b/arch/x86/lib/copy_user_64.S
 index a30ca15..d25fab6 100644
@@ -24390,7 +26731,7 @@ index a63efd6..ccecad8 100644
        ret
        CFI_ENDPROC
 diff --git a/arch/x86/lib/usercopy_32.c b/arch/x86/lib/usercopy_32.c
-index 98f6d6b6..d27f045 100644
+index f0312d7..9c39d63 100644
 --- a/arch/x86/lib/usercopy_32.c
 +++ b/arch/x86/lib/usercopy_32.c
 @@ -42,11 +42,13 @@ do {                                                                       \
@@ -24883,8 +27224,8 @@ index 98f6d6b6..d27f045 100644
                "2:\n"                                                  \
                ".section .fixup,\"ax\"\n"                              \
                "5:     addl %3,%0\n"                                   \
-@@ -629,9 +741,9 @@ survive:
- #endif
+@@ -572,9 +684,9 @@ unsigned long __copy_to_user_ll(void __user *to, const void *from,
+ {
        stac();
        if (movsl_is_ok(to, from, n))
 -              __copy_user(to, from, n);
@@ -24895,7 +27236,7 @@ index 98f6d6b6..d27f045 100644
        clac();
        return n;
  }
-@@ -655,10 +767,9 @@ unsigned long __copy_from_user_ll_nozero(void *to, const void __user *from,
+@@ -598,10 +710,9 @@ unsigned long __copy_from_user_ll_nozero(void *to, const void __user *from,
  {
        stac();
        if (movsl_is_ok(to, from, n))
@@ -24908,7 +27249,7 @@ index 98f6d6b6..d27f045 100644
        clac();
        return n;
  }
-@@ -689,66 +800,51 @@ unsigned long __copy_from_user_ll_nocache_nozero(void *to, const void __user *fr
+@@ -632,66 +743,51 @@ 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
@@ -25012,7 +27353,7 @@ index 98f6d6b6..d27f045 100644
 +EXPORT_SYMBOL(set_fs);
 +#endif
 diff --git a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c
-index 05928aa..b33dea1 100644
+index 906fea3..ee8a097 100644
 --- a/arch/x86/lib/usercopy_64.c
 +++ b/arch/x86/lib/usercopy_64.c
 @@ -39,7 +39,7 @@ unsigned long __clear_user(void __user *addr, unsigned long size)
@@ -25121,7 +27462,7 @@ index 903ec1e..c4166b2 100644
  }
  
 diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c
-index 8e13ecb..60bf506 100644
+index fb674fd..223a693 100644
 --- a/arch/x86/mm/fault.c
 +++ b/arch/x86/mm/fault.c
 @@ -13,12 +13,19 @@
@@ -25135,7 +27476,7 @@ index 8e13ecb..60bf506 100644
  #include <asm/pgalloc.h>              /* pgd_*(), ...                 */
  #include <asm/kmemcheck.h>            /* kmemcheck_*(), ...           */
  #include <asm/fixmap.h>                       /* VSYSCALL_START               */
- #include <asm/rcu.h>                  /* exception_enter(), ...       */
+ #include <asm/context_tracking.h>     /* exception_enter(), ...       */
 +#include <asm/tlbflush.h>
 +
 +#if defined(CONFIG_X86_64) && defined(CONFIG_PAX_MEMORY_UDEREF)
@@ -25231,15 +27572,16 @@ index 8e13ecb..60bf506 100644
 +                      pmd_t *ret;
 +#else
                list_for_each_entry(page, &pgd_list, lru) {
-+                      pgd_t *pgd = page_address(page);
++                      pgd_t *pgd;
                        spinlock_t *pgt_lock;
                        pmd_t *ret;
  
-@@ -243,8 +296,13 @@ void vmalloc_sync_all(void)
+@@ -243,8 +296,14 @@ void vmalloc_sync_all(void)
                        pgt_lock = &pgd_page_get_mm(page)->page_table_lock;
  
                        spin_lock(pgt_lock);
 -                      ret = vmalloc_sync_one(page_address(page), address);
++                      pgd = page_address(page);
 +#endif
 +
 +                      ret = vmalloc_sync_one(pgd, address);
@@ -25250,7 +27592,7 @@ index 8e13ecb..60bf506 100644
  
                        if (!ret)
                                break;
-@@ -278,6 +336,11 @@ static noinline __kprobes int vmalloc_fault(unsigned long address)
+@@ -278,6 +337,11 @@ static noinline __kprobes int vmalloc_fault(unsigned long address)
         * an interrupt in the middle of a task switch..
         */
        pgd_paddr = read_cr3();
@@ -25262,7 +27604,7 @@ index 8e13ecb..60bf506 100644
        pmd_k = vmalloc_sync_one(__va(pgd_paddr), address);
        if (!pmd_k)
                return -1;
-@@ -373,7 +436,14 @@ static noinline __kprobes int vmalloc_fault(unsigned long address)
+@@ -373,7 +437,14 @@ static noinline __kprobes int vmalloc_fault(unsigned long address)
         * happen within a race in page table update. In the later
         * case just flush:
         */
@@ -25277,7 +27619,7 @@ index 8e13ecb..60bf506 100644
        pgd_ref = pgd_offset_k(address);
        if (pgd_none(*pgd_ref))
                return -1;
-@@ -541,7 +611,7 @@ static int is_errata93(struct pt_regs *regs, unsigned long address)
+@@ -541,7 +612,7 @@ static int is_errata93(struct pt_regs *regs, unsigned long address)
  static int is_errata100(struct pt_regs *regs, unsigned long address)
  {
  #ifdef CONFIG_X86_64
@@ -25286,7 +27628,7 @@ index 8e13ecb..60bf506 100644
                return 1;
  #endif
        return 0;
-@@ -568,7 +638,7 @@ static int is_f00f_bug(struct pt_regs *regs, unsigned long address)
+@@ -568,7 +639,7 @@ static int is_f00f_bug(struct pt_regs *regs, unsigned long address)
  }
  
  static const char nx_warning[] = KERN_CRIT
@@ -25295,7 +27637,7 @@ index 8e13ecb..60bf506 100644
  
  static void
  show_fault_oops(struct pt_regs *regs, unsigned long error_code,
-@@ -577,15 +647,27 @@ show_fault_oops(struct pt_regs *regs, unsigned long error_code,
+@@ -577,15 +648,27 @@ show_fault_oops(struct pt_regs *regs, unsigned long error_code,
        if (!oops_may_print())
                return;
  
@@ -25307,7 +27649,7 @@ index 8e13ecb..60bf506 100644
  
                if (pte && pte_present(*pte) && !pte_exec(*pte))
 -                      printk(nx_warning, from_kuid(&init_user_ns, current_uid()));
-+                      printk(nx_warning, from_kuid(&init_user_ns, current_uid()), current->comm, task_pid_nr(current));
++                      printk(nx_warning, from_kuid_munged(&init_user_ns, current_uid()), current->comm, task_pid_nr(current));
        }
  
 +#ifdef CONFIG_PAX_KERNEXEC
@@ -25315,22 +27657,21 @@ index 8e13ecb..60bf506 100644
 +              if (current->signal->curr_ip)
 +                      printk(KERN_ERR "PAX: From %pI4: %s:%d, uid/euid: %u/%u, attempted to modify kernel code\n",
 +                                      &current->signal->curr_ip, current->comm, task_pid_nr(current),
-+                                      from_kuid(&init_user_ns, current_uid()), from_kuid(&init_user_ns, current_euid()));
++                                      from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()));
 +              else
 +                      printk(KERN_ERR "PAX: %s:%d, uid/euid: %u/%u, attempted to modify kernel code\n", current->comm, task_pid_nr(current),
-+                                      from_kuid(&init_user_ns, current_uid()), from_kuid(&init_user_ns, current_euid()));
++                                      from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()));
 +      }
 +#endif
 +
        printk(KERN_ALERT "BUG: unable to handle kernel ");
        if (address < PAGE_SIZE)
                printk(KERN_CONT "NULL pointer dereference");
-@@ -749,12 +831,30 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code,
+@@ -748,6 +831,22 @@ __bad_area_nosemaphore(struct pt_regs *regs, unsigned long error_code,
+                               return;
                }
  #endif
--              if (unlikely(show_unhandled_signals))
--                      show_signal_msg(regs, error_code, address, tsk);
++
 +#if defined(CONFIG_PAX_PAGEEXEC) || defined(CONFIG_PAX_SEGMEXEC)
 +              if (pax_is_fetch_fault(regs, error_code, address)) {
 +
@@ -25345,21 +27686,11 @@ index 8e13ecb..60bf506 100644
 +                      do_group_exit(SIGKILL);
 +              }
 +#endif
-               /* Kernel addresses are always protection faults: */
-+              if (address >= TASK_SIZE)
-+                      error_code |= PF_PROT;
-+
-+              if (show_unhandled_signals)
-+                      show_signal_msg(regs, error_code, address, tsk);
 +
-               tsk->thread.cr2         = address;
--              tsk->thread.error_code  = error_code | (address >= TASK_SIZE);
-+              tsk->thread.error_code  = error_code;
-               tsk->thread.trap_nr     = X86_TRAP_PF;
-               force_sig_info_fault(SIGSEGV, si_code, address, tsk, 0);
-@@ -845,7 +945,7 @@ do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address,
+               /* Kernel addresses are always protection faults: */
+               if (address >= TASK_SIZE)
+                       error_code |= PF_PROT;
+@@ -833,7 +932,7 @@ do_sigbus(struct pt_regs *regs, unsigned long error_code, unsigned long address,
        if (fault & (VM_FAULT_HWPOISON|VM_FAULT_HWPOISON_LARGE)) {
                printk(KERN_ERR
        "MCE: Killing %s:%d due to hardware memory corruption fault at %lx\n",
@@ -25368,7 +27699,7 @@ index 8e13ecb..60bf506 100644
                code = BUS_MCEERR_AR;
        }
  #endif
-@@ -901,6 +1001,99 @@ static int spurious_fault_check(unsigned long error_code, pte_t *pte)
+@@ -896,6 +995,99 @@ static int spurious_fault_check(unsigned long error_code, pte_t *pte)
        return 1;
  }
  
@@ -25468,7 +27799,7 @@ index 8e13ecb..60bf506 100644
  /*
   * Handle a spurious fault caused by a stale TLB entry.
   *
-@@ -973,6 +1166,9 @@ int show_unhandled_signals = 1;
+@@ -968,6 +1160,9 @@ int show_unhandled_signals = 1;
  static inline int
  access_error(unsigned long error_code, struct vm_area_struct *vma)
  {
@@ -25478,7 +27809,7 @@ index 8e13ecb..60bf506 100644
        if (error_code & PF_WRITE) {
                /* write, present and write, not present: */
                if (unlikely(!(vma->vm_flags & VM_WRITE)))
-@@ -1001,7 +1197,7 @@ static inline bool smap_violation(int error_code, struct pt_regs *regs)
+@@ -996,7 +1191,7 @@ static inline bool smap_violation(int error_code, struct pt_regs *regs)
        if (error_code & PF_USER)
                return false;
  
@@ -25487,7 +27818,7 @@ index 8e13ecb..60bf506 100644
                return false;
  
        return true;
-@@ -1017,18 +1213,33 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code)
+@@ -1012,18 +1207,33 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code)
  {
        struct vm_area_struct *vma;
        struct task_struct *tsk;
@@ -25526,7 +27857,7 @@ index 8e13ecb..60bf506 100644
  
        /*
         * Detect and handle instructions that would cause a page fault for
-@@ -1089,7 +1300,7 @@ __do_page_fault(struct pt_regs *regs, unsigned long error_code)
+@@ -1084,7 +1294,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:
         */
@@ -25535,7 +27866,7 @@ index 8e13ecb..60bf506 100644
                local_irq_enable();
                error_code |= PF_USER;
        } else {
-@@ -1151,6 +1362,11 @@ retry:
+@@ -1146,6 +1356,11 @@ retry:
                might_sleep();
        }
  
@@ -25547,7 +27878,7 @@ index 8e13ecb..60bf506 100644
        vma = find_vma(mm, address);
        if (unlikely(!vma)) {
                bad_area(regs, error_code, address);
-@@ -1162,18 +1378,24 @@ retry:
+@@ -1157,18 +1372,24 @@ retry:
                bad_area(regs, error_code, address);
                return;
        }
@@ -25583,7 +27914,7 @@ index 8e13ecb..60bf506 100644
        if (unlikely(expand_stack(vma, address))) {
                bad_area(regs, error_code, address);
                return;
-@@ -1237,3 +1459,292 @@ do_page_fault(struct pt_regs *regs, unsigned long error_code)
+@@ -1232,3 +1453,292 @@ do_page_fault(struct pt_regs *regs, unsigned long error_code)
        __do_page_fault(regs, error_code);
        exception_exit(regs);
  }
@@ -25906,172 +28237,36 @@ index 6f31ee5..8ee4164 100644
  
        return (void *)vaddr;
 diff --git a/arch/x86/mm/hugetlbpage.c b/arch/x86/mm/hugetlbpage.c
-index 937bff5..dce75ff 100644
+index ae1aa71..56316db 100644
 --- a/arch/x86/mm/hugetlbpage.c
 +++ b/arch/x86/mm/hugetlbpage.c
-@@ -276,13 +276,21 @@ static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *file,
-       struct hstate *h = hstate_file(file);
-       struct mm_struct *mm = current->mm;
-       struct vm_area_struct *vma;
--      unsigned long start_addr;
-+      unsigned long start_addr, pax_task_size = TASK_SIZE;
-+      unsigned long offset = gr_rand_threadstack_offset(mm, file, flags);
-+
-+#ifdef CONFIG_PAX_SEGMEXEC
-+      if (mm->pax_flags & MF_PAX_SEGMEXEC)
-+              pax_task_size = SEGMEXEC_TASK_SIZE;
-+#endif
-+
-+      pax_task_size -= PAGE_SIZE;
-       if (len > mm->cached_hole_size) {
--              start_addr = mm->free_area_cache;
-+              start_addr = mm->free_area_cache;
-       } else {
--              start_addr = TASK_UNMAPPED_BASE;
--              mm->cached_hole_size = 0;
-+              start_addr = mm->mmap_base;
-+              mm->cached_hole_size = 0;
-       }
- full_search:
-@@ -290,26 +298,27 @@ full_search:
-       for (vma = find_vma(mm, addr); ; vma = vma->vm_next) {
-               /* At this point:  (!vma || addr < vma->vm_end). */
--              if (TASK_SIZE - len < addr) {
-+              if (pax_task_size - len < addr) {
-                       /*
-                        * Start a new search - just in case we missed
-                        * some holes.
-                        */
--                      if (start_addr != TASK_UNMAPPED_BASE) {
--                              start_addr = TASK_UNMAPPED_BASE;
-+                      if (start_addr != mm->mmap_base) {
-+                              start_addr = mm->mmap_base;
-                               mm->cached_hole_size = 0;
-                               goto full_search;
-                       }
-                       return -ENOMEM;
-               }
--              if (!vma || addr + len <= vma->vm_start) {
--                      mm->free_area_cache = addr + len;
--                      return addr;
--              }
-+              if (check_heap_stack_gap(vma, addr, len, offset))
-+                      break;
-               if (addr + mm->cached_hole_size < vma->vm_start)
-                       mm->cached_hole_size = vma->vm_start - addr;
-               addr = ALIGN(vma->vm_end, huge_page_size(h));
-       }
+@@ -279,6 +279,12 @@ static unsigned long hugetlb_get_unmapped_area_bottomup(struct file *file,
+       info.flags = 0;
+       info.length = len;
+       info.low_limit = TASK_UNMAPPED_BASE;
 +
-+      mm->free_area_cache = addr + len;
-+      return addr;
- }
- static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
-@@ -320,9 +329,9 @@ static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
-       struct mm_struct *mm = current->mm;
-       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;
--      unsigned long start_addr;
-+      unsigned long offset = gr_rand_threadstack_offset(mm, file, flags);
-       /* don't allow allocations above current base */
-       if (mm->free_area_cache > base)
-@@ -332,16 +341,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;
-       do {
-+              addr &= huge_page_mask(h);
-               /*
-                * Lookup failure means no vma is above this address,
-                * i.e. return with success:
-@@ -350,10 +358,10 @@ try_again:
-               if (!vma)
-                       return addr;
--              if (addr + len <= vma->vm_start) {
-+              if (check_heap_stack_gap(vma, addr, len, offset)) {
-                       /* remember the address as a hint for next time */
--                      mm->cached_hole_size = largest_hole;
--                      return (mm->free_area_cache = addr);
-+                      mm->cached_hole_size = largest_hole;
-+                      return (mm->free_area_cache = addr);
-               } 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;
-@@ -362,29 +370,34 @@ try_again:
-               /* remember the largest hole we saw so far */
-               if (addr + largest_hole < vma->vm_start)
--                      largest_hole = vma->vm_start - addr;
-+                      largest_hole = vma->vm_start - addr;
-               /* try just below the current vma->vm_start */
--              addr = (vma->vm_start - len) & huge_page_mask(h);
--      } while (len <= vma->vm_start);
-+              addr = skip_heap_stack_gap(vma, len, offset);
-+      } while (!IS_ERR_VALUE(addr));
- fail:
-       /*
--       * if hint left us with no space for the requested
--       * mapping then try again:
--       */
--      if (start_addr != base) {
--              mm->free_area_cache = base;
--              largest_hole = 0;
--              goto try_again;
--      }
--      /*
-        * A failed mmap() very likely causes application failure,
-        * so fall back to the bottom-up function here. This scenario
-        * can happen with large stack limits and large mmap()
-        * allocations.
-        */
--      mm->free_area_cache = TASK_UNMAPPED_BASE;
-+
-+#ifdef CONFIG_PAX_SEGMEXEC
-+      if (mm->pax_flags & MF_PAX_SEGMEXEC)
-+              mm->mmap_base = SEGMEXEC_TASK_UNMAPPED_BASE;
-+      else
++#ifdef CONFIG_PAX_RANDMMAP
++      if (current->mm->pax_flags & MF_PAX_RANDMMAP)
++              info.low_limit += current->mm->delta_mmap;
 +#endif
 +
-+      mm->mmap_base = TASK_UNMAPPED_BASE;
+       info.high_limit = TASK_SIZE;
+       info.align_mask = PAGE_MASK & ~huge_page_mask(h);
+       info.align_offset = 0;
+@@ -311,6 +317,12 @@ static unsigned long hugetlb_get_unmapped_area_topdown(struct file *file,
+               VM_BUG_ON(addr != -ENOMEM);
+               info.flags = 0;
+               info.low_limit = TASK_UNMAPPED_BASE;
 +
 +#ifdef CONFIG_PAX_RANDMMAP
-+      if (mm->pax_flags & MF_PAX_RANDMMAP)
-+              mm->mmap_base += mm->delta_mmap;
++              if (current->mm->pax_flags & MF_PAX_RANDMMAP)
++                      info.low_limit += current->mm->delta_mmap;
 +#endif
 +
-+      mm->free_area_cache = mm->mmap_base;
-       mm->cached_hole_size = ~0UL;
-       addr = hugetlb_get_unmapped_area_bottomup(file, addr0,
-                       len, pgoff, flags);
-@@ -392,6 +405,7 @@ fail:
-       /*
-        * Restore the topdown base:
-        */
-+      mm->mmap_base = base;
-       mm->free_area_cache = base;
-       mm->cached_hole_size = ~0UL;
-@@ -405,10 +419,20 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+               info.high_limit = TASK_SIZE;
+               addr = vm_unmapped_area(&info);
+       }
+@@ -325,10 +337,20 @@ 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;
@@ -26093,7 +28288,7 @@ index 937bff5..dce75ff 100644
                return -ENOMEM;
  
        if (flags & MAP_FIXED) {
-@@ -417,11 +441,14 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+@@ -337,11 +359,14 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
                return addr;
        }
  
@@ -26301,7 +28496,7 @@ index d7aea41..0fc945b 100644
                        (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 11a5800..4bd9977 100644
+index 745d66b..56bf568 100644
 --- a/arch/x86/mm/init_32.c
 +++ b/arch/x86/mm/init_32.c
 @@ -73,36 +73,6 @@ static __init void *alloc_low_page(void)
@@ -26518,7 +28713,7 @@ index 11a5800..4bd9977 100644
  EXPORT_SYMBOL_GPL(__supported_pte_mask);
  
  /* user-defined highmem size */
-@@ -731,6 +730,12 @@ void __init mem_init(void)
+@@ -728,6 +727,12 @@ void __init mem_init(void)
  
        pci_iommu_alloc();
  
@@ -26531,7 +28726,7 @@ index 11a5800..4bd9977 100644
  #ifdef CONFIG_FLATMEM
        BUG_ON(!mem_map);
  #endif
-@@ -757,7 +762,7 @@ void __init mem_init(void)
+@@ -754,7 +759,7 @@ void __init mem_init(void)
                        reservedpages++;
  
        codesize =  (unsigned long) &_etext - (unsigned long) &_text;
@@ -26540,7 +28735,7 @@ index 11a5800..4bd9977 100644
        initsize =  (unsigned long) &__init_end - (unsigned long) &__init_begin;
  
        printk(KERN_INFO "Memory: %luk/%luk available (%dk kernel code, "
-@@ -798,10 +803,10 @@ void __init mem_init(void)
+@@ -795,10 +800,10 @@ void __init mem_init(void)
                ((unsigned long)&__init_end -
                 (unsigned long)&__init_begin) >> 10,
  
@@ -26554,7 +28749,7 @@ index 11a5800..4bd9977 100644
                ((unsigned long)&_etext - (unsigned long)&_text) >> 10);
  
        /*
-@@ -879,6 +884,7 @@ void set_kernel_text_rw(void)
+@@ -876,6 +881,7 @@ void set_kernel_text_rw(void)
        if (!kernel_set_to_readonly)
                return;
  
@@ -26562,7 +28757,7 @@ index 11a5800..4bd9977 100644
        pr_debug("Set kernel text: %lx - %lx for read write\n",
                 start, start+size);
  
-@@ -893,6 +899,7 @@ void set_kernel_text_ro(void)
+@@ -890,6 +896,7 @@ void set_kernel_text_ro(void)
        if (!kernel_set_to_readonly)
                return;
  
@@ -26570,7 +28765,7 @@ index 11a5800..4bd9977 100644
        pr_debug("Set kernel text: %lx - %lx for read only\n",
                 start, start+size);
  
-@@ -921,6 +928,7 @@ void mark_rodata_ro(void)
+@@ -918,6 +925,7 @@ void mark_rodata_ro(void)
        unsigned long start = PFN_ALIGN(_text);
        unsigned long size = PFN_ALIGN(_etext) - start;
  
@@ -26579,7 +28774,7 @@ index 11a5800..4bd9977 100644
        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 3baff25..8b37564 100644
+index 75c9a6a..498d677 100644
 --- a/arch/x86/mm/init_64.c
 +++ b/arch/x86/mm/init_64.c
 @@ -74,7 +74,7 @@ early_param("gbpages", parse_direct_gbpages_on);
@@ -26714,7 +28909,7 @@ index 3baff25..8b37564 100644
                spin_unlock(&init_mm.page_table_lock);
                pgd_changed = true;
        }
-@@ -691,6 +705,12 @@ void __init mem_init(void)
+@@ -693,6 +707,12 @@ void __init mem_init(void)
  
        pci_iommu_alloc();
  
@@ -26727,7 +28922,7 @@ index 3baff25..8b37564 100644
        /* clear_bss() already clear the empty_zero_page */
  
        reservedpages = 0;
-@@ -851,8 +871,8 @@ int kern_addr_valid(unsigned long addr)
+@@ -856,8 +876,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),
@@ -26738,7 +28933,7 @@ index 3baff25..8b37564 100644
  };
  
  struct vm_area_struct *get_gate_vma(struct mm_struct *mm)
-@@ -886,7 +906,7 @@ int in_gate_area_no_mm(unsigned long addr)
+@@ -891,7 +911,7 @@ int in_gate_area_no_mm(unsigned long addr)
  
  const char *arch_vma_name(struct vm_area_struct *vma)
  {
@@ -26764,7 +28959,7 @@ index 7b179b4..6bd1777 100644
  
        return (void *)vaddr;
 diff --git a/arch/x86/mm/ioremap.c b/arch/x86/mm/ioremap.c
-index 78fe3f1..2f9433c 100644
+index 78fe3f1..73b95e2 100644
 --- a/arch/x86/mm/ioremap.c
 +++ b/arch/x86/mm/ioremap.c
 @@ -97,7 +97,7 @@ static void __iomem *__ioremap_caller(resource_size_t phys_addr,
@@ -26795,7 +28990,17 @@ index 78fe3f1..2f9433c 100644
                return __va(phys);
  
        addr = (void __force *)ioremap_cache(start, PAGE_SIZE);
-@@ -344,7 +347,7 @@ static int __init early_ioremap_debug_setup(char *str)
+@@ -327,6 +330,9 @@ void *xlate_dev_mem_ptr(unsigned long phys)
+ void unxlate_dev_mem_ptr(unsigned long phys, void *addr)
+ {
+       if (page_is_ram(phys >> PAGE_SHIFT))
++#ifdef CONFIG_HIGHMEM
++      if ((phys >> PAGE_SHIFT) < max_low_pfn)
++#endif
+               return;
+       iounmap((void __iomem *)((unsigned long)addr & PAGE_MASK));
+@@ -344,7 +350,7 @@ static int __init early_ioremap_debug_setup(char *str)
  early_param("early_ioremap_debug", early_ioremap_debug_setup);
  
  static __initdata int after_paging_init;
@@ -26804,7 +29009,7 @@ index 78fe3f1..2f9433c 100644
  
  static inline pmd_t * __init early_ioremap_pmd(unsigned long addr)
  {
-@@ -381,8 +384,7 @@ void __init early_ioremap_init(void)
+@@ -381,8 +387,7 @@ void __init early_ioremap_init(void)
                slot_virt[i] = __fix_to_virt(FIX_BTMAP_BEGIN - NR_FIX_BTMAPS*i);
  
        pmd = early_ioremap_pmd(fix_to_virt(FIX_BTMAP_BEGIN));
@@ -26964,6 +29169,19 @@ index dc0b727..f612039 100644
  {
        might_sleep();
        if (is_enabled()) /* recheck and proper locking in *_core() */
+diff --git a/arch/x86/mm/numa.c b/arch/x86/mm/numa.c
+index 8504f36..5fc68f2 100644
+--- a/arch/x86/mm/numa.c
++++ b/arch/x86/mm/numa.c
+@@ -478,7 +478,7 @@ static bool __init numa_meminfo_cover_memory(const struct numa_meminfo *mi)
+       return true;
+ }
+-static int __init numa_register_memblks(struct numa_meminfo *mi)
++static int __init __intentional_overflow(-1) numa_register_memblks(struct numa_meminfo *mi)
+ {
+       unsigned long uninitialized_var(pfn_align);
+       int i, nid;
 diff --git a/arch/x86/mm/pageattr-test.c b/arch/x86/mm/pageattr-test.c
 index b008656..773eac2 100644
 --- a/arch/x86/mm/pageattr-test.c
@@ -27166,7 +29384,7 @@ index 9f0614d..92ae64a 100644
        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..4f3ed7e 100644
+index e27fbf8..8b56dc9 100644
 --- a/arch/x86/mm/pgtable.c
 +++ b/arch/x86/mm/pgtable.c
 @@ -84,10 +84,64 @@ static inline void pgd_list_del(pgd_t *pgd)
@@ -27245,7 +29463,7 @@ index 8573b83..4f3ed7e 100644
  /*
   * List of all pgd's needed for non-PAE so it can invalidate entries
 @@ -140,7 +195,7 @@ static void pgd_dtor(pgd_t *pgd)
-  * -- wli
+  * -- nyc
   */
  
 -#ifdef CONFIG_X86_PAE
@@ -27444,6 +29662,28 @@ index a69bcb8..19068ab 100644
  
        /*
         * It's enough to flush this one mapping.
+diff --git a/arch/x86/mm/physaddr.c b/arch/x86/mm/physaddr.c
+index d2e2735..5c6586f 100644
+--- a/arch/x86/mm/physaddr.c
++++ b/arch/x86/mm/physaddr.c
+@@ -8,7 +8,7 @@
+ #ifdef CONFIG_X86_64
+-unsigned long __phys_addr(unsigned long x)
++unsigned long __intentional_overflow(-1) __phys_addr(unsigned long x)
+ {
+       if (x >= __START_KERNEL_map) {
+               x -= __START_KERNEL_map;
+@@ -45,7 +45,7 @@ EXPORT_SYMBOL(__virt_addr_valid);
+ #else
+ #ifdef CONFIG_DEBUG_VIRTUAL
+-unsigned long __phys_addr(unsigned long x)
++unsigned long __intentional_overflow(-1) __phys_addr(unsigned long x)
+ {
+       /* VMALLOC_* aren't constants  */
+       VIRTUAL_BUG_ON(x < PAGE_OFFSET);
 diff --git a/arch/x86/mm/setup_nx.c b/arch/x86/mm/setup_nx.c
 index 410531d..0f16030 100644
 --- a/arch/x86/mm/setup_nx.c
@@ -27478,7 +29718,7 @@ index 410531d..0f16030 100644
  }
  
 diff --git a/arch/x86/mm/tlb.c b/arch/x86/mm/tlb.c
-index 60f926c..a710970 100644
+index 13a6b29..c2fff23 100644
 --- a/arch/x86/mm/tlb.c
 +++ b/arch/x86/mm/tlb.c
 @@ -48,7 +48,11 @@ void leave_mm(int cpu)
@@ -27607,18 +29847,18 @@ index 877b9a1..a8ecf42 100644
 +      pax_force_retaddr
        ret
 diff --git a/arch/x86/net/bpf_jit_comp.c b/arch/x86/net/bpf_jit_comp.c
-index 520d2bd..b895ef4 100644
+index d11a470..3f9adff3 100644
 --- a/arch/x86/net/bpf_jit_comp.c
 +++ b/arch/x86/net/bpf_jit_comp.c
-@@ -11,6 +11,7 @@
- #include <asm/cacheflush.h>
+@@ -12,6 +12,7 @@
  #include <linux/netdevice.h>
  #include <linux/filter.h>
+ #include <linux/if_vlan.h>
 +#include <linux/random.h>
  
  /*
   * Conventions :
-@@ -48,13 +49,87 @@ static inline u8 *emit_code(u8 *ptr, u32 bytes, unsigned int len)
+@@ -49,13 +50,87 @@ static inline u8 *emit_code(u8 *ptr, u32 bytes, unsigned int len)
        return ptr + len;
  }
  
@@ -27706,7 +29946,7 @@ index 520d2bd..b895ef4 100644
  
  #define CLEAR_A() EMIT2(0x31, 0xc0) /* xor %eax,%eax */
  #define CLEAR_X() EMIT2(0x31, 0xdb) /* xor %ebx,%ebx */
-@@ -89,6 +164,24 @@ do {                                                                       \
+@@ -90,6 +165,24 @@ do {                                                                       \
  #define X86_JBE 0x76
  #define X86_JA  0x77
  
@@ -27731,7 +29971,7 @@ index 520d2bd..b895ef4 100644
  #define EMIT_COND_JMP(op, offset)                             \
  do {                                                          \
        if (is_near(offset))                                    \
-@@ -96,6 +189,7 @@ do {                                                                \
+@@ -97,6 +190,7 @@ do {                                                                \
        else {                                                  \
                EMIT2(0x0f, op + 0x10);                         \
                EMIT(offset, 4); /* jxx .+off32 */              \
@@ -27739,7 +29979,7 @@ index 520d2bd..b895ef4 100644
        }                                                       \
  } while (0)
  
-@@ -120,12 +214,17 @@ static inline void bpf_flush_icache(void *start, void *end)
+@@ -121,12 +215,17 @@ static inline void bpf_flush_icache(void *start, void *end)
        set_fs(old_fs);
  }
  
@@ -27758,7 +29998,7 @@ index 520d2bd..b895ef4 100644
        u8 *prog;
        unsigned int proglen, oldproglen = 0;
        int ilen, i;
-@@ -138,6 +237,9 @@ void bpf_jit_compile(struct sk_filter *fp)
+@@ -139,6 +238,9 @@ void bpf_jit_compile(struct sk_filter *fp)
        unsigned int *addrs;
        const struct sock_filter *filter = fp->insns;
        int flen = fp->len;
@@ -27768,7 +30008,7 @@ index 520d2bd..b895ef4 100644
  
        if (!bpf_jit_enable)
                return;
-@@ -146,11 +248,19 @@ void bpf_jit_compile(struct sk_filter *fp)
+@@ -147,11 +249,19 @@ void bpf_jit_compile(struct sk_filter *fp)
        if (addrs == NULL)
                return;
  
@@ -27790,7 +30030,7 @@ index 520d2bd..b895ef4 100644
                addrs[i] = proglen;
        }
        cleanup_addr = proglen; /* epilogue address */
-@@ -258,10 +368,8 @@ void bpf_jit_compile(struct sk_filter *fp)
+@@ -261,10 +371,8 @@ void bpf_jit_compile(struct sk_filter *fp)
                        case BPF_S_ALU_MUL_K: /* A *= K */
                                if (is_imm8(K))
                                        EMIT3(0x6b, 0xc0, K); /* imul imm8,%eax,%eax */
@@ -27803,7 +30043,7 @@ index 520d2bd..b895ef4 100644
                                break;
                        case BPF_S_ALU_DIV_X: /* A /= X; */
                                seen |= SEEN_XREG;
-@@ -301,13 +409,23 @@ void bpf_jit_compile(struct sk_filter *fp)
+@@ -304,13 +412,23 @@ void bpf_jit_compile(struct sk_filter *fp)
                                break;
                        case BPF_S_ALU_MOD_K: /* A %= K; */
                                EMIT2(0x31, 0xd2);      /* xor %edx,%edx */
@@ -27827,7 +30067,7 @@ index 520d2bd..b895ef4 100644
                                EMIT4(0x48, 0xc1, 0xe8, 0x20); /* shr $0x20,%rax */
                                break;
                        case BPF_S_ALU_AND_X:
-@@ -543,8 +661,7 @@ common_load_ind:           seen |= SEEN_DATAREF | SEEN_XREG;
+@@ -564,8 +682,7 @@ common_load_ind:           seen |= SEEN_DATAREF | SEEN_XREG;
                                        if (is_imm8(K)) {
                                                EMIT3(0x8d, 0x73, K); /* lea imm8(%rbx), %esi */
                                        } else {
@@ -27837,7 +30077,7 @@ index 520d2bd..b895ef4 100644
                                        }
                                } else {
                                        EMIT2(0x89,0xde); /* mov %ebx,%esi */
-@@ -627,17 +744,18 @@ cond_branch:                     f_offset = addrs[i + filter[i].jf] - addrs[i];
+@@ -648,17 +765,18 @@ cond_branch:                     f_offset = addrs[i + filter[i].jf] - addrs[i];
                                break;
                        default:
                                /* hmm, too complex filter, give up with jit compiler */
@@ -27860,7 +30100,7 @@ index 520d2bd..b895ef4 100644
                        }
                        proglen += ilen;
                        addrs[i] = proglen;
-@@ -658,11 +776,9 @@ cond_branch:                      f_offset = addrs[i + filter[i].jf] - addrs[i];
+@@ -679,11 +797,9 @@ cond_branch:                      f_offset = addrs[i + filter[i].jf] - addrs[i];
                        break;
                }
                if (proglen == oldproglen) {
@@ -27874,7 +30114,7 @@ index 520d2bd..b895ef4 100644
                }
                oldproglen = proglen;
        }
-@@ -678,7 +794,10 @@ cond_branch:                      f_offset = addrs[i + filter[i].jf] - addrs[i];
+@@ -699,7 +815,10 @@ cond_branch:                      f_offset = addrs[i + filter[i].jf] - addrs[i];
                bpf_flush_icache(image, image + proglen);
  
                fp->bpf_func = (void *)image;
@@ -27886,7 +30126,7 @@ index 520d2bd..b895ef4 100644
  out:
        kfree(addrs);
        return;
-@@ -686,18 +805,20 @@ out:
+@@ -707,18 +826,20 @@ out:
  
  static void jit_free_defer(struct work_struct *arg)
  {
@@ -27946,21 +30186,144 @@ index d6aa6e8..266395a 100644
                unsigned long stack = kernel_stack_pointer(regs);
                if (depth)
                        dump_trace(NULL, regs, (unsigned long *)stack, 0,
-diff --git a/arch/x86/pci/acpi.c b/arch/x86/pci/acpi.c
-index 192397c..5ba6f9e 100644
---- a/arch/x86/pci/acpi.c
-+++ b/arch/x86/pci/acpi.c
-@@ -568,7 +568,7 @@ int __init pci_acpi_init(void)
-       acpi_irq_penalty_init();
-       pcibios_enable_irq = acpi_pci_irq_enable;
-       pcibios_disable_irq = acpi_pci_irq_disable;
--      x86_init.pci.init_irq = x86_init_noop;
-+      *(void **)&x86_init.pci.init_irq = x86_init_noop;
-       if (pci_routeirq) {
-               /*
+diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c
+index 48768df..ba9143c 100644
+--- a/arch/x86/oprofile/nmi_int.c
++++ b/arch/x86/oprofile/nmi_int.c
+@@ -23,6 +23,7 @@
+ #include <asm/nmi.h>
+ #include <asm/msr.h>
+ #include <asm/apic.h>
++#include <asm/pgtable.h>
+ #include "op_counter.h"
+ #include "op_x86_model.h"
+@@ -774,8 +775,11 @@ int __init op_nmi_init(struct oprofile_operations *ops)
+       if (ret)
+               return ret;
+-      if (!model->num_virt_counters)
+-              model->num_virt_counters = model->num_counters;
++      if (!model->num_virt_counters) {
++              pax_open_kernel();
++              *(unsigned int *)&model->num_virt_counters = model->num_counters;
++              pax_close_kernel();
++      }
+       mux_init(ops);
+diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c
+index b2b9443..be58856 100644
+--- a/arch/x86/oprofile/op_model_amd.c
++++ b/arch/x86/oprofile/op_model_amd.c
+@@ -519,9 +519,11 @@ static int op_amd_init(struct oprofile_operations *ops)
+               num_counters = AMD64_NUM_COUNTERS;
+       }
+-      op_amd_spec.num_counters = num_counters;
+-      op_amd_spec.num_controls = num_counters;
+-      op_amd_spec.num_virt_counters = max(num_counters, NUM_VIRT_COUNTERS);
++      pax_open_kernel();
++      *(unsigned int *)&op_amd_spec.num_counters = num_counters;
++      *(unsigned int *)&op_amd_spec.num_controls = num_counters;
++      *(unsigned int *)&op_amd_spec.num_virt_counters = max(num_counters, NUM_VIRT_COUNTERS);
++      pax_close_kernel();
+       return 0;
+ }
+diff --git a/arch/x86/oprofile/op_model_ppro.c b/arch/x86/oprofile/op_model_ppro.c
+index d90528e..0127e2b 100644
+--- a/arch/x86/oprofile/op_model_ppro.c
++++ b/arch/x86/oprofile/op_model_ppro.c
+@@ -19,6 +19,7 @@
+ #include <asm/msr.h>
+ #include <asm/apic.h>
+ #include <asm/nmi.h>
++#include <asm/pgtable.h>
+ #include "op_x86_model.h"
+ #include "op_counter.h"
+@@ -221,8 +222,10 @@ static void arch_perfmon_setup_counters(void)
+       num_counters = min((int)eax.split.num_counters, OP_MAX_COUNTER);
+-      op_arch_perfmon_spec.num_counters = num_counters;
+-      op_arch_perfmon_spec.num_controls = num_counters;
++      pax_open_kernel();
++      *(unsigned int *)&op_arch_perfmon_spec.num_counters = num_counters;
++      *(unsigned int *)&op_arch_perfmon_spec.num_controls = num_counters;
++      pax_close_kernel();
+ }
+ static int arch_perfmon_init(struct oprofile_operations *ignore)
+diff --git a/arch/x86/oprofile/op_x86_model.h b/arch/x86/oprofile/op_x86_model.h
+index 71e8a67..6a313bb 100644
+--- a/arch/x86/oprofile/op_x86_model.h
++++ b/arch/x86/oprofile/op_x86_model.h
+@@ -52,7 +52,7 @@ struct op_x86_model_spec {
+       void            (*switch_ctrl)(struct op_x86_model_spec const *model,
+                                      struct op_msrs const * const msrs);
+ #endif
+-};
++} __do_const;
+ struct op_counter_config;
+diff --git a/arch/x86/pci/amd_bus.c b/arch/x86/pci/amd_bus.c
+index e9e6ed5..e47ae67 100644
+--- a/arch/x86/pci/amd_bus.c
++++ b/arch/x86/pci/amd_bus.c
+@@ -337,7 +337,7 @@ static int __cpuinit amd_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata amd_cpu_notifier = {
++static struct notifier_block amd_cpu_notifier = {
+       .notifier_call  = amd_cpu_notify,
+ };
+diff --git a/arch/x86/pci/irq.c b/arch/x86/pci/irq.c
+index 372e9b8..e775a6c 100644
+--- a/arch/x86/pci/irq.c
++++ b/arch/x86/pci/irq.c
+@@ -50,7 +50,7 @@ struct irq_router {
+ struct irq_router_handler {
+       u16 vendor;
+       int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
+-};
++} __do_const;
+ int (*pcibios_enable_irq)(struct pci_dev *dev) = pirq_enable_irq;
+ void (*pcibios_disable_irq)(struct pci_dev *dev) = NULL;
+@@ -794,7 +794,7 @@ static __init int pico_router_probe(struct irq_router *r, struct pci_dev *router
+       return 0;
+ }
+-static __initdata struct irq_router_handler pirq_routers[] = {
++static __initconst const struct irq_router_handler pirq_routers[] = {
+       { PCI_VENDOR_ID_INTEL, intel_router_probe },
+       { PCI_VENDOR_ID_AL, ali_router_probe },
+       { PCI_VENDOR_ID_ITE, ite_router_probe },
+@@ -821,7 +821,7 @@ static struct pci_dev *pirq_router_dev;
+ static void __init pirq_find_router(struct irq_router *r)
+ {
+       struct irq_routing_table *rt = pirq_table;
+-      struct irq_router_handler *h;
++      const struct irq_router_handler *h;
+ #ifdef CONFIG_PCI_BIOS
+       if (!rt->signature) {
+@@ -1094,7 +1094,7 @@ static int __init fix_acer_tm360_irqrouting(const struct dmi_system_id *d)
+       return 0;
+ }
+-static struct dmi_system_id __initdata pciirq_dmi_table[] = {
++static const struct dmi_system_id __initconst pciirq_dmi_table[] = {
+       {
+               .callback = fix_broken_hp_bios_irq9,
+               .ident = "HP Pavilion N5400 Series Laptop",
 diff --git a/arch/x86/pci/mrst.c b/arch/x86/pci/mrst.c
-index e14a2ff..3fd6b58 100644
+index 6eb18c4..20d83de 100644
 --- a/arch/x86/pci/mrst.c
 +++ b/arch/x86/pci/mrst.c
 @@ -238,7 +238,9 @@ int __init pci_mrst_init(void)
@@ -27975,10 +30338,10 @@ index e14a2ff..3fd6b58 100644
        /* Continue with standard init */
        return 1;
 diff --git a/arch/x86/pci/pcbios.c b/arch/x86/pci/pcbios.c
-index da8fe05..7ee6704 100644
+index c77b24a..c979855 100644
 --- a/arch/x86/pci/pcbios.c
 +++ b/arch/x86/pci/pcbios.c
-@@ -79,50 +79,93 @@ union bios32 {
+@@ -79,7 +79,7 @@ union bios32 {
  static struct {
        unsigned long address;
        unsigned short segment;
@@ -27987,13 +30350,7 @@ index da8fe05..7ee6704 100644
  
  /*
   * Returns the entry point for the given service, NULL on error
-  */
--static unsigned long bios32_service(unsigned long service)
-+static unsigned long __devinit bios32_service(unsigned long service)
- {
-       unsigned char return_code;      /* %al */
-       unsigned long address;          /* %ebx */
+@@ -92,37 +92,80 @@ static unsigned long bios32_service(unsigned long service)
        unsigned long length;           /* %ecx */
        unsigned long entry;            /* %edx */
        unsigned long flags;
@@ -28084,9 +30441,9 @@ index da8fe05..7ee6704 100644
 -static int pci_bios_present;
 +static int pci_bios_present __read_only;
  
- static int __devinit check_pcibios(void)
+ static int check_pcibios(void)
  {
-@@ -131,11 +174,13 @@ static int __devinit check_pcibios(void)
+@@ -131,11 +174,13 @@ static int check_pcibios(void)
        unsigned long flags, pcibios_entry;
  
        if ((pcibios_entry = bios32_service(PCI_SERVICE))) {
@@ -28103,7 +30460,7 @@ index da8fe05..7ee6704 100644
                        "jc 1f\n\t"
                        "xor %%ah, %%ah\n"
                        "1:"
-@@ -144,7 +189,8 @@ static int __devinit check_pcibios(void)
+@@ -144,7 +189,8 @@ static int check_pcibios(void)
                          "=b" (ebx),
                          "=c" (ecx)
                        : "1" (PCIBIOS_PCI_BIOS_PRESENT),
@@ -28282,62 +30639,6 @@ index da8fe05..7ee6704 100644
        return !(ret & 0xff00);
  }
  EXPORT_SYMBOL(pcibios_set_irq_routing);
-diff --git a/arch/x86/pci/xen.c b/arch/x86/pci/xen.c
-index 56ab749..3cb792a 100644
---- a/arch/x86/pci/xen.c
-+++ b/arch/x86/pci/xen.c
-@@ -395,9 +395,9 @@ int __init pci_xen_init(void)
- #endif
- #ifdef CONFIG_PCI_MSI
--      x86_msi.setup_msi_irqs = xen_setup_msi_irqs;
--      x86_msi.teardown_msi_irq = xen_teardown_msi_irq;
--      x86_msi.teardown_msi_irqs = xen_teardown_msi_irqs;
-+      *(void **)&x86_msi.setup_msi_irqs = xen_setup_msi_irqs;
-+      *(void **)&x86_msi.teardown_msi_irq = xen_teardown_msi_irq;
-+      *(void **)&x86_msi.teardown_msi_irqs = xen_teardown_msi_irqs;
- #endif
-       return 0;
- }
-@@ -416,8 +416,8 @@ int __init pci_xen_hvm_init(void)
- #endif
- #ifdef CONFIG_PCI_MSI
--      x86_msi.setup_msi_irqs = xen_hvm_setup_msi_irqs;
--      x86_msi.teardown_msi_irq = xen_teardown_msi_irq;
-+      *(void **)&x86_msi.setup_msi_irqs = xen_hvm_setup_msi_irqs;
-+      *(void **)&x86_msi.teardown_msi_irq = xen_teardown_msi_irq;
- #endif
-       return 0;
- }
-@@ -474,9 +474,9 @@ int __init pci_xen_initial_domain(void)
-       int irq;
- #ifdef CONFIG_PCI_MSI
--      x86_msi.setup_msi_irqs = xen_initdom_setup_msi_irqs;
--      x86_msi.teardown_msi_irq = xen_teardown_msi_irq;
--      x86_msi.restore_msi_irqs = xen_initdom_restore_msi_irqs;
-+      *(void **)&x86_msi.setup_msi_irqs = xen_initdom_setup_msi_irqs;
-+      *(void **)&x86_msi.teardown_msi_irq = xen_teardown_msi_irq;
-+      *(void **)&x86_msi.restore_msi_irqs = xen_initdom_restore_msi_irqs;
- #endif
-       xen_setup_acpi_sci();
-       __acpi_register_gsi = acpi_register_gsi_xen;
-diff --git a/arch/x86/platform/efi/efi.c b/arch/x86/platform/efi/efi.c
-index 77cf009..7fe44c8 100644
---- a/arch/x86/platform/efi/efi.c
-+++ b/arch/x86/platform/efi/efi.c
-@@ -746,8 +746,8 @@ void __init efi_init(void)
- #ifdef CONFIG_X86_32
-       if (efi_is_native()) {
--              x86_platform.get_wallclock = efi_get_time;
--              x86_platform.set_wallclock = efi_set_rtc_mmss;
-+              *(void **)&x86_platform.get_wallclock = efi_get_time;
-+              *(void **)&x86_platform.set_wallclock = efi_set_rtc_mmss;
-       }
- #endif
 diff --git a/arch/x86/platform/efi/efi_32.c b/arch/x86/platform/efi/efi_32.c
 index 40e4469..1ab536e 100644
 --- a/arch/x86/platform/efi/efi_32.c
@@ -28577,7 +30878,7 @@ index 4c07cca..2c8427d 100644
        ret
  ENDPROC(efi_call6)
 diff --git a/arch/x86/platform/mrst/mrst.c b/arch/x86/platform/mrst/mrst.c
-index fd41a92..bc8091d 100644
+index e31bcd8..f12dc46 100644
 --- a/arch/x86/platform/mrst/mrst.c
 +++ b/arch/x86/platform/mrst/mrst.c
 @@ -78,13 +78,15 @@ struct sfi_rtc_table_entry sfi_mrtc_array[SFI_MRTC_MAX];
@@ -28598,105 +30899,6 @@ index fd41a92..bc8091d 100644
  }
  
  /* parse all the mtimer info to a static mtimer array */
-@@ -233,14 +235,14 @@ static void __init mrst_time_init(void)
-       case MRST_TIMER_APBT_ONLY:
-               break;
-       case MRST_TIMER_LAPIC_APBT:
--              x86_init.timers.setup_percpu_clockev = setup_boot_APIC_clock;
--              x86_cpuinit.setup_percpu_clockev = setup_secondary_APIC_clock;
-+              *(void **)&x86_init.timers.setup_percpu_clockev = setup_boot_APIC_clock;
-+              *(void **)&x86_cpuinit.setup_percpu_clockev = setup_secondary_APIC_clock;
-               break;
-       default:
-               if (!boot_cpu_has(X86_FEATURE_ARAT))
-                       break;
--              x86_init.timers.setup_percpu_clockev = setup_boot_APIC_clock;
--              x86_cpuinit.setup_percpu_clockev = setup_secondary_APIC_clock;
-+              *(void **)&x86_init.timers.setup_percpu_clockev = setup_boot_APIC_clock;
-+              *(void **)&x86_cpuinit.setup_percpu_clockev = setup_secondary_APIC_clock;
-               return;
-       }
-       /* we need at least one APB timer */
-@@ -282,35 +284,35 @@ static unsigned char mrst_get_nmi_reason(void)
-  */
- void __init x86_mrst_early_setup(void)
- {
--      x86_init.resources.probe_roms = x86_init_noop;
--      x86_init.resources.reserve_resources = x86_init_noop;
-+      *(void **)&x86_init.resources.probe_roms = x86_init_noop;
-+      *(void **)&x86_init.resources.reserve_resources = x86_init_noop;
--      x86_init.timers.timer_init = mrst_time_init;
--      x86_init.timers.setup_percpu_clockev = x86_init_noop;
-+      *(void **)&x86_init.timers.timer_init = mrst_time_init;
-+      *(void **)&x86_init.timers.setup_percpu_clockev = x86_init_noop;
--      x86_init.irqs.pre_vector_init = x86_init_noop;
-+      *(void **)&x86_init.irqs.pre_vector_init = x86_init_noop;
--      x86_init.oem.arch_setup = mrst_arch_setup;
-+      *(void **)&x86_init.oem.arch_setup = mrst_arch_setup;
--      x86_cpuinit.setup_percpu_clockev = apbt_setup_secondary_clock;
-+      *(void **)&x86_cpuinit.setup_percpu_clockev = apbt_setup_secondary_clock;
--      x86_platform.calibrate_tsc = mrst_calibrate_tsc;
--      x86_platform.i8042_detect = mrst_i8042_detect;
--      x86_init.timers.wallclock_init = mrst_rtc_init;
--      x86_platform.get_nmi_reason = mrst_get_nmi_reason;
-+      *(void **)&x86_platform.calibrate_tsc = mrst_calibrate_tsc;
-+      *(void **)&x86_platform.i8042_detect = mrst_i8042_detect;
-+      *(void **)&x86_init.timers.wallclock_init = mrst_rtc_init;
-+      *(void **)&x86_platform.get_nmi_reason = mrst_get_nmi_reason;
--      x86_init.pci.init = pci_mrst_init;
--      x86_init.pci.fixup_irqs = x86_init_noop;
-+      *(void **)&x86_init.pci.init = pci_mrst_init;
-+      *(void **)&x86_init.pci.fixup_irqs = x86_init_noop;
-       legacy_pic = &null_legacy_pic;
-       /* Moorestown specific power_off/restart method */
-       pm_power_off = mrst_power_off;
--      machine_ops.emergency_restart  = mrst_reboot;
-+      *(void **)&machine_ops.emergency_restart  = mrst_reboot;
-       /* Avoid searching for BIOS MP tables */
--      x86_init.mpparse.find_smp_config = x86_init_noop;
--      x86_init.mpparse.get_smp_config = x86_init_uint_noop;
-+      *(void **)&x86_init.mpparse.find_smp_config = x86_init_noop;
-+      *(void **)&x86_init.mpparse.get_smp_config = x86_init_uint_noop;
-       set_bit(MP_BUS_ISA, mp_bus_not_pci);
- }
-diff --git a/arch/x86/platform/mrst/vrtc.c b/arch/x86/platform/mrst/vrtc.c
-index 225bd0f..22e8086 100644
---- a/arch/x86/platform/mrst/vrtc.c
-+++ b/arch/x86/platform/mrst/vrtc.c
-@@ -120,8 +120,8 @@ void __init mrst_rtc_init(void)
-       vrtc_virt_base = (void __iomem *)set_fixmap_offset_nocache(FIX_LNW_VRTC,
-                                                               vrtc_paddr);
--      x86_platform.get_wallclock = vrtc_get_time;
--      x86_platform.set_wallclock = vrtc_set_mmss;
-+      *(void **)&x86_platform.get_wallclock = vrtc_get_time;
-+      *(void **)&x86_platform.set_wallclock = vrtc_set_mmss;
- }
- /*
-diff --git a/arch/x86/platform/olpc/olpc.c b/arch/x86/platform/olpc/olpc.c
-index 2737608..0d62cc2 100644
---- a/arch/x86/platform/olpc/olpc.c
-+++ b/arch/x86/platform/olpc/olpc.c
-@@ -395,7 +395,7 @@ static int __init olpc_init(void)
-        * XO-1 only. */
-       if (olpc_platform_info.boardrev < olpc_board_pre(0xd0) &&
-                       !cs5535_has_vsa2())
--              x86_init.pci.arch_init = pci_olpc_init;
-+              *(void **)&x86_init.pci.arch_init = pci_olpc_init;
- #endif
-       if (olpc_platform_info.boardrev < olpc_board_pre(0xd0)) { /* XO-1 */
 diff --git a/arch/x86/platform/olpc/olpc_dt.c b/arch/x86/platform/olpc/olpc_dt.c
 index d6ee929..3637cb5 100644
 --- a/arch/x86/platform/olpc/olpc_dt.c
@@ -28711,10 +30913,10 @@ index d6ee929..3637cb5 100644
        .getproplen = olpc_dt_getproplen,
        .getproperty = olpc_dt_getproperty,
 diff --git a/arch/x86/power/cpu.c b/arch/x86/power/cpu.c
-index 218cdb1..c1178eb 100644
+index 3c68768..07e82b8 100644
 --- a/arch/x86/power/cpu.c
 +++ b/arch/x86/power/cpu.c
-@@ -132,7 +132,7 @@ static void do_fpu_end(void)
+@@ -134,7 +134,7 @@ static void do_fpu_end(void)
  static void fix_processor_context(void)
  {
        int cpu = smp_processor_id();
@@ -28723,7 +30925,7 @@ index 218cdb1..c1178eb 100644
  
        set_tss_desc(cpu, t);   /*
                                 * This just modifies memory; should not be
-@@ -142,8 +142,6 @@ static void fix_processor_context(void)
+@@ -144,8 +144,6 @@ static void fix_processor_context(void)
                                 */
  
  #ifdef CONFIG_X86_64
@@ -28837,7 +31039,7 @@ index bb360dc..3e5945f 100644
  
        /*
 diff --git a/arch/x86/tools/relocs.c b/arch/x86/tools/relocs.c
-index 5a1847d..deccb30 100644
+index 79d67bd..c7e1b90 100644
 --- a/arch/x86/tools/relocs.c
 +++ b/arch/x86/tools/relocs.c
 @@ -12,10 +12,13 @@
@@ -29046,7 +31248,7 @@ index 5a1847d..deccb30 100644
 +      read_relocs(fp, use_real_mode);
        if (show_absolute_syms) {
                print_absolute_symbols();
-               return 0;
+               goto out;
 diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile
 index fd14be1..e3c79c0 100644
 --- a/arch/x86/vdso/Makefile
@@ -29147,7 +31349,7 @@ index 0faad64..39ef157 100644
        return NULL;
  }
 diff --git a/arch/x86/vdso/vma.c b/arch/x86/vdso/vma.c
-index 00aaf04..4a26505 100644
+index 431e875..cbb23f3 100644
 --- a/arch/x86/vdso/vma.c
 +++ b/arch/x86/vdso/vma.c
 @@ -16,8 +16,6 @@
@@ -29163,7 +31365,7 @@ index 00aaf04..4a26505 100644
         * unaligned here as a result of stack start randomization.
         */
        addr = PAGE_ALIGN(addr);
--      addr = align_addr(addr, NULL, ALIGN_VDSO);
+-      addr = align_vdso_addr(addr);
  
        return addr;
  }
@@ -29185,7 +31387,7 @@ index 00aaf04..4a26505 100644
 +#endif
 +
        addr = vdso_addr(mm->start_stack, size);
-+      addr = align_addr(addr, NULL, ALIGN_VDSO);
++      addr = align_vdso_addr(addr);
        addr = get_unmapped_area(NULL, addr, size, 0, 0);
        if (IS_ERR_VALUE(addr)) {
                ret = addr;
@@ -29219,22 +31421,11 @@ index 00aaf04..4a26505 100644
 -      return 0;
 -}
 -__setup("vdso=", vdso_setup);
-diff --git a/arch/x86/xen/apic.c b/arch/x86/xen/apic.c
-index 7005ced..530d6eb 100644
---- a/arch/x86/xen/apic.c
-+++ b/arch/x86/xen/apic.c
-@@ -30,5 +30,5 @@ static unsigned int xen_io_apic_read(unsigned apic, unsigned reg)
- void __init xen_init_apic(void)
- {
--      x86_io_apic_ops.read = xen_io_apic_read;
-+      *(void **)&x86_io_apic_ops.read = xen_io_apic_read;
- }
 diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
-index 586d838..9181904 100644
+index 2262003..f229ced 100644
 --- a/arch/x86/xen/enlighten.c
 +++ b/arch/x86/xen/enlighten.c
-@@ -99,8 +99,6 @@ EXPORT_SYMBOL_GPL(xen_start_info);
+@@ -100,8 +100,6 @@ EXPORT_SYMBOL_GPL(xen_start_info);
  
  struct shared_info xen_dummy_shared_info;
  
@@ -29243,7 +31434,7 @@ index 586d838..9181904 100644
  RESERVE_BRK(shared_info_page_brk, PAGE_SIZE);
  __read_mostly int xen_have_vector_callback;
  EXPORT_SYMBOL_GPL(xen_have_vector_callback);
-@@ -473,8 +471,7 @@ static void xen_load_gdt(const struct desc_ptr *dtr)
+@@ -496,8 +494,7 @@ static void xen_load_gdt(const struct desc_ptr *dtr)
  {
        unsigned long va = dtr->address;
        unsigned int size = dtr->size + 1;
@@ -29253,7 +31444,7 @@ index 586d838..9181904 100644
        int f;
  
        /*
-@@ -522,8 +519,7 @@ static void __init xen_load_gdt_boot(const struct desc_ptr *dtr)
+@@ -545,8 +542,7 @@ static void __init xen_load_gdt_boot(const struct desc_ptr *dtr)
  {
        unsigned long va = dtr->address;
        unsigned int size = dtr->size + 1;
@@ -29263,42 +31454,16 @@ index 586d838..9181904 100644
        int f;
  
        /*
-@@ -918,21 +914,21 @@ static u32 xen_safe_apic_wait_icr_idle(void)
- static void set_xen_basic_apic_ops(void)
- {
--      apic->read = xen_apic_read;
--      apic->write = xen_apic_write;
--      apic->icr_read = xen_apic_icr_read;
--      apic->icr_write = xen_apic_icr_write;
--      apic->wait_icr_idle = xen_apic_wait_icr_idle;
--      apic->safe_wait_icr_idle = xen_safe_apic_wait_icr_idle;
--      apic->set_apic_id = xen_set_apic_id;
--      apic->get_apic_id = xen_get_apic_id;
-+      *(void **)&apic->read = xen_apic_read;
-+      *(void **)&apic->write = xen_apic_write;
-+      *(void **)&apic->icr_read = xen_apic_icr_read;
-+      *(void **)&apic->icr_write = xen_apic_icr_write;
-+      *(void **)&apic->wait_icr_idle = xen_apic_wait_icr_idle;
-+      *(void **)&apic->safe_wait_icr_idle = xen_safe_apic_wait_icr_idle;
-+      *(void **)&apic->set_apic_id = xen_set_apic_id;
-+      *(void **)&apic->get_apic_id = xen_get_apic_id;
- #ifdef CONFIG_SMP
--      apic->send_IPI_allbutself = xen_send_IPI_allbutself;
--      apic->send_IPI_mask_allbutself = xen_send_IPI_mask_allbutself;
--      apic->send_IPI_mask = xen_send_IPI_mask;
--      apic->send_IPI_all = xen_send_IPI_all;
--      apic->send_IPI_self = xen_send_IPI_self;
-+      *(void **)&apic->send_IPI_allbutself = xen_send_IPI_allbutself;
-+      *(void **)&apic->send_IPI_mask_allbutself = xen_send_IPI_mask_allbutself;
-+      *(void **)&apic->send_IPI_mask = xen_send_IPI_mask;
-+      *(void **)&apic->send_IPI_all = xen_send_IPI_all;
-+      *(void **)&apic->send_IPI_self = xen_send_IPI_self;
- #endif
+@@ -939,7 +935,7 @@ static u32 xen_safe_apic_wait_icr_idle(void)
+         return 0;
  }
  
-@@ -1222,30 +1218,30 @@ static const struct pv_apic_ops xen_apic_ops __initconst = {
+-static void set_xen_basic_apic_ops(void)
++static void __init set_xen_basic_apic_ops(void)
+ {
+       apic->read = xen_apic_read;
+       apic->write = xen_apic_write;
+@@ -1245,30 +1241,30 @@ static const struct pv_apic_ops xen_apic_ops __initconst = {
  #endif
  };
  
@@ -29336,46 +31501,7 @@ index 586d838..9181904 100644
  {
        if (pm_power_off)
                pm_power_off();
-@@ -1290,14 +1286,14 @@ static const struct machine_ops xen_machine_ops __initconst = {
-  */
- static void __init xen_setup_stackprotector(void)
- {
--      pv_cpu_ops.write_gdt_entry = xen_write_gdt_entry_boot;
--      pv_cpu_ops.load_gdt = xen_load_gdt_boot;
-+      *(void **)&pv_cpu_ops.write_gdt_entry = xen_write_gdt_entry_boot;
-+      *(void **)&pv_cpu_ops.load_gdt = xen_load_gdt_boot;
-       setup_stack_canary_segment(0);
-       switch_to_new_gdt(0);
--      pv_cpu_ops.write_gdt_entry = xen_write_gdt_entry;
--      pv_cpu_ops.load_gdt = xen_load_gdt;
-+      *(void **)&pv_cpu_ops.write_gdt_entry = xen_write_gdt_entry;
-+      *(void **)&pv_cpu_ops.load_gdt = xen_load_gdt;
- }
- /* First C function to be called on Xen boot */
-@@ -1315,13 +1311,13 @@ asmlinkage void __init xen_start_kernel(void)
-       /* Install Xen paravirt ops */
-       pv_info = xen_info;
--      pv_init_ops = xen_init_ops;
--      pv_cpu_ops = xen_cpu_ops;
--      pv_apic_ops = xen_apic_ops;
-+      memcpy((void *)&pv_init_ops, &xen_init_ops, sizeof pv_init_ops);
-+      memcpy((void *)&pv_cpu_ops, &xen_cpu_ops, sizeof pv_cpu_ops);
-+      memcpy((void *)&pv_apic_ops, &xen_apic_ops, sizeof pv_apic_ops);
--      x86_init.resources.memory_setup = xen_memory_setup;
--      x86_init.oem.arch_setup = xen_arch_setup;
--      x86_init.oem.banner = xen_banner;
-+      *(void **)&x86_init.resources.memory_setup = xen_memory_setup;
-+      *(void **)&x86_init.oem.arch_setup = xen_arch_setup;
-+      *(void **)&x86_init.oem.banner = xen_banner;
-       xen_init_time_ops();
-@@ -1347,7 +1343,17 @@ asmlinkage void __init xen_start_kernel(void)
+@@ -1370,7 +1366,17 @@ asmlinkage void __init xen_start_kernel(void)
        __userpte_alloc_gfp &= ~__GFP_HIGHMEM;
  
        /* Work out if we support NX */
@@ -29394,7 +31520,7 @@ index 586d838..9181904 100644
  
        xen_setup_features();
  
-@@ -1376,14 +1382,7 @@ asmlinkage void __init xen_start_kernel(void)
+@@ -1399,14 +1405,7 @@ asmlinkage void __init xen_start_kernel(void)
                pv_mmu_ops.ptep_modify_prot_commit = xen_ptep_modify_prot_commit;
        }
  
@@ -29410,48 +31536,17 @@ index 586d838..9181904 100644
  
        xen_smp_init();
  
-@@ -1450,7 +1449,7 @@ asmlinkage void __init xen_start_kernel(void)
-               add_preferred_console("tty", 0, NULL);
-               add_preferred_console("hvc", 0, NULL);
-               if (pci_xen)
--                      x86_init.pci.arch_init = pci_xen_init;
-+                      *(void **)&x86_init.pci.arch_init = pci_xen_init;
-       } else {
-               const struct dom0_vga_console_info *info =
-                       (void *)((char *)xen_start_info +
-@@ -1476,8 +1475,8 @@ asmlinkage void __init xen_start_kernel(void)
-               xen_acpi_sleep_register();
-               /* Avoid searching for BIOS MP tables */
--              x86_init.mpparse.find_smp_config = x86_init_noop;
--              x86_init.mpparse.get_smp_config = x86_init_uint_noop;
-+              *(void **)&x86_init.mpparse.find_smp_config = x86_init_noop;
-+              *(void **)&x86_init.mpparse.get_smp_config = x86_init_uint_noop;
-       }
- #ifdef CONFIG_PCI
-       /* PCI BIOS service won't work from a PV guest. */
-@@ -1583,7 +1582,7 @@ static void __init xen_hvm_guest_init(void)
-       xen_hvm_smp_init();
-       register_cpu_notifier(&xen_hvm_cpu_notifier);
-       xen_unplug_emulated_devices();
--      x86_init.irqs.intr_init = xen_init_IRQ;
-+      *(void **)&x86_init.irqs.intr_init = xen_init_IRQ;
-       xen_hvm_init_time_ops();
-       xen_hvm_init_mmu_ops();
- }
-diff --git a/arch/x86/xen/irq.c b/arch/x86/xen/irq.c
-index 01a4dc0..3ca0cc9 100644
---- a/arch/x86/xen/irq.c
-+++ b/arch/x86/xen/irq.c
-@@ -130,5 +130,5 @@ static const struct pv_irq_ops xen_irq_ops __initconst = {
- void __init xen_init_irq_ops(void)
- {
-       pv_irq_ops = xen_irq_ops;
--      x86_init.irqs.intr_init = xen_init_IRQ;
-+      *(void **)&x86_init.irqs.intr_init = xen_init_IRQ;
+@@ -1598,7 +1597,7 @@ static int __cpuinit xen_hvm_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
  }
+-static struct notifier_block xen_hvm_cpu_notifier __cpuinitdata = {
++static struct notifier_block xen_hvm_cpu_notifier = {
+       .notifier_call  = xen_hvm_cpu_notify,
+ };
 diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c
-index dcf5f2d..5f72fe7 100644
+index 01de35c..0bda07b 100644
 --- a/arch/x86/xen/mmu.c
 +++ b/arch/x86/xen/mmu.c
 @@ -1881,6 +1881,9 @@ void __init xen_setup_kernel_pagetable(pgd_t *pgd, unsigned long max_pfn)
@@ -29493,19 +31588,8 @@ index dcf5f2d..5f72fe7 100644
  
        .alloc_pud = xen_alloc_pmd_init,
        .release_pud = xen_release_pmd_init,
-@@ -2197,8 +2206,8 @@ static const struct pv_mmu_ops xen_mmu_ops __initconst = {
- void __init xen_init_mmu_ops(void)
- {
--      x86_init.mapping.pagetable_reserve = xen_mapping_pagetable_reserve;
--      x86_init.paging.pagetable_init = xen_pagetable_init;
-+      *(void **)&x86_init.mapping.pagetable_reserve = xen_mapping_pagetable_reserve;
-+      *(void **)&x86_init.paging.pagetable_init = xen_pagetable_init;
-       pv_mmu_ops = xen_mmu_ops;
-       memset(dummy_mapping, 0xff, PAGE_SIZE);
 diff --git a/arch/x86/xen/smp.c b/arch/x86/xen/smp.c
-index 353c50f..a0b9b0d 100644
+index 34bc4ce..c34aa24 100644
 --- a/arch/x86/xen/smp.c
 +++ b/arch/x86/xen/smp.c
 @@ -229,11 +229,6 @@ static void __init xen_smp_prepare_boot_cpu(void)
@@ -29552,7 +31636,7 @@ index 353c50f..a0b9b0d 100644
  #endif
        xen_setup_runstate_info(cpu);
        xen_setup_timer(cpu);
-@@ -637,7 +631,7 @@ static const struct smp_ops xen_smp_ops __initconst = {
+@@ -630,7 +624,7 @@ static const struct smp_ops xen_smp_ops __initconst = {
  
  void __init xen_smp_init(void)
  {
@@ -29561,94 +31645,8 @@ index 353c50f..a0b9b0d 100644
        xen_fill_possible_map();
        xen_init_spinlocks();
  }
-@@ -672,10 +666,10 @@ void __init xen_hvm_smp_init(void)
- {
-       if (!xen_have_vector_callback)
-               return;
--      smp_ops.smp_prepare_cpus = xen_hvm_smp_prepare_cpus;
--      smp_ops.smp_send_reschedule = xen_smp_send_reschedule;
--      smp_ops.cpu_up = xen_hvm_cpu_up;
--      smp_ops.cpu_die = xen_hvm_cpu_die;
--      smp_ops.send_call_func_ipi = xen_smp_send_call_function_ipi;
--      smp_ops.send_call_func_single_ipi = xen_smp_send_call_function_single_ipi;
-+      *(void **)&smp_ops.smp_prepare_cpus = xen_hvm_smp_prepare_cpus;
-+      *(void **)&smp_ops.smp_send_reschedule = xen_smp_send_reschedule;
-+      *(void **)&smp_ops.cpu_up = xen_hvm_cpu_up;
-+      *(void **)&smp_ops.cpu_die = xen_hvm_cpu_die;
-+      *(void **)&smp_ops.send_call_func_ipi = xen_smp_send_call_function_ipi;
-+      *(void **)&smp_ops.send_call_func_single_ipi = xen_smp_send_call_function_single_ipi;
- }
-diff --git a/arch/x86/xen/spinlock.c b/arch/x86/xen/spinlock.c
-index 83e866d..ef60385 100644
---- a/arch/x86/xen/spinlock.c
-+++ b/arch/x86/xen/spinlock.c
-@@ -390,12 +390,12 @@ void __init xen_init_spinlocks(void)
- {
-       BUILD_BUG_ON(sizeof(struct xen_spinlock) > sizeof(arch_spinlock_t));
--      pv_lock_ops.spin_is_locked = xen_spin_is_locked;
--      pv_lock_ops.spin_is_contended = xen_spin_is_contended;
--      pv_lock_ops.spin_lock = xen_spin_lock;
--      pv_lock_ops.spin_lock_flags = xen_spin_lock_flags;
--      pv_lock_ops.spin_trylock = xen_spin_trylock;
--      pv_lock_ops.spin_unlock = xen_spin_unlock;
-+      *(void **)&pv_lock_ops.spin_is_locked = xen_spin_is_locked;
-+      *(void **)&pv_lock_ops.spin_is_contended = xen_spin_is_contended;
-+      *(void **)&pv_lock_ops.spin_lock = xen_spin_lock;
-+      *(void **)&pv_lock_ops.spin_lock_flags = xen_spin_lock_flags;
-+      *(void **)&pv_lock_ops.spin_trylock = xen_spin_trylock;
-+      *(void **)&pv_lock_ops.spin_unlock = xen_spin_unlock;
- }
- #ifdef CONFIG_XEN_DEBUG_FS
-diff --git a/arch/x86/xen/time.c b/arch/x86/xen/time.c
-index 0296a95..3c51a2d 100644
---- a/arch/x86/xen/time.c
-+++ b/arch/x86/xen/time.c
-@@ -481,15 +481,15 @@ static void __init xen_time_init(void)
- void __init xen_init_time_ops(void)
- {
--      pv_time_ops = xen_time_ops;
-+      memcpy((void *)&pv_time_ops, &xen_time_ops, sizeof pv_time_ops);
--      x86_init.timers.timer_init = xen_time_init;
--      x86_init.timers.setup_percpu_clockev = x86_init_noop;
--      x86_cpuinit.setup_percpu_clockev = x86_init_noop;
-+      *(void **)&x86_init.timers.timer_init = xen_time_init;
-+      *(void **)&x86_init.timers.setup_percpu_clockev = x86_init_noop;
-+      *(void **)&x86_cpuinit.setup_percpu_clockev = x86_init_noop;
--      x86_platform.calibrate_tsc = xen_tsc_khz;
--      x86_platform.get_wallclock = xen_get_wallclock;
--      x86_platform.set_wallclock = xen_set_wallclock;
-+      *(void **)&x86_platform.calibrate_tsc = xen_tsc_khz;
-+      *(void **)&x86_platform.get_wallclock = xen_get_wallclock;
-+      *(void **)&x86_platform.set_wallclock = xen_set_wallclock;
- }
- #ifdef CONFIG_XEN_PVHVM
-@@ -514,12 +514,12 @@ void __init xen_hvm_init_time_ops(void)
-               return;
-       }
--      pv_time_ops = xen_time_ops;
--      x86_init.timers.setup_percpu_clockev = xen_time_init;
--      x86_cpuinit.setup_percpu_clockev = xen_hvm_setup_cpu_clockevents;
-+      memcpy((void *)&pv_time_ops, &xen_time_ops, sizeof pv_time_ops);
-+      *(void **)&x86_init.timers.setup_percpu_clockev = xen_time_init;
-+      *(void **)&x86_cpuinit.setup_percpu_clockev = xen_hvm_setup_cpu_clockevents;
--      x86_platform.calibrate_tsc = xen_tsc_khz;
--      x86_platform.get_wallclock = xen_get_wallclock;
--      x86_platform.set_wallclock = xen_set_wallclock;
-+      *(void **)&x86_platform.calibrate_tsc = xen_tsc_khz;
-+      *(void **)&x86_platform.get_wallclock = xen_get_wallclock;
-+      *(void **)&x86_platform.set_wallclock = xen_set_wallclock;
- }
- #endif
 diff --git a/arch/x86/xen/xen-asm_32.S b/arch/x86/xen/xen-asm_32.S
-index f9643fc..602e8af 100644
+index 33ca6e4..0ded929 100644
 --- a/arch/x86/xen/xen-asm_32.S
 +++ b/arch/x86/xen/xen-asm_32.S
 @@ -84,14 +84,14 @@ ENTRY(xen_iret)
@@ -29661,16 +31659,16 @@ index f9643fc..602e8af 100644
         */
  #ifdef CONFIG_SMP
 -      GET_THREAD_INFO(%eax)
--      movl TI_cpu(%eax), %eax
--      movl __per_cpu_offset(,%eax,4), %eax
--      mov xen_vcpu(%eax), %eax
+-      movl %ss:TI_cpu(%eax), %eax
+-      movl %ss:__per_cpu_offset(,%eax,4), %eax
+-      mov %ss:xen_vcpu(%eax), %eax
 +      push %fs
 +      mov $(__KERNEL_PERCPU), %eax
 +      mov %eax, %fs
 +      mov PER_CPU_VAR(xen_vcpu), %eax
 +      pop %fs
  #else
-       movl xen_vcpu, %eax
+       movl %ss:xen_vcpu, %eax
  #endif
 diff --git a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
 index 7faed58..ba4427c 100644
@@ -29769,7 +31767,7 @@ index af00795..2bb8105 100644
  #define XCHAL_ICACHE_SIZE             32768   /* I-cache size in bytes or 0 */
  #define XCHAL_DCACHE_SIZE             32768   /* D-cache size in bytes or 0 */
 diff --git a/block/blk-iopoll.c b/block/blk-iopoll.c
-index 58916af..9cb880b 100644
+index 58916af..eb9dbcf6 100644
 --- a/block/blk-iopoll.c
 +++ b/block/blk-iopoll.c
 @@ -77,7 +77,7 @@ void blk_iopoll_complete(struct blk_iopoll *iopoll)
@@ -29781,6 +31779,15 @@ index 58916af..9cb880b 100644
  {
        struct list_head *list = &__get_cpu_var(blk_cpu_iopoll);
        int rearm = 0, budget = blk_iopoll_budget;
+@@ -209,7 +209,7 @@ static int __cpuinit blk_iopoll_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata blk_iopoll_cpu_notifier = {
++static struct notifier_block blk_iopoll_cpu_notifier = {
+       .notifier_call  = blk_iopoll_cpu_notify,
+ };
 diff --git a/block/blk-map.c b/block/blk-map.c
 index 623e1cd..ca1e109 100644
 --- a/block/blk-map.c
@@ -29795,7 +31802,7 @@ index 623e1cd..ca1e109 100644
                bio = bio_copy_kern(q, kbuf, len, gfp_mask, reading);
        else
 diff --git a/block/blk-softirq.c b/block/blk-softirq.c
-index 467c8de..4bddc6d 100644
+index 467c8de..f3628c5 100644
 --- a/block/blk-softirq.c
 +++ b/block/blk-softirq.c
 @@ -18,7 +18,7 @@ static DEFINE_PER_CPU(struct list_head, blk_cpu_done);
@@ -29807,6 +31814,15 @@ index 467c8de..4bddc6d 100644
  {
        struct list_head *cpu_list, local_list;
  
+@@ -98,7 +98,7 @@ static int __cpuinit blk_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata blk_cpu_notifier = {
++static struct notifier_block blk_cpu_notifier = {
+       .notifier_call  = blk_cpu_notify,
+ };
 diff --git a/block/bsg.c b/block/bsg.c
 index ff64ae3..593560c 100644
 --- a/block/bsg.c
@@ -29852,7 +31868,7 @@ index 7c668c8..db3521c 100644
                        err = -EFAULT;
                        goto out;
 diff --git a/block/partitions/efi.c b/block/partitions/efi.c
-index 6296b40..417c00f 100644
+index b62fb88..bdab4c4 100644
 --- a/block/partitions/efi.c
 +++ b/block/partitions/efi.c
 @@ -234,14 +234,14 @@ static gpt_entry *alloc_read_gpt_entries(struct parsed_partitions *state,
@@ -29953,6 +31969,74 @@ index 7bdd61b..afec999 100644
  
  static void cryptd_queue_worker(struct work_struct *work);
  
+diff --git a/crypto/crypto_user.c b/crypto/crypto_user.c
+index f6d9baf..dfd511f 100644
+--- a/crypto/crypto_user.c
++++ b/crypto/crypto_user.c
+@@ -30,6 +30,8 @@
+ #include "internal.h"
++#define null_terminated(x)    (strnlen(x, sizeof(x)) < sizeof(x))
++
+ static DEFINE_MUTEX(crypto_cfg_mutex);
+ /* The crypto netlink socket */
+@@ -196,7 +198,10 @@ static int crypto_report(struct sk_buff *in_skb, struct nlmsghdr *in_nlh,
+       struct crypto_dump_info info;
+       int err;
+-      if (!p->cru_driver_name)
++      if (!null_terminated(p->cru_name) || !null_terminated(p->cru_driver_name))
++              return -EINVAL;
++
++      if (!p->cru_driver_name[0])
+               return -EINVAL;
+       alg = crypto_alg_match(p, 1);
+@@ -260,6 +265,9 @@ static int crypto_update_alg(struct sk_buff *skb, struct nlmsghdr *nlh,
+       struct nlattr *priority = attrs[CRYPTOCFGA_PRIORITY_VAL];
+       LIST_HEAD(list);
++      if (!null_terminated(p->cru_name) || !null_terminated(p->cru_driver_name))
++              return -EINVAL;
++
+       if (priority && !strlen(p->cru_driver_name))
+               return -EINVAL;
+@@ -287,6 +295,9 @@ static int crypto_del_alg(struct sk_buff *skb, struct nlmsghdr *nlh,
+       struct crypto_alg *alg;
+       struct crypto_user_alg *p = nlmsg_data(nlh);
++      if (!null_terminated(p->cru_name) || !null_terminated(p->cru_driver_name))
++              return -EINVAL;
++
+       alg = crypto_alg_match(p, 1);
+       if (!alg)
+               return -ENOENT;
+@@ -368,6 +379,9 @@ static int crypto_add_alg(struct sk_buff *skb, struct nlmsghdr *nlh,
+       struct crypto_user_alg *p = nlmsg_data(nlh);
+       struct nlattr *priority = attrs[CRYPTOCFGA_PRIORITY_VAL];
++      if (!null_terminated(p->cru_name) || !null_terminated(p->cru_driver_name))
++              return -EINVAL;
++
+       if (strlen(p->cru_driver_name))
+               exact = 1;
+diff --git a/drivers/acpi/apei/apei-internal.h b/drivers/acpi/apei/apei-internal.h
+index f220d64..d359ad6 100644
+--- a/drivers/acpi/apei/apei-internal.h
++++ b/drivers/acpi/apei/apei-internal.h
+@@ -20,7 +20,7 @@ typedef int (*apei_exec_ins_func_t)(struct apei_exec_context *ctx,
+ struct apei_exec_ins_type {
+       u32 flags;
+       apei_exec_ins_func_t run;
+-};
++} __do_const;
+ struct apei_exec_context {
+       u32 ip;
 diff --git a/drivers/acpi/apei/cper.c b/drivers/acpi/apei/cper.c
 index e6defd8..c26a225 100644
 --- a/drivers/acpi/apei/cper.c
@@ -29974,6 +32058,45 @@ index e6defd8..c26a225 100644
  }
  EXPORT_SYMBOL_GPL(cper_next_record_id);
  
+diff --git a/drivers/acpi/bgrt.c b/drivers/acpi/bgrt.c
+index be60399..778b33e8 100644
+--- a/drivers/acpi/bgrt.c
++++ b/drivers/acpi/bgrt.c
+@@ -87,8 +87,10 @@ static int __init bgrt_init(void)
+               return -ENODEV;
+       sysfs_bin_attr_init(&image_attr);
+-      image_attr.private = bgrt_image;
+-      image_attr.size = bgrt_image_size;
++      pax_open_kernel();
++      *(void **)&image_attr.private = bgrt_image;
++      *(size_t *)&image_attr.size = bgrt_image_size;
++      pax_close_kernel();
+       bgrt_kobj = kobject_create_and_add("bgrt", acpi_kobj);
+       if (!bgrt_kobj)
+diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
+index cb96296..b81293b 100644
+--- a/drivers/acpi/blacklist.c
++++ b/drivers/acpi/blacklist.c
+@@ -52,7 +52,7 @@ struct acpi_blacklist_item {
+       u32 is_critical_error;
+ };
+-static struct dmi_system_id acpi_osi_dmi_table[] __initdata;
++static const struct dmi_system_id acpi_osi_dmi_table[] __initconst;
+ /*
+  * POLICY: If *anything* doesn't work, put it on the blacklist.
+@@ -193,7 +193,7 @@ static int __init dmi_disable_osi_win7(const struct dmi_system_id *d)
+       return 0;
+ }
+-static struct dmi_system_id acpi_osi_dmi_table[] __initdata = {
++static const struct dmi_system_id acpi_osi_dmi_table[] __initconst = {
+       {
+       .callback = dmi_disable_osi_vista,
+       .ident = "Fujitsu Siemens",
 diff --git a/drivers/acpi/ec_sys.c b/drivers/acpi/ec_sys.c
 index 7586544..636a2f0 100644
 --- a/drivers/acpi/ec_sys.c
@@ -30027,36 +32150,11 @@ index 7586544..636a2f0 100644
                err = ec_write(*off, byte_write);
                if (err)
                        return err;
-diff --git a/drivers/acpi/proc.c b/drivers/acpi/proc.c
-index 27adb09..ef98796b 100644
---- a/drivers/acpi/proc.c
-+++ b/drivers/acpi/proc.c
-@@ -362,16 +362,13 @@ acpi_system_write_wakeup_device(struct file *file,
-       struct list_head *node, *next;
-       char strbuf[5];
-       char str[5] = "";
--      unsigned int len = count;
--      if (len > 4)
--              len = 4;
--      if (len < 0)
--              return -EFAULT;
-+      if (count > 4)
-+              count = 4;
--      if (copy_from_user(strbuf, buffer, len))
-+      if (copy_from_user(strbuf, buffer, count))
-               return -EFAULT;
--      strbuf[len] = '\0';
-+      strbuf[count] = '\0';
-       sscanf(strbuf, "%s", str);
-       mutex_lock(&acpi_device_lock);
 diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
-index bd4e5dc..0497b66 100644
+index e83311b..142b5cc 100644
 --- a/drivers/acpi/processor_driver.c
 +++ b/drivers/acpi/processor_driver.c
-@@ -552,7 +552,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
+@@ -558,7 +558,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
                return 0;
  #endif
  
@@ -30065,11 +32163,55 @@ index bd4e5dc..0497b66 100644
  
        /*
         * Buggy BIOS check
+diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c
+index ed9a1cc..f4a354c 100644
+--- a/drivers/acpi/processor_idle.c
++++ b/drivers/acpi/processor_idle.c
+@@ -1005,7 +1005,7 @@ static int acpi_processor_setup_cpuidle_states(struct acpi_processor *pr)
+ {
+       int i, count = CPUIDLE_DRIVER_STATE_START;
+       struct acpi_processor_cx *cx;
+-      struct cpuidle_state *state;
++      cpuidle_state_no_const *state;
+       struct cpuidle_driver *drv = &acpi_idle_driver;
+       if (!pr->flags.power_setup_done)
+diff --git a/drivers/acpi/sysfs.c b/drivers/acpi/sysfs.c
+index ea61ca9..3fdd70d 100644
+--- a/drivers/acpi/sysfs.c
++++ b/drivers/acpi/sysfs.c
+@@ -420,11 +420,11 @@ static u32 num_counters;
+ static struct attribute **all_attrs;
+ static u32 acpi_gpe_count;
+-static struct attribute_group interrupt_stats_attr_group = {
++static attribute_group_no_const interrupt_stats_attr_group = {
+       .name = "interrupts",
+ };
+-static struct kobj_attribute *counter_attrs;
++static kobj_attribute_no_const *counter_attrs;
+ static void delete_gpe_attr_array(void)
+ {
+diff --git a/drivers/ata/libahci.c b/drivers/ata/libahci.c
+index 6cd7805..07facb3 100644
+--- a/drivers/ata/libahci.c
++++ b/drivers/ata/libahci.c
+@@ -1230,7 +1230,7 @@ int ahci_kick_engine(struct ata_port *ap)
+ }
+ EXPORT_SYMBOL_GPL(ahci_kick_engine);
+-static int ahci_exec_polled_cmd(struct ata_port *ap, int pmp,
++static int __intentional_overflow(-1) ahci_exec_polled_cmd(struct ata_port *ap, int pmp,
+                               struct ata_taskfile *tf, int is_cmd, u16 flags,
+                               unsigned long timeout_msec)
+ {
 diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
-index c8ac4fe..631818e 100644
+index 46cd3f4..0871ad0 100644
 --- a/drivers/ata/libata-core.c
 +++ b/drivers/ata/libata-core.c
-@@ -4779,7 +4779,7 @@ void ata_qc_free(struct ata_queued_cmd *qc)
+@@ -4780,7 +4780,7 @@ void ata_qc_free(struct ata_queued_cmd *qc)
        struct ata_port *ap;
        unsigned int tag;
  
@@ -30078,7 +32220,7 @@ index c8ac4fe..631818e 100644
        ap = qc->ap;
  
        qc->flags = 0;
-@@ -4795,7 +4795,7 @@ void __ata_qc_complete(struct ata_queued_cmd *qc)
+@@ -4796,7 +4796,7 @@ void __ata_qc_complete(struct ata_queued_cmd *qc)
        struct ata_port *ap;
        struct ata_link *link;
  
@@ -30087,7 +32229,7 @@ index c8ac4fe..631818e 100644
        WARN_ON_ONCE(!(qc->flags & ATA_QCFLAG_ACTIVE));
        ap = qc->ap;
        link = qc->dev->link;
-@@ -5891,6 +5891,7 @@ static void ata_finalize_port_ops(struct ata_port_operations *ops)
+@@ -5892,6 +5892,7 @@ static void ata_finalize_port_ops(struct ata_port_operations *ops)
                return;
  
        spin_lock(&lock);
@@ -30095,7 +32237,7 @@ index c8ac4fe..631818e 100644
  
        for (cur = ops->inherits; cur; cur = cur->inherits) {
                void **inherit = (void **)cur;
-@@ -5904,8 +5905,9 @@ static void ata_finalize_port_ops(struct ata_port_operations *ops)
+@@ -5905,8 +5906,9 @@ static void ata_finalize_port_ops(struct ata_port_operations *ops)
                if (IS_ERR(*pp))
                        *pp = NULL;
  
@@ -30107,10 +32249,10 @@ index c8ac4fe..631818e 100644
  }
  
 diff --git a/drivers/ata/pata_arasan_cf.c b/drivers/ata/pata_arasan_cf.c
-index 371fd2c..0836c78 100644
+index 405022d..fb70e53 100644
 --- a/drivers/ata/pata_arasan_cf.c
 +++ b/drivers/ata/pata_arasan_cf.c
-@@ -861,7 +861,9 @@ static int __devinit arasan_cf_probe(struct platform_device *pdev)
+@@ -864,7 +864,9 @@ static int arasan_cf_probe(struct platform_device *pdev)
        /* Handle platform specific quirks */
        if (pdata->quirk) {
                if (pdata->quirk & CF_BROKEN_PIO) {
@@ -30135,7 +32277,7 @@ index f9b983a..887b9d8 100644
        return 0;
  }
 diff --git a/drivers/atm/ambassador.c b/drivers/atm/ambassador.c
-index ff7bb8a..568fc0b 100644
+index 77a7480..05cde58 100644
 --- a/drivers/atm/ambassador.c
 +++ b/drivers/atm/ambassador.c
 @@ -454,7 +454,7 @@ static void tx_complete (amb_dev * dev, tx_out * tx) {
@@ -30228,7 +32370,7 @@ index b22d71c..d6e1049 100644
        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 81e44f7..498ea36 100644
+index c1eb6fa..4c71be9 100644
 --- a/drivers/atm/eni.c
 +++ b/drivers/atm/eni.c
 @@ -522,7 +522,7 @@ static int rx_aal0(struct atm_vcc *vcc)
@@ -30277,7 +32419,7 @@ index 81e44f7..498ea36 100644
  dma_complete++;
        }
 diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c
-index 86fed1b..6dc4721 100644
+index b41c948..a002b17 100644
 --- a/drivers/atm/firestream.c
 +++ b/drivers/atm/firestream.c
 @@ -749,7 +749,7 @@ static void process_txdone_queue (struct fs_dev *dev, struct queue *q)
@@ -30314,10 +32456,10 @@ index 86fed1b..6dc4721 100644
                default: /* Hmm. Haven't written the code to handle the others yet... -- REW */
                        printk (KERN_WARNING "Don't know what to do with RX status %x: %s.\n", 
 diff --git a/drivers/atm/fore200e.c b/drivers/atm/fore200e.c
-index 361f5ae..7fc552d 100644
+index 204814e..cede831 100644
 --- a/drivers/atm/fore200e.c
 +++ b/drivers/atm/fore200e.c
-@@ -933,9 +933,9 @@ fore200e_tx_irq(struct fore200e* fore200e)
+@@ -931,9 +931,9 @@ fore200e_tx_irq(struct fore200e* fore200e)
  #endif
                /* check error condition */
                if (*entry->status & STATUS_ERROR)
@@ -30329,7 +32471,7 @@ index 361f5ae..7fc552d 100644
            }
        }
  
-@@ -1084,7 +1084,7 @@ fore200e_push_rpd(struct fore200e* fore200e, struct atm_vcc* vcc, struct rpd* rp
+@@ -1082,7 +1082,7 @@ fore200e_push_rpd(struct fore200e* fore200e, struct atm_vcc* vcc, struct rpd* rp
      if (skb == NULL) {
        DPRINTK(2, "unable to alloc new skb, rx PDU length = %d\n", pdu_len);
  
@@ -30338,7 +32480,7 @@ index 361f5ae..7fc552d 100644
        return -ENOMEM;
      } 
  
-@@ -1127,14 +1127,14 @@ fore200e_push_rpd(struct fore200e* fore200e, struct atm_vcc* vcc, struct rpd* rp
+@@ -1125,14 +1125,14 @@ fore200e_push_rpd(struct fore200e* fore200e, struct atm_vcc* vcc, struct rpd* rp
  
        dev_kfree_skb_any(skb);
  
@@ -30355,7 +32497,7 @@ index 361f5ae..7fc552d 100644
  
      ASSERT(atomic_read(&sk_atm(vcc)->sk_wmem_alloc) >= 0);
  
-@@ -1212,7 +1212,7 @@ fore200e_rx_irq(struct fore200e* fore200e)
+@@ -1210,7 +1210,7 @@ fore200e_rx_irq(struct fore200e* fore200e)
                DPRINTK(2, "damaged PDU on %d.%d.%d\n",
                        fore200e->atm_dev->number,
                        entry->rpd->atm_header.vpi, entry->rpd->atm_header.vci);
@@ -30364,7 +32506,7 @@ index 361f5ae..7fc552d 100644
            }
        }
  
-@@ -1657,7 +1657,7 @@ fore200e_send(struct atm_vcc *vcc, struct sk_buff *skb)
+@@ -1655,7 +1655,7 @@ fore200e_send(struct atm_vcc *vcc, struct sk_buff *skb)
                goto retry_here;
            }
  
@@ -30374,10 +32516,10 @@ index 361f5ae..7fc552d 100644
            fore200e->tx_sat++;
            DPRINTK(2, "tx queue of device %s is saturated, PDU dropped - heartbeat is %08x\n",
 diff --git a/drivers/atm/he.c b/drivers/atm/he.c
-index b182c2f..1c6fa8a 100644
+index 72b6960..cf9167a 100644
 --- a/drivers/atm/he.c
 +++ b/drivers/atm/he.c
-@@ -1709,7 +1709,7 @@ he_service_rbrq(struct he_dev *he_dev, int group)
+@@ -1699,7 +1699,7 @@ he_service_rbrq(struct he_dev *he_dev, int group)
  
                if (RBRQ_HBUF_ERR(he_dev->rbrq_head)) {
                        hprintk("HBUF_ERR!  (cid 0x%x)\n", cid);
@@ -30386,7 +32528,7 @@ index b182c2f..1c6fa8a 100644
                        goto return_host_buffers;
                }
  
-@@ -1736,7 +1736,7 @@ he_service_rbrq(struct he_dev *he_dev, int group)
+@@ -1726,7 +1726,7 @@ he_service_rbrq(struct he_dev *he_dev, int group)
                                RBRQ_LEN_ERR(he_dev->rbrq_head)
                                                        ? "LEN_ERR" : "",
                                                        vcc->vpi, vcc->vci);
@@ -30395,7 +32537,7 @@ index b182c2f..1c6fa8a 100644
                        goto return_host_buffers;
                }
  
-@@ -1788,7 +1788,7 @@ he_service_rbrq(struct he_dev *he_dev, int group)
+@@ -1778,7 +1778,7 @@ he_service_rbrq(struct he_dev *he_dev, int group)
                vcc->push(vcc, skb);
                spin_lock(&he_dev->global_lock);
  
@@ -30404,7 +32546,7 @@ index b182c2f..1c6fa8a 100644
  
  return_host_buffers:
                ++pdus_assembled;
-@@ -2114,7 +2114,7 @@ __enqueue_tpd(struct he_dev *he_dev, struct he_tpd *tpd, unsigned cid)
+@@ -2104,7 +2104,7 @@ __enqueue_tpd(struct he_dev *he_dev, struct he_tpd *tpd, unsigned cid)
                                        tpd->vcc->pop(tpd->vcc, tpd->skb);
                                else
                                        dev_kfree_skb_any(tpd->skb);
@@ -30413,7 +32555,7 @@ index b182c2f..1c6fa8a 100644
                        }
                        pci_pool_free(he_dev->tpd_pool, tpd, TPD_ADDR(tpd->status));
                        return;
-@@ -2526,7 +2526,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
+@@ -2516,7 +2516,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
                        vcc->pop(vcc, skb);
                else
                        dev_kfree_skb_any(skb);
@@ -30422,7 +32564,7 @@ index b182c2f..1c6fa8a 100644
                return -EINVAL;
        }
  
-@@ -2537,7 +2537,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
+@@ -2527,7 +2527,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
                        vcc->pop(vcc, skb);
                else
                        dev_kfree_skb_any(skb);
@@ -30431,7 +32573,7 @@ index b182c2f..1c6fa8a 100644
                return -EINVAL;
        }
  #endif
-@@ -2549,7 +2549,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
+@@ -2539,7 +2539,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
                        vcc->pop(vcc, skb);
                else
                        dev_kfree_skb_any(skb);
@@ -30440,7 +32582,7 @@ index b182c2f..1c6fa8a 100644
                spin_unlock_irqrestore(&he_dev->global_lock, flags);
                return -ENOMEM;
        }
-@@ -2591,7 +2591,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
+@@ -2581,7 +2581,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
                                        vcc->pop(vcc, skb);
                                else
                                        dev_kfree_skb_any(skb);
@@ -30449,7 +32591,7 @@ index b182c2f..1c6fa8a 100644
                                spin_unlock_irqrestore(&he_dev->global_lock, flags);
                                return -ENOMEM;
                        }
-@@ -2622,7 +2622,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
+@@ -2612,7 +2612,7 @@ he_send(struct atm_vcc *vcc, struct sk_buff *skb)
        __enqueue_tpd(he_dev, tpd, cid);
        spin_unlock_irqrestore(&he_dev->global_lock, flags);
  
@@ -30459,7 +32601,7 @@ index b182c2f..1c6fa8a 100644
        return 0;
  }
 diff --git a/drivers/atm/horizon.c b/drivers/atm/horizon.c
-index 7d01c2a..4e3ac01 100644
+index 1dc0519..1aadaf7 100644
 --- a/drivers/atm/horizon.c
 +++ b/drivers/atm/horizon.c
 @@ -1034,7 +1034,7 @@ static void rx_schedule (hrz_dev * dev, int irq) {
@@ -30481,7 +32623,7 @@ index 7d01c2a..4e3ac01 100644
        // free the skb
        hrz_kfree_skb (skb);
 diff --git a/drivers/atm/idt77252.c b/drivers/atm/idt77252.c
-index 8974bd2..b856f85 100644
+index 272f009..a18ba55 100644
 --- a/drivers/atm/idt77252.c
 +++ b/drivers/atm/idt77252.c
 @@ -812,7 +812,7 @@ drain_scq(struct idt77252_dev *card, struct vc_map *vc)
@@ -30639,7 +32781,7 @@ index 8974bd2..b856f85 100644
        }
        atomic_add(skb->truesize, &sk_atm(vcc)->sk_wmem_alloc);
 diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
-index 96cce6d..62c3ec5 100644
+index 4217f29..88f547a 100644
 --- a/drivers/atm/iphase.c
 +++ b/drivers/atm/iphase.c
 @@ -1145,7 +1145,7 @@ static int rx_pkt(struct atm_dev *dev)
@@ -30739,7 +32881,7 @@ index 96cce6d..62c3ec5 100644
               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 68c7588..7036683 100644
+index fa7d701..1e404c7 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,
@@ -30797,7 +32939,7 @@ index 68c7588..7036683 100644
        lvcc->rx.buf.ptr = &lvcc->rx.buf.start[SERVICE_GET_END(s) * 4];
        cardvcc_write(lvcc, SERVICE_GET_END(s), vcc_rxreadptr);
 diff --git a/drivers/atm/nicstar.c b/drivers/atm/nicstar.c
-index 1c70c45..300718d 100644
+index ed1d2b7..8cffc1f 100644
 --- a/drivers/atm/nicstar.c
 +++ b/drivers/atm/nicstar.c
 @@ -1654,7 +1654,7 @@ static int ns_send(struct atm_vcc *vcc, struct sk_buff *skb)
@@ -31002,10 +33144,10 @@ index 1c70c45..300718d 100644
                }
  
 diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c
-index 1853a45..cf2426d 100644
+index 0474a89..06ea4a1 100644
 --- a/drivers/atm/solos-pci.c
 +++ b/drivers/atm/solos-pci.c
-@@ -714,7 +714,7 @@ void solos_bh(unsigned long card_arg)
+@@ -838,7 +838,7 @@ void solos_bh(unsigned long card_arg)
                                }
                                atm_charge(vcc, skb->truesize);
                                vcc->push(vcc, skb);
@@ -31014,14 +33156,14 @@ index 1853a45..cf2426d 100644
                                break;
  
                        case PKT_STATUS:
-@@ -1010,7 +1010,7 @@ static uint32_t fpga_tx(struct solos_card *card)
+@@ -1117,7 +1117,7 @@ static uint32_t fpga_tx(struct solos_card *card)
                        vcc = SKB_CB(oldskb)->vcc;
  
                        if (vcc) {
 -                              atomic_inc(&vcc->stats->tx);
 +                              atomic_inc_unchecked(&vcc->stats->tx);
                                solos_pop(vcc, oldskb);
-                       } else
+                       } else {
                                dev_kfree_skb_irq(oldskb);
 diff --git a/drivers/atm/suni.c b/drivers/atm/suni.c
 index 0215934..ce9f5b1 100644
@@ -31087,7 +33229,7 @@ index 5120a96..e2572bd 100644
  }
  
 diff --git a/drivers/atm/zatm.c b/drivers/atm/zatm.c
-index abe4e20..83c4727 100644
+index 969c3c2..9b72956 100644
 --- a/drivers/atm/zatm.c
 +++ b/drivers/atm/zatm.c
 @@ -459,7 +459,7 @@ printk("dummy: 0x%08lx, 0x%08lx\n",dummy[0],dummy[1]);
@@ -31117,8 +33259,30 @@ index abe4e20..83c4727 100644
        wake_up(&zatm_vcc->tx_wait);
  }
  
+diff --git a/drivers/base/bus.c b/drivers/base/bus.c
+index 6856303..0602d70 100644
+--- a/drivers/base/bus.c
++++ b/drivers/base/bus.c
+@@ -1163,7 +1163,7 @@ int subsys_interface_register(struct subsys_interface *sif)
+               return -EINVAL;
+       mutex_lock(&subsys->p->mutex);
+-      list_add_tail(&sif->node, &subsys->p->interfaces);
++      pax_list_add_tail((struct list_head *)&sif->node, &subsys->p->interfaces);
+       if (sif->add_dev) {
+               subsys_dev_iter_init(&iter, subsys, NULL, NULL);
+               while ((dev = subsys_dev_iter_next(&iter)))
+@@ -1188,7 +1188,7 @@ void subsys_interface_unregister(struct subsys_interface *sif)
+       subsys = sif->subsys;
+       mutex_lock(&subsys->p->mutex);
+-      list_del_init(&sif->node);
++      pax_list_del_init((struct list_head *)&sif->node);
+       if (sif->remove_dev) {
+               subsys_dev_iter_init(&iter, subsys, NULL, NULL);
+               while ((dev = subsys_dev_iter_next(&iter)))
 diff --git a/drivers/base/devtmpfs.c b/drivers/base/devtmpfs.c
-index 147d1a4..d0fd4b0 100644
+index 17cf7ca..7e553e1 100644
 --- a/drivers/base/devtmpfs.c
 +++ b/drivers/base/devtmpfs.c
 @@ -347,7 +347,7 @@ int devtmpfs_mount(const char *mntdir)
@@ -31130,6 +33294,41 @@ index 147d1a4..d0fd4b0 100644
        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 fac124a..66bd4ab 100644
+--- a/drivers/base/node.c
++++ b/drivers/base/node.c
+@@ -625,7 +625,7 @@ static ssize_t print_nodes_state(enum node_states state, char *buf)
+ struct node_attr {
+       struct device_attribute attr;
+       enum node_states state;
+-};
++} __do_const;
+ static ssize_t show_node_state(struct device *dev,
+                              struct device_attribute *attr, char *buf)
+diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c
+index acc3a8d..981c236 100644
+--- a/drivers/base/power/domain.c
++++ b/drivers/base/power/domain.c
+@@ -1851,7 +1851,7 @@ int pm_genpd_attach_cpuidle(struct generic_pm_domain *genpd, int state)
+ {
+       struct cpuidle_driver *cpuidle_drv;
+       struct gpd_cpu_data *cpu_data;
+-      struct cpuidle_state *idle_state;
++      cpuidle_state_no_const *idle_state;
+       int ret = 0;
+       if (IS_ERR_OR_NULL(genpd) || state < 0)
+@@ -1919,7 +1919,7 @@ int pm_genpd_name_attach_cpuidle(const char *name, int state)
+ int pm_genpd_detach_cpuidle(struct generic_pm_domain *genpd)
+ {
+       struct gpd_cpu_data *cpu_data;
+-      struct cpuidle_state *idle_state;
++      cpuidle_state_no_const *idle_state;
+       int ret = 0;
+       if (IS_ERR_OR_NULL(genpd))
 diff --git a/drivers/base/power/wakeup.c b/drivers/base/power/wakeup.c
 index e6ee5e8..98ad7fc 100644
 --- a/drivers/base/power/wakeup.c
@@ -31169,11 +33368,33 @@ index e6ee5e8..98ad7fc 100644
        trace_wakeup_source_deactivate(ws->name, cec);
  
        split_counters(&cnt, &inpr);
+diff --git a/drivers/base/syscore.c b/drivers/base/syscore.c
+index e8d11b6..7b1b36f 100644
+--- a/drivers/base/syscore.c
++++ b/drivers/base/syscore.c
+@@ -21,7 +21,7 @@ static DEFINE_MUTEX(syscore_ops_lock);
+ void register_syscore_ops(struct syscore_ops *ops)
+ {
+       mutex_lock(&syscore_ops_lock);
+-      list_add_tail(&ops->node, &syscore_ops_list);
++      pax_list_add_tail((struct list_head *)&ops->node, &syscore_ops_list);
+       mutex_unlock(&syscore_ops_lock);
+ }
+ EXPORT_SYMBOL_GPL(register_syscore_ops);
+@@ -33,7 +33,7 @@ EXPORT_SYMBOL_GPL(register_syscore_ops);
+ void unregister_syscore_ops(struct syscore_ops *ops)
+ {
+       mutex_lock(&syscore_ops_lock);
+-      list_del(&ops->node);
++      pax_list_del((struct list_head *)&ops->node);
+       mutex_unlock(&syscore_ops_lock);
+ }
+ EXPORT_SYMBOL_GPL(unregister_syscore_ops);
 diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
-index ca83f96..69d4ea9 100644
+index ade58bc..867143d 100644
 --- a/drivers/block/cciss.c
 +++ b/drivers/block/cciss.c
-@@ -1198,6 +1198,8 @@ static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode,
+@@ -1196,6 +1196,8 @@ static int cciss_ioctl32_passthru(struct block_device *bdev, fmode_t mode,
        int err;
        u32 cp;
  
@@ -31182,7 +33403,7 @@ index ca83f96..69d4ea9 100644
        err = 0;
        err |=
            copy_from_user(&arg64.LUN_info, &arg32->LUN_info,
-@@ -3007,7 +3009,7 @@ static void start_io(ctlr_info_t *h)
+@@ -3005,7 +3007,7 @@ static void start_io(ctlr_info_t *h)
        while (!list_empty(&h->reqQ)) {
                c = list_entry(h->reqQ.next, CommandList_struct, list);
                /* can't do anything if fifo is full */
@@ -31191,7 +33412,7 @@ index ca83f96..69d4ea9 100644
                        dev_warn(&h->pdev->dev, "fifo full\n");
                        break;
                }
-@@ -3017,7 +3019,7 @@ static void start_io(ctlr_info_t *h)
+@@ -3015,7 +3017,7 @@ static void start_io(ctlr_info_t *h)
                h->Qdepth--;
  
                /* Tell the controller execute command */
@@ -31200,7 +33421,7 @@ index ca83f96..69d4ea9 100644
  
                /* Put job onto the completed Q */
                addQ(&h->cmpQ, c);
-@@ -3443,17 +3445,17 @@ startio:
+@@ -3441,17 +3443,17 @@ startio:
  
  static inline unsigned long get_next_completion(ctlr_info_t *h)
  {
@@ -31221,7 +33442,7 @@ index ca83f96..69d4ea9 100644
                (h->interrupts_enabled == 0));
  }
  
-@@ -3486,7 +3488,7 @@ static inline u32 next_command(ctlr_info_t *h)
+@@ -3484,7 +3486,7 @@ static inline u32 next_command(ctlr_info_t *h)
        u32 a;
  
        if (unlikely(!(h->transMethod & CFGTBL_Trans_Performant)))
@@ -31230,7 +33451,7 @@ index ca83f96..69d4ea9 100644
  
        if ((*(h->reply_pool_head) & 1) == (h->reply_pool_wraparound)) {
                a = *(h->reply_pool_head); /* Next cmd in ring buffer */
-@@ -4044,7 +4046,7 @@ static void __devinit cciss_put_controller_into_performant_mode(ctlr_info_t *h)
+@@ -4041,7 +4043,7 @@ static void cciss_put_controller_into_performant_mode(ctlr_info_t *h)
                trans_support & CFGTBL_Trans_use_short_tags);
  
        /* Change the access methods to the performant access methods */
@@ -31239,7 +33460,7 @@ index ca83f96..69d4ea9 100644
        h->transMethod = CFGTBL_Trans_Performant;
  
        return;
-@@ -4316,7 +4318,7 @@ static int __devinit cciss_pci_init(ctlr_info_t *h)
+@@ -4310,7 +4312,7 @@ static int cciss_pci_init(ctlr_info_t *h)
        if (prod_index < 0)
                return -ENODEV;
        h->product_name = products[prod_index].product_name;
@@ -31248,7 +33469,7 @@ index ca83f96..69d4ea9 100644
  
        if (cciss_board_disabled(h)) {
                dev_warn(&h->pdev->dev, "controller appears to be disabled\n");
-@@ -5041,7 +5043,7 @@ reinit_after_soft_reset:
+@@ -5032,7 +5034,7 @@ reinit_after_soft_reset:
        }
  
        /* make sure the board interrupts are off */
@@ -31257,7 +33478,7 @@ index ca83f96..69d4ea9 100644
        rc = cciss_request_irq(h, do_cciss_msix_intr, do_cciss_intx);
        if (rc)
                goto clean2;
-@@ -5093,7 +5095,7 @@ reinit_after_soft_reset:
+@@ -5082,7 +5084,7 @@ reinit_after_soft_reset:
                 * fake ones to scoop up any residual completions.
                 */
                spin_lock_irqsave(&h->lock, flags);
@@ -31266,7 +33487,7 @@ index ca83f96..69d4ea9 100644
                spin_unlock_irqrestore(&h->lock, flags);
                free_irq(h->intr[h->intr_mode], h);
                rc = cciss_request_irq(h, cciss_msix_discard_completions,
-@@ -5113,9 +5115,9 @@ reinit_after_soft_reset:
+@@ -5102,9 +5104,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");
@@ -31278,7 +33499,7 @@ index ca83f96..69d4ea9 100644
  
                rc = controller_reset_failed(h->cfgtable);
                if (rc)
-@@ -5138,7 +5140,7 @@ reinit_after_soft_reset:
+@@ -5127,7 +5129,7 @@ reinit_after_soft_reset:
        cciss_scsi_setup(h);
  
        /* Turn the interrupts on so we can service requests */
@@ -31287,7 +33508,7 @@ index ca83f96..69d4ea9 100644
  
        /* Get the firmware version */
        inq_buff = kzalloc(sizeof(InquiryData_struct), GFP_KERNEL);
-@@ -5210,7 +5212,7 @@ static void cciss_shutdown(struct pci_dev *pdev)
+@@ -5199,7 +5201,7 @@ static void cciss_shutdown(struct pci_dev *pdev)
        kfree(flush_buf);
        if (return_code != IO_OK)
                dev_warn(&h->pdev->dev, "Error flushing cache\n");
@@ -31310,10 +33531,10 @@ index 7fda30e..eb5dfe0 100644
        /* queue and queue Info */ 
        struct list_head reqQ;
 diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c
-index 9125bbe..eede5c8 100644
+index 3f08713..56a586a 100644
 --- a/drivers/block/cpqarray.c
 +++ b/drivers/block/cpqarray.c
-@@ -404,7 +404,7 @@ static int __devinit cpqarray_register_ctlr( int i, struct pci_dev *pdev)
+@@ -404,7 +404,7 @@ static int cpqarray_register_ctlr(int i, struct pci_dev *pdev)
        if (register_blkdev(COMPAQ_SMART2_MAJOR+i, hba[i]->devname)) {
                goto Enomem4;
        }
@@ -31322,7 +33543,7 @@ index 9125bbe..eede5c8 100644
        if (request_irq(hba[i]->intr, do_ida_intr,
                IRQF_DISABLED|IRQF_SHARED, hba[i]->devname, hba[i]))
        {
-@@ -459,7 +459,7 @@ static int __devinit cpqarray_register_ctlr( int i, struct pci_dev *pdev)
+@@ -459,7 +459,7 @@ static int cpqarray_register_ctlr(int i, struct pci_dev *pdev)
        add_timer(&hba[i]->timer);
  
        /* Enable IRQ now that spinlock and rate limit timer are set up */
@@ -31340,7 +33561,7 @@ index 9125bbe..eede5c8 100644
                        break;
                }
        }
-@@ -792,7 +792,7 @@ static int __devinit cpqarray_eisa_detect(void)
+@@ -792,7 +792,7 @@ static int cpqarray_eisa_detect(void)
                hba[ctlr]->intr = intr;
                sprintf(hba[ctlr]->devname, "ida%d", nr_ctlr);
                hba[ctlr]->product_name = products[j].product_name;
@@ -31443,11 +33664,11 @@ index be73e9d..7fbf140 100644
        cmdlist_t *reqQ;
        cmdlist_t *cmpQ;
 diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h
-index b953cc7..e3dc580 100644
+index 6b51afa..17e1191 100644
 --- a/drivers/block/drbd/drbd_int.h
 +++ b/drivers/block/drbd/drbd_int.h
-@@ -735,7 +735,7 @@ struct drbd_request;
- struct drbd_epoch {
+@@ -582,7 +582,7 @@ struct drbd_epoch {
+       struct drbd_tconn *tconn;
        struct list_head list;
        unsigned int barrier_nr;
 -      atomic_t epoch_size; /* increased on every request added. */
@@ -31455,159 +33676,71 @@ index b953cc7..e3dc580 100644
        atomic_t active;     /* increased on every req. added, and dec on every finished. */
        unsigned long flags;
  };
-@@ -1116,7 +1116,7 @@ struct drbd_conf {
-       void *int_dig_in;
-       void *int_dig_vv;
+@@ -1011,7 +1011,7 @@ struct drbd_conf {
+       int al_tr_cycle;
+       int al_tr_pos;   /* position of the next transaction in the journal */
        wait_queue_head_t seq_wait;
 -      atomic_t packet_seq;
 +      atomic_unchecked_t packet_seq;
        unsigned int peer_seq;
        spinlock_t peer_seq_lock;
        unsigned int minor;
-@@ -1658,30 +1658,30 @@ static inline int drbd_setsockopt(struct socket *sock, int level, int optname,
- static inline void drbd_tcp_cork(struct socket *sock)
- {
--      int __user val = 1;
-+      int val = 1;
-       (void) drbd_setsockopt(sock, SOL_TCP, TCP_CORK,
--                      (char __user *)&val, sizeof(val));
-+                      (char __force_user *)&val, sizeof(val));
- }
+@@ -1527,7 +1527,7 @@ static inline int drbd_setsockopt(struct socket *sock, int level, int optname,
+       char __user *uoptval;
+       int err;
  
- static inline void drbd_tcp_uncork(struct socket *sock)
- {
--      int __user val = 0;
-+      int val = 0;
-       (void) drbd_setsockopt(sock, SOL_TCP, TCP_CORK,
--                      (char __user *)&val, sizeof(val));
-+                      (char __force_user *)&val, sizeof(val));
- }
+-      uoptval = (char __user __force *)optval;
++      uoptval = (char __force_user *)optval;
  
- static inline void drbd_tcp_nodelay(struct socket *sock)
- {
--      int __user val = 1;
-+      int val = 1;
-       (void) drbd_setsockopt(sock, SOL_TCP, TCP_NODELAY,
--                      (char __user *)&val, sizeof(val));
-+                      (char __force_user *)&val, sizeof(val));
- }
- static inline void drbd_tcp_quickack(struct socket *sock)
- {
--      int __user val = 2;
-+      int val = 2;
-       (void) drbd_setsockopt(sock, SOL_TCP, TCP_QUICKACK,
--                      (char __user *)&val, sizeof(val));
-+                      (char __force_user *)&val, sizeof(val));
- }
- void drbd_bump_write_ordering(struct drbd_conf *mdev, enum write_ordering_e wo);
+       set_fs(KERNEL_DS);
+       if (level == SOL_SOCKET)
 diff --git a/drivers/block/drbd/drbd_main.c b/drivers/block/drbd/drbd_main.c
-index f55683a..2101b96 100644
+index 8c13eeb..217adee 100644
 --- a/drivers/block/drbd/drbd_main.c
 +++ b/drivers/block/drbd/drbd_main.c
-@@ -2556,7 +2556,7 @@ static int _drbd_send_ack(struct drbd_conf *mdev, enum drbd_packets cmd,
-       p.sector   = sector;
-       p.block_id = block_id;
-       p.blksize  = blksize;
--      p.seq_num  = cpu_to_be32(atomic_add_return(1, &mdev->packet_seq));
-+      p.seq_num  = cpu_to_be32(atomic_add_return_unchecked(1, &mdev->packet_seq));
-       if (!mdev->meta.socket || mdev->state.conn < C_CONNECTED)
-               return false;
-@@ -2854,7 +2854,7 @@ int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req)
-       p.sector   = cpu_to_be64(req->sector);
-       p.block_id = (unsigned long)req;
--      p.seq_num  = cpu_to_be32(atomic_add_return(1, &mdev->packet_seq));
-+      p.seq_num  = cpu_to_be32(atomic_add_return_unchecked(1, &mdev->packet_seq));
+@@ -1317,7 +1317,7 @@ static int _drbd_send_ack(struct drbd_conf *mdev, enum drbd_packet cmd,
+       p->sector = sector;
+       p->block_id = block_id;
+       p->blksize = blksize;
+-      p->seq_num = cpu_to_be32(atomic_inc_return(&mdev->packet_seq));
++      p->seq_num = cpu_to_be32(atomic_inc_return_unchecked(&mdev->packet_seq));
+       return drbd_send_command(mdev, sock, cmd, sizeof(*p), NULL, 0);
+ }
  
+@@ -1619,7 +1619,7 @@ int drbd_send_dblock(struct drbd_conf *mdev, struct drbd_request *req)
+               return -EIO;
+       p->sector = cpu_to_be64(req->i.sector);
+       p->block_id = (unsigned long)req;
+-      p->seq_num = cpu_to_be32(atomic_inc_return(&mdev->packet_seq));
++      p->seq_num = cpu_to_be32(atomic_inc_return_unchecked(&mdev->packet_seq));
        dp_flags = bio_flags_to_wire(mdev, req->master_bio->bi_rw);
+       if (mdev->state.conn >= C_SYNC_SOURCE &&
+           mdev->state.conn <= C_PAUSED_SYNC_T)
+@@ -2574,8 +2574,8 @@ void conn_destroy(struct kref *kref)
+ {
+       struct drbd_tconn *tconn = container_of(kref, struct drbd_tconn, kref);
  
-@@ -3139,7 +3139,7 @@ void drbd_init_set_defaults(struct drbd_conf *mdev)
-       atomic_set(&mdev->unacked_cnt, 0);
-       atomic_set(&mdev->local_cnt, 0);
-       atomic_set(&mdev->net_cnt, 0);
--      atomic_set(&mdev->packet_seq, 0);
-+      atomic_set_unchecked(&mdev->packet_seq, 0);
-       atomic_set(&mdev->pp_in_use, 0);
-       atomic_set(&mdev->pp_in_use_by_net, 0);
-       atomic_set(&mdev->rs_sect_in, 0);
-@@ -3221,8 +3221,8 @@ void drbd_mdev_cleanup(struct drbd_conf *mdev)
-                               mdev->receiver.t_state);
-       /* no need to lock it, I'm the only thread alive */
--      if (atomic_read(&mdev->current_epoch->epoch_size) !=  0)
--              dev_err(DEV, "epoch_size:%d\n", atomic_read(&mdev->current_epoch->epoch_size));
-+      if (atomic_read_unchecked(&mdev->current_epoch->epoch_size) !=  0)
-+              dev_err(DEV, "epoch_size:%d\n", atomic_read_unchecked(&mdev->current_epoch->epoch_size));
-       mdev->al_writ_cnt  =
-       mdev->bm_writ_cnt  =
-       mdev->read_cnt     =
-diff --git a/drivers/block/drbd/drbd_nl.c b/drivers/block/drbd/drbd_nl.c
-index edb490a..ecd69da 100644
---- a/drivers/block/drbd/drbd_nl.c
-+++ b/drivers/block/drbd/drbd_nl.c
-@@ -2407,7 +2407,7 @@ static void drbd_connector_callback(struct cn_msg *req, struct netlink_skb_parms
-       module_put(THIS_MODULE);
- }
--static atomic_t drbd_nl_seq = ATOMIC_INIT(2); /* two. */
-+static atomic_unchecked_t drbd_nl_seq = ATOMIC_INIT(2); /* two. */
- static unsigned short *
- __tl_add_blob(unsigned short *tl, enum drbd_tags tag, const void *data,
-@@ -2478,7 +2478,7 @@ void drbd_bcast_state(struct drbd_conf *mdev, union drbd_state state)
-       cn_reply->id.idx = CN_IDX_DRBD;
-       cn_reply->id.val = CN_VAL_DRBD;
--      cn_reply->seq = atomic_add_return(1, &drbd_nl_seq);
-+      cn_reply->seq = atomic_add_return_unchecked(1, &drbd_nl_seq);
-       cn_reply->ack = 0; /* not used here. */
-       cn_reply->len = sizeof(struct drbd_nl_cfg_reply) +
-               (int)((char *)tl - (char *)reply->tag_list);
-@@ -2510,7 +2510,7 @@ void drbd_bcast_ev_helper(struct drbd_conf *mdev, char *helper_name)
-       cn_reply->id.idx = CN_IDX_DRBD;
-       cn_reply->id.val = CN_VAL_DRBD;
--      cn_reply->seq = atomic_add_return(1, &drbd_nl_seq);
-+      cn_reply->seq = atomic_add_return_unchecked(1, &drbd_nl_seq);
-       cn_reply->ack = 0; /* not used here. */
-       cn_reply->len = sizeof(struct drbd_nl_cfg_reply) +
-               (int)((char *)tl - (char *)reply->tag_list);
-@@ -2588,7 +2588,7 @@ void drbd_bcast_ee(struct drbd_conf *mdev,
-       cn_reply->id.idx = CN_IDX_DRBD;
-       cn_reply->id.val = CN_VAL_DRBD;
--      cn_reply->seq = atomic_add_return(1,&drbd_nl_seq);
-+      cn_reply->seq = atomic_add_return_unchecked(1,&drbd_nl_seq);
-       cn_reply->ack = 0; // not used here.
-       cn_reply->len = sizeof(struct drbd_nl_cfg_reply) +
-               (int)((char*)tl - (char*)reply->tag_list);
-@@ -2627,7 +2627,7 @@ void drbd_bcast_sync_progress(struct drbd_conf *mdev)
-       cn_reply->id.idx = CN_IDX_DRBD;
-       cn_reply->id.val = CN_VAL_DRBD;
--      cn_reply->seq = atomic_add_return(1, &drbd_nl_seq);
-+      cn_reply->seq = atomic_add_return_unchecked(1, &drbd_nl_seq);
-       cn_reply->ack = 0; /* not used here. */
-       cn_reply->len = sizeof(struct drbd_nl_cfg_reply) +
-               (int)((char *)tl - (char *)reply->tag_list);
+-      if (atomic_read(&tconn->current_epoch->epoch_size) !=  0)
+-              conn_err(tconn, "epoch_size:%d\n", atomic_read(&tconn->current_epoch->epoch_size));
++      if (atomic_read_unchecked(&tconn->current_epoch->epoch_size) !=  0)
++              conn_err(tconn, "epoch_size:%d\n", atomic_read_unchecked(&tconn->current_epoch->epoch_size));
+       kfree(tconn->current_epoch);
+       idr_destroy(&tconn->volumes);
 diff --git a/drivers/block/drbd/drbd_receiver.c b/drivers/block/drbd/drbd_receiver.c
-index c74ca2d..860c819 100644
+index a9eccfc..f5efe87 100644
 --- a/drivers/block/drbd/drbd_receiver.c
 +++ b/drivers/block/drbd/drbd_receiver.c
-@@ -898,7 +898,7 @@ retry:
-       sock->sk->sk_sndtimeo = mdev->net_conf->timeout*HZ/10;
-       sock->sk->sk_rcvtimeo = MAX_SCHEDULE_TIMEOUT;
+@@ -833,7 +833,7 @@ int drbd_connected(struct drbd_conf *mdev)
+ {
+       int err;
  
 -      atomic_set(&mdev->packet_seq, 0);
 +      atomic_set_unchecked(&mdev->packet_seq, 0);
        mdev->peer_seq = 0;
  
-       if (drbd_send_protocol(mdev) == -1)
-@@ -999,7 +999,7 @@ static enum finish_epoch drbd_may_finish_epoch(struct drbd_conf *mdev,
+       mdev->state_mutex = mdev->tconn->agreed_pro_version < 100 ?
+@@ -1191,7 +1191,7 @@ static enum finish_epoch drbd_may_finish_epoch(struct drbd_tconn *tconn,
        do {
                next_epoch = NULL;
  
@@ -31616,7 +33749,7 @@ index c74ca2d..860c819 100644
  
                switch (ev & ~EV_CLEANUP) {
                case EV_PUT:
-@@ -1035,7 +1035,7 @@ static enum finish_epoch drbd_may_finish_epoch(struct drbd_conf *mdev,
+@@ -1231,7 +1231,7 @@ static enum finish_epoch drbd_may_finish_epoch(struct drbd_tconn *tconn,
                                        rv = FE_DESTROYED;
                        } else {
                                epoch->flags = 0;
@@ -31625,24 +33758,16 @@ index c74ca2d..860c819 100644
                                /* atomic_set(&epoch->active, 0); is already zero */
                                if (rv == FE_STILL_LIVE)
                                        rv = FE_RECYCLED;
-@@ -1210,14 +1210,14 @@ static int receive_Barrier(struct drbd_conf *mdev, enum drbd_packets cmd, unsign
-               drbd_wait_ee_list_empty(mdev, &mdev->active_ee);
-               drbd_flush(mdev);
+@@ -1449,7 +1449,7 @@ static int receive_Barrier(struct drbd_tconn *tconn, struct packet_info *pi)
+               conn_wait_active_ee_empty(tconn);
+               drbd_flush(tconn);
  
--              if (atomic_read(&mdev->current_epoch->epoch_size)) {
-+              if (atomic_read_unchecked(&mdev->current_epoch->epoch_size)) {
+-              if (atomic_read(&tconn->current_epoch->epoch_size)) {
++              if (atomic_read_unchecked(&tconn->current_epoch->epoch_size)) {
                        epoch = kmalloc(sizeof(struct drbd_epoch), GFP_NOIO);
                        if (epoch)
                                break;
-               }
-               epoch = mdev->current_epoch;
--              wait_event(mdev->ee_wait, atomic_read(&epoch->epoch_size) == 0);
-+              wait_event(mdev->ee_wait, atomic_read_unchecked(&epoch->epoch_size) == 0);
-               D_ASSERT(atomic_read(&epoch->active) == 0);
-               D_ASSERT(epoch->flags == 0);
-@@ -1229,11 +1229,11 @@ static int receive_Barrier(struct drbd_conf *mdev, enum drbd_packets cmd, unsign
+@@ -1462,11 +1462,11 @@ static int receive_Barrier(struct drbd_tconn *tconn, struct packet_info *pi)
        }
  
        epoch->flags = 0;
@@ -31650,41 +33775,59 @@ index c74ca2d..860c819 100644
 +      atomic_set_unchecked(&epoch->epoch_size, 0);
        atomic_set(&epoch->active, 0);
  
-       spin_lock(&mdev->epoch_lock);
--      if (atomic_read(&mdev->current_epoch->epoch_size)) {
-+      if (atomic_read_unchecked(&mdev->current_epoch->epoch_size)) {
-               list_add(&epoch->list, &mdev->current_epoch->list);
-               mdev->current_epoch = epoch;
-               mdev->epochs++;
-@@ -1702,7 +1702,7 @@ static int receive_Data(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned
-               spin_unlock(&mdev->peer_seq_lock);
-               drbd_send_ack_dp(mdev, P_NEG_ACK, p, data_size);
--              atomic_inc(&mdev->current_epoch->epoch_size);
-+              atomic_inc_unchecked(&mdev->current_epoch->epoch_size);
-               return drbd_drain_block(mdev, data_size);
-       }
-@@ -1732,7 +1732,7 @@ static int receive_Data(struct drbd_conf *mdev, enum drbd_packets cmd, unsigned
-       spin_lock(&mdev->epoch_lock);
-       e->epoch = mdev->current_epoch;
--      atomic_inc(&e->epoch->epoch_size);
-+      atomic_inc_unchecked(&e->epoch->epoch_size);
-       atomic_inc(&e->epoch->active);
-       spin_unlock(&mdev->epoch_lock);
-@@ -3954,7 +3954,7 @@ static void drbd_disconnect(struct drbd_conf *mdev)
-       D_ASSERT(list_empty(&mdev->done_ee));
+       spin_lock(&tconn->epoch_lock);
+-      if (atomic_read(&tconn->current_epoch->epoch_size)) {
++      if (atomic_read_unchecked(&tconn->current_epoch->epoch_size)) {
+               list_add(&epoch->list, &tconn->current_epoch->list);
+               tconn->current_epoch = epoch;
+               tconn->epochs++;
+@@ -2170,7 +2170,7 @@ static int receive_Data(struct drbd_tconn *tconn, struct packet_info *pi)
+               err = wait_for_and_update_peer_seq(mdev, peer_seq);
+               drbd_send_ack_dp(mdev, P_NEG_ACK, p, pi->size);
+-              atomic_inc(&tconn->current_epoch->epoch_size);
++              atomic_inc_unchecked(&tconn->current_epoch->epoch_size);
+               err2 = drbd_drain_block(mdev, pi->size);
+               if (!err)
+                       err = err2;
+@@ -2204,7 +2204,7 @@ static int receive_Data(struct drbd_tconn *tconn, struct packet_info *pi)
+       spin_lock(&tconn->epoch_lock);
+       peer_req->epoch = tconn->current_epoch;
+-      atomic_inc(&peer_req->epoch->epoch_size);
++      atomic_inc_unchecked(&peer_req->epoch->epoch_size);
+       atomic_inc(&peer_req->epoch->active);
+       spin_unlock(&tconn->epoch_lock);
+@@ -4346,7 +4346,7 @@ struct data_cmd {
+       int expect_payload;
+       size_t pkt_size;
+       int (*fn)(struct drbd_tconn *, struct packet_info *);
+-};
++} __do_const;
  
+ static struct data_cmd drbd_cmd_handler[] = {
+       [P_DATA]            = { 1, sizeof(struct p_data), receive_Data },
+@@ -4466,7 +4466,7 @@ static void conn_disconnect(struct drbd_tconn *tconn)
+       if (!list_empty(&tconn->current_epoch->list))
+               conn_err(tconn, "ASSERTION FAILED: tconn->current_epoch->list not empty\n");
        /* ok, no more ee's on the fly, it is safe to reset the epoch_size */
--      atomic_set(&mdev->current_epoch->epoch_size, 0);
-+      atomic_set_unchecked(&mdev->current_epoch->epoch_size, 0);
-       D_ASSERT(list_empty(&mdev->current_epoch->list));
- }
+-      atomic_set(&tconn->current_epoch->epoch_size, 0);
++      atomic_set_unchecked(&tconn->current_epoch->epoch_size, 0);
+       tconn->send.seen_any_write_yet = false;
+       conn_info(tconn, "Connection closed\n");
+@@ -5222,7 +5222,7 @@ static int tconn_finish_peer_reqs(struct drbd_tconn *tconn)
+ struct asender_cmd {
+       size_t pkt_size;
+       int (*fn)(struct drbd_tconn *tconn, struct packet_info *);
+-};
++} __do_const;
  
+ static struct asender_cmd asender_tbl[] = {
+       [P_PING]            = { 0, got_Ping },
 diff --git a/drivers/block/loop.c b/drivers/block/loop.c
-index 54046e5..7759c55 100644
+index f74f2c0..bb668af 100644
 --- a/drivers/block/loop.c
 +++ b/drivers/block/loop.c
 @@ -226,7 +226,7 @@ static int __do_lo_send_write(struct file *file,
@@ -31731,7 +33874,7 @@ index d620b44..587561e 100644
  }
  
 diff --git a/drivers/cdrom/gdrom.c b/drivers/cdrom/gdrom.c
-index 75d485a..2809958 100644
+index d59cdcb..11afddf 100644
 --- a/drivers/cdrom/gdrom.c
 +++ b/drivers/cdrom/gdrom.c
 @@ -491,7 +491,6 @@ static struct cdrom_device_ops gdrom_ops = {
@@ -31790,7 +33933,7 @@ index 21cb980..f15107c 100644
                    return -EINVAL;
            else
 diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c
-index dfd7876..c0b0885 100644
+index fe6d4be..89f32100 100644
 --- a/drivers/char/hpet.c
 +++ b/drivers/char/hpet.c
 @@ -571,7 +571,7 @@ static inline unsigned long hpet_time_div(struct hpets *hpets,
@@ -31803,7 +33946,7 @@ index dfd7876..c0b0885 100644
  {
        struct hpet_timer __iomem *timer;
 diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
-index a0c84bb..9edcf60 100644
+index 053201b0..8335cce 100644
 --- a/drivers/char/ipmi/ipmi_msghandler.c
 +++ b/drivers/char/ipmi/ipmi_msghandler.c
 @@ -420,7 +420,7 @@ struct ipmi_smi {
@@ -31837,7 +33980,7 @@ index a0c84bb..9edcf60 100644
        intf->proc_dir = NULL;
  
 diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c
-index 32a6c7e..f6966a9 100644
+index 1c7fdcd..4899100 100644
 --- a/drivers/char/ipmi/ipmi_si_intf.c
 +++ b/drivers/char/ipmi/ipmi_si_intf.c
 @@ -275,7 +275,7 @@ struct smi_info {
@@ -31871,7 +34014,7 @@ index 32a6c7e..f6966a9 100644
        new_smi->interrupt_disabled = 1;
        atomic_set(&new_smi->stop_operation, 0);
 diff --git a/drivers/char/mem.c b/drivers/char/mem.c
-index 0537903..121c699 100644
+index c6fa3bc..4ca3e42 100644
 --- a/drivers/char/mem.c
 +++ b/drivers/char/mem.c
 @@ -18,6 +18,7 @@
@@ -32020,10 +34163,10 @@ index 9df78e2..01ba9ae 100644
  
        *ppos = i;
 diff --git a/drivers/char/pcmcia/synclink_cs.c b/drivers/char/pcmcia/synclink_cs.c
-index 21721d2..4e98777 100644
+index b66eaa0..2619d1b 100644
 --- a/drivers/char/pcmcia/synclink_cs.c
 +++ b/drivers/char/pcmcia/synclink_cs.c
-@@ -2346,9 +2346,9 @@ static void mgslpc_close(struct tty_struct *tty, struct file * filp)
+@@ -2348,9 +2348,9 @@ static void mgslpc_close(struct tty_struct *tty, struct file * filp)
  
        if (debug_level >= DEBUG_LEVEL_INFO)
                printk("%s(%d):mgslpc_close(%s) entry, count=%d\n",
@@ -32035,7 +34178,7 @@ index 21721d2..4e98777 100644
  
        if (tty_port_close_start(port, tty, filp) == 0)
                goto cleanup;
-@@ -2366,7 +2366,7 @@ static void mgslpc_close(struct tty_struct *tty, struct file * filp)
+@@ -2368,7 +2368,7 @@ static void mgslpc_close(struct tty_struct *tty, struct file * filp)
  cleanup:
        if (debug_level >= DEBUG_LEVEL_INFO)
                printk("%s(%d):mgslpc_close(%s) exit, count=%d\n", __FILE__,__LINE__,
@@ -32044,7 +34187,7 @@ index 21721d2..4e98777 100644
  }
  
  /* Wait until the transmitter is empty.
-@@ -2508,7 +2508,7 @@ static int mgslpc_open(struct tty_struct *tty, struct file * filp)
+@@ -2510,7 +2510,7 @@ static int mgslpc_open(struct tty_struct *tty, struct file * filp)
  
        if (debug_level >= DEBUG_LEVEL_INFO)
                printk("%s(%d):mgslpc_open(%s), old ref count = %d\n",
@@ -32053,7 +34196,7 @@ index 21721d2..4e98777 100644
  
        /* If port is closing, signal caller to try again */
        if (tty_hung_up_p(filp) || port->flags & ASYNC_CLOSING){
-@@ -2528,11 +2528,11 @@ static int mgslpc_open(struct tty_struct *tty, struct file * filp)
+@@ -2530,11 +2530,11 @@ static int mgslpc_open(struct tty_struct *tty, struct file * filp)
                goto cleanup;
        }
        spin_lock(&port->lock);
@@ -32067,7 +34210,7 @@ index 21721d2..4e98777 100644
                /* 1st open on this device, init hardware */
                retval = startup(info, tty);
                if (retval < 0)
-@@ -3886,7 +3886,7 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,
+@@ -3889,7 +3889,7 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,
        unsigned short new_crctype;
  
        /* return error if TTY interface open */
@@ -32076,7 +34219,7 @@ index 21721d2..4e98777 100644
                return -EBUSY;
  
        switch (encoding)
-@@ -3989,7 +3989,7 @@ static int hdlcdev_open(struct net_device *dev)
+@@ -3992,7 +3992,7 @@ static int hdlcdev_open(struct net_device *dev)
  
        /* arbitrate between network and tty opens */
        spin_lock_irqsave(&info->netlock, flags);
@@ -32085,7 +34228,7 @@ index 21721d2..4e98777 100644
                printk(KERN_WARNING "%s: hdlc_open returning busy\n", dev->name);
                spin_unlock_irqrestore(&info->netlock, flags);
                return -EBUSY;
-@@ -4078,7 +4078,7 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
+@@ -4081,7 +4081,7 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
                printk("%s:hdlcdev_ioctl(%s)\n",__FILE__,dev->name);
  
        /* return error if TTY interface open */
@@ -32095,7 +34238,7 @@ index 21721d2..4e98777 100644
  
        if (cmd != SIOCWANDEV)
 diff --git a/drivers/char/random.c b/drivers/char/random.c
-index b86eae9..b9c2ed7 100644
+index 57d4b15..253207b 100644
 --- a/drivers/char/random.c
 +++ b/drivers/char/random.c
 @@ -272,8 +272,13 @@
@@ -32130,15 +34273,7 @@ index b86eae9..b9c2ed7 100644
  #if 0
        /* x^2048 + x^1638 + x^1231 + x^819 + x^411 + x + 1  -- 115 */
        { 2048, 1638,   1231,   819,    411,    1 },
-@@ -437,6 +449,7 @@ struct entropy_store {
-       int entropy_count;
-       int entropy_total;
-       unsigned int initialized:1;
-+      bool last_data_init;
-       __u8 last_data[EXTRACT_SIZE];
- };
-@@ -527,8 +540,8 @@ static void _mix_pool_bytes(struct entropy_store *r, const void *in,
+@@ -524,8 +536,8 @@ static void _mix_pool_bytes(struct entropy_store *r, const void *in,
                input_rotate += i ? 7 : 14;
        }
  
@@ -32149,36 +34284,7 @@ index b86eae9..b9c2ed7 100644
        smp_wmb();
  
        if (out)
-@@ -957,6 +970,10 @@ static ssize_t extract_entropy(struct entropy_store *r, void *buf,
-       ssize_t ret = 0, i;
-       __u8 tmp[EXTRACT_SIZE];
-+      /* if last_data isn't primed, we need EXTRACT_SIZE extra bytes */
-+      if (fips_enabled && !r->last_data_init)
-+              nbytes += EXTRACT_SIZE;
-+
-       trace_extract_entropy(r->name, nbytes, r->entropy_count, _RET_IP_);
-       xfer_secondary_pool(r, nbytes);
-       nbytes = account(r, nbytes, min, reserved);
-@@ -967,6 +984,17 @@ static ssize_t extract_entropy(struct entropy_store *r, void *buf,
-               if (fips_enabled) {
-                       unsigned long flags;
-+
-+                      /* prime last_data value if need be, per fips 140-2 */
-+                      if (!r->last_data_init) {
-+                              spin_lock_irqsave(&r->lock, flags);
-+                              memcpy(r->last_data, tmp, EXTRACT_SIZE);
-+                              r->last_data_init = true;
-+                              nbytes -= EXTRACT_SIZE;
-+                              spin_unlock_irqrestore(&r->lock, flags);
-+                              extract_buf(r, tmp);
-+                      }
-+
-                       spin_lock_irqsave(&r->lock, flags);
-                       if (!memcmp(tmp, r->last_data, EXTRACT_SIZE))
-                               panic("Hardware RNG duplicated output!\n");
-@@ -1008,7 +1036,7 @@ static ssize_t extract_entropy_user(struct entropy_store *r, void __user *buf,
+@@ -1024,7 +1036,7 @@ static ssize_t extract_entropy_user(struct entropy_store *r, void __user *buf,
  
                extract_buf(r, tmp);
                i = min_t(int, nbytes, EXTRACT_SIZE);
@@ -32187,15 +34293,7 @@ index b86eae9..b9c2ed7 100644
                        ret = -EFAULT;
                        break;
                }
-@@ -1086,6 +1114,7 @@ static void init_std_data(struct entropy_store *r)
-       r->entropy_count = 0;
-       r->entropy_total = 0;
-+      r->last_data_init = false;
-       mix_pool_bytes(r, &now, sizeof(now), NULL);
-       for (i = r->poolinfo->POOLBYTES; i > 0; i -= sizeof(rv)) {
-               if (!arch_get_random_long(&rv))
-@@ -1342,7 +1371,7 @@ EXPORT_SYMBOL(generate_random_uuid);
+@@ -1360,7 +1372,7 @@ EXPORT_SYMBOL(generate_random_uuid);
  #include <linux/sysctl.h>
  
  static int min_read_thresh = 8, min_write_thresh;
@@ -32204,8 +34302,17 @@ index b86eae9..b9c2ed7 100644
  static int max_write_thresh = INPUT_POOL_WORDS * 32;
  static char sysctl_bootid[16];
  
+@@ -1376,7 +1388,7 @@ static char sysctl_bootid[16];
+ static int proc_do_uuid(ctl_table *table, int write,
+                       void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      ctl_table fake_table;
++      ctl_table_no_const fake_table;
+       unsigned char buf[64], tmp_uuid[16], *uuid;
+       uuid = table->data;
 diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c
-index 9b4f011..b7e0a1a 100644
+index d780295..b29f3a8 100644
 --- a/drivers/char/sonypi.c
 +++ b/drivers/char/sonypi.c
 @@ -54,6 +54,7 @@
@@ -32310,10 +34417,10 @@ index 84ddc55..1d32f1e 100644
        return 0;
  }
 diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
-index 8ab9c3d..c3e65d3 100644
+index a4b7aa0..2faa0bc 100644
 --- a/drivers/char/virtio_console.c
 +++ b/drivers/char/virtio_console.c
-@@ -622,7 +622,7 @@ static ssize_t fill_readbuf(struct port *port, char *out_buf, size_t out_count,
+@@ -685,7 +685,7 @@ static ssize_t fill_readbuf(struct port *port, char *out_buf, size_t out_count,
        if (to_user) {
                ssize_t ret;
  
@@ -32322,7 +34429,7 @@ index 8ab9c3d..c3e65d3 100644
                if (ret)
                        return -EFAULT;
        } else {
-@@ -721,7 +721,7 @@ static ssize_t port_fops_read(struct file *filp, char __user *ubuf,
+@@ -784,7 +784,7 @@ static ssize_t port_fops_read(struct file *filp, char __user *ubuf,
        if (!port_has_data(port) && !port->host_connected)
                return 0;
  
@@ -32331,39 +34438,312 @@ index 8ab9c3d..c3e65d3 100644
  }
  
  static int wait_port_writable(struct port *port, bool nonblock)
-diff --git a/drivers/edac/edac_mc.c b/drivers/edac/edac_mc.c
-index 75c0a1a..96ba8f6 100644
---- a/drivers/edac/edac_mc.c
-+++ b/drivers/edac/edac_mc.c
-@@ -340,7 +340,7 @@ struct mem_ctl_info *edac_mc_alloc(unsigned mc_num,
-       /*
-        * Alocate and fill the csrow/channels structs
-        */
--      mci->csrows = kcalloc(sizeof(*mci->csrows), tot_csrows, GFP_KERNEL);
-+      mci->csrows = kcalloc(tot_csrows, sizeof(*mci->csrows), GFP_KERNEL);
-       if (!mci->csrows)
-               goto error;
-       for (row = 0; row < tot_csrows; row++) {
-@@ -351,7 +351,7 @@ struct mem_ctl_info *edac_mc_alloc(unsigned mc_num,
-               csr->csrow_idx = row;
-               csr->mci = mci;
-               csr->nr_channels = tot_channels;
--              csr->channels = kcalloc(sizeof(*csr->channels), tot_channels,
-+              csr->channels = kcalloc(tot_channels, sizeof(*csr->channels),
-                                       GFP_KERNEL);
-               if (!csr->channels)
-                       goto error;
-@@ -369,7 +369,7 @@ struct mem_ctl_info *edac_mc_alloc(unsigned mc_num,
-       /*
-        * Allocate and fill the dimm structs
-        */
--      mci->dimms  = kcalloc(sizeof(*mci->dimms), tot_dimms, GFP_KERNEL);
-+      mci->dimms  = kcalloc(tot_dimms, sizeof(*mci->dimms), GFP_KERNEL);
-       if (!mci->dimms)
-               goto error;
+diff --git a/drivers/clocksource/arm_generic.c b/drivers/clocksource/arm_generic.c
+index 8ae1a61..9c00613 100644
+--- a/drivers/clocksource/arm_generic.c
++++ b/drivers/clocksource/arm_generic.c
+@@ -181,7 +181,7 @@ static int __cpuinit arch_timer_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata arch_timer_cpu_nb = {
++static struct notifier_block arch_timer_cpu_nb = {
+       .notifier_call = arch_timer_cpu_notify,
+ };
+diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c
+index 7b0d49d..134fac9 100644
+--- a/drivers/cpufreq/acpi-cpufreq.c
++++ b/drivers/cpufreq/acpi-cpufreq.c
+@@ -172,7 +172,7 @@ static ssize_t show_global_boost(struct kobject *kobj,
+       return sprintf(buf, "%u\n", boost_enabled);
+ }
+-static struct global_attr global_boost = __ATTR(boost, 0644,
++static global_attr_no_const global_boost = __ATTR(boost, 0644,
+                                               show_global_boost,
+                                               store_global_boost);
+@@ -712,8 +712,11 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
+       data->acpi_data = per_cpu_ptr(acpi_perf_data, cpu);
+       per_cpu(acfreq_data, cpu) = data;
+-      if (cpu_has(c, X86_FEATURE_CONSTANT_TSC))
+-              acpi_cpufreq_driver.flags |= CPUFREQ_CONST_LOOPS;
++      if (cpu_has(c, X86_FEATURE_CONSTANT_TSC)) {
++              pax_open_kernel();
++              *(u8 *)&acpi_cpufreq_driver.flags |= CPUFREQ_CONST_LOOPS;
++              pax_close_kernel();
++      }
+       result = acpi_processor_register_performance(data->acpi_data, cpu);
+       if (result)
+@@ -835,7 +838,9 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
+               policy->cur = acpi_cpufreq_guess_freq(data, policy->cpu);
+               break;
+       case ACPI_ADR_SPACE_FIXED_HARDWARE:
+-              acpi_cpufreq_driver.get = get_cur_freq_on_cpu;
++              pax_open_kernel();
++              *(void **)&acpi_cpufreq_driver.get = get_cur_freq_on_cpu;
++              pax_close_kernel();
+               policy->cur = get_cur_freq_on_cpu(cpu);
+               break;
+       default:
+@@ -846,8 +851,11 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy *policy)
+       acpi_processor_notify_smm(THIS_MODULE);
+       /* Check for APERF/MPERF support in hardware */
+-      if (boot_cpu_has(X86_FEATURE_APERFMPERF))
+-              acpi_cpufreq_driver.getavg = cpufreq_get_measured_perf;
++      if (boot_cpu_has(X86_FEATURE_APERFMPERF)) {
++              pax_open_kernel();
++              *(void **)&acpi_cpufreq_driver.getavg = cpufreq_get_measured_perf;
++              pax_close_kernel();
++      }
+       pr_debug("CPU%u - ACPI performance management activated.\n", cpu);
+       for (i = 0; i < perf->state_count; i++)
+diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c
+index 1f93dbd..305cef1 100644
+--- a/drivers/cpufreq/cpufreq.c
++++ b/drivers/cpufreq/cpufreq.c
+@@ -1843,7 +1843,7 @@ static int __cpuinit cpufreq_cpu_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __refdata cpufreq_cpu_notifier = {
++static struct notifier_block cpufreq_cpu_notifier = {
+     .notifier_call = cpufreq_cpu_callback,
+ };
+@@ -1875,8 +1875,11 @@ int cpufreq_register_driver(struct cpufreq_driver *driver_data)
+       pr_debug("trying to register driver %s\n", driver_data->name);
+-      if (driver_data->setpolicy)
+-              driver_data->flags |= CPUFREQ_CONST_LOOPS;
++      if (driver_data->setpolicy) {
++              pax_open_kernel();
++              *(u8 *)&driver_data->flags |= CPUFREQ_CONST_LOOPS;
++              pax_close_kernel();
++      }
+       spin_lock_irqsave(&cpufreq_driver_lock, flags);
+       if (cpufreq_driver) {
+diff --git a/drivers/cpufreq/cpufreq_governor.c b/drivers/cpufreq/cpufreq_governor.c
+index 6c5f1d3..c7e2f35e 100644
+--- a/drivers/cpufreq/cpufreq_governor.c
++++ b/drivers/cpufreq/cpufreq_governor.c
+@@ -243,7 +243,7 @@ int cpufreq_governor_dbs(struct dbs_data *dbs_data,
+                * governor, thus we are bound to jiffes/HZ
+                */
+               if (dbs_data->governor == GOV_CONSERVATIVE) {
+-                      struct cs_ops *ops = dbs_data->gov_ops;
++                      const struct cs_ops *ops = dbs_data->gov_ops;
+                       cpufreq_register_notifier(ops->notifier_block,
+                                       CPUFREQ_TRANSITION_NOTIFIER);
+@@ -251,7 +251,7 @@ int cpufreq_governor_dbs(struct dbs_data *dbs_data,
+                       dbs_data->min_sampling_rate = MIN_SAMPLING_RATE_RATIO *
+                               jiffies_to_usecs(10);
+               } else {
+-                      struct od_ops *ops = dbs_data->gov_ops;
++                      const struct od_ops *ops = dbs_data->gov_ops;
+                       od_tuners->io_is_busy = ops->io_busy();
+               }
+@@ -268,7 +268,7 @@ second_time:
+                       cs_dbs_info->enable = 1;
+                       cs_dbs_info->requested_freq = policy->cur;
+               } else {
+-                      struct od_ops *ops = dbs_data->gov_ops;
++                      const struct od_ops *ops = dbs_data->gov_ops;
+                       od_dbs_info->rate_mult = 1;
+                       od_dbs_info->sample_type = OD_NORMAL_SAMPLE;
+                       ops->powersave_bias_init_cpu(cpu);
+@@ -289,7 +289,7 @@ second_time:
+               mutex_destroy(&cpu_cdbs->timer_mutex);
+               dbs_data->enable--;
+               if (!dbs_data->enable) {
+-                      struct cs_ops *ops = dbs_data->gov_ops;
++                      const struct cs_ops *ops = dbs_data->gov_ops;
+                       sysfs_remove_group(cpufreq_global_kobject,
+                                       dbs_data->attr_group);
+diff --git a/drivers/cpufreq/cpufreq_governor.h b/drivers/cpufreq/cpufreq_governor.h
+index f661654..6c8e638 100644
+--- a/drivers/cpufreq/cpufreq_governor.h
++++ b/drivers/cpufreq/cpufreq_governor.h
+@@ -142,7 +142,7 @@ struct dbs_data {
+       void (*gov_check_cpu)(int cpu, unsigned int load);
+       /* Governor specific ops, see below */
+-      void *gov_ops;
++      const void *gov_ops;
+ };
+ /* Governor specific ops, will be passed to dbs_data->gov_ops */
+diff --git a/drivers/cpufreq/cpufreq_stats.c b/drivers/cpufreq/cpufreq_stats.c
+index 9d7732b..0b1a793 100644
+--- a/drivers/cpufreq/cpufreq_stats.c
++++ b/drivers/cpufreq/cpufreq_stats.c
+@@ -340,7 +340,7 @@ static int __cpuinit cpufreq_stat_cpu_callback(struct notifier_block *nfb,
+ }
+ /* priority=1 so this will get called before cpufreq_remove_dev */
+-static struct notifier_block cpufreq_stat_cpu_notifier __refdata = {
++static struct notifier_block cpufreq_stat_cpu_notifier = {
+       .notifier_call = cpufreq_stat_cpu_callback,
+       .priority = 1,
+ };
+diff --git a/drivers/cpufreq/p4-clockmod.c b/drivers/cpufreq/p4-clockmod.c
+index 827629c9..0bc6a03 100644
+--- a/drivers/cpufreq/p4-clockmod.c
++++ b/drivers/cpufreq/p4-clockmod.c
+@@ -167,10 +167,14 @@ static unsigned int cpufreq_p4_get_frequency(struct cpuinfo_x86 *c)
+               case 0x0F: /* Core Duo */
+               case 0x16: /* Celeron Core */
+               case 0x1C: /* Atom */
+-                      p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
++                      pax_open_kernel();
++                      *(u8 *)&p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
++                      pax_close_kernel();
+                       return speedstep_get_frequency(SPEEDSTEP_CPU_PCORE);
+               case 0x0D: /* Pentium M (Dothan) */
+-                      p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
++                      pax_open_kernel();
++                      *(u8 *)&p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
++                      pax_close_kernel();
+                       /* fall through */
+               case 0x09: /* Pentium M (Banias) */
+                       return speedstep_get_frequency(SPEEDSTEP_CPU_PM);
+@@ -182,7 +186,9 @@ static unsigned int cpufreq_p4_get_frequency(struct cpuinfo_x86 *c)
+       /* on P-4s, the TSC runs with constant frequency independent whether
+        * throttling is active or not. */
+-      p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
++      pax_open_kernel();
++      *(u8 *)&p4clockmod_driver.flags |= CPUFREQ_CONST_LOOPS;
++      pax_close_kernel();
+       if (speedstep_detect_processor() == SPEEDSTEP_CPU_P4M) {
+               printk(KERN_WARNING PFX "Warning: Pentium 4-M detected. "
+diff --git a/drivers/cpufreq/speedstep-centrino.c b/drivers/cpufreq/speedstep-centrino.c
+index 3a953d5..f5993f6 100644
+--- a/drivers/cpufreq/speedstep-centrino.c
++++ b/drivers/cpufreq/speedstep-centrino.c
+@@ -353,8 +353,11 @@ static int centrino_cpu_init(struct cpufreq_policy *policy)
+           !cpu_has(cpu, X86_FEATURE_EST))
+               return -ENODEV;
+-      if (cpu_has(cpu, X86_FEATURE_CONSTANT_TSC))
+-              centrino_driver.flags |= CPUFREQ_CONST_LOOPS;
++      if (cpu_has(cpu, X86_FEATURE_CONSTANT_TSC)) {
++              pax_open_kernel();
++              *(u8 *)&centrino_driver.flags |= CPUFREQ_CONST_LOOPS;
++              pax_close_kernel();
++      }
+       if (policy->cpu != 0)
+               return -ENODEV;
+diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
+index e1f6860..f8de20b 100644
+--- a/drivers/cpuidle/cpuidle.c
++++ b/drivers/cpuidle/cpuidle.c
+@@ -279,7 +279,7 @@ static int poll_idle(struct cpuidle_device *dev,
+ static void poll_idle_init(struct cpuidle_driver *drv)
+ {
+-      struct cpuidle_state *state = &drv->states[0];
++      cpuidle_state_no_const *state = &drv->states[0];
+       snprintf(state->name, CPUIDLE_NAME_LEN, "POLL");
+       snprintf(state->desc, CPUIDLE_DESC_LEN, "CPUIDLE CORE POLL IDLE");
+diff --git a/drivers/cpuidle/governor.c b/drivers/cpuidle/governor.c
+index ea2f8e7..70ac501 100644
+--- a/drivers/cpuidle/governor.c
++++ b/drivers/cpuidle/governor.c
+@@ -87,7 +87,7 @@ int cpuidle_register_governor(struct cpuidle_governor *gov)
+       mutex_lock(&cpuidle_lock);
+       if (__cpuidle_find_governor(gov->name) == NULL) {
+               ret = 0;
+-              list_add_tail(&gov->governor_list, &cpuidle_governors);
++              pax_list_add_tail((struct list_head *)&gov->governor_list, &cpuidle_governors);
+               if (!cpuidle_curr_governor ||
+                   cpuidle_curr_governor->rating < gov->rating)
+                       cpuidle_switch_governor(gov);
+@@ -135,7 +135,7 @@ void cpuidle_unregister_governor(struct cpuidle_governor *gov)
+               new_gov = cpuidle_replace_governor(gov->rating);
+               cpuidle_switch_governor(new_gov);
+       }
+-      list_del(&gov->governor_list);
++      pax_list_del((struct list_head *)&gov->governor_list);
+       mutex_unlock(&cpuidle_lock);
+ }
+diff --git a/drivers/cpuidle/sysfs.c b/drivers/cpuidle/sysfs.c
+index 428754a..8bdf9cc 100644
+--- a/drivers/cpuidle/sysfs.c
++++ b/drivers/cpuidle/sysfs.c
+@@ -131,7 +131,7 @@ static struct attribute *cpuidle_switch_attrs[] = {
+       NULL
+ };
+-static struct attribute_group cpuidle_attr_group = {
++static attribute_group_no_const cpuidle_attr_group = {
+       .attrs = cpuidle_default_attrs,
+       .name = "cpuidle",
+ };
+diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c
+index 3b36797..289c16a 100644
+--- a/drivers/devfreq/devfreq.c
++++ b/drivers/devfreq/devfreq.c
+@@ -588,7 +588,7 @@ int devfreq_add_governor(struct devfreq_governor *governor)
+               goto err_out;
+       }
+-      list_add(&governor->node, &devfreq_governor_list);
++      pax_list_add((struct list_head *)&governor->node, &devfreq_governor_list);
+       list_for_each_entry(devfreq, &devfreq_list, node) {
+               int ret = 0;
+@@ -676,7 +676,7 @@ int devfreq_remove_governor(struct devfreq_governor *governor)
+               }
+       }
+-      list_del(&governor->node);
++      pax_list_del((struct list_head *)&governor->node);
+ err_out:
+       mutex_unlock(&devfreq_list_lock);
+diff --git a/drivers/dma/sh/shdma.c b/drivers/dma/sh/shdma.c
+index b70709b..1d8d02a 100644
+--- a/drivers/dma/sh/shdma.c
++++ b/drivers/dma/sh/shdma.c
+@@ -476,7 +476,7 @@ static int sh_dmae_nmi_handler(struct notifier_block *self,
+       return ret;
+ }
  
+-static struct notifier_block sh_dmae_nmi_notifier __read_mostly = {
++static struct notifier_block sh_dmae_nmi_notifier = {
+       .notifier_call  = sh_dmae_nmi_handler,
+       /* Run before NMI debug handler and KGDB */
+diff --git a/drivers/edac/edac_mc_sysfs.c b/drivers/edac/edac_mc_sysfs.c
+index 0ca1ca7..6e6f454 100644
+--- a/drivers/edac/edac_mc_sysfs.c
++++ b/drivers/edac/edac_mc_sysfs.c
+@@ -148,7 +148,7 @@ static const char *edac_caps[] = {
+ struct dev_ch_attribute {
+       struct device_attribute attr;
+       int channel;
+-};
++} __do_const;
+ #define DEVICE_CHANNEL(_name, _mode, _show, _store, _var) \
+       struct dev_ch_attribute dev_attr_legacy_##_name = \
 diff --git a/drivers/edac/edac_pci_sysfs.c b/drivers/edac/edac_pci_sysfs.c
-index 1bfb207..0d059c2 100644
+index 0056c4d..23b54d9 100644
 --- a/drivers/edac/edac_pci_sysfs.c
 +++ b/drivers/edac/edac_pci_sysfs.c
 @@ -26,8 +26,8 @@ static int edac_pci_log_pe = 1;              /* log PCI parity errors */
@@ -32377,6 +34757,15 @@ index 1bfb207..0d059c2 100644
  
  static struct kobject *edac_pci_top_main_kobj;
  static atomic_t edac_pci_sysfs_refcount = ATOMIC_INIT(0);
+@@ -235,7 +235,7 @@ struct edac_pci_dev_attribute {
+       void *value;
+        ssize_t(*show) (void *, char *);
+        ssize_t(*store) (void *, const char *, size_t);
+-};
++} __do_const;
+ /* Set of show/store abstract level functions for PCI Parity object */
+ static ssize_t edac_pci_dev_show(struct kobject *kobj, struct attribute *attr,
 @@ -579,7 +579,7 @@ static void edac_pci_dev_parity_test(struct pci_dev *dev)
                        edac_printk(KERN_CRIT, EDAC_PCI,
                                "Signaled System Error on %s\n",
@@ -32431,7 +34820,7 @@ index 1bfb207..0d059c2 100644
                        }
                }
        }
-@@ -676,7 +676,7 @@ void edac_pci_do_parity_check(void)
+@@ -672,7 +672,7 @@ void edac_pci_do_parity_check(void)
        if (!check_pci_errors)
                return;
  
@@ -32440,7 +34829,7 @@ index 1bfb207..0d059c2 100644
  
        /* scan all PCI devices looking for a Parity Error on devices and
         * bridges.
-@@ -688,7 +688,7 @@ void edac_pci_do_parity_check(void)
+@@ -684,7 +684,7 @@ void edac_pci_do_parity_check(void)
        /* Only if operator has selected panic on PCI Error */
        if (edac_pci_get_panic_on_pe()) {
                /* If the count is different 'after' from 'before' */
@@ -32450,13 +34839,13 @@ index 1bfb207..0d059c2 100644
        }
  }
 diff --git a/drivers/edac/mce_amd.h b/drivers/edac/mce_amd.h
-index 8c87a5e..a19cbd7 100644
+index 6796799..99e8377 100644
 --- a/drivers/edac/mce_amd.h
 +++ b/drivers/edac/mce_amd.h
-@@ -80,7 +80,7 @@ extern const char * const ii_msgs[];
+@@ -78,7 +78,7 @@ extern const char * const ii_msgs[];
  struct amd_decoder_ops {
-       bool (*dc_mce)(u16, u8);
-       bool (*ic_mce)(u16, u8);
+       bool (*mc0_mce)(u16, u8);
+       bool (*mc1_mce)(u16, u8);
 -};
 +} __no_const;
  
@@ -32489,6 +34878,19 @@ index f8d2287..5aaf4db 100644
                return -EINVAL;
  
        r  = kmalloc(sizeof(*r), GFP_KERNEL);
+diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c
+index af3e8aa..eb2f227 100644
+--- a/drivers/firewire/core-device.c
++++ b/drivers/firewire/core-device.c
+@@ -232,7 +232,7 @@ EXPORT_SYMBOL(fw_device_enable_phys_dma);
+ struct config_rom_attribute {
+       struct device_attribute attr;
+       u32 key;
+-};
++} __do_const;
+ static ssize_t show_immediate(struct device *dev,
+                             struct device_attribute *dattr, char *buf)
 diff --git a/drivers/firewire/core-transaction.c b/drivers/firewire/core-transaction.c
 index 28a94c7..58da63a 100644
 --- a/drivers/firewire/core-transaction.c
@@ -32513,11 +34915,24 @@ index 515a42c..5ecf3ba 100644
  
  void fw_card_initialize(struct fw_card *card,
                const struct fw_card_driver *driver, struct device *device);
+diff --git a/drivers/firmware/dmi-id.c b/drivers/firmware/dmi-id.c
+index 94a58a0..f5eba42 100644
+--- a/drivers/firmware/dmi-id.c
++++ b/drivers/firmware/dmi-id.c
+@@ -16,7 +16,7 @@
+ struct dmi_device_attribute{
+       struct device_attribute dev_attr;
+       int field;
+-};
++} __do_const;
+ #define to_dmi_dev_attr(_dev_attr) \
+       container_of(_dev_attr, struct dmi_device_attribute, dev_attr)
 diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c
-index 982f1f5..d21e5da 100644
+index 4cd392d..4b629e1 100644
 --- a/drivers/firmware/dmi_scan.c
 +++ b/drivers/firmware/dmi_scan.c
-@@ -491,11 +491,6 @@ void __init dmi_scan_machine(void)
+@@ -490,11 +490,6 @@ void __init dmi_scan_machine(void)
                }
        }
        else {
@@ -32529,7 +34944,7 @@ index 982f1f5..d21e5da 100644
                p = dmi_ioremap(0xF0000, 0x10000);
                if (p == NULL)
                        goto error;
-@@ -770,7 +765,7 @@ int dmi_walk(void (*decode)(const struct dmi_header *, void *),
+@@ -769,7 +764,7 @@ int dmi_walk(void (*decode)(const struct dmi_header *, void *),
        if (buf == NULL)
                return -1;
  
@@ -32539,24 +34954,57 @@ index 982f1f5..d21e5da 100644
        iounmap(buf);
        return 0;
 diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c
-index bfd8f43..133189c 100644
+index b07cb37..2a51037 100644
 --- a/drivers/firmware/efivars.c
 +++ b/drivers/firmware/efivars.c
-@@ -1234,9 +1234,9 @@ efivars_init(void)
-               return -ENOMEM;
-       }
+@@ -138,7 +138,7 @@ struct efivar_attribute {
+ };
  
--      ops.get_variable = efi.get_variable;
--      ops.set_variable = efi.set_variable;
--      ops.get_next_variable = efi.get_next_variable;
-+      *(void **)&ops.get_variable = efi.get_variable;
-+      *(void **)&ops.set_variable = efi.set_variable;
-+      *(void **)&ops.get_next_variable = efi.get_next_variable;
-       error = register_efivars(&__efivars, &ops, efi_kobj);
-       if (error)
-               goto err_put;
+ static struct efivars __efivars;
+-static struct efivar_operations ops;
++static efivar_operations_no_const ops __read_only;
+ #define PSTORE_EFI_ATTRIBUTES \
+       (EFI_VARIABLE_NON_VOLATILE | \
+@@ -1834,7 +1834,7 @@ efivar_create_sysfs_entry(struct efivars *efivars,
+ static int
+ create_efivars_bin_attributes(struct efivars *efivars)
+ {
+-      struct bin_attribute *attr;
++      bin_attribute_no_const *attr;
+       int error;
+       /* new_var */
+diff --git a/drivers/firmware/google/memconsole.c b/drivers/firmware/google/memconsole.c
+index 2a90ba6..07f3733 100644
+--- a/drivers/firmware/google/memconsole.c
++++ b/drivers/firmware/google/memconsole.c
+@@ -147,7 +147,9 @@ static int __init memconsole_init(void)
+       if (!found_memconsole())
+               return -ENODEV;
+-      memconsole_bin_attr.size = memconsole_length;
++      pax_open_kernel();
++      *(size_t *)&memconsole_bin_attr.size = memconsole_length;
++      pax_close_kernel();
+       ret = sysfs_create_bin_file(firmware_kobj, &memconsole_bin_attr);
+diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c
+index 6f2306d..af9476a 100644
+--- a/drivers/gpio/gpio-ich.c
++++ b/drivers/gpio/gpio-ich.c
+@@ -69,7 +69,7 @@ struct ichx_desc {
+       /* Some chipsets have quirks, let these use their own request/get */
+       int (*request)(struct gpio_chip *chip, unsigned offset);
+       int (*get)(struct gpio_chip *chip, unsigned offset);
+-};
++} __do_const;
+ static struct {
+       spinlock_t lock;
 diff --git a/drivers/gpio/gpio-vr41xx.c b/drivers/gpio/gpio-vr41xx.c
-index 82d5c20..44a7177 100644
+index 9902732..64b62dd 100644
 --- a/drivers/gpio/gpio-vr41xx.c
 +++ b/drivers/gpio/gpio-vr41xx.c
 @@ -204,7 +204,7 @@ static int giu_get_irq(unsigned int irq)
@@ -32569,10 +35017,10 @@ index 82d5c20..44a7177 100644
        return -EINVAL;
  }
 diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
-index 1227adf..f2301c2 100644
+index 7b2d378..cc947ea 100644
 --- a/drivers/gpu/drm/drm_crtc_helper.c
 +++ b/drivers/gpu/drm/drm_crtc_helper.c
-@@ -286,7 +286,7 @@ static bool drm_encoder_crtc_ok(struct drm_encoder *encoder,
+@@ -319,7 +319,7 @@ static bool drm_encoder_crtc_ok(struct drm_encoder *encoder,
        struct drm_crtc *tmp;
        int crtc_mask = 1;
  
@@ -32582,7 +35030,7 @@ index 1227adf..f2301c2 100644
        dev = crtc->dev;
  
 diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
-index be174ca..0bcbb71 100644
+index be174ca..7f38143 100644
 --- a/drivers/gpu/drm/drm_drv.c
 +++ b/drivers/gpu/drm/drm_drv.c
 @@ -307,7 +307,7 @@ module_exit(drm_core_exit);
@@ -32594,6 +35042,15 @@ index be174ca..0bcbb71 100644
  {
        int len;
  
+@@ -377,7 +377,7 @@ long drm_ioctl(struct file *filp,
+       struct drm_file *file_priv = filp->private_data;
+       struct drm_device *dev;
+       struct drm_ioctl_desc *ioctl;
+-      drm_ioctl_t *func;
++      drm_ioctl_no_const_t func;
+       unsigned int nr = DRM_IOCTL_NR(cmd);
+       int retcode = -EINVAL;
+       char stack_kdata[128];
 @@ -390,7 +390,7 @@ long drm_ioctl(struct file *filp,
                return -ENODEV;
  
@@ -32782,7 +35239,7 @@ index d4b20ce..77a8d41 100644
  #if defined(__i386__)
                pgprot = pgprot_val(vma->vm_page_prot);
 diff --git a/drivers/gpu/drm/drm_ioc32.c b/drivers/gpu/drm/drm_ioc32.c
-index 2f4c434..764794b 100644
+index 2f4c434..dd12cd2 100644
 --- a/drivers/gpu/drm/drm_ioc32.c
 +++ b/drivers/gpu/drm/drm_ioc32.c
 @@ -457,7 +457,7 @@ static int compat_drm_infobufs(struct file *file, unsigned int cmd,
@@ -32803,8 +35260,38 @@ index 2f4c434..764794b 100644
  
        if (__put_user(count, &request->count)
            || __put_user(list, &request->list))
+@@ -1016,7 +1016,7 @@ static int compat_drm_wait_vblank(struct file *file, unsigned int cmd,
+       return 0;
+ }
+-drm_ioctl_compat_t *drm_compat_ioctls[] = {
++drm_ioctl_compat_t drm_compat_ioctls[] = {
+       [DRM_IOCTL_NR(DRM_IOCTL_VERSION32)] = compat_drm_version,
+       [DRM_IOCTL_NR(DRM_IOCTL_GET_UNIQUE32)] = compat_drm_getunique,
+       [DRM_IOCTL_NR(DRM_IOCTL_GET_MAP32)] = compat_drm_getmap,
+@@ -1062,7 +1062,6 @@ drm_ioctl_compat_t *drm_compat_ioctls[] = {
+ long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+ {
+       unsigned int nr = DRM_IOCTL_NR(cmd);
+-      drm_ioctl_compat_t *fn;
+       int ret;
+       /* Assume that ioctls without an explicit compat routine will just
+@@ -1072,10 +1071,8 @@ long drm_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+       if (nr >= ARRAY_SIZE(drm_compat_ioctls))
+               return drm_ioctl(filp, cmd, arg);
+-      fn = drm_compat_ioctls[nr];
+-
+-      if (fn != NULL)
+-              ret = (*fn) (filp, cmd, arg);
++      if (drm_compat_ioctls[nr] != NULL)
++              ret = (*drm_compat_ioctls[nr]) (filp, cmd, arg);
+       else
+               ret = drm_ioctl(filp, cmd, arg);
 diff --git a/drivers/gpu/drm/drm_ioctl.c b/drivers/gpu/drm/drm_ioctl.c
-index 23dd975..63e9801 100644
+index e77bd8b..1571b85 100644
 --- a/drivers/gpu/drm/drm_ioctl.c
 +++ b/drivers/gpu/drm/drm_ioctl.c
 @@ -252,7 +252,7 @@ int drm_getstats(struct drm_device *dev, void *data,
@@ -32839,10 +35326,10 @@ index d752c96..fe08455 100644
        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 c236fd2..6b5f2e7 100644
+index 200e104..59facda 100644
 --- a/drivers/gpu/drm/drm_stub.c
 +++ b/drivers/gpu/drm/drm_stub.c
-@@ -511,7 +511,7 @@ void drm_unplug_dev(struct drm_device *dev)
+@@ -516,7 +516,7 @@ void drm_unplug_dev(struct drm_device *dev)
  
        drm_device_set_unplugged(dev);
  
@@ -32893,7 +35380,7 @@ index 6e0acad..93c8289 100644
        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 3a1a495..995c093 100644
+index 261efc8e..27af8a5 100644
 --- a/drivers/gpu/drm/i915/i915_debugfs.c
 +++ b/drivers/gpu/drm/i915/i915_debugfs.c
 @@ -496,7 +496,7 @@ static int i915_interrupt_info(struct seq_file *m, void *data)
@@ -32906,10 +35393,10 @@ index 3a1a495..995c093 100644
                if (IS_GEN6(dev) || IS_GEN7(dev)) {
                        seq_printf(m,
 diff --git a/drivers/gpu/drm/i915/i915_dma.c b/drivers/gpu/drm/i915/i915_dma.c
-index 61ae104..f8a4bc1 100644
+index 99daa89..84ebd44 100644
 --- a/drivers/gpu/drm/i915/i915_dma.c
 +++ b/drivers/gpu/drm/i915/i915_dma.c
-@@ -1274,7 +1274,7 @@ static bool i915_switcheroo_can_switch(struct pci_dev *pdev)
+@@ -1253,7 +1253,7 @@ static bool i915_switcheroo_can_switch(struct pci_dev *pdev)
        bool can_switch;
  
        spin_lock(&dev->count_lock);
@@ -32919,11 +35406,11 @@ index 61ae104..f8a4bc1 100644
        return can_switch;
  }
 diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
-index 92f1750..3beba74 100644
+index 7339a4b..445aaba 100644
 --- a/drivers/gpu/drm/i915/i915_drv.h
 +++ b/drivers/gpu/drm/i915/i915_drv.h
-@@ -430,7 +430,7 @@ typedef struct drm_i915_private {
+@@ -656,7 +656,7 @@ typedef struct drm_i915_private {
+       drm_dma_handle_t *status_page_dmah;
        struct resource mch_res;
  
 -      atomic_t irq_received;
@@ -32931,16 +35418,16 @@ index 92f1750..3beba74 100644
  
        /* protects the irq masks */
        spinlock_t irq_lock;
-@@ -1055,7 +1055,7 @@ struct drm_i915_gem_object {
+@@ -1102,7 +1102,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.
         */
 -      atomic_t pending_flip;
 +      atomic_unchecked_t pending_flip;
  };
+ #define to_gem_object(obj) (&((struct drm_i915_gem_object *)(obj))->base)
  
- #define to_intel_bo(x) container_of(x, struct drm_i915_gem_object, base)
-@@ -1558,7 +1558,7 @@ extern struct i2c_adapter *intel_gmbus_get_adapter(
+@@ -1633,7 +1633,7 @@ extern struct i2c_adapter *intel_gmbus_get_adapter(
                struct drm_i915_private *dev_priv, unsigned port);
  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);
@@ -32950,10 +35437,10 @@ index 92f1750..3beba74 100644
        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 67036e9..b9f1357 100644
+index 7adf5a7..e24fb51 100644
 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c
 +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
-@@ -681,7 +681,7 @@ i915_gem_execbuffer_move_to_gpu(struct intel_ring_buffer *ring,
+@@ -672,7 +672,7 @@ i915_gem_execbuffer_move_to_gpu(struct intel_ring_buffer *ring,
                        i915_gem_clflush_object(obj);
  
                if (obj->base.pending_write_domain)
@@ -32962,7 +35449,7 @@ index 67036e9..b9f1357 100644
  
                flush_domains |= obj->base.write_domain;
        }
-@@ -712,9 +712,9 @@ i915_gem_check_execbuffer(struct drm_i915_gem_execbuffer2 *exec)
+@@ -703,9 +703,9 @@ i915_gem_check_execbuffer(struct drm_i915_gem_execbuffer2 *exec)
  
  static int
  validate_exec_list(struct drm_i915_gem_exec_object2 *exec,
@@ -32971,14 +35458,58 @@ index 67036e9..b9f1357 100644
  {
 -      int i;
 +      unsigned int i;
+       int relocs_total = 0;
+       int relocs_max = INT_MAX / sizeof(struct drm_i915_gem_relocation_entry);
  
-       for (i = 0; i < count; i++) {
-               char __user *ptr = (char __user *)(uintptr_t)exec[i].relocs_ptr;
+@@ -1202,7 +1202,7 @@ i915_gem_execbuffer2(struct drm_device *dev, void *data,
+               return -ENOMEM;
+       }
+       ret = copy_from_user(exec2_list,
+-                           (struct drm_i915_relocation_entry __user *)
++                           (struct drm_i915_gem_exec_object2 __user *)
+                            (uintptr_t) args->buffers_ptr,
+                            sizeof(*exec2_list) * args->buffer_count);
+       if (ret != 0) {
+diff --git a/drivers/gpu/drm/i915/i915_ioc32.c b/drivers/gpu/drm/i915/i915_ioc32.c
+index 3c59584..500f2e9 100644
+--- a/drivers/gpu/drm/i915/i915_ioc32.c
++++ b/drivers/gpu/drm/i915/i915_ioc32.c
+@@ -181,7 +181,7 @@ static int compat_i915_alloc(struct file *file, unsigned int cmd,
+                        (unsigned long)request);
+ }
+-static drm_ioctl_compat_t *i915_compat_ioctls[] = {
++static drm_ioctl_compat_t i915_compat_ioctls[] = {
+       [DRM_I915_BATCHBUFFER] = compat_i915_batchbuffer,
+       [DRM_I915_CMDBUFFER] = compat_i915_cmdbuffer,
+       [DRM_I915_GETPARAM] = compat_i915_getparam,
+@@ -202,18 +202,15 @@ static drm_ioctl_compat_t *i915_compat_ioctls[] = {
+ long i915_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+ {
+       unsigned int nr = DRM_IOCTL_NR(cmd);
+-      drm_ioctl_compat_t *fn = NULL;
+       int ret;
+       if (nr < DRM_COMMAND_BASE)
+               return drm_compat_ioctl(filp, cmd, arg);
+-      if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(i915_compat_ioctls))
+-              fn = i915_compat_ioctls[nr - DRM_COMMAND_BASE];
+-
+-      if (fn != NULL)
++      if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(i915_compat_ioctls)) {
++              drm_ioctl_compat_t fn = i915_compat_ioctls[nr - DRM_COMMAND_BASE];
+               ret = (*fn) (filp, cmd, arg);
+-      else
++      } else
+               ret = drm_ioctl(filp, cmd, arg);
+       return ret;
 diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
-index dc29ace..137d83a 100644
+index fe84338..a863190 100644
 --- a/drivers/gpu/drm/i915/i915_irq.c
 +++ b/drivers/gpu/drm/i915/i915_irq.c
-@@ -531,7 +531,7 @@ static irqreturn_t valleyview_irq_handler(DRM_IRQ_ARGS)
+@@ -535,7 +535,7 @@ static irqreturn_t valleyview_irq_handler(int irq, void *arg)
        u32 pipe_stats[I915_MAX_PIPES];
        bool blc_event;
  
@@ -32987,7 +35518,7 @@ index dc29ace..137d83a 100644
  
        while (true) {
                iir = I915_READ(VLV_IIR);
-@@ -678,7 +678,7 @@ static irqreturn_t ivybridge_irq_handler(DRM_IRQ_ARGS)
+@@ -688,7 +688,7 @@ static irqreturn_t ivybridge_irq_handler(int irq, void *arg)
        irqreturn_t ret = IRQ_NONE;
        int i;
  
@@ -32996,16 +35527,16 @@ index dc29ace..137d83a 100644
  
        /* disable master interrupt before clearing iir  */
        de_ier = I915_READ(DEIER);
-@@ -753,7 +753,7 @@ static irqreturn_t ironlake_irq_handler(DRM_IRQ_ARGS)
+@@ -760,7 +760,7 @@ static irqreturn_t ironlake_irq_handler(int irq, void *arg)
+       int ret = IRQ_NONE;
        u32 de_iir, gt_iir, de_ier, pch_iir, pm_iir;
-       u32 hotplug_mask;
  
 -      atomic_inc(&dev_priv->irq_received);
 +      atomic_inc_unchecked(&dev_priv->irq_received);
  
        /* disable master interrupt before clearing iir  */
        de_ier = I915_READ(DEIER);
-@@ -1762,7 +1762,7 @@ static void ironlake_irq_preinstall(struct drm_device *dev)
+@@ -1787,7 +1787,7 @@ static void ironlake_irq_preinstall(struct drm_device *dev)
  {
        drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
  
@@ -33014,7 +35545,7 @@ index dc29ace..137d83a 100644
  
        I915_WRITE(HWSTAM, 0xeffe);
  
-@@ -1788,7 +1788,7 @@ static void valleyview_irq_preinstall(struct drm_device *dev)
+@@ -1813,7 +1813,7 @@ static void valleyview_irq_preinstall(struct drm_device *dev)
        drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
        int pipe;
  
@@ -33023,7 +35554,7 @@ index dc29ace..137d83a 100644
  
        /* VLV magic */
        I915_WRITE(VLV_IMR, 0);
-@@ -2093,7 +2093,7 @@ static void i8xx_irq_preinstall(struct drm_device * dev)
+@@ -2108,7 +2108,7 @@ static void i8xx_irq_preinstall(struct drm_device * dev)
        drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
        int pipe;
  
@@ -33032,7 +35563,7 @@ index dc29ace..137d83a 100644
  
        for_each_pipe(pipe)
                I915_WRITE(PIPESTAT(pipe), 0);
-@@ -2144,7 +2144,7 @@ static irqreturn_t i8xx_irq_handler(DRM_IRQ_ARGS)
+@@ -2159,7 +2159,7 @@ static irqreturn_t i8xx_irq_handler(int irq, void *arg)
                I915_DISPLAY_PLANE_A_FLIP_PENDING_INTERRUPT |
                I915_DISPLAY_PLANE_B_FLIP_PENDING_INTERRUPT;
  
@@ -33041,7 +35572,7 @@ index dc29ace..137d83a 100644
  
        iir = I915_READ16(IIR);
        if (iir == 0)
-@@ -2229,7 +2229,7 @@ static void i915_irq_preinstall(struct drm_device * dev)
+@@ -2244,7 +2244,7 @@ static void i915_irq_preinstall(struct drm_device * dev)
        drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
        int pipe;
  
@@ -33050,7 +35581,7 @@ index dc29ace..137d83a 100644
  
        if (I915_HAS_HOTPLUG(dev)) {
                I915_WRITE(PORT_HOTPLUG_EN, 0);
-@@ -2324,7 +2324,7 @@ static irqreturn_t i915_irq_handler(DRM_IRQ_ARGS)
+@@ -2339,7 +2339,7 @@ static irqreturn_t i915_irq_handler(int irq, void *arg)
        };
        int pipe, ret = IRQ_NONE;
  
@@ -33059,7 +35590,7 @@ index dc29ace..137d83a 100644
  
        iir = I915_READ(IIR);
        do {
-@@ -2450,7 +2450,7 @@ static void i965_irq_preinstall(struct drm_device * dev)
+@@ -2465,7 +2465,7 @@ static void i965_irq_preinstall(struct drm_device * dev)
        drm_i915_private_t *dev_priv = (drm_i915_private_t *) dev->dev_private;
        int pipe;
  
@@ -33068,7 +35599,7 @@ index dc29ace..137d83a 100644
  
        I915_WRITE(PORT_HOTPLUG_EN, 0);
        I915_WRITE(PORT_HOTPLUG_STAT, I915_READ(PORT_HOTPLUG_STAT));
-@@ -2557,7 +2557,7 @@ static irqreturn_t i965_irq_handler(DRM_IRQ_ARGS)
+@@ -2572,7 +2572,7 @@ static irqreturn_t i965_irq_handler(int irq, void *arg)
        int irq_received;
        int ret = IRQ_NONE, pipe;
  
@@ -33078,10 +35609,10 @@ index dc29ace..137d83a 100644
        iir = I915_READ(IIR);
  
 diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
-index 4d3c7c6..eaac87b 100644
+index e6e4df7..6a9a1bd 100644
 --- a/drivers/gpu/drm/i915/intel_display.c
 +++ b/drivers/gpu/drm/i915/intel_display.c
-@@ -2131,7 +2131,7 @@ intel_finish_fb(struct drm_framebuffer *old_fb)
+@@ -2255,7 +2255,7 @@ intel_finish_fb(struct drm_framebuffer *old_fb)
  
        wait_event(dev_priv->pending_flip_queue,
                   atomic_read(&dev_priv->mm.wedged) ||
@@ -33090,7 +35621,7 @@ index 4d3c7c6..eaac87b 100644
  
        /* Big Hammer, we also need to ensure that any pending
         * MI_WAIT_FOR_EVENT inside a user batch buffer on the
-@@ -6221,8 +6221,7 @@ static void do_intel_finish_page_flip(struct drm_device *dev,
+@@ -7122,8 +7122,7 @@ static void do_intel_finish_page_flip(struct drm_device *dev,
  
        obj = work->old_fb_obj;
  
@@ -33100,7 +35631,7 @@ index 4d3c7c6..eaac87b 100644
        wake_up(&dev_priv->pending_flip_queue);
  
        queue_work(dev_priv->wq, &work->work);
-@@ -6589,7 +6588,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
+@@ -7486,7 +7485,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.
         */
@@ -33109,15 +35640,62 @@ index 4d3c7c6..eaac87b 100644
        atomic_inc(&intel_crtc->unpin_work_count);
  
        ret = dev_priv->display.queue_flip(dev, crtc, fb, obj);
-@@ -6606,7 +6605,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
+@@ -7504,7 +7503,7 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
  cleanup_pending:
        atomic_dec(&intel_crtc->unpin_work_count);
+       crtc->fb = old_fb;
 -      atomic_sub(1 << intel_crtc->plane, &work->old_fb_obj->pending_flip);
 +      atomic_sub_unchecked(1 << intel_crtc->plane, &work->old_fb_obj->pending_flip);
        drm_gem_object_unreference(&work->old_fb_obj->base);
        drm_gem_object_unreference(&obj->base);
        mutex_unlock(&dev->struct_mutex);
+@@ -8846,13 +8845,13 @@ struct intel_quirk {
+       int subsystem_vendor;
+       int subsystem_device;
+       void (*hook)(struct drm_device *dev);
+-};
++} __do_const;
+ /* For systems that don't have a meaningful PCI subdevice/subvendor ID */
+ struct intel_dmi_quirk {
+       void (*hook)(struct drm_device *dev);
+       const struct dmi_system_id (*dmi_id_list)[];
+-};
++} __do_const;
+ static int intel_dmi_reverse_brightness(const struct dmi_system_id *id)
+ {
+@@ -8860,18 +8859,20 @@ static int intel_dmi_reverse_brightness(const struct dmi_system_id *id)
+       return 1;
+ }
++static const struct dmi_system_id intel_dmi_quirks_table[] = {
++      {
++              .callback = intel_dmi_reverse_brightness,
++              .ident = "NCR Corporation",
++              .matches = {DMI_MATCH(DMI_SYS_VENDOR, "NCR Corporation"),
++                          DMI_MATCH(DMI_PRODUCT_NAME, ""),
++              },
++      },
++      { }  /* terminating entry */
++};
++
+ static const struct intel_dmi_quirk intel_dmi_quirks[] = {
+       {
+-              .dmi_id_list = &(const struct dmi_system_id[]) {
+-                      {
+-                              .callback = intel_dmi_reverse_brightness,
+-                              .ident = "NCR Corporation",
+-                              .matches = {DMI_MATCH(DMI_SYS_VENDOR, "NCR Corporation"),
+-                                          DMI_MATCH(DMI_PRODUCT_NAME, ""),
+-                              },
+-                      },
+-                      { }  /* terminating entry */
+-              },
++              .dmi_id_list = &intel_dmi_quirks_table,
+               .hook = quirk_invert_brightness,
+       },
+ };
 diff --git a/drivers/gpu/drm/mga/mga_drv.h b/drivers/gpu/drm/mga/mga_drv.h
 index 54558a0..2d97005 100644
 --- a/drivers/gpu/drm/mga/mga_drv.h
@@ -33134,6 +35712,41 @@ index 54558a0..2d97005 100644
        u32 next_fence_to_post;
  
        unsigned int fb_cpp;
+diff --git a/drivers/gpu/drm/mga/mga_ioc32.c b/drivers/gpu/drm/mga/mga_ioc32.c
+index 709e90d..89a1c0d 100644
+--- a/drivers/gpu/drm/mga/mga_ioc32.c
++++ b/drivers/gpu/drm/mga/mga_ioc32.c
+@@ -189,7 +189,7 @@ static int compat_mga_dma_bootstrap(struct file *file, unsigned int cmd,
+       return 0;
+ }
+-drm_ioctl_compat_t *mga_compat_ioctls[] = {
++drm_ioctl_compat_t mga_compat_ioctls[] = {
+       [DRM_MGA_INIT] = compat_mga_init,
+       [DRM_MGA_GETPARAM] = compat_mga_getparam,
+       [DRM_MGA_DMA_BOOTSTRAP] = compat_mga_dma_bootstrap,
+@@ -207,18 +207,15 @@ drm_ioctl_compat_t *mga_compat_ioctls[] = {
+ long mga_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+ {
+       unsigned int nr = DRM_IOCTL_NR(cmd);
+-      drm_ioctl_compat_t *fn = NULL;
+       int ret;
+       if (nr < DRM_COMMAND_BASE)
+               return drm_compat_ioctl(filp, cmd, arg);
+-      if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(mga_compat_ioctls))
+-              fn = mga_compat_ioctls[nr - DRM_COMMAND_BASE];
+-
+-      if (fn != NULL)
++      if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(mga_compat_ioctls)) {
++              drm_ioctl_compat_t fn = mga_compat_ioctls[nr - DRM_COMMAND_BASE];
+               ret = (*fn) (filp, cmd, arg);
+-      else
++      } else
+               ret = drm_ioctl(filp, cmd, arg);
+       return ret;
 diff --git a/drivers/gpu/drm/mga/mga_irq.c b/drivers/gpu/drm/mga/mga_irq.c
 index 598c281..60d590e 100644
 --- a/drivers/gpu/drm/mga/mga_irq.c
@@ -33175,10 +35788,10 @@ index 598c281..60d590e 100644
  
        *sequence = cur_fence;
 diff --git a/drivers/gpu/drm/nouveau/nouveau_bios.c b/drivers/gpu/drm/nouveau/nouveau_bios.c
-index 09fdef2..57f5c3b 100644
+index 865eddf..62c4cc3 100644
 --- a/drivers/gpu/drm/nouveau/nouveau_bios.c
 +++ b/drivers/gpu/drm/nouveau/nouveau_bios.c
-@@ -1240,7 +1240,7 @@ parse_bit_U_tbl_entry(struct drm_device *dev, struct nvbios *bios,
+@@ -1015,7 +1015,7 @@ static int parse_bit_tmds_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 *);
@@ -33188,7 +35801,7 @@ index 09fdef2..57f5c3b 100644
  #define BIT_TABLE(id, funcid) ((struct bit_table){ id, parse_bit_##funcid##_tbl_entry })
  
 diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.h b/drivers/gpu/drm/nouveau/nouveau_drm.h
-index a101699..a163f0a 100644
+index aa89eb9..d45d38b 100644
 --- a/drivers/gpu/drm/nouveau/nouveau_drm.h
 +++ b/drivers/gpu/drm/nouveau/nouveau_drm.h
 @@ -80,7 +80,7 @@ struct nouveau_drm {
@@ -33214,7 +35827,7 @@ index cdb83ac..27f0a16 100644
  #define nouveau_fence(drm) ((struct nouveau_fence_priv *)(drm)->fence)
  
 diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouveau/nouveau_gem.c
-index 5e2f521..0d21436 100644
+index 8bf695c..9fbc90a 100644
 --- a/drivers/gpu/drm/nouveau/nouveau_gem.c
 +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c
 @@ -321,7 +321,7 @@ validate_init(struct nouveau_channel *chan, struct drm_file *file_priv,
@@ -33226,11 +35839,24 @@ index 5e2f521..0d21436 100644
  retry:
        if (++trycnt > 100000) {
                NV_ERROR(drm, "%s failed and gave up.\n", __func__);
+diff --git a/drivers/gpu/drm/nouveau/nouveau_ioc32.c b/drivers/gpu/drm/nouveau/nouveau_ioc32.c
+index 08214bc..9208577 100644
+--- a/drivers/gpu/drm/nouveau/nouveau_ioc32.c
++++ b/drivers/gpu/drm/nouveau/nouveau_ioc32.c
+@@ -50,7 +50,7 @@ long nouveau_compat_ioctl(struct file *filp, unsigned int cmd,
+                        unsigned long arg)
+ {
+       unsigned int nr = DRM_IOCTL_NR(cmd);
+-      drm_ioctl_compat_t *fn = NULL;
++      drm_ioctl_compat_t fn = NULL;
+       int ret;
+       if (nr < DRM_COMMAND_BASE)
 diff --git a/drivers/gpu/drm/nouveau/nouveau_vga.c b/drivers/gpu/drm/nouveau/nouveau_vga.c
-index 6f0ac64..9c2dfb4 100644
+index 25d3495..d81aaf6 100644
 --- a/drivers/gpu/drm/nouveau/nouveau_vga.c
 +++ b/drivers/gpu/drm/nouveau/nouveau_vga.c
-@@ -63,7 +63,7 @@ nouveau_switcheroo_can_switch(struct pci_dev *pdev)
+@@ -62,7 +62,7 @@ nouveau_switcheroo_can_switch(struct pci_dev *pdev)
        bool can_switch;
  
        spin_lock(&dev->count_lock);
@@ -33239,49 +35865,6 @@ index 6f0ac64..9c2dfb4 100644
        spin_unlock(&dev->count_lock);
        return can_switch;
  }
-diff --git a/drivers/gpu/drm/nouveau/nv50_evo.c b/drivers/gpu/drm/nouveau/nv50_evo.c
-index 9f6f55c..30e3a29 100644
---- a/drivers/gpu/drm/nouveau/nv50_evo.c
-+++ b/drivers/gpu/drm/nouveau/nv50_evo.c
-@@ -152,9 +152,9 @@ nv50_evo_channel_new(struct drm_device *dev, int chid,
-               kzalloc(sizeof(*evo->object->oclass), GFP_KERNEL);
-       evo->object->oclass->ofuncs =
-               kzalloc(sizeof(*evo->object->oclass->ofuncs), GFP_KERNEL);
--      evo->object->oclass->ofuncs->rd32 = nv50_evo_rd32;
--      evo->object->oclass->ofuncs->wr32 = nv50_evo_wr32;
--      evo->object->oclass->ofuncs->rd08 =
-+      *(void**)&evo->object->oclass->ofuncs->rd32 = nv50_evo_rd32;
-+      *(void**)&evo->object->oclass->ofuncs->wr32 = nv50_evo_wr32;
-+      *(void**)&evo->object->oclass->ofuncs->rd08 =
-               ioremap(pci_resource_start(dev->pdev, 0) +
-                       NV50_PDISPLAY_USER(evo->handle), PAGE_SIZE);
-       return 0;
-diff --git a/drivers/gpu/drm/nouveau/nv50_sor.c b/drivers/gpu/drm/nouveau/nv50_sor.c
-index b562b59..9d725a8 100644
---- a/drivers/gpu/drm/nouveau/nv50_sor.c
-+++ b/drivers/gpu/drm/nouveau/nv50_sor.c
-@@ -317,7 +317,7 @@ nv50_sor_dpms(struct drm_encoder *encoder, int mode)
-       }
-       if (nv_encoder->dcb->type == DCB_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 c402fca..f1d694b 100644
---- a/drivers/gpu/drm/nouveau/nvd0_display.c
-+++ b/drivers/gpu/drm/nouveau/nvd0_display.c
-@@ -1389,7 +1389,7 @@ nvd0_sor_dpms(struct drm_encoder *encoder, int mode)
-       nv_wait(device, 0x61c030 + (or * 0x0800), 0x10000000, 0x00000000);
-       if (nv_encoder->dcb->type == DCB_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 d4660cf..70dbe65 100644
 --- a/drivers/gpu/drm/r128/r128_cce.c
@@ -33316,6 +35899,41 @@ index 930c71b..499aded 100644
  
        u32 color_fmt;
        unsigned int front_offset;
+diff --git a/drivers/gpu/drm/r128/r128_ioc32.c b/drivers/gpu/drm/r128/r128_ioc32.c
+index a954c54..9cc595c 100644
+--- a/drivers/gpu/drm/r128/r128_ioc32.c
++++ b/drivers/gpu/drm/r128/r128_ioc32.c
+@@ -177,7 +177,7 @@ static int compat_r128_getparam(struct file *file, unsigned int cmd,
+       return drm_ioctl(file, DRM_IOCTL_R128_GETPARAM, (unsigned long)getparam);
+ }
+-drm_ioctl_compat_t *r128_compat_ioctls[] = {
++drm_ioctl_compat_t r128_compat_ioctls[] = {
+       [DRM_R128_INIT] = compat_r128_init,
+       [DRM_R128_DEPTH] = compat_r128_depth,
+       [DRM_R128_STIPPLE] = compat_r128_stipple,
+@@ -196,18 +196,15 @@ drm_ioctl_compat_t *r128_compat_ioctls[] = {
+ long r128_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+ {
+       unsigned int nr = DRM_IOCTL_NR(cmd);
+-      drm_ioctl_compat_t *fn = NULL;
+       int ret;
+       if (nr < DRM_COMMAND_BASE)
+               return drm_compat_ioctl(filp, cmd, arg);
+-      if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(r128_compat_ioctls))
+-              fn = r128_compat_ioctls[nr - DRM_COMMAND_BASE];
+-
+-      if (fn != NULL)
++      if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(r128_compat_ioctls)) {
++              drm_ioctl_compat_t fn = r128_compat_ioctls[nr - DRM_COMMAND_BASE];
+               ret = (*fn) (filp, cmd, arg);
+-      else
++      } else
+               ret = drm_ioctl(filp, cmd, arg);
+       return ret;
 diff --git a/drivers/gpu/drm/r128/r128_irq.c b/drivers/gpu/drm/r128/r128_irq.c
 index 2ea4f09..d391371 100644
 --- a/drivers/gpu/drm/r128/r128_irq.c
@@ -33377,10 +35995,10 @@ index 5a82b6b..9e69c73 100644
        if (regcomp
            (&mask_rex, "(0x[0-9a-fA-F]*) *([_a-zA-Z0-9]*)", REG_EXTENDED)) {
 diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c
-index 008d645..de03849 100644
+index 0d6562b..a154330 100644
 --- a/drivers/gpu/drm/radeon/radeon_device.c
 +++ b/drivers/gpu/drm/radeon/radeon_device.c
-@@ -941,7 +941,7 @@ static bool radeon_switcheroo_can_switch(struct pci_dev *pdev)
+@@ -969,7 +969,7 @@ static bool radeon_switcheroo_can_switch(struct pci_dev *pdev)
        bool can_switch;
  
        spin_lock(&dev->count_lock);
@@ -33390,7 +36008,7 @@ index 008d645..de03849 100644
        return can_switch;
  }
 diff --git a/drivers/gpu/drm/radeon/radeon_drv.h b/drivers/gpu/drm/radeon/radeon_drv.h
-index a1b59ca..86f2d44 100644
+index e7fdf16..f4f6490 100644
 --- a/drivers/gpu/drm/radeon/radeon_drv.h
 +++ b/drivers/gpu/drm/radeon/radeon_drv.h
 @@ -255,7 +255,7 @@ typedef struct drm_radeon_private {
@@ -33403,7 +36021,7 @@ index a1b59ca..86f2d44 100644
        uint32_t irq_enable_reg;
        uint32_t r500_disp_irq_reg;
 diff --git a/drivers/gpu/drm/radeon/radeon_ioc32.c b/drivers/gpu/drm/radeon/radeon_ioc32.c
-index c180df8..cd80dd2d 100644
+index c180df8..5fd8186 100644
 --- a/drivers/gpu/drm/radeon/radeon_ioc32.c
 +++ b/drivers/gpu/drm/radeon/radeon_ioc32.c
 @@ -358,7 +358,7 @@ static int compat_radeon_cp_setparam(struct file *file, unsigned int cmd,
@@ -33415,6 +36033,37 @@ index c180df8..cd80dd2d 100644
                          &request->value))
                return -EFAULT;
  
+@@ -368,7 +368,7 @@ static int compat_radeon_cp_setparam(struct file *file, unsigned int cmd,
+ #define compat_radeon_cp_setparam NULL
+ #endif /* X86_64 || IA64 */
+-static drm_ioctl_compat_t *radeon_compat_ioctls[] = {
++static drm_ioctl_compat_t radeon_compat_ioctls[] = {
+       [DRM_RADEON_CP_INIT] = compat_radeon_cp_init,
+       [DRM_RADEON_CLEAR] = compat_radeon_cp_clear,
+       [DRM_RADEON_STIPPLE] = compat_radeon_cp_stipple,
+@@ -393,18 +393,15 @@ static drm_ioctl_compat_t *radeon_compat_ioctls[] = {
+ long radeon_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
+ {
+       unsigned int nr = DRM_IOCTL_NR(cmd);
+-      drm_ioctl_compat_t *fn = NULL;
+       int ret;
+       if (nr < DRM_COMMAND_BASE)
+               return drm_compat_ioctl(filp, cmd, arg);
+-      if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(radeon_compat_ioctls))
+-              fn = radeon_compat_ioctls[nr - DRM_COMMAND_BASE];
+-
+-      if (fn != NULL)
++      if (nr < DRM_COMMAND_BASE + DRM_ARRAY_SIZE(radeon_compat_ioctls)) {
++              drm_ioctl_compat_t fn = radeon_compat_ioctls[nr - DRM_COMMAND_BASE];
+               ret = (*fn) (filp, cmd, arg);
+-      else
++      } else
+               ret = drm_ioctl(filp, cmd, arg);
+       return ret;
 diff --git a/drivers/gpu/drm/radeon/radeon_irq.c b/drivers/gpu/drm/radeon/radeon_irq.c
 index e771033..a0bc6b3 100644
 --- a/drivers/gpu/drm/radeon/radeon_irq.c
@@ -33462,22 +36111,77 @@ index 8e9057b..af6dacb 100644
        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 5ebe1b3..1ed9426 100644
+index 93f760e..8088227 100644
 --- a/drivers/gpu/drm/radeon/radeon_ttm.c
 +++ b/drivers/gpu/drm/radeon/radeon_ttm.c
-@@ -822,8 +822,10 @@ int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
+@@ -782,7 +782,7 @@ void radeon_ttm_set_active_vram_size(struct radeon_device *rdev, u64 size)
+       man->size = size >> PAGE_SHIFT;
+ }
+-static struct vm_operations_struct radeon_ttm_vm_ops;
++static vm_operations_struct_no_const radeon_ttm_vm_ops __read_only;
+ static const struct vm_operations_struct *ttm_vm_ops = NULL;
+ static int radeon_ttm_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
+@@ -823,8 +823,10 @@ int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
        }
        if (unlikely(ttm_vm_ops == NULL)) {
                ttm_vm_ops = vma->vm_ops;
--              radeon_ttm_vm_ops = *ttm_vm_ops;
--              radeon_ttm_vm_ops.fault = &radeon_ttm_fault;
 +              pax_open_kernel();
-+              memcpy((void *)&radeon_ttm_vm_ops, ttm_vm_ops, sizeof(radeon_ttm_vm_ops));
-+              *(void **)&radeon_ttm_vm_ops.fault = &radeon_ttm_fault;
+               radeon_ttm_vm_ops = *ttm_vm_ops;
+               radeon_ttm_vm_ops.fault = &radeon_ttm_fault;
 +              pax_close_kernel();
        }
        vma->vm_ops = &radeon_ttm_vm_ops;
        return 0;
+@@ -862,28 +864,33 @@ static int radeon_ttm_debugfs_init(struct radeon_device *rdev)
+                       sprintf(radeon_mem_types_names[i], "radeon_vram_mm");
+               else
+                       sprintf(radeon_mem_types_names[i], "radeon_gtt_mm");
+-              radeon_mem_types_list[i].name = radeon_mem_types_names[i];
+-              radeon_mem_types_list[i].show = &radeon_mm_dump_table;
+-              radeon_mem_types_list[i].driver_features = 0;
++              pax_open_kernel();
++              *(const char **)&radeon_mem_types_list[i].name = radeon_mem_types_names[i];
++              *(void **)&radeon_mem_types_list[i].show = &radeon_mm_dump_table;
++              *(u32 *)&radeon_mem_types_list[i].driver_features = 0;
+               if (i == 0)
+-                      radeon_mem_types_list[i].data = rdev->mman.bdev.man[TTM_PL_VRAM].priv;
++                      *(void **)&radeon_mem_types_list[i].data = rdev->mman.bdev.man[TTM_PL_VRAM].priv;
+               else
+-                      radeon_mem_types_list[i].data = rdev->mman.bdev.man[TTM_PL_TT].priv;
+-
++                      *(void **)&radeon_mem_types_list[i].data = rdev->mman.bdev.man[TTM_PL_TT].priv;
++              pax_close_kernel();
+       }
+       /* Add ttm page pool to debugfs */
+       sprintf(radeon_mem_types_names[i], "ttm_page_pool");
+-      radeon_mem_types_list[i].name = radeon_mem_types_names[i];
+-      radeon_mem_types_list[i].show = &ttm_page_alloc_debugfs;
+-      radeon_mem_types_list[i].driver_features = 0;
+-      radeon_mem_types_list[i++].data = NULL;
++      pax_open_kernel();
++      *(const char **)&radeon_mem_types_list[i].name = radeon_mem_types_names[i];
++      *(void **)&radeon_mem_types_list[i].show = &ttm_page_alloc_debugfs;
++      *(u32 *)&radeon_mem_types_list[i].driver_features = 0;
++      *(void **)&radeon_mem_types_list[i++].data = NULL;
++      pax_close_kernel();
+ #ifdef CONFIG_SWIOTLB
+       if (swiotlb_nr_tbl()) {
+               sprintf(radeon_mem_types_names[i], "ttm_dma_page_pool");
+-              radeon_mem_types_list[i].name = radeon_mem_types_names[i];
+-              radeon_mem_types_list[i].show = &ttm_dma_page_alloc_debugfs;
+-              radeon_mem_types_list[i].driver_features = 0;
+-              radeon_mem_types_list[i++].data = NULL;
++              pax_open_kernel();
++              *(const char **)&radeon_mem_types_list[i].name = radeon_mem_types_names[i];
++              *(void **)&radeon_mem_types_list[i].show = &ttm_dma_page_alloc_debugfs;
++              *(u32 *)&radeon_mem_types_list[i].driver_features = 0;
++              *(void **)&radeon_mem_types_list[i++].data = NULL;
++              pax_close_kernel();
+       }
+ #endif
+       return radeon_debugfs_add_files(rdev, radeon_mem_types_list, i);
 diff --git a/drivers/gpu/drm/radeon/rs690.c b/drivers/gpu/drm/radeon/rs690.c
 index 5706d2a..17aedaa 100644
 --- a/drivers/gpu/drm/radeon/rs690.c
@@ -33511,6 +36215,18 @@ index bd2a3b4..122d9ad 100644
        struct ttm_page_pool *pool;
        int shrink_pages = sc->nr_to_scan;
  
+diff --git a/drivers/gpu/drm/udl/udl_fb.c b/drivers/gpu/drm/udl/udl_fb.c
+index 1eb060c..188b1fc 100644
+--- a/drivers/gpu/drm/udl/udl_fb.c
++++ b/drivers/gpu/drm/udl/udl_fb.c
+@@ -367,7 +367,6 @@ static int udl_fb_release(struct fb_info *info, int user)
+               fb_deferred_io_cleanup(info);
+               kfree(info->fbdefio);
+               info->fbdefio = NULL;
+-              info->fbops->fb_mmap = udl_fb_mmap;
+       }
+       pr_warn("released /dev/fb%d user=%d count=%d\n",
 diff --git a/drivers/gpu/drm/via/via_drv.h b/drivers/gpu/drm/via/via_drv.h
 index 893a650..6190d3b 100644
 --- a/drivers/gpu/drm/via/via_drv.h
@@ -33608,10 +36324,10 @@ index ac98964..5dbf512 100644
        case VIA_IRQ_ABSOLUTE:
                break;
 diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
-index 88a179e..57fe50481c 100644
+index 13aeda7..4a952d1 100644
 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
 +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h
-@@ -263,7 +263,7 @@ struct vmw_private {
+@@ -290,7 +290,7 @@ struct vmw_private {
         * Fencing and IRQs.
         */
  
@@ -33696,10 +36412,10 @@ index 8a8725c..afed796 100644
                        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 52146db..ae33762 100644
+index ceb3040..6160c5c 100644
 --- a/drivers/hid/hid-core.c
 +++ b/drivers/hid/hid-core.c
-@@ -2201,7 +2201,7 @@ static bool hid_ignore(struct hid_device *hdev)
+@@ -2242,7 +2242,7 @@ EXPORT_SYMBOL_GPL(hid_ignore);
  
  int hid_add_device(struct hid_device *hdev)
  {
@@ -33708,7 +36424,7 @@ index 52146db..ae33762 100644
        int ret;
  
        if (WARN_ON(hdev->status & HID_STAT_ADDED))
-@@ -2236,7 +2236,7 @@ int hid_add_device(struct hid_device *hdev)
+@@ -2276,7 +2276,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,
@@ -33730,24 +36446,11 @@ index eec3291..8ed706b 100644
                return -EFAULT;
  
        *off += size;
-diff --git a/drivers/hid/usbhid/hiddev.c b/drivers/hid/usbhid/hiddev.c
-index 14599e2..711c965 100644
---- a/drivers/hid/usbhid/hiddev.c
-+++ b/drivers/hid/usbhid/hiddev.c
-@@ -625,7 +625,7 @@ static long hiddev_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
-               break;
-       case HIDIOCAPPLICATION:
--              if (arg < 0 || arg >= hid->maxapplication)
-+              if (arg >= hid->maxapplication)
-                       break;
-               for (i = 0; i < hid->maxcollection; i++)
 diff --git a/drivers/hv/channel.c b/drivers/hv/channel.c
-index f4c3d28..82f45a9 100644
+index 773a2f2..7ce08bc 100644
 --- a/drivers/hv/channel.c
 +++ b/drivers/hv/channel.c
-@@ -402,8 +402,8 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,
+@@ -394,8 +394,8 @@ int vmbus_establish_gpadl(struct vmbus_channel *channel, void *kbuffer,
        int ret = 0;
        int t;
  
@@ -33801,8 +36504,110 @@ index 8e1a9ec..4687821 100644
  
        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 1672e2a..4a6297c 100644
+--- a/drivers/hwmon/acpi_power_meter.c
++++ b/drivers/hwmon/acpi_power_meter.c
+@@ -117,7 +117,7 @@ struct sensor_template {
+                      struct device_attribute *devattr,
+                      const char *buf, size_t count);
+       int index;
+-};
++} __do_const;
+ /* Averaging interval */
+ static int update_avg_interval(struct acpi_power_meter_resource *resource)
+@@ -629,7 +629,7 @@ static int register_attrs(struct acpi_power_meter_resource *resource,
+                         struct sensor_template *attrs)
+ {
+       struct device *dev = &resource->acpi_dev->dev;
+-      struct sensor_device_attribute *sensors =
++      sensor_device_attribute_no_const *sensors =
+               &resource->sensors[resource->num_sensors];
+       int res = 0;
+diff --git a/drivers/hwmon/applesmc.c b/drivers/hwmon/applesmc.c
+index b41baff..4953e4d 100644
+--- a/drivers/hwmon/applesmc.c
++++ b/drivers/hwmon/applesmc.c
+@@ -1084,7 +1084,7 @@ static int applesmc_create_nodes(struct applesmc_node_group *groups, int num)
+ {
+       struct applesmc_node_group *grp;
+       struct applesmc_dev_attr *node;
+-      struct attribute *attr;
++      attribute_no_const *attr;
+       int ret, i;
+       for (grp = groups; grp->format; grp++) {
+diff --git a/drivers/hwmon/asus_atk0110.c b/drivers/hwmon/asus_atk0110.c
+index 56dbcfb..9874bf1 100644
+--- a/drivers/hwmon/asus_atk0110.c
++++ b/drivers/hwmon/asus_atk0110.c
+@@ -152,10 +152,10 @@ MODULE_DEVICE_TABLE(acpi, atk_ids);
+ struct atk_sensor_data {
+       struct list_head list;
+       struct atk_data *data;
+-      struct device_attribute label_attr;
+-      struct device_attribute input_attr;
+-      struct device_attribute limit1_attr;
+-      struct device_attribute limit2_attr;
++      device_attribute_no_const label_attr;
++      device_attribute_no_const input_attr;
++      device_attribute_no_const limit1_attr;
++      device_attribute_no_const limit2_attr;
+       char label_attr_name[ATTR_NAME_SIZE];
+       char input_attr_name[ATTR_NAME_SIZE];
+       char limit1_attr_name[ATTR_NAME_SIZE];
+@@ -275,7 +275,7 @@ static ssize_t atk_name_show(struct device *dev,
+ static struct device_attribute atk_name_attr =
+               __ATTR(name, 0444, atk_name_show, NULL);
+-static void atk_init_attribute(struct device_attribute *attr, char *name,
++static void atk_init_attribute(device_attribute_no_const *attr, char *name,
+               sysfs_show_func show)
+ {
+       sysfs_attr_init(&attr->attr);
+diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c
+index d64923d..72591e8 100644
+--- a/drivers/hwmon/coretemp.c
++++ b/drivers/hwmon/coretemp.c
+@@ -790,7 +790,7 @@ static int __cpuinit coretemp_cpu_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block coretemp_cpu_notifier __refdata = {
++static struct notifier_block coretemp_cpu_notifier = {
+       .notifier_call = coretemp_cpu_callback,
+ };
+diff --git a/drivers/hwmon/ibmaem.c b/drivers/hwmon/ibmaem.c
+index a14f634..2916ee2 100644
+--- a/drivers/hwmon/ibmaem.c
++++ b/drivers/hwmon/ibmaem.c
+@@ -925,7 +925,7 @@ static int aem_register_sensors(struct aem_data *data,
+                               struct aem_rw_sensor_template *rw)
+ {
+       struct device *dev = &data->pdev->dev;
+-      struct sensor_device_attribute *sensors = data->sensors;
++      sensor_device_attribute_no_const *sensors = data->sensors;
+       int err;
+       /* Set up read-only sensors */
+diff --git a/drivers/hwmon/pmbus/pmbus_core.c b/drivers/hwmon/pmbus/pmbus_core.c
+index 7d19b1b..8fdaaac 100644
+--- a/drivers/hwmon/pmbus/pmbus_core.c
++++ b/drivers/hwmon/pmbus/pmbus_core.c
+@@ -811,7 +811,7 @@ static ssize_t pmbus_show_label(struct device *dev,
+ #define PMBUS_ADD_ATTR(data, _name, _idx, _mode, _type, _show, _set)  \
+ do {                                                                  \
+-      struct sensor_device_attribute *a                               \
++      sensor_device_attribute_no_const *a                             \
+           = &data->_type##s[data->num_##_type##s].attribute;          \
+       BUG_ON(data->num_attributes >= data->max_attributes);           \
+       sysfs_attr_init(&a->dev_attr.attr);                             \
 diff --git a/drivers/hwmon/sht15.c b/drivers/hwmon/sht15.c
-index 07a0c1a..0cac334 100644
+index 8047fed..1e956f0 100644
 --- a/drivers/hwmon/sht15.c
 +++ b/drivers/hwmon/sht15.c
 @@ -169,7 +169,7 @@ struct sht15_data {
@@ -33853,6 +36658,19 @@ index 07a0c1a..0cac334 100644
                        return;
        }
  
+diff --git a/drivers/hwmon/via-cputemp.c b/drivers/hwmon/via-cputemp.c
+index 76f157b..9c0db1b 100644
+--- a/drivers/hwmon/via-cputemp.c
++++ b/drivers/hwmon/via-cputemp.c
+@@ -296,7 +296,7 @@ static int __cpuinit via_cputemp_cpu_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block via_cputemp_cpu_notifier __refdata = {
++static struct notifier_block via_cputemp_cpu_notifier = {
+       .notifier_call = via_cputemp_cpu_callback,
+ };
 diff --git a/drivers/i2c/busses/i2c-amd756-s4882.c b/drivers/i2c/busses/i2c-amd756-s4882.c
 index 378fcb5..5e91fa8 100644
 --- a/drivers/i2c/busses/i2c-amd756-s4882.c
@@ -33892,6 +36710,19 @@ index 8126824..55a2798 100644
                        drive->dma = 0;
        }
  }
+diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
+index 8848f16..f8e6dd8 100644
+--- a/drivers/iio/industrialio-core.c
++++ b/drivers/iio/industrialio-core.c
+@@ -506,7 +506,7 @@ static ssize_t iio_write_channel_info(struct device *dev,
+ }
+ static
+-int __iio_device_attr_init(struct device_attribute *dev_attr,
++int __iio_device_attr_init(device_attribute_no_const *dev_attr,
+                          const char *postfix,
+                          struct iio_chan_spec const *chan,
+                          ssize_t (*readfunc)(struct device *dev,
 diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
 index 394fea2..c833880 100644
 --- a/drivers/infiniband/core/cm.c
@@ -34182,8 +37013,34 @@ index 1f95bba..9530f87 100644
                        (u64) cmpxchg((u64 *) qp->r_sge.sge.vaddr,
                                      sdata, wqe->wr.wr.atomic.swap);
                goto send_comp;
+diff --git a/drivers/infiniband/hw/mthca/mthca_cmd.c b/drivers/infiniband/hw/mthca/mthca_cmd.c
+index 9d3e5c1..d9afe4a 100644
+--- a/drivers/infiniband/hw/mthca/mthca_cmd.c
++++ b/drivers/infiniband/hw/mthca/mthca_cmd.c
+@@ -772,7 +772,7 @@ static void mthca_setup_cmd_doorbells(struct mthca_dev *dev, u64 base)
+       mthca_dbg(dev, "Mapped doorbell page for posting FW commands\n");
+ }
+-int mthca_QUERY_FW(struct mthca_dev *dev)
++int __intentional_overflow(-1) mthca_QUERY_FW(struct mthca_dev *dev)
+ {
+       struct mthca_mailbox *mailbox;
+       u32 *outbox;
+diff --git a/drivers/infiniband/hw/mthca/mthca_mr.c b/drivers/infiniband/hw/mthca/mthca_mr.c
+index ed9a989..e0c5871 100644
+--- a/drivers/infiniband/hw/mthca/mthca_mr.c
++++ b/drivers/infiniband/hw/mthca/mthca_mr.c
+@@ -426,7 +426,7 @@ static inline u32 adjust_key(struct mthca_dev *dev, u32 key)
+               return key;
+ }
+-int mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift,
++int __intentional_overflow(-1) mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift,
+                  u64 iova, u64 total_size, u32 access, struct mthca_mr *mr)
+ {
+       struct mthca_mailbox *mailbox;
 diff --git a/drivers/infiniband/hw/nes/nes.c b/drivers/infiniband/hw/nes/nes.c
-index 748db2d..5f75cc3 100644
+index 5b152a3..c1f3e83 100644
 --- a/drivers/infiniband/hw/nes/nes.c
 +++ b/drivers/infiniband/hw/nes/nes.c
 @@ -98,7 +98,7 @@ MODULE_PARM_DESC(limit_maxrdreqsz, "Limit max read request size to 256 Bytes");
@@ -34264,7 +37121,7 @@ index 33cc589..3bd6538 100644
  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 cfaacaf..fa0722e 100644
+index 22ea67e..dcbe3bc 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;
@@ -34310,7 +37167,7 @@ index cfaacaf..fa0722e 100644
  
  int nes_add_ref_cm_node(struct nes_cm_node *cm_node)
  {
-@@ -1281,7 +1281,7 @@ static int mini_cm_dec_refcnt_listen(struct nes_cm_core *cm_core,
+@@ -1272,7 +1272,7 @@ static int mini_cm_dec_refcnt_listen(struct nes_cm_core *cm_core,
                kfree(listener);
                listener = NULL;
                ret = 0;
@@ -34319,7 +37176,7 @@ index cfaacaf..fa0722e 100644
        } else {
                spin_unlock_irqrestore(&cm_core->listen_list_lock, flags);
        }
-@@ -1480,7 +1480,7 @@ static struct nes_cm_node *make_cm_node(struct nes_cm_core *cm_core,
+@@ -1466,7 +1466,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);
@@ -34328,7 +37185,7 @@ index cfaacaf..fa0722e 100644
  
        return cm_node;
  }
-@@ -1538,7 +1538,7 @@ static int rem_ref_cm_node(struct nes_cm_core *cm_core,
+@@ -1524,7 +1524,7 @@ static int rem_ref_cm_node(struct nes_cm_core *cm_core,
        }
  
        atomic_dec(&cm_core->node_cnt);
@@ -34337,7 +37194,7 @@ index cfaacaf..fa0722e 100644
        nesqp = cm_node->nesqp;
        if (nesqp) {
                nesqp->cm_node = NULL;
-@@ -1602,7 +1602,7 @@ static int process_options(struct nes_cm_node *cm_node, u8 *optionsloc,
+@@ -1588,7 +1588,7 @@ static int process_options(struct nes_cm_node *cm_node, u8 *optionsloc,
  
  static void drop_packet(struct sk_buff *skb)
  {
@@ -34346,7 +37203,7 @@ index cfaacaf..fa0722e 100644
        dev_kfree_skb_any(skb);
  }
  
-@@ -1665,7 +1665,7 @@ static void handle_rst_pkt(struct nes_cm_node *cm_node, struct sk_buff *skb,
+@@ -1651,7 +1651,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.. */
@@ -34355,7 +37212,7 @@ index cfaacaf..fa0722e 100644
        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));
-@@ -2306,7 +2306,7 @@ static struct nes_cm_node *mini_cm_connect(struct nes_cm_core *cm_core,
+@@ -2292,7 +2292,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;
                        }
@@ -34364,7 +37221,7 @@ index cfaacaf..fa0722e 100644
                        loopbackremotenode->loopbackpartner = cm_node;
                        loopbackremotenode->tcp_cntxt.rcv_wscale =
                                NES_CM_DEFAULT_RCV_WND_SCALE;
-@@ -2581,7 +2581,7 @@ static int mini_cm_recv_pkt(struct nes_cm_core *cm_core,
+@@ -2567,7 +2567,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);
@@ -34373,7 +37230,7 @@ index cfaacaf..fa0722e 100644
                                dev_kfree_skb_any(skb);
                        }
                        break;
-@@ -2889,7 +2889,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
+@@ -2875,7 +2875,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
  
        if ((cm_id) && (cm_id->event_handler)) {
                if (issue_disconn) {
@@ -34382,7 +37239,7 @@ index cfaacaf..fa0722e 100644
                        cm_event.event = IW_CM_EVENT_DISCONNECT;
                        cm_event.status = disconn_status;
                        cm_event.local_addr = cm_id->local_addr;
-@@ -2911,7 +2911,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
+@@ -2897,7 +2897,7 @@ static int nes_cm_disconn_true(struct nes_qp *nesqp)
                }
  
                if (issue_close) {
@@ -34391,7 +37248,7 @@ index cfaacaf..fa0722e 100644
                        nes_disconnect(nesqp, 1);
  
                        cm_id->provider_data = nesqp;
-@@ -3047,7 +3047,7 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
+@@ -3033,7 +3033,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);
@@ -34400,7 +37257,7 @@ index cfaacaf..fa0722e 100644
  
        nes_debug(NES_DBG_CM, "netdev refcnt = %u.\n",
                        netdev_refcnt_read(nesvnic->netdev));
-@@ -3242,7 +3242,7 @@ int nes_reject(struct iw_cm_id *cm_id, const void *pdata, u8 pdata_len)
+@@ -3228,7 +3228,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;
  
@@ -34409,7 +37266,7 @@ index cfaacaf..fa0722e 100644
        cm_node = (struct nes_cm_node *)cm_id->provider_data;
        loopback = cm_node->loopbackpartner;
        cm_core = cm_node->cm_core;
-@@ -3302,7 +3302,7 @@ int nes_connect(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
+@@ -3288,7 +3288,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));
  
@@ -34418,7 +37275,7 @@ index cfaacaf..fa0722e 100644
        nesqp->active_conn = 1;
  
        /* cache the cm_id in the qp */
-@@ -3412,7 +3412,7 @@ int nes_create_listen(struct iw_cm_id *cm_id, int backlog)
+@@ -3398,7 +3398,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;
                }
@@ -34427,7 +37284,7 @@ index cfaacaf..fa0722e 100644
        }
  
        cm_id->add_ref(cm_id);
-@@ -3513,7 +3513,7 @@ static void cm_event_connected(struct nes_cm_event *event)
+@@ -3499,7 +3499,7 @@ static void cm_event_connected(struct nes_cm_event *event)
  
        if (nesqp->destroyed)
                return;
@@ -34436,7 +37293,7 @@ index cfaacaf..fa0722e 100644
        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,
-@@ -3693,7 +3693,7 @@ static void cm_event_reset(struct nes_cm_event *event)
+@@ -3679,7 +3679,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);
@@ -34445,7 +37302,7 @@ index cfaacaf..fa0722e 100644
        cm_event.event = IW_CM_EVENT_CLOSE;
        cm_event.status = 0;
        cm_event.provider_data = cm_id->provider_data;
-@@ -3729,7 +3729,7 @@ static void cm_event_mpa_req(struct nes_cm_event *event)
+@@ -3715,7 +3715,7 @@ static void cm_event_mpa_req(struct nes_cm_event *event)
                return;
        cm_id = cm_node->cm_id;
  
@@ -34454,7 +37311,7 @@ index cfaacaf..fa0722e 100644
        nes_debug(NES_DBG_CM, "cm_node = %p - cm_id = %p, jiffies = %lu\n",
                  cm_node, cm_id, jiffies);
  
-@@ -3769,7 +3769,7 @@ static void cm_event_mpa_reject(struct nes_cm_event *event)
+@@ -3755,7 +3755,7 @@ static void cm_event_mpa_reject(struct nes_cm_event *event)
                return;
        cm_id = cm_node->cm_id;
  
@@ -34464,7 +37321,7 @@ index cfaacaf..fa0722e 100644
                  cm_node, cm_id, jiffies);
  
 diff --git a/drivers/infiniband/hw/nes/nes_mgt.c b/drivers/infiniband/hw/nes/nes_mgt.c
-index 3ba7be3..c81f6ff 100644
+index 4166452..fc952c3 100644
 --- a/drivers/infiniband/hw/nes/nes_mgt.c
 +++ b/drivers/infiniband/hw/nes/nes_mgt.c
 @@ -40,8 +40,8 @@
@@ -34487,7 +37344,7 @@ index 3ba7be3..c81f6ff 100644
  
        /* Free packets that have not yet been forwarded */
        /* Lock is acquired by skb_dequeue when removing the skb */
-@@ -812,7 +812,7 @@ static void nes_mgt_ce_handler(struct nes_device *nesdev, struct nes_hw_nic_cq *
+@@ -810,7 +810,7 @@ static void nes_mgt_ce_handler(struct nes_device *nesdev, struct nes_hw_nic_cq *
                                        cq->cq_vbase[head].cqe_words[NES_NIC_CQE_HASH_RCVNXT]);
                                skb_queue_head_init(&nesqp->pau_list);
                                spin_lock_init(&nesqp->pau_lock);
@@ -34497,10 +37354,10 @@ index 3ba7be3..c81f6ff 100644
                        }
  
 diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
-index 0564be7..f68b0f1 100644
+index 9542e16..a008c40 100644
 --- a/drivers/infiniband/hw/nes/nes_nic.c
 +++ b/drivers/infiniband/hw/nes/nes_nic.c
-@@ -1272,39 +1272,39 @@ static void nes_netdev_get_ethtool_stats(struct net_device *netdev,
+@@ -1273,39 +1273,39 @@ static void nes_netdev_get_ethtool_stats(struct net_device *netdev,
        target_stat_values[++index] = mh_detected;
        target_stat_values[++index] = mh_pauses_sent;
        target_stat_values[++index] = nesvnic->endnode_ipv4_tcp_retransmits;
@@ -34629,19 +37486,19 @@ index da739d9..da1c7f4 100644
        gameport->dev.release = gameport_release_port;
        if (gameport->parent)
 diff --git a/drivers/input/input.c b/drivers/input/input.c
-index 53a0dde..abffda7 100644
+index c044699..174d71a 100644
 --- a/drivers/input/input.c
 +++ b/drivers/input/input.c
-@@ -1902,7 +1902,7 @@ static void input_cleanse_bitmasks(struct input_dev *dev)
+@@ -2019,7 +2019,7 @@ static void devm_input_device_unregister(struct device *dev, void *res)
   */
  int input_register_device(struct input_dev *dev)
  {
 -      static atomic_t input_no = ATOMIC_INIT(0);
 +      static atomic_unchecked_t input_no = ATOMIC_INIT(0);
+       struct input_devres *devres = NULL;
        struct input_handler *handler;
        unsigned int packet_size;
-       const char *path;
-@@ -1945,7 +1945,7 @@ int input_register_device(struct input_dev *dev)
+@@ -2074,7 +2074,7 @@ int input_register_device(struct input_dev *dev)
                dev->setkeycode = input_default_setkeycode;
  
        dev_set_name(&dev->dev, "input%ld",
@@ -34663,10 +37520,10 @@ index 04c69af..5f92d00 100644
  #include <linux/input.h>
  #include <linux/gameport.h>
 diff --git a/drivers/input/joystick/xpad.c b/drivers/input/joystick/xpad.c
-index 83811e4..0822b90 100644
+index d6cbfe9..6225402 100644
 --- a/drivers/input/joystick/xpad.c
 +++ b/drivers/input/joystick/xpad.c
-@@ -726,7 +726,7 @@ static void xpad_led_set(struct led_classdev *led_cdev,
+@@ -735,7 +735,7 @@ static void xpad_led_set(struct led_classdev *led_cdev,
  
  static int xpad_led_probe(struct usb_xpad *xpad)
  {
@@ -34675,7 +37532,7 @@ index 83811e4..0822b90 100644
        long led_no;
        struct xpad_led *led;
        struct led_classdev *led_cdev;
-@@ -739,7 +739,7 @@ static int xpad_led_probe(struct usb_xpad *xpad)
+@@ -748,7 +748,7 @@ static int xpad_led_probe(struct usb_xpad *xpad)
        if (!led)
                return -ENOMEM;
  
@@ -34684,6 +37541,19 @@ index 83811e4..0822b90 100644
  
        snprintf(led->name, sizeof(led->name), "xpad%ld", led_no);
        led->xpad = xpad;
+diff --git a/drivers/input/mouse/psmouse.h b/drivers/input/mouse/psmouse.h
+index fe1df23..5b710f3 100644
+--- a/drivers/input/mouse/psmouse.h
++++ b/drivers/input/mouse/psmouse.h
+@@ -115,7 +115,7 @@ struct psmouse_attribute {
+       ssize_t (*set)(struct psmouse *psmouse, void *data,
+                       const char *buf, size_t count);
+       bool protect;
+-};
++} __do_const;
+ #define to_psmouse_attr(a)    container_of((a), struct psmouse_attribute, dattr)
+ ssize_t psmouse_attr_show_helper(struct device *dev, struct device_attribute *attr,
 diff --git a/drivers/input/mousedev.c b/drivers/input/mousedev.c
 index 4c842c3..590b0bf 100644
 --- a/drivers/input/mousedev.c
@@ -34698,7 +37568,7 @@ index 4c842c3..590b0bf 100644
  
        return count;
 diff --git a/drivers/input/serio/serio.c b/drivers/input/serio/serio.c
-index d0f7533..fb8215b 100644
+index 25fc597..558bf3b 100644
 --- a/drivers/input/serio/serio.c
 +++ b/drivers/input/serio/serio.c
 @@ -496,7 +496,7 @@ static void serio_release_port(struct device *dev)
@@ -34719,46 +37589,24 @@ index d0f7533..fb8215b 100644
        serio->dev.bus = &serio_bus;
        serio->dev.release = serio_release_port;
        serio->dev.groups = serio_device_attr_groups;
-diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
-index faf10ba..7cfaba9 100644
---- a/drivers/iommu/amd_iommu_init.c
-+++ b/drivers/iommu/amd_iommu_init.c
-@@ -1922,7 +1922,7 @@ static int __init state_next(void)
-       case IOMMU_ACPI_FINISHED:
-               early_enable_iommus();
-               register_syscore_ops(&amd_iommu_syscore_ops);
--              x86_platform.iommu_shutdown = disable_iommus;
-+              *(void **)&x86_platform.iommu_shutdown = disable_iommus;
-               init_state = IOMMU_ENABLED;
-               break;
-       case IOMMU_ENABLED:
-@@ -2064,7 +2064,7 @@ int __init amd_iommu_detect(void)
-       amd_iommu_detected = true;
-       iommu_detected = 1;
--      x86_init.iommu.iommu_init = amd_iommu_init;
-+      *(void **)&x86_init.iommu.iommu_init = amd_iommu_init;
-       return 0;
+diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
+index ddbdaca..be18a78 100644
+--- a/drivers/iommu/iommu.c
++++ b/drivers/iommu/iommu.c
+@@ -554,7 +554,7 @@ static struct notifier_block iommu_bus_nb = {
+ static void iommu_bus_init(struct bus_type *bus, struct iommu_ops *ops)
+ {
+       bus_register_notifier(bus, &iommu_bus_nb);
+-      bus_for_each_dev(bus, NULL, ops, add_iommu_group);
++      bus_for_each_dev(bus, NULL, (void *)ops, add_iommu_group);
  }
-diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
-index 86e2f4a..d1cec5d 100644
---- a/drivers/iommu/dmar.c
-+++ b/drivers/iommu/dmar.c
-@@ -555,7 +555,7 @@ int __init detect_intel_iommu(void)
  
- #ifdef CONFIG_X86
-               if (ret)
--                      x86_init.iommu.iommu_init = intel_iommu_init;
-+                      *(void **)&x86_init.iommu.iommu_init = intel_iommu_init;
- #endif
-       }
-       early_acpi_os_unmap_memory(dmar_tbl, dmar_tbl_size);
+ /**
 diff --git a/drivers/isdn/capi/capi.c b/drivers/isdn/capi/capi.c
-index c679867..6e2e34d 100644
+index 89562a8..218999b 100644
 --- a/drivers/isdn/capi/capi.c
 +++ b/drivers/isdn/capi/capi.c
-@@ -83,8 +83,8 @@ struct capiminor {
+@@ -81,8 +81,8 @@ struct capiminor {
  
        struct capi20_appl      *ap;
        u32                     ncci;
@@ -34769,7 +37617,7 @@ index c679867..6e2e34d 100644
  
        struct tty_port port;
        int                ttyinstop;
-@@ -393,7 +393,7 @@ gen_data_b3_resp_for(struct capiminor *mp, struct sk_buff *skb)
+@@ -391,7 +391,7 @@ gen_data_b3_resp_for(struct capiminor *mp, struct sk_buff *skb)
                capimsg_setu16(s, 2, mp->ap->applid);
                capimsg_setu8 (s, 4, CAPI_DATA_B3);
                capimsg_setu8 (s, 5, CAPI_RESP);
@@ -34778,7 +37626,7 @@ index c679867..6e2e34d 100644
                capimsg_setu32(s, 8, mp->ncci);
                capimsg_setu16(s, 12, datahandle);
        }
-@@ -514,14 +514,14 @@ static void handle_minor_send(struct capiminor *mp)
+@@ -512,14 +512,14 @@ static void handle_minor_send(struct capiminor *mp)
                mp->outbytes -= len;
                spin_unlock_bh(&mp->outlock);
  
@@ -34846,7 +37694,7 @@ index 821f7ac..28d4030 100644
                } else {
                        memcpy(buf, dp, left);
 diff --git a/drivers/isdn/i4l/isdn_tty.c b/drivers/isdn/i4l/isdn_tty.c
-index b817809..409caff 100644
+index e09dc8a..15e2efb 100644
 --- a/drivers/isdn/i4l/isdn_tty.c
 +++ b/drivers/isdn/i4l/isdn_tty.c
 @@ -1513,9 +1513,9 @@ isdn_tty_open(struct tty_struct *tty, struct file *filp)
@@ -34901,7 +37749,7 @@ index b817809..409caff 100644
        port->flags &= ~ASYNC_NORMAL_ACTIVE;
        port->tty = NULL;
        wake_up_interruptible(&port->open_wait);
-@@ -1971,7 +1971,7 @@ isdn_tty_find_icall(int di, int ch, setup_parm *setup)
+@@ -1975,7 +1975,7 @@ isdn_tty_find_icall(int di, int ch, setup_parm *setup)
        for (i = 0; i < ISDN_MAX_CHANNELS; i++) {
                modem_info *info = &dev->mdm.info[i];
  
@@ -34923,8 +37771,34 @@ index e74df7c..03a03ba 100644
                                return -EFAULT;
                } else
                        memcpy(msg, buf, count);
+diff --git a/drivers/leds/leds-clevo-mail.c b/drivers/leds/leds-clevo-mail.c
+index 6a8405d..0bd1c7e 100644
+--- a/drivers/leds/leds-clevo-mail.c
++++ b/drivers/leds/leds-clevo-mail.c
+@@ -40,7 +40,7 @@ static int __init clevo_mail_led_dmi_callback(const struct dmi_system_id *id)
+  * detected as working, but in reality it is not) as low as
+  * possible.
+  */
+-static struct dmi_system_id __initdata clevo_mail_led_dmi_table[] = {
++static const struct dmi_system_id __initconst clevo_mail_led_dmi_table[] = {
+       {
+               .callback = clevo_mail_led_dmi_callback,
+               .ident = "Clevo D410J",
+diff --git a/drivers/leds/leds-ss4200.c b/drivers/leds/leds-ss4200.c
+index ec9b287..65c9bf4 100644
+--- a/drivers/leds/leds-ss4200.c
++++ b/drivers/leds/leds-ss4200.c
+@@ -92,7 +92,7 @@ MODULE_PARM_DESC(nodetect, "Skip DMI-based hardware detection");
+  * detected as working, but in reality it is not) as low as
+  * possible.
+  */
+-static struct dmi_system_id __initdata nas_led_whitelist[] = {
++static const struct dmi_system_id __initconst nas_led_whitelist[] = {
+       {
+               .callback = ss4200_led_dmi_callback,
+               .ident = "Intel SS4200-E",
 diff --git a/drivers/lguest/core.c b/drivers/lguest/core.c
-index b5fdcb7..5b6c59f 100644
+index a5ebc00..982886f 100644
 --- a/drivers/lguest/core.c
 +++ b/drivers/lguest/core.c
 @@ -92,9 +92,17 @@ static __init int map_switcher(void)
@@ -34954,6 +37828,19 @@ index b5fdcb7..5b6c59f 100644
               end_switcher_text - start_switcher_text);
  
        printk(KERN_INFO "lguest: mapped switcher at %p\n",
+diff --git a/drivers/lguest/page_tables.c b/drivers/lguest/page_tables.c
+index 3b62be16..e33134a 100644
+--- a/drivers/lguest/page_tables.c
++++ b/drivers/lguest/page_tables.c
+@@ -532,7 +532,7 @@ void pin_page(struct lg_cpu *cpu, unsigned long vaddr)
+ /*:*/
+ #ifdef CONFIG_X86_PAE
+-static void release_pmd(pmd_t *spmd)
++static void __intentional_overflow(-1) release_pmd(pmd_t *spmd)
+ {
+       /* If the entry's not present, there's nothing to release. */
+       if (pmd_flags(*spmd) & _PAGE_PRESENT) {
 diff --git a/drivers/lguest/x86/core.c b/drivers/lguest/x86/core.c
 index 4af12e1..0e89afe 100644
 --- a/drivers/lguest/x86/core.c
@@ -35075,10 +37962,10 @@ index 7155945..4bcc562 100644
  
        seq_printf(seq, "\n");
 diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c
-index a651d52..82f8a95 100644
+index eee353d..74504c4 100644
 --- a/drivers/md/dm-ioctl.c
 +++ b/drivers/md/dm-ioctl.c
-@@ -1601,7 +1601,7 @@ static int validate_params(uint cmd, struct dm_ioctl *param)
+@@ -1632,7 +1632,7 @@ static int validate_params(uint cmd, struct dm_ioctl *param)
            cmd == DM_LIST_VERSIONS_CMD)
                return 0;
  
@@ -35088,7 +37975,7 @@ index a651d52..82f8a95 100644
                        DMWARN("name not supplied when creating device");
                        return -EINVAL;
 diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
-index fd61f98..8050783 100644
+index 7f24190..0e18099 100644
 --- a/drivers/md/dm-raid1.c
 +++ b/drivers/md/dm-raid1.c
 @@ -40,7 +40,7 @@ enum dm_raid1_error {
@@ -35100,7 +37987,7 @@ index fd61f98..8050783 100644
        unsigned long error_type;
        struct dm_dev *dev;
        sector_t offset;
-@@ -185,7 +185,7 @@ static struct mirror *get_valid_mirror(struct mirror_set *ms)
+@@ -183,7 +183,7 @@ static struct mirror *get_valid_mirror(struct mirror_set *ms)
        struct mirror *m;
  
        for (m = ms->mirror; m < ms->mirror + ms->nr_mirrors; m++)
@@ -35109,7 +37996,7 @@ index fd61f98..8050783 100644
                        return m;
  
        return NULL;
-@@ -217,7 +217,7 @@ static void fail_mirror(struct mirror *m, enum dm_raid1_error error_type)
+@@ -215,7 +215,7 @@ static void fail_mirror(struct mirror *m, enum dm_raid1_error error_type)
         * simple way to tell if a device has encountered
         * errors.
         */
@@ -35118,7 +38005,7 @@ index fd61f98..8050783 100644
  
        if (test_and_set_bit(error_type, &m->error_type))
                return;
-@@ -408,7 +408,7 @@ static struct mirror *choose_mirror(struct mirror_set *ms, sector_t sector)
+@@ -406,7 +406,7 @@ static struct mirror *choose_mirror(struct mirror_set *ms, sector_t sector)
        struct mirror *m = get_default_mirror(ms);
  
        do {
@@ -35127,7 +38014,7 @@ index fd61f98..8050783 100644
                        return m;
  
                if (m-- == ms->mirror)
-@@ -422,7 +422,7 @@ static int default_ok(struct mirror *m)
+@@ -420,7 +420,7 @@ static int default_ok(struct mirror *m)
  {
        struct mirror *default_mirror = get_default_mirror(m->ms);
  
@@ -35136,7 +38023,7 @@ index fd61f98..8050783 100644
  }
  
  static int mirror_available(struct mirror_set *ms, struct bio *bio)
-@@ -559,7 +559,7 @@ static void do_reads(struct mirror_set *ms, struct bio_list *reads)
+@@ -557,7 +557,7 @@ static void do_reads(struct mirror_set *ms, struct bio_list *reads)
                 */
                if (likely(region_in_sync(ms, region, 1)))
                        m = choose_mirror(ms, bio->bi_sector);
@@ -35145,7 +38032,7 @@ index fd61f98..8050783 100644
                        m = NULL;
  
                if (likely(m))
-@@ -938,7 +938,7 @@ static int get_mirror(struct mirror_set *ms, struct dm_target *ti,
+@@ -924,7 +924,7 @@ static int get_mirror(struct mirror_set *ms, struct dm_target *ti,
        }
  
        ms->mirror[mirror].ms = ms;
@@ -35154,7 +38041,7 @@ index fd61f98..8050783 100644
        ms->mirror[mirror].error_type = 0;
        ms->mirror[mirror].offset = offset;
  
-@@ -1356,7 +1356,7 @@ static void mirror_resume(struct dm_target *ti)
+@@ -1337,7 +1337,7 @@ static void mirror_resume(struct dm_target *ti)
   */
  static char device_status_char(struct mirror *m)
  {
@@ -35164,7 +38051,7 @@ index fd61f98..8050783 100644
  
        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 e2f87653..f279abe 100644
+index aaecefa..23b3026 100644
 --- a/drivers/md/dm-stripe.c
 +++ b/drivers/md/dm-stripe.c
 @@ -20,7 +20,7 @@ struct stripe {
@@ -35176,7 +38063,7 @@ index e2f87653..f279abe 100644
  };
  
  struct stripe_c {
-@@ -183,7 +183,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
+@@ -184,7 +184,7 @@ static int stripe_ctr(struct dm_target *ti, unsigned int argc, char **argv)
                        kfree(sc);
                        return r;
                }
@@ -35185,7 +38072,7 @@ index e2f87653..f279abe 100644
        }
  
        ti->private = sc;
-@@ -324,7 +324,7 @@ static int stripe_status(struct dm_target *ti, status_type_t type,
+@@ -325,7 +325,7 @@ static void stripe_status(struct dm_target *ti, status_type_t type,
                DMEMIT("%d ", sc->stripes);
                for (i = 0; i < sc->stripes; i++)  {
                        DMEMIT("%s ", sc->stripe[i].dev->name);
@@ -35194,7 +38081,7 @@ index e2f87653..f279abe 100644
                                'D' : 'A';
                }
                buffer[i] = '\0';
-@@ -371,8 +371,8 @@ static int stripe_end_io(struct dm_target *ti, struct bio *bio,
+@@ -370,8 +370,8 @@ static int stripe_end_io(struct dm_target *ti, struct bio *bio, int error)
         */
        for (i = 0; i < sc->stripes; i++)
                if (!strcmp(sc->stripe[i].dev->name, major_minor)) {
@@ -35206,7 +38093,7 @@ index e2f87653..f279abe 100644
                                schedule_work(&sc->trigger_event);
                }
 diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c
-index fa29557..d24a5b7 100644
+index daf25d0..d74f49f 100644
 --- a/drivers/md/dm-table.c
 +++ b/drivers/md/dm-table.c
 @@ -390,7 +390,7 @@ static int device_area_is_invalid(struct dm_target *ti, struct dm_dev *dev,
@@ -35219,7 +38106,7 @@ index fa29557..d24a5b7 100644
                       "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 693e149..b7e0fde 100644
+index 4d6e853..a234157 100644
 --- a/drivers/md/dm-thin-metadata.c
 +++ b/drivers/md/dm-thin-metadata.c
 @@ -397,7 +397,7 @@ static void __setup_btree_details(struct dm_pool_metadata *pmd)
@@ -35241,10 +38128,10 @@ index 693e149..b7e0fde 100644
        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 77e6eff..913d695 100644
+index 0d8f086..f5a91d5 100644
 --- a/drivers/md/dm.c
 +++ b/drivers/md/dm.c
-@@ -182,9 +182,9 @@ struct mapped_device {
+@@ -170,9 +170,9 @@ struct mapped_device {
        /*
         * Event handling.
         */
@@ -35256,7 +38143,7 @@ index 77e6eff..913d695 100644
        struct list_head uevent_list;
        spinlock_t uevent_lock; /* Protect access to uevent_list */
  
-@@ -1847,8 +1847,8 @@ static struct mapped_device *alloc_dev(int minor)
+@@ -1872,8 +1872,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);
@@ -35267,7 +38154,7 @@ index 77e6eff..913d695 100644
        INIT_LIST_HEAD(&md->uevent_list);
        spin_lock_init(&md->uevent_lock);
  
-@@ -1982,7 +1982,7 @@ static void event_callback(void *context)
+@@ -2026,7 +2026,7 @@ static void event_callback(void *context)
  
        dm_send_uevents(&uevents, &disk_to_dev(md->disk)->kobj);
  
@@ -35276,7 +38163,7 @@ index 77e6eff..913d695 100644
        wake_up(&md->eventq);
  }
  
-@@ -2637,18 +2637,18 @@ int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
+@@ -2683,18 +2683,18 @@ int dm_kobject_uevent(struct mapped_device *md, enum kobject_action action,
  
  uint32_t dm_next_uevent_seq(struct mapped_device *md)
  {
@@ -35299,7 +38186,7 @@ index 77e6eff..913d695 100644
  
  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 6120071..31d9be2 100644
+index f363135..9b38815 100644
 --- a/drivers/md/md.c
 +++ b/drivers/md/md.c
 @@ -240,10 +240,10 @@ EXPORT_SYMBOL_GPL(md_trim_bio);
@@ -35324,7 +38211,7 @@ index 6120071..31d9be2 100644
        wake_up(&md_event_waiters);
  }
  
-@@ -1504,7 +1504,7 @@ static int super_1_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_
+@@ -1507,7 +1507,7 @@ static int super_1_load(struct md_rdev *rdev, struct md_rdev *refdev, int minor_
        if ((le32_to_cpu(sb->feature_map) & MD_FEATURE_RESHAPE_ACTIVE) &&
            (le32_to_cpu(sb->feature_map) & MD_FEATURE_NEW_OFFSET))
                rdev->new_data_offset += (s32)le32_to_cpu(sb->new_offset);
@@ -35333,7 +38220,7 @@ index 6120071..31d9be2 100644
  
        rdev->sb_size = le32_to_cpu(sb->max_dev) * 2 + 256;
        bmask = queue_logical_block_size(rdev->bdev->bd_disk->queue)-1;
-@@ -1748,7 +1748,7 @@ static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev)
+@@ -1751,7 +1751,7 @@ static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev)
        else
                sb->resync_offset = cpu_to_le64(0);
  
@@ -35342,7 +38229,7 @@ index 6120071..31d9be2 100644
  
        sb->raid_disks = cpu_to_le32(mddev->raid_disks);
        sb->size = cpu_to_le64(mddev->dev_sectors);
-@@ -2748,7 +2748,7 @@ __ATTR(state, S_IRUGO|S_IWUSR, state_show, state_store);
+@@ -2751,7 +2751,7 @@ __ATTR(state, S_IRUGO|S_IWUSR, state_show, state_store);
  static ssize_t
  errors_show(struct md_rdev *rdev, char *page)
  {
@@ -35351,7 +38238,7 @@ index 6120071..31d9be2 100644
  }
  
  static ssize_t
-@@ -2757,7 +2757,7 @@ errors_store(struct md_rdev *rdev, const char *buf, size_t len)
+@@ -2760,7 +2760,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')) {
@@ -35360,7 +38247,7 @@ index 6120071..31d9be2 100644
                return len;
        }
        return -EINVAL;
-@@ -3204,8 +3204,8 @@ int md_rdev_init(struct md_rdev *rdev)
+@@ -3210,8 +3210,8 @@ int md_rdev_init(struct md_rdev *rdev)
        rdev->sb_loaded = 0;
        rdev->bb_page = NULL;
        atomic_set(&rdev->nr_pending, 0);
@@ -35371,7 +38258,7 @@ index 6120071..31d9be2 100644
  
        INIT_LIST_HEAD(&rdev->same_set);
        init_waitqueue_head(&rdev->blocked_wait);
-@@ -6984,7 +6984,7 @@ static int md_seq_show(struct seq_file *seq, void *v)
+@@ -6987,7 +6987,7 @@ static int md_seq_show(struct seq_file *seq, void *v)
  
                spin_unlock(&pers_lock);
                seq_printf(seq, "\n");
@@ -35380,7 +38267,7 @@ index 6120071..31d9be2 100644
                return 0;
        }
        if (v == (void*)2) {
-@@ -7087,7 +7087,7 @@ static int md_seq_open(struct inode *inode, struct file *file)
+@@ -7090,7 +7090,7 @@ static int md_seq_open(struct inode *inode, struct file *file)
                return error;
  
        seq = file->private_data;
@@ -35389,7 +38276,7 @@ index 6120071..31d9be2 100644
        return error;
  }
  
-@@ -7101,7 +7101,7 @@ static unsigned int mdstat_poll(struct file *filp, poll_table *wait)
+@@ -7104,7 +7104,7 @@ static unsigned int mdstat_poll(struct file *filp, poll_table *wait)
        /* always allow read */
        mask = POLLIN | POLLRDNORM;
  
@@ -35398,7 +38285,7 @@ index 6120071..31d9be2 100644
                mask |= POLLERR | POLLPRI;
        return mask;
  }
-@@ -7145,7 +7145,7 @@ static int is_mddev_idle(struct mddev *mddev, int init)
+@@ -7148,7 +7148,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]) -
@@ -35408,7 +38295,7 @@ index 6120071..31d9be2 100644
                 * 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 af443ab..0f93be3 100644
+index eca59c3..7c42285 100644
 --- a/drivers/md/md.h
 +++ b/drivers/md/md.h
 @@ -94,13 +94,13 @@ struct md_rdev {
@@ -35427,7 +38314,7 @@ index af443ab..0f93be3 100644
                                           * for reporting to userspace and storing
                                           * in superblock.
                                           */
-@@ -432,7 +432,7 @@ static inline void rdev_dec_pending(struct md_rdev *rdev, struct mddev *mddev)
+@@ -434,7 +434,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)
  {
@@ -35449,7 +38336,7 @@ index 1cbfc6b..56e1dbb 100644
  /*----------------------------------------------------------------*/
  
 diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c
-index a0f7309..5599dbc 100644
+index 75b1f89..00ba344 100644
 --- a/drivers/md/raid1.c
 +++ b/drivers/md/raid1.c
 @@ -1819,7 +1819,7 @@ static int fix_sync_read_error(struct r1bio *r1_bio)
@@ -35471,7 +38358,7 @@ index a0f7309..5599dbc 100644
                                               "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 c9acbd7..386cd3e 100644
+index 8d925dc..11d674f 100644
 --- a/drivers/md/raid10.c
 +++ b/drivers/md/raid10.c
 @@ -1878,7 +1878,7 @@ static void end_sync_read(struct bio *bio, int error)
@@ -35534,10 +38421,10 @@ index c9acbd7..386cd3e 100644
  
                        rdev_dec_pending(rdev, mddev);
 diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c
-index a450268..c4168a9 100644
+index 94ce78e..df99e24 100644
 --- a/drivers/md/raid5.c
 +++ b/drivers/md/raid5.c
-@@ -1789,21 +1789,21 @@ static void raid5_end_read_request(struct bio * bi, int error)
+@@ -1800,21 +1800,21 @@ static void raid5_end_read_request(struct bio * bi, int error)
                                mdname(conf->mddev), STRIPE_SECTORS,
                                (unsigned long long)s,
                                bdevname(rdev->bdev, b));
@@ -35563,7 +38450,7 @@ index a450268..c4168a9 100644
                if (test_bit(R5_ReadRepl, &sh->dev[i].flags))
                        printk_ratelimited(
                                KERN_WARNING
-@@ -1831,7 +1831,7 @@ static void raid5_end_read_request(struct bio * bi, int error)
+@@ -1842,7 +1842,7 @@ static void raid5_end_read_request(struct bio * bi, int error)
                                mdname(conf->mddev),
                                (unsigned long long)s,
                                bdn);
@@ -35598,50 +38485,28 @@ index 404f63a..4796533 100644
  
  #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/pci/cx88/cx88-alsa.c b/drivers/media/pci/cx88/cx88-alsa.c
-index 3aa6856..435ad25 100644
---- a/drivers/media/pci/cx88/cx88-alsa.c
-+++ b/drivers/media/pci/cx88/cx88-alsa.c
-@@ -749,7 +749,7 @@ static struct snd_kcontrol_new snd_cx88_alc_switch = {
-  * Only boards with eeprom and byte 1 at eeprom=1 have it
-  */
--static const struct pci_device_id cx88_audio_pci_tbl[] __devinitdata = {
-+static const struct pci_device_id cx88_audio_pci_tbl[] __devinitconst = {
-       {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/pci/ddbridge/ddbridge-core.c b/drivers/media/pci/ddbridge/ddbridge-core.c
-index feff57e..66a2c67 100644
---- a/drivers/media/pci/ddbridge/ddbridge-core.c
-+++ b/drivers/media/pci/ddbridge/ddbridge-core.c
-@@ -1679,7 +1679,7 @@ static struct ddb_info ddb_v6 = {
-       .subvendor   = _subvend, .subdevice = _subdev, \
-       .driver_data = (unsigned long)&_driverdata }
--static const struct pci_device_id ddb_id_tbl[] __devinitdata = {
-+static const struct pci_device_id ddb_id_tbl[] __devinitconst = {
-       DDB_ID(DDVID, 0x0002, DDVID, 0x0001, ddb_octopus),
-       DDB_ID(DDVID, 0x0003, DDVID, 0x0001, ddb_octopus),
-       DDB_ID(DDVID, 0x0003, DDVID, 0x0002, ddb_octopus_le),
-diff --git a/drivers/media/pci/ngene/ngene-cards.c b/drivers/media/pci/ngene/ngene-cards.c
-index 96a13ed..6df45b4 100644
---- a/drivers/media/pci/ngene/ngene-cards.c
-+++ b/drivers/media/pci/ngene/ngene-cards.c
-@@ -741,7 +741,7 @@ static struct ngene_info ngene_info_terratec = {
- /****************************************************************************/
--static const struct pci_device_id ngene_id_tbl[] __devinitdata = {
-+static const struct pci_device_id ngene_id_tbl[] __devinitconst = {
-       NGENE_ID(0x18c3, 0xabc3, ngene_info_cineS2),
-       NGENE_ID(0x18c3, 0xabc4, ngene_info_cineS2),
-       NGENE_ID(0x18c3, 0xdb01, ngene_info_satixS2),
+diff --git a/drivers/media/pci/cx88/cx88-video.c b/drivers/media/pci/cx88/cx88-video.c
+index bc78354..42c9459 100644
+--- a/drivers/media/pci/cx88/cx88-video.c
++++ b/drivers/media/pci/cx88/cx88-video.c
+@@ -50,9 +50,9 @@ MODULE_VERSION(CX88_VERSION);
+ /* ------------------------------------------------------------------ */
+-static unsigned int video_nr[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET };
+-static unsigned int vbi_nr[]   = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET };
+-static unsigned int radio_nr[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET };
++static int video_nr[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET };
++static int vbi_nr[]   = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET };
++static int radio_nr[] = {[0 ... (CX88_MAXBOARDS - 1)] = UNSET };
+ module_param_array(video_nr, int, NULL, 0444);
+ module_param_array(vbi_nr,   int, NULL, 0444);
 diff --git a/drivers/media/platform/omap/omap_vout.c b/drivers/media/platform/omap/omap_vout.c
-index a3b1a34..71ce0e3 100644
+index 8e9a668..78d6310 100644
 --- a/drivers/media/platform/omap/omap_vout.c
 +++ b/drivers/media/platform/omap/omap_vout.c
-@@ -65,7 +65,6 @@ enum omap_vout_channels {
+@@ -63,7 +63,6 @@ enum omap_vout_channels {
        OMAP_VIDEO2,
  };
  
@@ -35674,7 +38539,7 @@ index a3b1a34..71ce0e3 100644
  
        videobuf_queue_dma_contig_init(q, &video_vbq_ops, q->dev,
 diff --git a/drivers/media/platform/s5p-tv/mixer.h b/drivers/media/platform/s5p-tv/mixer.h
-index ddb422e..8cf008e 100644
+index b671e20..34088b7 100644
 --- a/drivers/media/platform/s5p-tv/mixer.h
 +++ b/drivers/media/platform/s5p-tv/mixer.h
 @@ -155,7 +155,7 @@ struct mxr_layer {
@@ -35713,10 +38578,10 @@ index 3b1670a..595c939 100644
        if (done && done != layer->shadow_buf)
                vb2_buffer_done(&done->vb, VB2_BUF_STATE_DONE);
 diff --git a/drivers/media/platform/s5p-tv/mixer_video.c b/drivers/media/platform/s5p-tv/mixer_video.c
-index 0c1cd89..6574647 100644
+index 1f3b743..e839271 100644
 --- a/drivers/media/platform/s5p-tv/mixer_video.c
 +++ b/drivers/media/platform/s5p-tv/mixer_video.c
-@@ -209,7 +209,7 @@ static void mxr_layer_default_geo(struct mxr_layer *layer)
+@@ -208,7 +208,7 @@ static void mxr_layer_default_geo(struct mxr_layer *layer)
        layer->geo.src.height = layer->geo.src.full_height;
  
        mxr_geometry_dump(mdev, &layer->geo);
@@ -35725,7 +38590,7 @@ index 0c1cd89..6574647 100644
        mxr_geometry_dump(mdev, &layer->geo);
  }
  
-@@ -227,7 +227,7 @@ static void mxr_layer_update_output(struct mxr_layer *layer)
+@@ -226,7 +226,7 @@ static void mxr_layer_update_output(struct mxr_layer *layer)
        layer->geo.dst.full_width = mbus_fmt.width;
        layer->geo.dst.full_height = mbus_fmt.height;
        layer->geo.dst.field = mbus_fmt.field;
@@ -35734,7 +38599,7 @@ index 0c1cd89..6574647 100644
  
        mxr_geometry_dump(mdev, &layer->geo);
  }
-@@ -333,7 +333,7 @@ static int mxr_s_fmt(struct file *file, void *priv,
+@@ -332,7 +332,7 @@ static int mxr_s_fmt(struct file *file, void *priv,
        /* set source size to highest accepted value */
        geo->src.full_width = max(geo->dst.full_width, pix->width);
        geo->src.full_height = max(geo->dst.full_height, pix->height);
@@ -35743,7 +38608,7 @@ index 0c1cd89..6574647 100644
        mxr_geometry_dump(mdev, &layer->geo);
        /* set cropping to total visible screen */
        geo->src.width = pix->width;
-@@ -341,12 +341,12 @@ static int mxr_s_fmt(struct file *file, void *priv,
+@@ -340,12 +340,12 @@ static int mxr_s_fmt(struct file *file, void *priv,
        geo->src.x_offset = 0;
        geo->src.y_offset = 0;
        /* assure consistency of geometry */
@@ -35758,7 +38623,7 @@ index 0c1cd89..6574647 100644
        mxr_geometry_dump(mdev, &layer->geo);
  
        /* returning results */
-@@ -473,7 +473,7 @@ static int mxr_s_selection(struct file *file, void *fh,
+@@ -472,7 +472,7 @@ static int mxr_s_selection(struct file *file, void *fh,
                target->width = s->r.width;
                target->height = s->r.height;
  
@@ -35767,7 +38632,7 @@ index 0c1cd89..6574647 100644
  
                /* retrieve update selection rectangle */
                res.left = target->x_offset;
-@@ -928,13 +928,13 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
+@@ -937,13 +937,13 @@ static int start_streaming(struct vb2_queue *vq, unsigned int count)
        mxr_output_get(mdev);
  
        mxr_layer_update_output(layer);
@@ -35783,7 +38648,7 @@ index 0c1cd89..6574647 100644
        mxr_streamer_get(mdev);
  
        return 0;
-@@ -1004,7 +1004,7 @@ static int stop_streaming(struct vb2_queue *vq)
+@@ -1013,7 +1013,7 @@ static int stop_streaming(struct vb2_queue *vq)
        spin_unlock_irqrestore(&layer->enq_slock, flags);
  
        /* disabling layer in hardware */
@@ -35792,7 +38657,7 @@ index 0c1cd89..6574647 100644
        /* remove one streamer */
        mxr_streamer_put(mdev);
        /* allow changes in output configuration */
-@@ -1043,8 +1043,8 @@ void mxr_base_layer_unregister(struct mxr_layer *layer)
+@@ -1052,8 +1052,8 @@ void mxr_base_layer_unregister(struct mxr_layer *layer)
  
  void mxr_layer_release(struct mxr_layer *layer)
  {
@@ -35803,7 +38668,7 @@ index 0c1cd89..6574647 100644
  }
  
  void mxr_base_layer_release(struct mxr_layer *layer)
-@@ -1070,7 +1070,7 @@ struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev,
+@@ -1079,7 +1079,7 @@ struct mxr_layer *mxr_base_layer_create(struct mxr_device *mdev,
  
        layer->mdev = mdev;
        layer->idx = idx;
@@ -35825,30 +38690,8 @@ index 3d13a63..da31bf1 100644
                .release = mxr_vp_layer_release,
                .buffer_set = mxr_vp_buffer_set,
                .stream_set = mxr_vp_stream_set,
-diff --git a/drivers/media/platform/timblogiw.c b/drivers/media/platform/timblogiw.c
-index 02194c0..36d69c1 100644
---- a/drivers/media/platform/timblogiw.c
-+++ b/drivers/media/platform/timblogiw.c
-@@ -745,7 +745,7 @@ static int timblogiw_mmap(struct file *file, struct vm_area_struct *vma)
- /* Platform device functions */
--static __devinitconst struct v4l2_ioctl_ops timblogiw_ioctl_ops = {
-+static struct v4l2_ioctl_ops timblogiw_ioctl_ops = {
-       .vidioc_querycap                = timblogiw_querycap,
-       .vidioc_enum_fmt_vid_cap        = timblogiw_enum_fmt,
-       .vidioc_g_fmt_vid_cap           = timblogiw_g_fmt,
-@@ -767,7 +767,7 @@ static __devinitconst struct v4l2_ioctl_ops timblogiw_ioctl_ops = {
-       .vidioc_enum_framesizes         = timblogiw_enum_framesizes,
- };
--static __devinitconst struct v4l2_file_operations timblogiw_fops = {
-+static struct v4l2_file_operations timblogiw_fops = {
-       .owner          = THIS_MODULE,
-       .open           = timblogiw_open,
-       .release        = timblogiw_close,
 diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c
-index 697a421..16c5a5f 100644
+index 643d80a..56bb96b 100644
 --- a/drivers/media/radio/radio-cadet.c
 +++ b/drivers/media/radio/radio-cadet.c
 @@ -302,6 +302,8 @@ static ssize_t cadet_read(struct file *file, char __user *data, size_t count, lo
@@ -35895,8 +38738,52 @@ index 9382895..ac8093c 100644
  
  /* debug */
  static int dvb_usb_dw2102_debug;
+diff --git a/drivers/media/v4l2-core/v4l2-ioctl.c b/drivers/media/v4l2-core/v4l2-ioctl.c
+index aa6e7c7..4cd8061 100644
+--- a/drivers/media/v4l2-core/v4l2-ioctl.c
++++ b/drivers/media/v4l2-core/v4l2-ioctl.c
+@@ -1923,7 +1923,8 @@ struct v4l2_ioctl_info {
+                               struct file *file, void *fh, void *p);
+       } u;
+       void (*debug)(const void *arg, bool write_only);
+-};
++} __do_const;
++typedef struct v4l2_ioctl_info __no_const v4l2_ioctl_info_no_const;
+ /* This control needs a priority check */
+ #define INFO_FL_PRIO  (1 << 0)
+@@ -2108,7 +2109,7 @@ static long __video_do_ioctl(struct file *file,
+       struct video_device *vfd = video_devdata(file);
+       const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops;
+       bool write_only = false;
+-      struct v4l2_ioctl_info default_info;
++      v4l2_ioctl_info_no_const default_info;
+       const struct v4l2_ioctl_info *info;
+       void *fh = file->private_data;
+       struct v4l2_fh *vfh = NULL;
+diff --git a/drivers/memstick/host/r592.c b/drivers/memstick/host/r592.c
+index 29b2172..a7c5b31 100644
+--- a/drivers/memstick/host/r592.c
++++ b/drivers/memstick/host/r592.c
+@@ -454,7 +454,7 @@ static int r592_transfer_fifo_pio(struct r592_device *dev)
+ /* Executes one TPC (data is read/written from small or large fifo) */
+ static void r592_execute_tpc(struct r592_device *dev)
+ {
+-      bool is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS;
++      bool is_write;
+       int len, error;
+       u32 status, reg;
+@@ -463,6 +463,7 @@ static void r592_execute_tpc(struct r592_device *dev)
+               return;
+       }
++      is_write = dev->req->tpc >= MS_TPC_SET_RW_REG_ADRS;
+       len = dev->req->long_data ?
+               dev->req->sg.length : dev->req->data_len;
 diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c
-index fb69baa..cf7ad22 100644
+index fb69baa..3aeea2e 100644
 --- a/drivers/message/fusion/mptbase.c
 +++ b/drivers/message/fusion/mptbase.c
 @@ -6755,8 +6755,13 @@ static int mpt_iocinfo_proc_show(struct seq_file *m, void *v)
@@ -35913,8 +38800,20 @@ index fb69baa..cf7ad22 100644
        /*
         *  Rounding UP to nearest 4-kB boundary here...
         */
+@@ -6769,7 +6774,11 @@ static int mpt_iocinfo_proc_show(struct seq_file *m, void *v)
+                                       ioc->facts.GlobalCredits);
+       seq_printf(m, "  Frames   @ 0x%p (Dma @ 0x%p)\n",
++#ifdef CONFIG_GRKERNSEC_HIDESYM
++                                      NULL, NULL);
++#else
+                                       (void *)ioc->alloc, (void *)(ulong)ioc->alloc_dma);
++#endif
+       sz = (ioc->reply_sz * ioc->reply_depth) + 128;
+       seq_printf(m, "    {CurRepSz=%d} x {CurRepDepth=%d} = %d bytes ^= 0x%x\n",
+                                       ioc->reply_sz, ioc->reply_depth, ioc->reply_sz*ioc->reply_depth, sz);
 diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c
-index 551262e..7551198 100644
+index fa43c39..daeb158 100644
 --- a/drivers/message/fusion/mptsas.c
 +++ b/drivers/message/fusion/mptsas.c
 @@ -446,6 +446,23 @@ mptsas_is_end_device(struct mptsas_devinfo * attached)
@@ -35966,10 +38865,10 @@ index 551262e..7551198 100644
  mptsas_get_port(struct mptsas_phyinfo *phy_info)
  {
 diff --git a/drivers/message/fusion/mptscsih.c b/drivers/message/fusion/mptscsih.c
-index 0c3ced7..1fe34ec 100644
+index 164afa7..b6b2e74 100644
 --- a/drivers/message/fusion/mptscsih.c
 +++ b/drivers/message/fusion/mptscsih.c
-@@ -1270,15 +1270,16 @@ mptscsih_info(struct Scsi_Host *SChost)
+@@ -1271,15 +1271,16 @@ mptscsih_info(struct Scsi_Host *SChost)
  
        h = shost_priv(SChost);
  
@@ -36154,7 +39053,7 @@ index a8c08f3..155fe3d 100644
  #endif
  
 diff --git a/drivers/mfd/janz-cmodio.c b/drivers/mfd/janz-cmodio.c
-index 965c480..71f2db9 100644
+index 45ece11..8efa218 100644
 --- a/drivers/mfd/janz-cmodio.c
 +++ b/drivers/mfd/janz-cmodio.c
 @@ -13,6 +13,7 @@
@@ -36165,6 +39064,70 @@ index 965c480..71f2db9 100644
  #include <linux/init.h>
  #include <linux/pci.h>
  #include <linux/interrupt.h>
+diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c
+index a5f9888..1c0ed56 100644
+--- a/drivers/mfd/twl4030-irq.c
++++ b/drivers/mfd/twl4030-irq.c
+@@ -35,6 +35,7 @@
+ #include <linux/of.h>
+ #include <linux/irqdomain.h>
+ #include <linux/i2c/twl.h>
++#include <asm/pgtable.h>
+ #include "twl-core.h"
+@@ -728,10 +729,12 @@ int twl4030_init_irq(struct device *dev, int irq_num)
+        * Install an irq handler for each of the SIH modules;
+        * clone dummy irq_chip since PIH can't *do* anything
+        */
+-      twl4030_irq_chip = dummy_irq_chip;
+-      twl4030_irq_chip.name = "twl4030";
++      pax_open_kernel();
++      memcpy((void *)&twl4030_irq_chip, &dummy_irq_chip, sizeof twl4030_irq_chip);
++      *(const char **)&twl4030_irq_chip.name = "twl4030";
+-      twl4030_sih_irq_chip.irq_ack = dummy_irq_chip.irq_ack;
++      *(void **)&twl4030_sih_irq_chip.irq_ack = dummy_irq_chip.irq_ack;
++      pax_close_kernel();
+       for (i = irq_base; i < irq_end; i++) {
+               irq_set_chip_and_handler(i, &twl4030_irq_chip,
+diff --git a/drivers/mfd/twl6030-irq.c b/drivers/mfd/twl6030-irq.c
+index 277a8db..0e0b754 100644
+--- a/drivers/mfd/twl6030-irq.c
++++ b/drivers/mfd/twl6030-irq.c
+@@ -387,10 +387,12 @@ int twl6030_init_irq(struct device *dev, int irq_num)
+        * install an irq handler for each of the modules;
+        * clone dummy irq_chip since PIH can't *do* anything
+        */
+-      twl6030_irq_chip = dummy_irq_chip;
+-      twl6030_irq_chip.name = "twl6030";
+-      twl6030_irq_chip.irq_set_type = NULL;
+-      twl6030_irq_chip.irq_set_wake = twl6030_irq_set_wake;
++      pax_open_kernel();
++      memcpy((void *)&twl6030_irq_chip, &dummy_irq_chip, sizeof twl6030_irq_chip);
++      *(const char **)&twl6030_irq_chip.name = "twl6030";
++      *(void **)&twl6030_irq_chip.irq_set_type = NULL;
++      *(void **)&twl6030_irq_chip.irq_set_wake = twl6030_irq_set_wake;
++      pax_close_kernel();
+       for (i = irq_base; i < irq_end; i++) {
+               irq_set_chip_and_handler(i, &twl6030_irq_chip,
+diff --git a/drivers/misc/c2port/core.c b/drivers/misc/c2port/core.c
+index f428d86..274c368 100644
+--- a/drivers/misc/c2port/core.c
++++ b/drivers/misc/c2port/core.c
+@@ -924,7 +924,9 @@ struct c2port_device *c2port_device_register(char *name,
+       mutex_init(&c2dev->mutex);
+       /* Create binary file */
+-      c2port_bin_attrs.size = ops->blocks_num * ops->block_size;
++      pax_open_kernel();
++      *(size_t *)&c2port_bin_attrs.size = ops->blocks_num * ops->block_size;
++      pax_close_kernel();
+       ret = device_create_bin_file(c2dev->dev, &c2port_bin_attrs);
+       if (unlikely(ret))
+               goto error_device_create_bin_file;
 diff --git a/drivers/misc/kgdbts.c b/drivers/misc/kgdbts.c
 index 3aa9a96..59cf685 100644
 --- a/drivers/misc/kgdbts.c
@@ -36520,10 +39483,10 @@ index d971817..33bdca5 100644
  
                break;
 diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c
-index a0e1720..ee63d0b 100644
+index 6d8f701..35b6369 100644
 --- a/drivers/mmc/core/mmc_ops.c
 +++ b/drivers/mmc/core/mmc_ops.c
-@@ -245,7 +245,7 @@ mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host,
+@@ -247,7 +247,7 @@ mmc_send_cxd_data(struct mmc_card *card, struct mmc_host *host,
        void *data_buf;
        int is_on_stack;
  
@@ -36544,10 +39507,10 @@ index 53b8fd9..615b462 100644
 +} __do_const;
  #endif /* _DW_MMC_H_ */
 diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
-index c9ec725..178e79a 100644
+index 82a8de1..3c56ccb 100644
 --- a/drivers/mmc/host/sdhci-s3c.c
 +++ b/drivers/mmc/host/sdhci-s3c.c
-@@ -719,9 +719,11 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
+@@ -721,9 +721,11 @@ static int sdhci_s3c_probe(struct platform_device *pdev)
         * we can use overriding functions instead of default.
         */
        if (host->quirks & SDHCI_QUIRK_NONSTANDARD_CLOCK) {
@@ -36576,11 +39539,11 @@ index a4eb8b5..8c0628f 100644
                               "ECC needs a full sector write (adr: %lx size %lx)\n",
                               (long) to, (long) len);
 diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
-index e706a23..b3d262f 100644
+index 0c8bb6b..6f35deb 100644
 --- a/drivers/mtd/nand/denali.c
 +++ b/drivers/mtd/nand/denali.c
-@@ -26,6 +26,7 @@
- #include <linux/pci.h>
+@@ -24,6 +24,7 @@
+ #include <linux/slab.h>
  #include <linux/mtd/mtd.h>
  #include <linux/module.h>
 +#include <linux/slab.h>
@@ -36599,8 +39562,44 @@ index 51b9d6a..52af9a7 100644
  #include <linux/mtd/mtd.h>
  #include <linux/mtd/nand.h>
  #include <linux/mtd/nftl.h>
+diff --git a/drivers/mtd/sm_ftl.c b/drivers/mtd/sm_ftl.c
+index 8dd6ba5..419cc1d 100644
+--- a/drivers/mtd/sm_ftl.c
++++ b/drivers/mtd/sm_ftl.c
+@@ -56,7 +56,7 @@ ssize_t sm_attr_show(struct device *dev, struct device_attribute *attr,
+ #define SM_CIS_VENDOR_OFFSET 0x59
+ struct attribute_group *sm_create_sysfs_attributes(struct sm_ftl *ftl)
+ {
+-      struct attribute_group *attr_group;
++      attribute_group_no_const *attr_group;
+       struct attribute **attributes;
+       struct sm_sysfs_attribute *vendor_attribute;
+diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
+index 27cdf1f..8c37357 100644
+--- a/drivers/net/bonding/bond_main.c
++++ b/drivers/net/bonding/bond_main.c
+@@ -4859,7 +4859,7 @@ static unsigned int bond_get_num_tx_queues(void)
+       return tx_queues;
+ }
+-static struct rtnl_link_ops bond_link_ops __read_mostly = {
++static struct rtnl_link_ops bond_link_ops = {
+       .kind                   = "bond",
+       .priv_size              = sizeof(struct bonding),
+       .setup                  = bond_setup,
+@@ -4975,8 +4975,8 @@ static void __exit bonding_exit(void)
+       bond_destroy_debugfs();
+-      rtnl_link_unregister(&bond_link_ops);
+       unregister_pernet_subsys(&bond_net_ops);
++      rtnl_link_unregister(&bond_link_ops);
+ #ifdef CONFIG_NET_POLL_CONTROLLER
+       /*
 diff --git a/drivers/net/ethernet/8390/ax88796.c b/drivers/net/ethernet/8390/ax88796.c
-index 203ff9d..0968ca8 100644
+index 70dba5d..11a0919 100644
 --- a/drivers/net/ethernet/8390/ax88796.c
 +++ b/drivers/net/ethernet/8390/ax88796.c
 @@ -872,9 +872,11 @@ static int ax_probe(struct platform_device *pdev)
@@ -36617,10 +39616,10 @@ index 203ff9d..0968ca8 100644
  
        if (!request_mem_region(mem->start, mem_size, pdev->name)) {
 diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
-index 9c5ea6c..eaad276 100644
+index 0991534..8098e92 100644
 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
 +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
-@@ -1046,7 +1046,7 @@ static inline u8 bnx2x_get_path_func_num(struct bnx2x *bp)
+@@ -1094,7 +1094,7 @@ static inline u8 bnx2x_get_path_func_num(struct bnx2x *bp)
  static inline void bnx2x_init_bp_objs(struct bnx2x *bp)
  {
        /* RX_MODE controlling object */
@@ -36629,8 +39628,81 @@ index 9c5ea6c..eaad276 100644
  
        /* multicast configuration controlling object */
        bnx2x_init_mcast_obj(bp, &bp->mcast_obj, bp->fp->cl_id, bp->fp->cid,
+diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
+index 10bc093..a2fb42a 100644
+--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
++++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_dcb.c
+@@ -2136,12 +2136,12 @@ static u8 bnx2x_dcbnl_get_cap(struct net_device *netdev, int capid, u8 *cap)
+                       break;
+               default:
+                       BNX2X_ERR("Non valid capability ID\n");
+-                      rval = -EINVAL;
++                      rval = 1;
+                       break;
+               }
+       } else {
+               DP(BNX2X_MSG_DCB, "DCB disabled\n");
+-              rval = -EINVAL;
++              rval = 1;
+       }
+       DP(BNX2X_MSG_DCB, "capid %d:%x\n", capid, *cap);
+@@ -2167,12 +2167,12 @@ static int bnx2x_dcbnl_get_numtcs(struct net_device *netdev, int tcid, u8 *num)
+                       break;
+               default:
+                       BNX2X_ERR("Non valid TC-ID\n");
+-                      rval = -EINVAL;
++                      rval = 1;
+                       break;
+               }
+       } else {
+               DP(BNX2X_MSG_DCB, "DCB disabled\n");
+-              rval = -EINVAL;
++              rval = 1;
+       }
+       return rval;
+@@ -2185,7 +2185,7 @@ static int bnx2x_dcbnl_set_numtcs(struct net_device *netdev, int tcid, u8 num)
+       return -EINVAL;
+ }
+-static u8  bnx2x_dcbnl_get_pfc_state(struct net_device *netdev)
++static u8 bnx2x_dcbnl_get_pfc_state(struct net_device *netdev)
+ {
+       struct bnx2x *bp = netdev_priv(netdev);
+       DP(BNX2X_MSG_DCB, "state = %d\n", bp->dcbx_local_feat.pfc.enabled);
+@@ -2387,12 +2387,12 @@ static u8 bnx2x_dcbnl_get_featcfg(struct net_device *netdev, int featid,
+                       break;
+               default:
+                       BNX2X_ERR("Non valid featrue-ID\n");
+-                      rval = -EINVAL;
++                      rval = 1;
+                       break;
+               }
+       } else {
+               DP(BNX2X_MSG_DCB, "DCB disabled\n");
+-              rval = -EINVAL;
++              rval = 1;
+       }
+       return rval;
+@@ -2428,12 +2428,12 @@ static u8 bnx2x_dcbnl_set_featcfg(struct net_device *netdev, int featid,
+                       break;
+               default:
+                       BNX2X_ERR("Non valid featrue-ID\n");
+-                      rval = -EINVAL;
++                      rval = 1;
+                       break;
+               }
+       } else {
+               DP(BNX2X_MSG_DCB, "dcbnl call not valid\n");
+-              rval = -EINVAL;
++              rval = 1;
+       }
+       return rval;
 diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
-index 614981c..11216c7 100644
+index 09b625e..15b16fe 100644
 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
 +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c
 @@ -2375,15 +2375,14 @@ int bnx2x_config_rx_mode(struct bnx2x *bp,
@@ -36655,10 +39727,10 @@ index 614981c..11216c7 100644
  }
  
 diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
-index acf2fe4..efb96df 100644
+index adbd91b..58ec94a 100644
 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
 +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
-@@ -1281,8 +1281,7 @@ int bnx2x_vlan_mac_move(struct bnx2x *bp,
+@@ -1293,8 +1293,7 @@ int bnx2x_vlan_mac_move(struct bnx2x *bp,
  
  /********************* RX MODE ****************/
  
@@ -36669,10 +39741,10 @@ index acf2fe4..efb96df 100644
  /**
   * bnx2x_config_rx_mode - Send and RX_MODE ramrod according to the provided parameters.
 diff --git a/drivers/net/ethernet/broadcom/tg3.h b/drivers/net/ethernet/broadcom/tg3.h
-index d9308c32..d87b824 100644
+index d330e81..ce1fb9a 100644
 --- a/drivers/net/ethernet/broadcom/tg3.h
 +++ b/drivers/net/ethernet/broadcom/tg3.h
-@@ -140,6 +140,7 @@
+@@ -146,6 +146,7 @@
  #define  CHIPREV_ID_5750_A0            0x4000
  #define  CHIPREV_ID_5750_A1            0x4001
  #define  CHIPREV_ID_5750_A3            0x4003
@@ -36694,7 +39766,7 @@ index 8cffcdf..aadf043 100644
  #define L2T_SKB_CB(skb) ((struct l2t_skb_cb *)(skb)->cb)
  
 diff --git a/drivers/net/ethernet/dec/tulip/de4x5.c b/drivers/net/ethernet/dec/tulip/de4x5.c
-index f879e92..726f20f 100644
+index 4c83003..2a2a5b9 100644
 --- a/drivers/net/ethernet/dec/tulip/de4x5.c
 +++ b/drivers/net/ethernet/dec/tulip/de4x5.c
 @@ -5388,7 +5388,7 @@ de4x5_ioctl(struct net_device *dev, struct ifreq *rq, int cmd)
@@ -36716,10 +39788,10 @@ index f879e92..726f20f 100644
        break;
      }
 diff --git a/drivers/net/ethernet/emulex/benet/be_main.c b/drivers/net/ethernet/emulex/benet/be_main.c
-index d1b6cc5..cde0d97 100644
+index 4d6f3c5..6169e60 100644
 --- a/drivers/net/ethernet/emulex/benet/be_main.c
 +++ b/drivers/net/ethernet/emulex/benet/be_main.c
-@@ -403,7 +403,7 @@ static void accumulate_16bit_val(u32 *acc, u16 val)
+@@ -455,7 +455,7 @@ static void accumulate_16bit_val(u32 *acc, u16 val)
  
        if (wrapped)
                newacc += 65536;
@@ -36755,20 +39827,33 @@ index b901a01..1ff32ee 100644
  #include "ftmac100.h"
  
 diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
-index d929131..aed108f 100644
+index bb9256a..56d8752 100644
 --- a/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
 +++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c
-@@ -865,7 +865,7 @@ void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter)
-       /* store the new cycle speed */
-       adapter->cycle_speed = cycle_speed;
+@@ -806,7 +806,7 @@ void ixgbe_ptp_start_cyclecounter(struct ixgbe_adapter *adapter)
+       }
  
+       /* update the base incval used to calculate frequency adjustment */
 -      ACCESS_ONCE(adapter->base_incval) = incval;
 +      ACCESS_ONCE_RW(adapter->base_incval) = incval;
        smp_mb();
  
-       /* grab the ptp lock */
+       /* need lock to prevent incorrect read while modifying cyclecounter */
+diff --git a/drivers/net/ethernet/lantiq_etop.c b/drivers/net/ethernet/lantiq_etop.c
+index c124e67..db9b897 100644
+--- a/drivers/net/ethernet/lantiq_etop.c
++++ b/drivers/net/ethernet/lantiq_etop.c
+@@ -769,7 +769,7 @@ ltq_etop_probe(struct platform_device *pdev)
+       return 0;
+ err_free:
+-      kfree(dev);
++      free_netdev(dev);
+ err_out:
+       return err;
+ }
 diff --git a/drivers/net/ethernet/neterion/vxge/vxge-config.c b/drivers/net/ethernet/neterion/vxge/vxge-config.c
-index c2e420a..26a75e0 100644
+index fbe5363..266b4e3 100644
 --- a/drivers/net/ethernet/neterion/vxge/vxge-config.c
 +++ b/drivers/net/ethernet/neterion/vxge/vxge-config.c
 @@ -3461,7 +3461,10 @@ __vxge_hw_fifo_create(struct __vxge_hw_vpath_handle *vp,
@@ -36793,10 +39878,10 @@ index c2e420a..26a75e0 100644
                __vxge_hw_mempool_create(vpath->hldev,
                        fifo->config->memblock_size,
 diff --git a/drivers/net/ethernet/realtek/r8169.c b/drivers/net/ethernet/realtek/r8169.c
-index 927aa33..a6c2518 100644
+index 998974f..ecd26db 100644
 --- a/drivers/net/ethernet/realtek/r8169.c
 +++ b/drivers/net/ethernet/realtek/r8169.c
-@@ -747,22 +747,22 @@ struct rtl8169_private {
+@@ -741,22 +741,22 @@ struct rtl8169_private {
        struct mdio_ops {
                void (*write)(struct rtl8169_private *, int, int);
                int (*read)(struct rtl8169_private *, int);
@@ -36824,7 +39909,7 @@ index 927aa33..a6c2518 100644
        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/sfc/ptp.c b/drivers/net/ethernet/sfc/ptp.c
-index 0767043f..08c2553 100644
+index 3f93624..cf01144 100644
 --- a/drivers/net/ethernet/sfc/ptp.c
 +++ b/drivers/net/ethernet/sfc/ptp.c
 @@ -553,7 +553,7 @@ static int efx_ptp_synchronize(struct efx_nic *efx, unsigned int num_readings)
@@ -36852,7 +39937,7 @@ index 0c74a70..3bc6f68 100644
  
  /* To mask all all interrupts.*/
 diff --git a/drivers/net/hyperv/hyperv_net.h b/drivers/net/hyperv/hyperv_net.h
-index 5fd6f46..ee1f265 100644
+index e6fe0d8..2b7d752 100644
 --- a/drivers/net/hyperv/hyperv_net.h
 +++ b/drivers/net/hyperv/hyperv_net.h
 @@ -101,7 +101,7 @@ struct rndis_device {
@@ -36865,7 +39950,7 @@ index 5fd6f46..ee1f265 100644
        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 928148c..d83298e 100644
+index 2b657d4..9903bc0 100644
 --- a/drivers/net/hyperv/rndis_filter.c
 +++ b/drivers/net/hyperv/rndis_filter.c
 @@ -107,7 +107,7 @@ static struct rndis_request *get_rndis_request(struct rndis_device *dev,
@@ -36877,7 +39962,7 @@ index 928148c..d83298e 100644
  
        /* Add to the request list */
        spin_lock_irqsave(&dev->request_lock, flags);
-@@ -760,7 +760,7 @@ static void rndis_filter_halt_device(struct rndis_device *dev)
+@@ -758,7 +758,7 @@ static void rndis_filter_halt_device(struct rndis_device *dev)
  
        /* Setup the rndis set */
        halt = &request->request_msg.msg.halt_req;
@@ -36887,10 +39972,10 @@ index 928148c..d83298e 100644
        /* Ignore return since this msg is optional. */
        rndis_filter_send_request(dev, request);
 diff --git a/drivers/net/ieee802154/fakehard.c b/drivers/net/ieee802154/fakehard.c
-index 7d39add..037e1da 100644
+index 1e9cb0b..7839125 100644
 --- a/drivers/net/ieee802154/fakehard.c
 +++ b/drivers/net/ieee802154/fakehard.c
-@@ -386,7 +386,7 @@ static int __devinit ieee802154fake_probe(struct platform_device *pdev)
+@@ -386,7 +386,7 @@ static int ieee802154fake_probe(struct platform_device *pdev)
        phy->transmit_power = 0xbf;
  
        dev->netdev_ops = &fake_ops;
@@ -36899,6 +39984,42 @@ index 7d39add..037e1da 100644
  
        priv = netdev_priv(dev);
        priv->phy = phy;
+diff --git a/drivers/net/macvlan.c b/drivers/net/macvlan.c
+index e5cb723..1fc0461 100644
+--- a/drivers/net/macvlan.c
++++ b/drivers/net/macvlan.c
+@@ -852,13 +852,15 @@ static const struct nla_policy macvlan_policy[IFLA_MACVLAN_MAX + 1] = {
+ int macvlan_link_register(struct rtnl_link_ops *ops)
+ {
+       /* common fields */
+-      ops->priv_size          = sizeof(struct macvlan_dev);
+-      ops->validate           = macvlan_validate;
+-      ops->maxtype            = IFLA_MACVLAN_MAX;
+-      ops->policy             = macvlan_policy;
+-      ops->changelink         = macvlan_changelink;
+-      ops->get_size           = macvlan_get_size;
+-      ops->fill_info          = macvlan_fill_info;
++      pax_open_kernel();
++      *(size_t *)&ops->priv_size      = sizeof(struct macvlan_dev);
++      *(void **)&ops->validate        = macvlan_validate;
++      *(int *)&ops->maxtype           = IFLA_MACVLAN_MAX;
++      *(const void **)&ops->policy    = macvlan_policy;
++      *(void **)&ops->changelink      = macvlan_changelink;
++      *(void **)&ops->get_size        = macvlan_get_size;
++      *(void **)&ops->fill_info       = macvlan_fill_info;
++      pax_close_kernel();
+       return rtnl_link_register(ops);
+ };
+@@ -914,7 +916,7 @@ static int macvlan_device_event(struct notifier_block *unused,
+       return NOTIFY_DONE;
+ }
+-static struct notifier_block macvlan_notifier_block __read_mostly = {
++static struct notifier_block macvlan_notifier_block = {
+       .notifier_call  = macvlan_device_event,
+ };
 diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
 index 0f0f9ce..0ca5819 100644
 --- a/drivers/net/macvtap.c
@@ -36925,7 +40046,7 @@ index daec9b0..6428fcb 100644
  }
  EXPORT_SYMBOL(free_mdio_bitbang);
 diff --git a/drivers/net/ppp/ppp_generic.c b/drivers/net/ppp/ppp_generic.c
-index eb3f5ce..d773730 100644
+index 508570e..f706dc7 100644
 --- a/drivers/net/ppp/ppp_generic.c
 +++ b/drivers/net/ppp/ppp_generic.c
 @@ -999,7 +999,6 @@ ppp_net_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
@@ -36947,10 +40068,10 @@ index eb3f5ce..d773730 100644
                err = 0;
                break;
 diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
-index ad86660..9fd0884 100644
+index 8efe47a..a8075c5 100644
 --- a/drivers/net/team/team.c
 +++ b/drivers/net/team/team.c
-@@ -2601,7 +2601,7 @@ static int team_device_event(struct notifier_block *unused,
+@@ -2603,7 +2603,7 @@ static int team_device_event(struct notifier_block *unused,
        return NOTIFY_DONE;
  }
  
@@ -36960,10 +40081,10 @@ index ad86660..9fd0884 100644
  };
  
 diff --git a/drivers/net/tun.c b/drivers/net/tun.c
-index 0873cdc..ddb178e 100644
+index cb95fe5..a5bdab5 100644
 --- a/drivers/net/tun.c
 +++ b/drivers/net/tun.c
-@@ -1374,7 +1374,7 @@ static int set_offload(struct tun_struct *tun, unsigned long arg)
+@@ -1838,7 +1838,7 @@ unlock:
  }
  
  static long __tun_chr_ioctl(struct file *file, unsigned int cmd,
@@ -36972,18 +40093,18 @@ index 0873cdc..ddb178e 100644
  {
        struct tun_file *tfile = file->private_data;
        struct tun_struct *tun;
-@@ -1387,6 +1387,9 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd,
+@@ -1850,6 +1850,9 @@ static long __tun_chr_ioctl(struct file *file, unsigned int cmd,
        int vnet_hdr_sz;
        int ret;
  
 +      if (ifreq_len > sizeof ifr)
 +              return -EFAULT;
 +
-       if (cmd == TUNSETIFF || _IOC_TYPE(cmd) == 0x89) {
+       if (cmd == TUNSETIFF || cmd == TUNSETQUEUE || _IOC_TYPE(cmd) == 0x89) {
                if (copy_from_user(&ifr, argp, ifreq_len))
                        return -EFAULT;
 diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c
-index 605a4ba..a883dd1 100644
+index cd8ccb2..cff5144 100644
 --- a/drivers/net/usb/hso.c
 +++ b/drivers/net/usb/hso.c
 @@ -71,7 +71,7 @@
@@ -37064,7 +40185,7 @@ index 605a4ba..a883dd1 100644
                                        /* Setup and send a ctrl req read on
                                         * port i */
                                        if (!serial->rx_urb_filled[0]) {
-@@ -3078,7 +3077,7 @@ static int hso_resume(struct usb_interface *iface)
+@@ -3079,7 +3078,7 @@ static int hso_resume(struct usb_interface *iface)
        /* Start all serial ports */
        for (i = 0; i < HSO_SERIAL_TTY_MINORS; i++) {
                if (serial_table[i] && (serial_table[i]->interface == iface)) {
@@ -37073,63 +40194,32 @@ index 605a4ba..a883dd1 100644
                                result =
                                    hso_start_serial_device(serial_table[i], GFP_NOIO);
                                hso_kick_transmit(dev2ser(serial_table[i]));
-diff --git a/drivers/net/usb/usbnet.c b/drivers/net/usb/usbnet.c
-index edb81ed..ab8931c 100644
---- a/drivers/net/usb/usbnet.c
-+++ b/drivers/net/usb/usbnet.c
-@@ -380,6 +380,12 @@ static int rx_submit (struct usbnet *dev, struct urb *urb, gfp_t flags)
-       unsigned long           lockflags;
-       size_t                  size = dev->rx_urb_size;
-+      /* prevent rx skb allocation when error ratio is high */
-+      if (test_bit(EVENT_RX_KILL, &dev->flags)) {
-+              usb_free_urb(urb);
-+              return -ENOLINK;
-+      }
-+
-       skb = __netdev_alloc_skb_ip_align(dev->net, size, flags);
-       if (!skb) {
-               netif_dbg(dev, rx_err, dev->net, "no rx skb\n");
-@@ -539,6 +545,17 @@ block:
-               break;
-       }
-+      /* stop rx if packet error rate is high */
-+      if (++dev->pkt_cnt > 30) {
-+              dev->pkt_cnt = 0;
-+              dev->pkt_err = 0;
-+      } else {
-+              if (state == rx_cleanup)
-+                      dev->pkt_err++;
-+              if (dev->pkt_err > 20)
-+                      set_bit(EVENT_RX_KILL, &dev->flags);
-+      }
-+
-       state = defer_bh(dev, skb, &dev->rxq, state);
-       if (urb) {
-@@ -790,6 +807,11 @@ int usbnet_open (struct net_device *net)
-                  (dev->driver_info->flags & FLAG_FRAMING_AX) ? "ASIX" :
-                  "simple");
-+      /* reset rx error state */
-+      dev->pkt_cnt = 0;
-+      dev->pkt_err = 0;
-+      clear_bit(EVENT_RX_KILL, &dev->flags);
-+
-       // delay posting reads until we're fully open
-       tasklet_schedule (&dev->bh);
-       if (info->manage_power) {
-@@ -1253,6 +1275,9 @@ static void usbnet_bh (unsigned long param)
-               }
-       }
-+      /* restart RX again after disabling due to high error rate */
-+      clear_bit(EVENT_RX_KILL, &dev->flags);
-+
-       // waiting for all pending urbs to complete?
-       if (dev->wait) {
-               if ((dev->txq.qlen + dev->rxq.qlen + dev->done.qlen) == 0) {
+diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c
+index 6993bfa..9053a34 100644
+--- a/drivers/net/vxlan.c
++++ b/drivers/net/vxlan.c
+@@ -1428,7 +1428,7 @@ nla_put_failure:
+       return -EMSGSIZE;
+ }
+-static struct rtnl_link_ops vxlan_link_ops __read_mostly = {
++static struct rtnl_link_ops vxlan_link_ops = {
+       .kind           = "vxlan",
+       .maxtype        = IFLA_VXLAN_MAX,
+       .policy         = vxlan_policy,
+diff --git a/drivers/net/wireless/at76c50x-usb.c b/drivers/net/wireless/at76c50x-usb.c
+index 77fa428..996b355 100644
+--- a/drivers/net/wireless/at76c50x-usb.c
++++ b/drivers/net/wireless/at76c50x-usb.c
+@@ -353,7 +353,7 @@ static int at76_dfu_get_state(struct usb_device *udev, u8 *state)
+ }
+ /* Convert timeout from the DFU status to jiffies */
+-static inline unsigned long at76_get_timeout(struct dfu_status *s)
++static inline unsigned long __intentional_overflow(-1) at76_get_timeout(struct dfu_status *s)
+ {
+       return msecs_to_jiffies((s->poll_timeout[2] << 16)
+                               | (s->poll_timeout[1] << 8)
 diff --git a/drivers/net/wireless/ath/ath9k/ar9002_mac.c b/drivers/net/wireless/ath/ath9k/ar9002_mac.c
 index 8d78253..bebbb68 100644
 --- a/drivers/net/wireless/ath/ath9k/ar9002_mac.c
@@ -37336,10 +40426,10 @@ index 301bf72..3f5654f 100644
  
  static u16 ar9003_calc_ptr_chksum(struct ar9003_txc *ads)
 diff --git a/drivers/net/wireless/ath/ath9k/hw.h b/drivers/net/wireless/ath/ath9k/hw.h
-index dbc1b7a..67e2ca2 100644
+index 9d26fc5..60d9f14 100644
 --- a/drivers/net/wireless/ath/ath9k/hw.h
 +++ b/drivers/net/wireless/ath/ath9k/hw.h
-@@ -657,7 +657,7 @@ struct ath_hw_private_ops {
+@@ -658,7 +658,7 @@ struct ath_hw_private_ops {
  
        /* ANI */
        void (*ani_cache_ini_regs)(struct ath_hw *ah);
@@ -37348,7 +40438,7 @@ index dbc1b7a..67e2ca2 100644
  
  /**
   * struct ath_hw_ops - callbacks used by hardware code and driver code
-@@ -687,7 +687,7 @@ struct ath_hw_ops {
+@@ -688,7 +688,7 @@ struct ath_hw_ops {
        void (*antdiv_comb_conf_set)(struct ath_hw *ah,
                        struct ath_hw_antcomb_conf *antconf);
        void (*antctrl_shared_chain_lnadiv)(struct ath_hw *hw, bool enable);
@@ -37357,30 +40447,8 @@ index dbc1b7a..67e2ca2 100644
  
  struct ath_nf_limits {
        s16 max;
-diff --git a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h
-index 71ced17..cd82b12 100644
---- a/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h
-+++ b/drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.h
-@@ -184,7 +184,7 @@ struct brcmf_cfg80211_event_loop {
-                                    struct net_device *ndev,
-                                    const struct brcmf_event_msg *e,
-                                    void *data);
--};
-+} __no_const;
- /* basic structure of scan request */
- struct brcmf_cfg80211_scan_req {
-@@ -239,7 +239,7 @@ struct brcmf_cfg80211_profile {
- struct brcmf_cfg80211_iscan_eloop {
-       s32 (*handler[WL_SCAN_ERSULTS_LAST])
-               (struct brcmf_cfg80211_info *cfg);
--};
-+} __no_const;
- /* dongle iscan controller */
- struct brcmf_cfg80211_iscan_ctrl {
 diff --git a/drivers/net/wireless/iwlegacy/3945-mac.c b/drivers/net/wireless/iwlegacy/3945-mac.c
-index e252acb..6ad1e65 100644
+index 3726cd6..b655808 100644
 --- a/drivers/net/wireless/iwlegacy/3945-mac.c
 +++ b/drivers/net/wireless/iwlegacy/3945-mac.c
 @@ -3615,7 +3615,9 @@ il3945_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
@@ -37395,7 +40463,7 @@ index e252acb..6ad1e65 100644
  
        D_INFO("*** LOAD DRIVER ***\n");
 diff --git a/drivers/net/wireless/iwlwifi/dvm/debugfs.c b/drivers/net/wireless/iwlwifi/dvm/debugfs.c
-index 1a98fa3..51e6661 100644
+index 5b9533e..7733880 100644
 --- a/drivers/net/wireless/iwlwifi/dvm/debugfs.c
 +++ b/drivers/net/wireless/iwlwifi/dvm/debugfs.c
 @@ -203,7 +203,7 @@ static ssize_t iwl_dbgfs_sram_write(struct file *file,
@@ -37516,10 +40584,10 @@ index 1a98fa3..51e6661 100644
        memset(buf, 0, sizeof(buf));
        buf_size = min(count, sizeof(buf) - 1);
 diff --git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c
-index fe0fffd..b4c5724 100644
+index 35708b9..31f7754 100644
 --- a/drivers/net/wireless/iwlwifi/pcie/trans.c
 +++ b/drivers/net/wireless/iwlwifi/pcie/trans.c
-@@ -1967,7 +1967,7 @@ static ssize_t iwl_dbgfs_interrupt_write(struct file *file,
+@@ -1100,7 +1100,7 @@ static ssize_t iwl_dbgfs_interrupt_write(struct file *file,
        struct isr_statistics *isr_stats = &trans_pcie->isr_stats;
  
        char buf[8];
@@ -37528,7 +40596,7 @@ index fe0fffd..b4c5724 100644
        u32 reset_flag;
  
        memset(buf, 0, sizeof(buf));
-@@ -1988,7 +1988,7 @@ static ssize_t iwl_dbgfs_csr_write(struct file *file,
+@@ -1121,7 +1121,7 @@ static ssize_t iwl_dbgfs_csr_write(struct file *file,
  {
        struct iwl_trans *trans = file->private_data;
        char buf[8];
@@ -37538,29 +40606,67 @@ index fe0fffd..b4c5724 100644
  
        memset(buf, 0, sizeof(buf));
 diff --git a/drivers/net/wireless/mac80211_hwsim.c b/drivers/net/wireless/mac80211_hwsim.c
-index 429ca32..f86236b 100644
+index ff90855..e46d223 100644
 --- a/drivers/net/wireless/mac80211_hwsim.c
 +++ b/drivers/net/wireless/mac80211_hwsim.c
-@@ -1751,9 +1751,11 @@ static int __init init_mac80211_hwsim(void)
-               return -EINVAL;
+@@ -2062,25 +2062,19 @@ static int __init init_mac80211_hwsim(void)
  
-       if (fake_hw_scan) {
+       if (channels > 1) {
+               hwsim_if_comb.num_different_channels = channels;
 -              mac80211_hwsim_ops.hw_scan = mac80211_hwsim_hw_scan;
+-              mac80211_hwsim_ops.cancel_hw_scan =
+-                      mac80211_hwsim_cancel_hw_scan;
 -              mac80211_hwsim_ops.sw_scan_start = NULL;
 -              mac80211_hwsim_ops.sw_scan_complete = NULL;
+-              mac80211_hwsim_ops.remain_on_channel =
+-                      mac80211_hwsim_roc;
+-              mac80211_hwsim_ops.cancel_remain_on_channel =
+-                      mac80211_hwsim_croc;
+-              mac80211_hwsim_ops.add_chanctx =
+-                      mac80211_hwsim_add_chanctx;
+-              mac80211_hwsim_ops.remove_chanctx =
+-                      mac80211_hwsim_remove_chanctx;
+-              mac80211_hwsim_ops.change_chanctx =
+-                      mac80211_hwsim_change_chanctx;
+-              mac80211_hwsim_ops.assign_vif_chanctx =
+-                      mac80211_hwsim_assign_vif_chanctx;
+-              mac80211_hwsim_ops.unassign_vif_chanctx =
+-                      mac80211_hwsim_unassign_vif_chanctx;
 +              pax_open_kernel();
 +              *(void **)&mac80211_hwsim_ops.hw_scan = mac80211_hwsim_hw_scan;
++              *(void **)&mac80211_hwsim_ops.cancel_hw_scan = mac80211_hwsim_cancel_hw_scan;
 +              *(void **)&mac80211_hwsim_ops.sw_scan_start = NULL;
 +              *(void **)&mac80211_hwsim_ops.sw_scan_complete = NULL;
++              *(void **)&mac80211_hwsim_ops.remain_on_channel = mac80211_hwsim_roc;
++              *(void **)&mac80211_hwsim_ops.cancel_remain_on_channel = mac80211_hwsim_croc;
++              *(void **)&mac80211_hwsim_ops.add_chanctx = mac80211_hwsim_add_chanctx;
++              *(void **)&mac80211_hwsim_ops.remove_chanctx = mac80211_hwsim_remove_chanctx;
++              *(void **)&mac80211_hwsim_ops.change_chanctx = mac80211_hwsim_change_chanctx;
++              *(void **)&mac80211_hwsim_ops.assign_vif_chanctx = mac80211_hwsim_assign_vif_chanctx;
++              *(void **)&mac80211_hwsim_ops.unassign_vif_chanctx = mac80211_hwsim_unassign_vif_chanctx;
 +              pax_close_kernel();
        }
  
        spin_lock_init(&hwsim_radio_lock);
+diff --git a/drivers/net/wireless/mwifiex/cfg80211.c b/drivers/net/wireless/mwifiex/cfg80211.c
+index cdb11b3..3eca710 100644
+--- a/drivers/net/wireless/mwifiex/cfg80211.c
++++ b/drivers/net/wireless/mwifiex/cfg80211.c
+@@ -1846,7 +1846,8 @@ mwifiex_cfg80211_scan(struct wiphy *wiphy,
+               }
+       }
+-      for (i = 0; i < request->n_channels; i++) {
++      for (i = 0; i < min_t(u32, request->n_channels,
++                            MWIFIEX_USER_SCAN_CHAN_MAX); i++) {
+               chan = request->channels[i];
+               priv->user_scan_cfg->chan_list[i].chan_number = chan->hw_value;
+               priv->user_scan_cfg->chan_list[i].radio_type = chan->band;
 diff --git a/drivers/net/wireless/rndis_wlan.c b/drivers/net/wireless/rndis_wlan.c
-index bd1f0cb..db85ab0 100644
+index abe1d03..fb02c22 100644
 --- a/drivers/net/wireless/rndis_wlan.c
 +++ b/drivers/net/wireless/rndis_wlan.c
-@@ -1235,7 +1235,7 @@ static int set_rts_threshold(struct usbnet *usbdev, u32 rts_threshold)
+@@ -1238,7 +1238,7 @@ static int set_rts_threshold(struct usbnet *usbdev, u32 rts_threshold)
  
        netdev_dbg(usbdev->net, "%s(): %i\n", __func__, rts_threshold);
  
@@ -37599,7 +40705,7 @@ index e488b94..14b6a0c 100644
        hdr->seq_ctrl &= cpu_to_le16(IEEE80211_SCTL_FRAG);
        hdr->seq_ctrl |= cpu_to_le16(seqno);
 diff --git a/drivers/net/wireless/ti/wl1251/sdio.c b/drivers/net/wireless/ti/wl1251/sdio.c
-index e2750a1..797e179 100644
+index e57ee48..541cf6c 100644
 --- a/drivers/net/wireless/ti/wl1251/sdio.c
 +++ b/drivers/net/wireless/ti/wl1251/sdio.c
 @@ -269,13 +269,17 @@ static int wl1251_sdio_probe(struct sdio_func *func,
@@ -37625,7 +40731,7 @@ index e2750a1..797e179 100644
                wl1251_info("using SDIO interrupt");
        }
 diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c
-index dadf1db..d9db7a7 100644
+index e5f5f8f..fdf15b7 100644
 --- a/drivers/net/wireless/ti/wl12xx/main.c
 +++ b/drivers/net/wireless/ti/wl12xx/main.c
 @@ -644,7 +644,9 @@ static int wl12xx_identify_chip(struct wl1271 *wl)
@@ -37651,7 +40757,7 @@ index dadf1db..d9db7a7 100644
                wlcore_set_min_fw_ver(wl, WL127X_CHIP_VER, WL127X_IFTYPE_VER,
                                      WL127X_MAJOR_VER, WL127X_SUBTYPE_VER,
 diff --git a/drivers/net/wireless/ti/wl18xx/main.c b/drivers/net/wireless/ti/wl18xx/main.c
-index a39682a..1e8220c 100644
+index 8d8c1f8..e754844 100644
 --- a/drivers/net/wireless/ti/wl18xx/main.c
 +++ b/drivers/net/wireless/ti/wl18xx/main.c
 @@ -1489,8 +1489,10 @@ static int wl18xx_setup(struct wl1271 *wl)
@@ -37667,6 +40773,19 @@ index a39682a..1e8220c 100644
        }
  
        /* Enable 11a Band only if we have 5G antennas */
+diff --git a/drivers/net/wireless/zd1211rw/zd_usb.c b/drivers/net/wireless/zd1211rw/zd_usb.c
+index ef2b171..bb513a6 100644
+--- a/drivers/net/wireless/zd1211rw/zd_usb.c
++++ b/drivers/net/wireless/zd1211rw/zd_usb.c
+@@ -387,7 +387,7 @@ static inline void handle_regs_int(struct urb *urb)
+ {
+       struct zd_usb *usb = urb->context;
+       struct zd_usb_interrupt *intr = &usb->intr;
+-      int len;
++      unsigned int len;
+       u16 int_num;
+       ZD_ASSERT(in_interrupt());
 diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
 index d93b2b6..ae50401 100644
 --- a/drivers/oprofile/buffer_sync.c
@@ -37732,6 +40851,19 @@ index ed2c3ec..deda85a 100644
        start_switch_worker();
  }
  
+diff --git a/drivers/oprofile/oprofile_files.c b/drivers/oprofile/oprofile_files.c
+index 84a208d..d61b0a1 100644
+--- a/drivers/oprofile/oprofile_files.c
++++ b/drivers/oprofile/oprofile_files.c
+@@ -27,7 +27,7 @@ unsigned long oprofile_time_slice;
+ #ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
+-static ssize_t timeout_read(struct file *file, char __user *buf,
++static ssize_t __intentional_overflow(-1) timeout_read(struct file *file, char __user *buf,
+               size_t count, loff_t *offset)
+ {
+       return oprofilefs_ulong_to_user(jiffies_to_msecs(oprofile_time_slice),
 diff --git a/drivers/oprofile/oprofile_stats.c b/drivers/oprofile/oprofile_stats.c
 index 917d28e..d62d981 100644
 --- a/drivers/oprofile/oprofile_stats.c
@@ -37787,6 +40919,19 @@ index 849357c..b83c1e0 100644
  {
        return __oprofilefs_create_file(sb, root, name,
                                        &atomic_ro_fops, 0444, val);
+diff --git a/drivers/oprofile/timer_int.c b/drivers/oprofile/timer_int.c
+index 93404f7..4a313d8 100644
+--- a/drivers/oprofile/timer_int.c
++++ b/drivers/oprofile/timer_int.c
+@@ -93,7 +93,7 @@ static int __cpuinit oprofile_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __refdata oprofile_cpu_notifier = {
++static struct notifier_block oprofile_cpu_notifier = {
+       .notifier_call = oprofile_cpu_notify,
+ };
 diff --git a/drivers/parport/procfs.c b/drivers/parport/procfs.c
 index 3f56bc0..707d642 100644
 --- a/drivers/parport/procfs.c
@@ -37809,6 +40954,21 @@ index 3f56bc0..707d642 100644
  }
  #endif /* IEEE1284.3 support. */
  
+diff --git a/drivers/pci/hotplug/acpiphp_ibm.c b/drivers/pci/hotplug/acpiphp_ibm.c
+index c35e8ad..fc33beb 100644
+--- a/drivers/pci/hotplug/acpiphp_ibm.c
++++ b/drivers/pci/hotplug/acpiphp_ibm.c
+@@ -464,7 +464,9 @@ static int __init ibm_acpiphp_init(void)
+               goto init_cleanup;
+       }
+-      ibm_apci_table_attr.size = ibm_get_table_from_acpi(NULL);
++      pax_open_kernel();
++      *(size_t *)&ibm_apci_table_attr.size = ibm_get_table_from_acpi(NULL);
++      pax_close_kernel();
+       retval = sysfs_create_bin_file(sysdir, &ibm_apci_table_attr);
+       return retval;
 diff --git a/drivers/pci/hotplug/cpcihp_generic.c b/drivers/pci/hotplug/cpcihp_generic.c
 index a6a71c4..c91097b 100644
 --- a/drivers/pci/hotplug/cpcihp_generic.c
@@ -37841,7 +41001,7 @@ index a6a71c4..c91097b 100644
  
        status = cpci_hp_register_controller(&generic_hpc);
 diff --git a/drivers/pci/hotplug/cpcihp_zt5550.c b/drivers/pci/hotplug/cpcihp_zt5550.c
-index 6bf8d2a..9711ce0 100644
+index 449b4bb..257e2e8 100644
 --- a/drivers/pci/hotplug/cpcihp_zt5550.c
 +++ b/drivers/pci/hotplug/cpcihp_zt5550.c
 @@ -59,7 +59,6 @@
@@ -37903,8 +41063,82 @@ index 76ba8a1..20ca857 100644
        dbg("int15 entry  = %p\n", compaq_int15_entry_point);
  
        /* initialize our int15 lock */
+diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c
+index 202f4a9..8ee47d0 100644
+--- a/drivers/pci/hotplug/pci_hotplug_core.c
++++ b/drivers/pci/hotplug/pci_hotplug_core.c
+@@ -448,8 +448,10 @@ int __pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus,
+               return -EINVAL;
+       }
+-      slot->ops->owner = owner;
+-      slot->ops->mod_name = mod_name;
++      pax_open_kernel();
++      *(struct module **)&slot->ops->owner = owner;
++      *(const char **)&slot->ops->mod_name = mod_name;
++      pax_close_kernel();
+       mutex_lock(&pci_hp_mutex);
+       /*
+diff --git a/drivers/pci/hotplug/pciehp_core.c b/drivers/pci/hotplug/pciehp_core.c
+index 939bd1d..a1459c9 100644
+--- a/drivers/pci/hotplug/pciehp_core.c
++++ b/drivers/pci/hotplug/pciehp_core.c
+@@ -91,7 +91,7 @@ static int init_slot(struct controller *ctrl)
+       struct slot *slot = ctrl->slot;
+       struct hotplug_slot *hotplug = NULL;
+       struct hotplug_slot_info *info = NULL;
+-      struct hotplug_slot_ops *ops = NULL;
++      hotplug_slot_ops_no_const *ops = NULL;
+       char name[SLOT_NAME_SIZE];
+       int retval = -ENOMEM;
+diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
+index 9c6e9bb..2916736 100644
+--- a/drivers/pci/pci-sysfs.c
++++ b/drivers/pci/pci-sysfs.c
+@@ -1071,7 +1071,7 @@ static int pci_create_attr(struct pci_dev *pdev, int num, int write_combine)
+ {
+       /* allocate attribute structure, piggyback attribute name */
+       int name_len = write_combine ? 13 : 10;
+-      struct bin_attribute *res_attr;
++      bin_attribute_no_const *res_attr;
+       int retval;
+       res_attr = kzalloc(sizeof(*res_attr) + name_len, GFP_ATOMIC);
+@@ -1256,7 +1256,7 @@ static struct device_attribute reset_attr = __ATTR(reset, 0200, NULL, reset_stor
+ static int pci_create_capabilities_sysfs(struct pci_dev *dev)
+ {
+       int retval;
+-      struct bin_attribute *attr;
++      bin_attribute_no_const *attr;
+       /* If the device has VPD, try to expose it in sysfs. */
+       if (dev->vpd) {
+@@ -1303,7 +1303,7 @@ int __must_check pci_create_sysfs_dev_files (struct pci_dev *pdev)
+ {
+       int retval;
+       int rom_size = 0;
+-      struct bin_attribute *attr;
++      bin_attribute_no_const *attr;
+       if (!sysfs_initialized)
+               return -EACCES;
+diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
+index e851829..a1a7196 100644
+--- a/drivers/pci/pci.h
++++ b/drivers/pci/pci.h
+@@ -98,7 +98,7 @@ struct pci_vpd_ops {
+ struct pci_vpd {
+       unsigned int len;
+       const struct pci_vpd_ops *ops;
+-      struct bin_attribute *attr; /* descriptor for sysfs VPD entry */
++      bin_attribute_no_const *attr; /* descriptor for sysfs VPD entry */
+ };
+ extern int pci_vpd_pci22_init(struct pci_dev *dev);
 diff --git a/drivers/pci/pcie/aspm.c b/drivers/pci/pcie/aspm.c
-index 449f257..0731e96 100644
+index 8474b6a..ee81993 100644
 --- a/drivers/pci/pcie/aspm.c
 +++ b/drivers/pci/pcie/aspm.c
 @@ -27,9 +27,9 @@
@@ -37921,7 +41155,7 @@ index 449f257..0731e96 100644
  #define ASPM_STATE_ALL                (ASPM_STATE_L0S | ASPM_STATE_L1)
  
 diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
-index ec909af..e7517f3 100644
+index 6186f03..1a78714 100644
 --- a/drivers/pci/probe.c
 +++ b/drivers/pci/probe.c
 @@ -173,7 +173,7 @@ int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type,
@@ -37954,8 +41188,46 @@ index 9b8505c..f00870a 100644
        proc_create("devices", 0, proc_bus_pci_dir,
                    &proc_bus_pci_dev_operations);
        proc_initialized = 1;
+diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c
+index 2111dbb..79e434b 100644
+--- a/drivers/platform/x86/msi-laptop.c
++++ b/drivers/platform/x86/msi-laptop.c
+@@ -820,12 +820,14 @@ static int __init load_scm_model_init(struct platform_device *sdev)
+       int result;
+       /* allow userland write sysfs file  */
+-      dev_attr_bluetooth.store = store_bluetooth;
+-      dev_attr_wlan.store = store_wlan;
+-      dev_attr_threeg.store = store_threeg;
+-      dev_attr_bluetooth.attr.mode |= S_IWUSR;
+-      dev_attr_wlan.attr.mode |= S_IWUSR;
+-      dev_attr_threeg.attr.mode |= S_IWUSR;
++      pax_open_kernel();
++      *(void **)&dev_attr_bluetooth.store = store_bluetooth;
++      *(void **)&dev_attr_wlan.store = store_wlan;
++      *(void **)&dev_attr_threeg.store = store_threeg;
++      *(umode_t *)&dev_attr_bluetooth.attr.mode |= S_IWUSR;
++      *(umode_t *)&dev_attr_wlan.attr.mode |= S_IWUSR;
++      *(umode_t *)&dev_attr_threeg.attr.mode |= S_IWUSR;
++      pax_close_kernel();
+       /* disable hardware control by fn key */
+       result = ec_read(MSI_STANDARD_EC_SCM_LOAD_ADDRESS, &data);
+diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c
+index 0fe987f..6f3d5c3 100644
+--- a/drivers/platform/x86/sony-laptop.c
++++ b/drivers/platform/x86/sony-laptop.c
+@@ -2356,7 +2356,7 @@ static void sony_nc_lid_resume_cleanup(struct platform_device *pd)
+ }
+ /* High speed charging function */
+-static struct device_attribute *hsc_handle;
++static device_attribute_no_const *hsc_handle;
+ static ssize_t sony_nc_highspeed_charging_store(struct device *dev,
+               struct device_attribute *attr,
 diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
-index 75dd651..2af4c9a 100644
+index f946ca7..f25c833 100644
 --- a/drivers/platform/x86/thinkpad_acpi.c
 +++ b/drivers/platform/x86/thinkpad_acpi.c
 @@ -2097,7 +2097,7 @@ static int hotkey_mask_get(void)
@@ -38147,7 +41419,7 @@ index 769d265..a3a05ca 100644
 +      pax_close_kernel();
  }
 diff --git a/drivers/pnp/resource.c b/drivers/pnp/resource.c
-index b0ecacb..7c9da2e 100644
+index 3e6db1c..1fbbdae 100644
 --- a/drivers/pnp/resource.c
 +++ b/drivers/pnp/resource.c
 @@ -360,7 +360,7 @@ int pnp_check_irq(struct pnp_dev *dev, struct resource *res)
@@ -38193,11 +41465,79 @@ index 7df7c5f..bd48c47 100644
                ret = usb_register_notifier(transceiver, &otg_nb);
                if (ret) {
                        dev_err(dev, "failure to register otg notifier\n");
+diff --git a/drivers/power/power_supply.h b/drivers/power/power_supply.h
+index cc439fd..8fa30df 100644
+--- a/drivers/power/power_supply.h
++++ b/drivers/power/power_supply.h
+@@ -16,12 +16,12 @@ struct power_supply;
+ #ifdef CONFIG_SYSFS
+-extern void power_supply_init_attrs(struct device_type *dev_type);
++extern void power_supply_init_attrs(void);
+ extern int power_supply_uevent(struct device *dev, struct kobj_uevent_env *env);
+ #else
+-static inline void power_supply_init_attrs(struct device_type *dev_type) {}
++static inline void power_supply_init_attrs(void) {}
+ #define power_supply_uevent NULL
+ #endif /* CONFIG_SYSFS */
+diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c
+index 8a7cfb3..72e6e9b 100644
+--- a/drivers/power/power_supply_core.c
++++ b/drivers/power/power_supply_core.c
+@@ -24,7 +24,10 @@
+ struct class *power_supply_class;
+ EXPORT_SYMBOL_GPL(power_supply_class);
+-static struct device_type power_supply_dev_type;
++extern const struct attribute_group *power_supply_attr_groups[];
++static struct device_type power_supply_dev_type = {
++      .groups = power_supply_attr_groups,
++};
+ static int __power_supply_changed_work(struct device *dev, void *data)
+ {
+@@ -393,7 +396,7 @@ static int __init power_supply_class_init(void)
+               return PTR_ERR(power_supply_class);
+       power_supply_class->dev_uevent = power_supply_uevent;
+-      power_supply_init_attrs(&power_supply_dev_type);
++      power_supply_init_attrs();
+       return 0;
+ }
+diff --git a/drivers/power/power_supply_sysfs.c b/drivers/power/power_supply_sysfs.c
+index 40fa3b7..d9c2e0e 100644
+--- a/drivers/power/power_supply_sysfs.c
++++ b/drivers/power/power_supply_sysfs.c
+@@ -229,17 +229,15 @@ static struct attribute_group power_supply_attr_group = {
+       .is_visible = power_supply_attr_is_visible,
+ };
+-static const struct attribute_group *power_supply_attr_groups[] = {
++const struct attribute_group *power_supply_attr_groups[] = {
+       &power_supply_attr_group,
+       NULL,
+ };
+-void power_supply_init_attrs(struct device_type *dev_type)
++void power_supply_init_attrs(void)
+ {
+       int i;
+-      dev_type->groups = power_supply_attr_groups;
+-
+       for (i = 0; i < ARRAY_SIZE(power_supply_attrs); i++)
+               __power_supply_attrs[i] = &power_supply_attrs[i].attr;
+ }
 diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c
-index 8d53174..04c65de 100644
+index 4d7c635..9860196 100644
 --- a/drivers/regulator/max8660.c
 +++ b/drivers/regulator/max8660.c
-@@ -333,8 +333,10 @@ static int __devinit max8660_probe(struct i2c_client *client,
+@@ -333,8 +333,10 @@ static int max8660_probe(struct i2c_client *client,
                max8660->shadow_regs[MAX8660_OVER1] = 5;
        } else {
                /* Otherwise devices can be toggled via software */
@@ -38210,11 +41550,30 @@ index 8d53174..04c65de 100644
        }
  
        /*
+diff --git a/drivers/regulator/max8973-regulator.c b/drivers/regulator/max8973-regulator.c
+index 9a8ea91..c483dd9 100644
+--- a/drivers/regulator/max8973-regulator.c
++++ b/drivers/regulator/max8973-regulator.c
+@@ -401,9 +401,11 @@ static int max8973_probe(struct i2c_client *client,
+       if (!pdata->enable_ext_control) {
+               max->desc.enable_reg = MAX8973_VOUT;
+               max->desc.enable_mask = MAX8973_VOUT_ENABLE;
+-              max8973_dcdc_ops.enable = regulator_enable_regmap;
+-              max8973_dcdc_ops.disable = regulator_disable_regmap;
+-              max8973_dcdc_ops.is_enabled = regulator_is_enabled_regmap;
++              pax_open_kernel();
++              *(void **)&max8973_dcdc_ops.enable = regulator_enable_regmap;
++              *(void **)&max8973_dcdc_ops.disable = regulator_disable_regmap;
++              *(void **)&max8973_dcdc_ops.is_enabled = regulator_is_enabled_regmap;
++              pax_close_kernel();
+       }
+       max->enable_external_control = pdata->enable_ext_control;
 diff --git a/drivers/regulator/mc13892-regulator.c b/drivers/regulator/mc13892-regulator.c
-index 1fa6381..f58834e 100644
+index 0d84b1f..c2da6ac 100644
 --- a/drivers/regulator/mc13892-regulator.c
 +++ b/drivers/regulator/mc13892-regulator.c
-@@ -540,10 +540,12 @@ static int __devinit mc13892_regulator_probe(struct platform_device *pdev)
+@@ -540,10 +540,12 @@ static int mc13892_regulator_probe(struct platform_device *pdev)
        }
        mc13xxx_unlock(mc13892);
  
@@ -38229,8 +41588,23 @@ index 1fa6381..f58834e 100644
  
        mc13xxx_data = mc13xxx_parse_regulators_dt(pdev, mc13892_regulators,
                                        ARRAY_SIZE(mc13892_regulators));
+diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c
+index 16630aa..6afc992 100644
+--- a/drivers/rtc/rtc-cmos.c
++++ b/drivers/rtc/rtc-cmos.c
+@@ -724,7 +724,9 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
+       hpet_rtc_timer_init();
+       /* export at least the first block of NVRAM */
+-      nvram.size = address_space - NVRAM_OFFSET;
++      pax_open_kernel();
++      *(size_t *)&nvram.size = address_space - NVRAM_OFFSET;
++      pax_close_kernel();
+       retval = sysfs_create_bin_file(&dev->kobj, &nvram);
+       if (retval < 0) {
+               dev_dbg(dev, "can't create nvram file? %d\n", retval);
 diff --git a/drivers/rtc/rtc-dev.c b/drivers/rtc/rtc-dev.c
-index cace6d3..f623fda 100644
+index 9a86b4b..3a383dc 100644
 --- a/drivers/rtc/rtc-dev.c
 +++ b/drivers/rtc/rtc-dev.c
 @@ -14,6 +14,7 @@
@@ -38250,19 +41624,34 @@ index cace6d3..f623fda 100644
                return rtc_set_time(rtc, &tm);
  
        case RTC_PIE_ON:
-diff --git a/drivers/scsi/bfa/bfa.h b/drivers/scsi/bfa/bfa.h
-index 4ad7e36..d004679 100644
---- a/drivers/scsi/bfa/bfa.h
-+++ b/drivers/scsi/bfa/bfa.h
-@@ -196,7 +196,7 @@ struct bfa_hwif_s {
-                                      u32 *end);
-       int     cpe_vec_q0;
-       int     rme_vec_q0;
--};
-+} __no_const;
- typedef void (*bfa_cb_iocfc_t) (void *cbarg, enum bfa_status status);
+diff --git a/drivers/rtc/rtc-ds1307.c b/drivers/rtc/rtc-ds1307.c
+index e0d0ba4..3c65868 100644
+--- a/drivers/rtc/rtc-ds1307.c
++++ b/drivers/rtc/rtc-ds1307.c
+@@ -106,7 +106,7 @@ struct ds1307 {
+       u8                      offset; /* register's offset */
+       u8                      regs[11];
+       u16                     nvram_offset;
+-      struct bin_attribute    *nvram;
++      bin_attribute_no_const  *nvram;
+       enum ds_type            type;
+       unsigned long           flags;
+ #define HAS_NVRAM     0               /* bit 0 == sysfs file active */
+diff --git a/drivers/rtc/rtc-m48t59.c b/drivers/rtc/rtc-m48t59.c
+index 130f29a..6179d03 100644
+--- a/drivers/rtc/rtc-m48t59.c
++++ b/drivers/rtc/rtc-m48t59.c
+@@ -482,7 +482,9 @@ static int m48t59_rtc_probe(struct platform_device *pdev)
+               goto out;
+       }
  
- struct bfa_faa_cbfn_s {
+-      m48t59_nvram_attr.size = pdata->offset;
++      pax_open_kernel();
++      *(size_t *)&m48t59_nvram_attr.size = pdata->offset;
++      pax_close_kernel();
+       ret = sysfs_create_bin_file(&pdev->dev.kobj, &m48t59_nvram_attr);
+       if (ret) {
 diff --git a/drivers/scsi/bfa/bfa_fcpim.h b/drivers/scsi/bfa/bfa_fcpim.h
 index e693af6..2e525b6 100644
 --- a/drivers/scsi/bfa/bfa_fcpim.h
@@ -38321,7 +41710,7 @@ index 593085a..47aa999 100644
  
        /* These three are default values which can be overridden */
 diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
-index 4217e49..9c77e3e 100644
+index 4f33806..afd6f60 100644
 --- a/drivers/scsi/hpsa.c
 +++ b/drivers/scsi/hpsa.c
 @@ -554,7 +554,7 @@ static inline u32 next_command(struct ctlr_info *h, u8 q)
@@ -38372,7 +41761,7 @@ index 4217e49..9c77e3e 100644
                (h->interrupts_enabled == 0);
  }
  
-@@ -4318,7 +4318,7 @@ static int __devinit hpsa_pci_init(struct ctlr_info *h)
+@@ -4316,7 +4316,7 @@ static int hpsa_pci_init(struct ctlr_info *h)
        if (prod_index < 0)
                return -ENODEV;
        h->product_name = products[prod_index].product_name;
@@ -38381,7 +41770,7 @@ index 4217e49..9c77e3e 100644
  
        pci_disable_link_state(h->pdev, PCIE_LINK_STATE_L0S |
                               PCIE_LINK_STATE_L1 | PCIE_LINK_STATE_CLKPM);
-@@ -4600,7 +4600,7 @@ static void controller_lockup_detected(struct ctlr_info *h)
+@@ -4598,7 +4598,7 @@ static void controller_lockup_detected(struct ctlr_info *h)
  
        assert_spin_locked(&lockup_detector_lock);
        remove_ctlr_from_lockup_detector_list(h);
@@ -38390,7 +41779,7 @@ index 4217e49..9c77e3e 100644
        spin_lock_irqsave(&h->lock, flags);
        h->lockup_detected = readl(h->vaddr + SA5_SCRATCHPAD_OFFSET);
        spin_unlock_irqrestore(&h->lock, flags);
-@@ -4778,7 +4778,7 @@ reinit_after_soft_reset:
+@@ -4775,7 +4775,7 @@ reinit_after_soft_reset:
        }
  
        /* make sure the board interrupts are off */
@@ -38399,7 +41788,7 @@ index 4217e49..9c77e3e 100644
  
        if (hpsa_request_irq(h, do_hpsa_intr_msi, do_hpsa_intr_intx))
                goto clean2;
-@@ -4812,7 +4812,7 @@ reinit_after_soft_reset:
+@@ -4809,7 +4809,7 @@ reinit_after_soft_reset:
                 * fake ones to scoop up any residual completions.
                 */
                spin_lock_irqsave(&h->lock, flags);
@@ -38408,7 +41797,7 @@ index 4217e49..9c77e3e 100644
                spin_unlock_irqrestore(&h->lock, flags);
                free_irqs(h);
                rc = hpsa_request_irq(h, hpsa_msix_discard_completions,
-@@ -4831,9 +4831,9 @@ reinit_after_soft_reset:
+@@ -4828,9 +4828,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");
@@ -38420,7 +41809,7 @@ index 4217e49..9c77e3e 100644
  
                rc = controller_reset_failed(h->cfgtable);
                if (rc)
-@@ -4854,7 +4854,7 @@ reinit_after_soft_reset:
+@@ -4851,7 +4851,7 @@ reinit_after_soft_reset:
        }
  
        /* Turn the interrupts on so we can service requests */
@@ -38429,7 +41818,7 @@ index 4217e49..9c77e3e 100644
  
        hpsa_hba_inquiry(h);
        hpsa_register_scsi(h);  /* hook ourselves into SCSI subsystem */
-@@ -4906,7 +4906,7 @@ static void hpsa_shutdown(struct pci_dev *pdev)
+@@ -4903,7 +4903,7 @@ static void hpsa_shutdown(struct pci_dev *pdev)
         * To write all data in the battery backed cache to disks
         */
        hpsa_flush_cache(h);
@@ -38438,7 +41827,7 @@ index 4217e49..9c77e3e 100644
        hpsa_free_irqs_and_disable_msix(h);
  }
  
-@@ -5075,7 +5075,7 @@ static __devinit void hpsa_enter_performant_mode(struct ctlr_info *h,
+@@ -5071,7 +5071,7 @@ static void hpsa_enter_performant_mode(struct ctlr_info *h, u32 use_short_tags)
                return;
        }
        /* Change the access methods to the performant access methods */
@@ -38619,7 +42008,7 @@ index bdb81cd..d3c7c2c 100644
        .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 69b5993..1ac9dce 100644
+index df4c13a..a51e90c 100644
 --- a/drivers/scsi/lpfc/lpfc.h
 +++ b/drivers/scsi/lpfc/lpfc.h
 @@ -424,7 +424,7 @@ struct lpfc_vport {
@@ -38631,7 +42020,7 @@ index 69b5993..1ac9dce 100644
  #endif
        uint8_t stat_data_enabled;
        uint8_t stat_data_blocked;
-@@ -840,8 +840,8 @@ struct lpfc_hba {
+@@ -842,8 +842,8 @@ struct lpfc_hba {
        struct timer_list fabric_block_timer;
        unsigned long bit_flags;
  #define       FABRIC_COMANDS_BLOCKED  0
@@ -38642,7 +42031,7 @@ index 69b5993..1ac9dce 100644
        unsigned long last_rsrc_error_time;
        unsigned long last_ramp_down_time;
        unsigned long last_ramp_up_time;
-@@ -877,7 +877,7 @@ struct lpfc_hba {
+@@ -879,7 +879,7 @@ struct lpfc_hba {
  
        struct dentry *debug_slow_ring_trc;
        struct lpfc_debugfs_trc *slow_ring_trc;
@@ -38735,10 +42124,10 @@ index f63f5ff..de29189 100644
        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 7dc4218..3436f08 100644
+index 89ad558..76956c4 100644
 --- a/drivers/scsi/lpfc/lpfc_init.c
 +++ b/drivers/scsi/lpfc/lpfc_init.c
-@@ -10589,8 +10589,10 @@ lpfc_init(void)
+@@ -10618,8 +10618,10 @@ lpfc_init(void)
                        "misc_register returned with status %d", error);
  
        if (lpfc_enable_npiv) {
@@ -38752,7 +42141,7 @@ index 7dc4218..3436f08 100644
        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 7f45ac9..cf62eda 100644
+index 60e5a17..ff7a793 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)
@@ -38807,7 +42196,7 @@ index 7f45ac9..cf62eda 100644
  
  /**
 diff --git a/drivers/scsi/pmcraid.c b/drivers/scsi/pmcraid.c
-index af763ea..41904f7 100644
+index b46f5e9..c4c4ccb 100644
 --- a/drivers/scsi/pmcraid.c
 +++ b/drivers/scsi/pmcraid.c
 @@ -200,8 +200,8 @@ static int pmcraid_slave_alloc(struct scsi_device *scsi_dev)
@@ -38860,7 +42249,7 @@ index af763ea..41904f7 100644
                return;
  
        fw_version = be16_to_cpu(pinstance->inq_data->fw_version);
-@@ -5331,8 +5331,8 @@ static int __devinit pmcraid_init_instance(
+@@ -5324,8 +5324,8 @@ static int pmcraid_init_instance(struct pci_dev *pdev, struct Scsi_Host *host,
        init_waitqueue_head(&pinstance->reset_wait_q);
  
        atomic_set(&pinstance->outstanding_cmds, 0);
@@ -38871,7 +42260,7 @@ index af763ea..41904f7 100644
  
        INIT_LIST_HEAD(&pinstance->free_res_q);
        INIT_LIST_HEAD(&pinstance->used_res_q);
-@@ -6047,7 +6047,7 @@ static int __devinit pmcraid_probe(
+@@ -6038,7 +6038,7 @@ static int pmcraid_probe(struct pci_dev *pdev,
        /* Schedule worker thread to handle CCN and take care of adding and
         * removing devices to OS
         */
@@ -38936,7 +42325,7 @@ index 83d7984..a27d947 100644
        .show_host_node_name = 1,
        .show_host_port_name = 1,
 diff --git a/drivers/scsi/qla2xxx/qla_gbl.h b/drivers/scsi/qla2xxx/qla_gbl.h
-index 6acb397..d86e3e0 100644
+index 2411d1a..4673766 100644
 --- a/drivers/scsi/qla2xxx/qla_gbl.h
 +++ b/drivers/scsi/qla2xxx/qla_gbl.h
 @@ -515,8 +515,8 @@ extern void qla2x00_get_sym_node_name(scsi_qla_host_t *, uint8_t *);
@@ -38951,10 +42340,10 @@ index 6acb397..d86e3e0 100644
  extern void qla2x00_free_sysfs_attr(scsi_qla_host_t *);
  extern void qla2x00_init_host_attr(scsi_qla_host_t *);
 diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
-index f4b1fc8..a1ce4dd 100644
+index 10d23f8..a7d5d4c 100644
 --- a/drivers/scsi/qla2xxx/qla_os.c
 +++ b/drivers/scsi/qla2xxx/qla_os.c
-@@ -1462,8 +1462,10 @@ qla2x00_config_dma_addressing(struct qla_hw_data *ha)
+@@ -1472,8 +1472,10 @@ qla2x00_config_dma_addressing(struct qla_hw_data *ha)
                    !pci_set_consistent_dma_mask(ha->pdev, DMA_BIT_MASK(64))) {
                        /* Ok, a 64bit DMA mask is applicable. */
                        ha->flags.enable_64bit_addressing = 1;
@@ -38981,7 +42370,7 @@ index 329d553..f20d31d 100644
        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 fbc546e..c7d1b48 100644
+index 4cec123..7c1329f 100644
 --- a/drivers/scsi/qla4xxx/ql4_os.c
 +++ b/drivers/scsi/qla4xxx/ql4_os.c
 @@ -2621,12 +2621,12 @@ static void qla4xxx_check_relogin_flash_ddb(struct iscsi_cls_session *cls_sess)
@@ -39022,7 +42411,7 @@ index 2c0d0ec..4e8681a 100644
        /* 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 9032e91..7a805d0 100644
+index f1bf5af..f67e943 100644
 --- a/drivers/scsi/scsi_lib.c
 +++ b/drivers/scsi/scsi_lib.c
 @@ -1454,7 +1454,7 @@ static void scsi_kill_request(struct request *req, struct request_queue *q)
@@ -39144,7 +42533,7 @@ index 31969f2..2b348f0 100644
        err = class_register(&iscsi_transport_class);
        if (err)
 diff --git a/drivers/scsi/scsi_transport_srp.c b/drivers/scsi/scsi_transport_srp.c
-index 21a045e..ec89e03 100644
+index f379c7f..e8fc69c 100644
 --- a/drivers/scsi/scsi_transport_srp.c
 +++ b/drivers/scsi/scsi_transport_srp.c
 @@ -33,7 +33,7 @@
@@ -39156,7 +42545,7 @@ index 21a045e..ec89e03 100644
  };
  #define to_srp_host_attrs(host)       ((struct srp_host_attrs *)(host)->shost_data)
  
-@@ -62,7 +62,7 @@ static int srp_host_setup(struct transport_container *tc, struct device *dev,
+@@ -61,7 +61,7 @@ static int srp_host_setup(struct transport_container *tc, struct device *dev,
        struct Scsi_Host *shost = dev_to_shost(dev);
        struct srp_host_attrs *srp_host = to_srp_host_attrs(shost);
  
@@ -39165,7 +42554,7 @@ index 21a045e..ec89e03 100644
        return 0;
  }
  
-@@ -211,7 +211,7 @@ struct srp_rport *srp_rport_add(struct Scsi_Host *shost,
+@@ -210,7 +210,7 @@ struct srp_rport *srp_rport_add(struct Scsi_Host *shost,
        memcpy(rport->port_id, ids->port_id, sizeof(rport->port_id));
        rport->roles = ids->roles;
  
@@ -39175,10 +42564,10 @@ index 21a045e..ec89e03 100644
  
        transport_setup_device(&rport->dev);
 diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
-index a45e12a..d9120cb 100644
+index 7992635..609faf8 100644
 --- a/drivers/scsi/sd.c
 +++ b/drivers/scsi/sd.c
-@@ -2899,7 +2899,7 @@ static int sd_probe(struct device *dev)
+@@ -2909,7 +2909,7 @@ static int sd_probe(struct device *dev)
        sdkp->disk = gd;
        sdkp->index = index;
        atomic_set(&sdkp->openers, 0);
@@ -39201,10 +42590,10 @@ index be2c9a6..275525c 100644
                return blk_trace_startstop(sdp->device->request_queue, 1);
        case BLKTRACESTOP:
 diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
-index 84c2861..ece0a31 100644
+index 19ee901..6e8c2ef 100644
 --- a/drivers/spi/spi.c
 +++ b/drivers/spi/spi.c
-@@ -1453,7 +1453,7 @@ int spi_bus_unlock(struct spi_master *master)
+@@ -1616,7 +1616,7 @@ int spi_bus_unlock(struct spi_master *master)
  EXPORT_SYMBOL_GPL(spi_bus_unlock);
  
  /* portable code must never pass more than 32 bytes */
@@ -39213,6 +42602,19 @@ index 84c2861..ece0a31 100644
  
  static u8     *buf;
  
+diff --git a/drivers/staging/iio/iio_hwmon.c b/drivers/staging/iio/iio_hwmon.c
+index c7a5f97..71ecd35 100644
+--- a/drivers/staging/iio/iio_hwmon.c
++++ b/drivers/staging/iio/iio_hwmon.c
+@@ -72,7 +72,7 @@ static void iio_hwmon_free_attrs(struct iio_hwmon_state *st)
+ static int iio_hwmon_probe(struct platform_device *pdev)
+ {
+       struct iio_hwmon_state *st;
+-      struct sensor_device_attribute *a;
++      sensor_device_attribute_no_const *a;
+       int ret, i;
+       int in_i = 1, temp_i = 1, curr_i = 1;
+       enum iio_chan_type type;
 diff --git a/drivers/staging/octeon/ethernet-rx.c b/drivers/staging/octeon/ethernet-rx.c
 index 34afc16..ffe44dd 100644
 --- a/drivers/staging/octeon/ethernet-rx.c
@@ -39246,7 +42648,7 @@ index 34afc16..ffe44dd 100644
                                dev_kfree_skb_irq(skb);
                        }
 diff --git a/drivers/staging/octeon/ethernet.c b/drivers/staging/octeon/ethernet.c
-index 683bedc..86dba9a 100644
+index ef32dc1..a159d68 100644
 --- a/drivers/staging/octeon/ethernet.c
 +++ b/drivers/staging/octeon/ethernet.c
 @@ -252,11 +252,11 @@ static struct net_device_stats *cvm_oct_common_get_stats(struct net_device *dev)
@@ -39500,7 +42902,7 @@ index dc23395..cf7e9b1 100644
  struct io_req {
        struct list_head list;
 diff --git a/drivers/staging/sbe-2t3e3/netdev.c b/drivers/staging/sbe-2t3e3/netdev.c
-index 180c963..1f18377 100644
+index 1f5088b..0e59820 100644
 --- a/drivers/staging/sbe-2t3e3/netdev.c
 +++ b/drivers/staging/sbe-2t3e3/netdev.c
 @@ -51,7 +51,7 @@ static int t3e3_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
@@ -39513,7 +42915,7 @@ index 180c963..1f18377 100644
  
        return 0;
 diff --git a/drivers/staging/usbip/vhci.h b/drivers/staging/usbip/vhci.h
-index c66b8b3..a4a035b 100644
+index 5dddc4d..34fcb2f 100644
 --- a/drivers/staging/usbip/vhci.h
 +++ b/drivers/staging/usbip/vhci.h
 @@ -83,7 +83,7 @@ struct vhci_hcd {
@@ -39526,10 +42928,10 @@ index c66b8b3..a4a035b 100644
        /*
         * NOTE:
 diff --git a/drivers/staging/usbip/vhci_hcd.c b/drivers/staging/usbip/vhci_hcd.c
-index 620d1be..1cd6711 100644
+index c3aa219..bf8b3de 100644
 --- a/drivers/staging/usbip/vhci_hcd.c
 +++ b/drivers/staging/usbip/vhci_hcd.c
-@@ -471,7 +471,7 @@ static void vhci_tx_urb(struct urb *urb)
+@@ -451,7 +451,7 @@ static void vhci_tx_urb(struct urb *urb)
                return;
        }
  
@@ -39538,7 +42940,7 @@ index 620d1be..1cd6711 100644
        if (priv->seqnum == 0xffff)
                dev_info(&urb->dev->dev, "seqnum max\n");
  
-@@ -723,7 +723,7 @@ static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
+@@ -703,7 +703,7 @@ static int vhci_urb_dequeue(struct usb_hcd *hcd, struct urb *urb, int status)
                        return -ENOMEM;
                }
  
@@ -39547,7 +42949,7 @@ index 620d1be..1cd6711 100644
                if (unlink->seqnum == 0xffff)
                        pr_info("seqnum max\n");
  
-@@ -924,7 +924,7 @@ static int vhci_start(struct usb_hcd *hcd)
+@@ -907,7 +907,7 @@ static int vhci_start(struct usb_hcd *hcd)
                vdev->rhport = rhport;
        }
  
@@ -39557,7 +42959,7 @@ index 620d1be..1cd6711 100644
  
        hcd->power_budget = 0; /* no limit */
 diff --git a/drivers/staging/usbip/vhci_rx.c b/drivers/staging/usbip/vhci_rx.c
-index f0eaf04..5a82e06 100644
+index ba5f1c0..11d8122 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,
@@ -39570,7 +42972,7 @@ index f0eaf04..5a82e06 100644
                return;
        }
 diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c
-index 67b1b88..6392fe9 100644
+index 5f13890..36a044b 100644
 --- a/drivers/staging/vt6655/hostap.c
 +++ b/drivers/staging/vt6655/hostap.c
 @@ -73,14 +73,13 @@ static int          msglevel                =MSG_LEVEL_INFO;
@@ -39600,7 +43002,7 @@ index 67b1b88..6392fe9 100644
  
        pDevice->apdev->type = ARPHRD_IEEE80211;
 diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c
-index 0a73d40..6fda560 100644
+index 26a7d0e..897b083 100644
 --- a/drivers/staging/vt6656/hostap.c
 +++ b/drivers/staging/vt6656/hostap.c
 @@ -60,14 +60,13 @@ static int          msglevel                =MSG_LEVEL_INFO;
@@ -39671,30 +43073,34 @@ index 0d4aa82..f7832d4 100644
  extern void tmem_register_hostops(struct tmem_hostops *m);
  
  /* core tmem accessor functions */
-diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
-index 13fe16c..cbdc39a 100644
---- a/drivers/target/target_core_transport.c
-+++ b/drivers/target/target_core_transport.c
-@@ -1085,7 +1085,7 @@ struct se_device *transport_add_device_to_core_hba(
+diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c
+index 96f4981..4daaa7e 100644
+--- a/drivers/target/target_core_device.c
++++ b/drivers/target/target_core_device.c
+@@ -1370,7 +1370,7 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name)
        spin_lock_init(&dev->se_port_lock);
        spin_lock_init(&dev->se_tmr_lock);
        spin_lock_init(&dev->qf_cmd_lock);
 -      atomic_set(&dev->dev_ordered_id, 0);
 +      atomic_set_unchecked(&dev->dev_ordered_id, 0);
-       se_dev_set_default_attribs(dev, dev_limits);
-@@ -1275,7 +1275,7 @@ static int transport_check_alloc_task_attr(struct se_cmd *cmd)
+       INIT_LIST_HEAD(&dev->t10_wwn.t10_vpd_list);
+       spin_lock_init(&dev->t10_wwn.t10_vpd_lock);
+       INIT_LIST_HEAD(&dev->t10_pr.registration_list);
+diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
+index fcf880f..a4d1e8f 100644
+--- a/drivers/target/target_core_transport.c
++++ b/drivers/target/target_core_transport.c
+@@ -1077,7 +1077,7 @@ transport_check_alloc_task_attr(struct se_cmd *cmd)
         * Used to determine when ORDERED commands should go from
         * Dormant to Active status.
         */
--      cmd->se_ordered_id = atomic_inc_return(&cmd->se_dev->dev_ordered_id);
-+      cmd->se_ordered_id = atomic_inc_return_unchecked(&cmd->se_dev->dev_ordered_id);
+-      cmd->se_ordered_id = atomic_inc_return(&dev->dev_ordered_id);
++      cmd->se_ordered_id = atomic_inc_return_unchecked(&dev->dev_ordered_id);
        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,
 diff --git a/drivers/tty/cyclades.c b/drivers/tty/cyclades.c
-index 0a6a0bc..5501b06 100644
+index b09c8d1f..c4225c0 100644
 --- a/drivers/tty/cyclades.c
 +++ b/drivers/tty/cyclades.c
 @@ -1589,10 +1589,10 @@ static int cy_open(struct tty_struct *tty, struct file *filp)
@@ -39710,7 +43116,7 @@ index 0a6a0bc..5501b06 100644
  #endif
  
        /*
-@@ -3989,7 +3989,7 @@ static int cyclades_proc_show(struct seq_file *m, void *v)
+@@ -3991,7 +3991,7 @@ static int cyclades_proc_show(struct seq_file *m, void *v)
                for (j = 0; j < cy_card[i].nports; j++) {
                        info = &cy_card[i].ports[j];
  
@@ -39778,7 +43184,7 @@ index 13ee53b..418d164 100644
  
        spin_lock_irqsave(&hp->lock, flags);
 diff --git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c
-index cab5c7a..4cc66ea 100644
+index 8776357..b2d4afd 100644
 --- a/drivers/tty/hvc/hvcs.c
 +++ b/drivers/tty/hvc/hvcs.c
 @@ -83,6 +83,7 @@
@@ -39875,7 +43281,7 @@ index cab5c7a..4cc66ea 100644
  
        return HVCS_BUFF_LEN - hvcsd->chars_in_buffer;
 diff --git a/drivers/tty/ipwireless/tty.c b/drivers/tty/ipwireless/tty.c
-index 160f0ad..588b853 100644
+index 2cde13d..645d78f 100644
 --- a/drivers/tty/ipwireless/tty.c
 +++ b/drivers/tty/ipwireless/tty.c
 @@ -29,6 +29,7 @@
@@ -39992,10 +43398,10 @@ index 160f0ad..588b853 100644
                        ipwireless_disassociate_network_ttys(network,
                                                             ttyj->channel_idx);
 diff --git a/drivers/tty/moxa.c b/drivers/tty/moxa.c
-index 56e616b..9d9f10a 100644
+index f9d2850..b006f04 100644
 --- a/drivers/tty/moxa.c
 +++ b/drivers/tty/moxa.c
-@@ -1189,7 +1189,7 @@ static int moxa_open(struct tty_struct *tty, struct file *filp)
+@@ -1193,7 +1193,7 @@ static int moxa_open(struct tty_struct *tty, struct file *filp)
        }
  
        ch = &brd->ports[port % MAX_PORTS_PER_BOARD];
@@ -40005,11 +43411,11 @@ index 56e616b..9d9f10a 100644
        tty_port_tty_set(&ch->port, tty);
        mutex_lock(&ch->port.mutex);
 diff --git a/drivers/tty/n_gsm.c b/drivers/tty/n_gsm.c
-index 1e8e8ce..a9efc93 100644
+index bfd6771..e0d93c4 100644
 --- a/drivers/tty/n_gsm.c
 +++ b/drivers/tty/n_gsm.c
-@@ -1638,7 +1638,7 @@ static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr)
-       kref_init(&dlci->ref);
+@@ -1636,7 +1636,7 @@ static struct gsm_dlci *gsm_dlci_alloc(struct gsm_mux *gsm, int addr)
+       spin_lock_init(&dlci->lock);
        mutex_init(&dlci->mutex);
        dlci->fifo = &dlci->_fifo;
 -      if (kfifo_alloc(&dlci->_fifo, 4096, GFP_KERNEL) < 0) {
@@ -40017,7 +43423,7 @@ index 1e8e8ce..a9efc93 100644
                kfree(dlci);
                return NULL;
        }
-@@ -2925,7 +2925,7 @@ static int gsmtty_open(struct tty_struct *tty, struct file *filp)
+@@ -2936,7 +2936,7 @@ static int gsmtty_open(struct tty_struct *tty, struct file *filp)
        struct gsm_dlci *dlci = tty->driver_data;
        struct tty_port *port = &dlci->port;
  
@@ -40027,10 +43433,10 @@ index 1e8e8ce..a9efc93 100644
        dlci_get(dlci->gsm->dlci[0]);
        mux_get(dlci->gsm);
 diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c
-index 8c0b7b4..e88f052 100644
+index 19083ef..6e34e97 100644
 --- a/drivers/tty/n_tty.c
 +++ b/drivers/tty/n_tty.c
-@@ -2142,6 +2142,7 @@ void n_tty_inherit_ops(struct tty_ldisc_ops *ops)
+@@ -2196,6 +2196,7 @@ void n_tty_inherit_ops(struct tty_ldisc_ops *ops)
  {
        *ops = tty_ldisc_N_TTY;
        ops->owner = NULL;
@@ -40040,10 +43446,10 @@ index 8c0b7b4..e88f052 100644
  }
  EXPORT_SYMBOL_GPL(n_tty_inherit_ops);
 diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
-index 8cf8d0a..4ef9ed0 100644
+index ac35c90..c47deac 100644
 --- a/drivers/tty/pty.c
 +++ b/drivers/tty/pty.c
-@@ -730,8 +730,10 @@ static void __init unix98_pty_init(void)
+@@ -790,8 +790,10 @@ static void __init unix98_pty_init(void)
                panic("Couldn't register Unix98 pts driver");
  
        /* Now create the /dev/ptmx special device */
@@ -40056,10 +43462,10 @@ index 8cf8d0a..4ef9ed0 100644
        cdev_init(&ptmx_cdev, &ptmx_fops);
        if (cdev_add(&ptmx_cdev, MKDEV(TTYAUX_MAJOR, 2), 1) ||
 diff --git a/drivers/tty/rocket.c b/drivers/tty/rocket.c
-index 9700d34..df7520c 100644
+index e42009a..566a036 100644
 --- a/drivers/tty/rocket.c
 +++ b/drivers/tty/rocket.c
-@@ -924,7 +924,7 @@ static int rp_open(struct tty_struct *tty, struct file *filp)
+@@ -925,7 +925,7 @@ static int rp_open(struct tty_struct *tty, struct file *filp)
        tty->driver_data = info;
        tty_port_tty_set(port, tty);
  
@@ -40068,7 +43474,7 @@ index 9700d34..df7520c 100644
                atomic_inc(&rp_num_ports_open);
  
  #ifdef ROCKET_DEBUG_OPEN
-@@ -933,7 +933,7 @@ static int rp_open(struct tty_struct *tty, struct file *filp)
+@@ -934,7 +934,7 @@ static int rp_open(struct tty_struct *tty, struct file *filp)
  #endif
        }
  #ifdef ROCKET_DEBUG_OPEN
@@ -40077,7 +43483,7 @@ index 9700d34..df7520c 100644
  #endif
  
        /*
-@@ -1528,7 +1528,7 @@ static void rp_hangup(struct tty_struct *tty)
+@@ -1529,7 +1529,7 @@ static void rp_hangup(struct tty_struct *tty)
                spin_unlock_irqrestore(&info->port.lock, flags);
                return;
        }
@@ -40193,10 +43599,10 @@ index 1002054..dd644a8 100644
  /* 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/serial/samsung.c b/drivers/tty/serial/samsung.c
-index 7f04717..0f3794f 100644
+index e514b3a..c73d614 100644
 --- a/drivers/tty/serial/samsung.c
 +++ b/drivers/tty/serial/samsung.c
-@@ -445,11 +445,16 @@ static void s3c24xx_serial_shutdown(struct uart_port *port)
+@@ -453,11 +453,16 @@ static void s3c24xx_serial_shutdown(struct uart_port *port)
        }
  }
  
@@ -40213,7 +43619,7 @@ index 7f04717..0f3794f 100644
        dbg("s3c24xx_serial_startup: port=%p (%08lx,%p)\n",
            port->mapbase, port->membase);
  
-@@ -1115,10 +1120,6 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
+@@ -1122,10 +1127,6 @@ static int s3c24xx_serial_init_port(struct s3c24xx_uart_port *ourport,
        /* setup info for port */
        port->dev       = &platdev->dev;
  
@@ -40225,10 +43631,10 @@ index 7f04717..0f3794f 100644
  
        if (cfg->uart_flags & UPF_CONS_FLOW) {
 diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_core.c
-index 0fcfd98..8244fce 100644
+index 2c7230a..2104f16 100644
 --- a/drivers/tty/serial/serial_core.c
 +++ b/drivers/tty/serial/serial_core.c
-@@ -1408,7 +1408,7 @@ static void uart_hangup(struct tty_struct *tty)
+@@ -1455,7 +1455,7 @@ static void uart_hangup(struct tty_struct *tty)
                uart_flush_buffer(tty);
                uart_shutdown(tty, state);
                spin_lock_irqsave(&port->lock, flags);
@@ -40237,7 +43643,7 @@ index 0fcfd98..8244fce 100644
                clear_bit(ASYNCB_NORMAL_ACTIVE, &port->flags);
                spin_unlock_irqrestore(&port->lock, flags);
                tty_port_tty_set(port, NULL);
-@@ -1504,7 +1504,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
+@@ -1551,7 +1551,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
                goto end;
        }
  
@@ -40246,7 +43652,7 @@ index 0fcfd98..8244fce 100644
        if (!state->uart_port || state->uart_port->flags & UPF_DEAD) {
                retval = -ENXIO;
                goto err_dec_count;
-@@ -1531,7 +1531,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
+@@ -1578,7 +1578,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
        /*
         * Make sure the device is in D0 state.
         */
@@ -40255,7 +43661,7 @@ index 0fcfd98..8244fce 100644
                uart_change_pm(state, 0);
  
        /*
-@@ -1549,7 +1549,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
+@@ -1596,7 +1596,7 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
  end:
        return retval;
  err_dec_count:
@@ -40265,7 +43671,7 @@ index 0fcfd98..8244fce 100644
        goto end;
  }
 diff --git a/drivers/tty/synclink.c b/drivers/tty/synclink.c
-index 70e3a52..5742052 100644
+index 9e071f6..f30ae69 100644
 --- a/drivers/tty/synclink.c
 +++ b/drivers/tty/synclink.c
 @@ -3095,7 +3095,7 @@ static void mgsl_close(struct tty_struct *tty, struct file * filp)
@@ -40369,7 +43775,7 @@ index 70e3a52..5742052 100644
        }
        
        return retval;
-@@ -7661,7 +7661,7 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,
+@@ -7662,7 +7662,7 @@ static int hdlcdev_attach(struct net_device *dev, unsigned short encoding,
        unsigned short new_crctype;
  
        /* return error if TTY interface open */
@@ -40378,7 +43784,7 @@ index 70e3a52..5742052 100644
                return -EBUSY;
  
        switch (encoding)
-@@ -7756,7 +7756,7 @@ static int hdlcdev_open(struct net_device *dev)
+@@ -7757,7 +7757,7 @@ static int hdlcdev_open(struct net_device *dev)
  
        /* arbitrate between network and tty opens */
        spin_lock_irqsave(&info->netlock, flags);
@@ -40387,7 +43793,7 @@ index 70e3a52..5742052 100644
                printk(KERN_WARNING "%s: hdlc_open returning busy\n", dev->name);
                spin_unlock_irqrestore(&info->netlock, flags);
                return -EBUSY;
-@@ -7842,7 +7842,7 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
+@@ -7843,7 +7843,7 @@ static int hdlcdev_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
                printk("%s:hdlcdev_ioctl(%s)\n",__FILE__,dev->name);
  
        /* return error if TTY interface open */
@@ -40397,7 +43803,7 @@ index 70e3a52..5742052 100644
  
        if (cmd != SIOCWANDEV)
 diff --git a/drivers/tty/synclink_gt.c b/drivers/tty/synclink_gt.c
-index b38e954..ce45b38 100644
+index aba1e59..877ac33 100644
 --- a/drivers/tty/synclink_gt.c
 +++ b/drivers/tty/synclink_gt.c
 @@ -671,7 +671,7 @@ static int open(struct tty_struct *tty, struct file *filp)
@@ -40515,7 +43921,7 @@ index b38e954..ce45b38 100644
  
        if (!retval)
 diff --git a/drivers/tty/synclinkmp.c b/drivers/tty/synclinkmp.c
-index f17d9f3..27a041b 100644
+index fd43fb6..34704ad 100644
 --- a/drivers/tty/synclinkmp.c
 +++ b/drivers/tty/synclinkmp.c
 @@ -751,7 +751,7 @@ static int open(struct tty_struct *tty, struct file *filp)
@@ -40654,10 +44060,10 @@ index f17d9f3..27a041b 100644
        if (!retval)
                port->flags |= ASYNC_NORMAL_ACTIVE;
 diff --git a/drivers/tty/sysrq.c b/drivers/tty/sysrq.c
-index 16ee6ce..bfcac57 100644
+index b3c4a25..723916f 100644
 --- a/drivers/tty/sysrq.c
 +++ b/drivers/tty/sysrq.c
-@@ -866,7 +866,7 @@ EXPORT_SYMBOL(unregister_sysrq_key);
+@@ -867,7 +867,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)
  {
@@ -40667,10 +44073,10 @@ index 16ee6ce..bfcac57 100644
  
                if (get_user(c, buf))
 diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
-index 2ea176b..2877bc8 100644
+index da9fde8..c07975f 100644
 --- a/drivers/tty/tty_io.c
 +++ b/drivers/tty/tty_io.c
-@@ -3395,7 +3395,7 @@ EXPORT_SYMBOL_GPL(get_current_tty);
+@@ -3391,7 +3391,7 @@ EXPORT_SYMBOL_GPL(get_current_tty);
  
  void tty_default_fops(struct file_operations *fops)
  {
@@ -40680,31 +44086,31 @@ index 2ea176b..2877bc8 100644
  
  /*
 diff --git a/drivers/tty/tty_ldisc.c b/drivers/tty/tty_ldisc.c
-index 0f2a2c5..471e228 100644
+index c578229..45aa9ee 100644
 --- a/drivers/tty/tty_ldisc.c
 +++ b/drivers/tty/tty_ldisc.c
 @@ -56,7 +56,7 @@ static void put_ldisc(struct tty_ldisc *ld)
-       if (atomic_dec_and_lock(&ld->users, &tty_ldisc_lock)) {
+       if (atomic_dec_and_test(&ld->users)) {
                struct tty_ldisc_ops *ldo = ld->ops;
  
 -              ldo->refcount--;
 +              atomic_dec(&ldo->refcount);
                module_put(ldo->owner);
-               spin_unlock_irqrestore(&tty_ldisc_lock, flags);
+               raw_spin_unlock_irqrestore(&tty_ldisc_lock, flags);
  
 @@ -91,7 +91,7 @@ int tty_register_ldisc(int disc, struct tty_ldisc_ops *new_ldisc)
-       spin_lock_irqsave(&tty_ldisc_lock, flags);
+       raw_spin_lock_irqsave(&tty_ldisc_lock, flags);
        tty_ldiscs[disc] = new_ldisc;
        new_ldisc->num = disc;
 -      new_ldisc->refcount = 0;
 +      atomic_set(&new_ldisc->refcount, 0);
-       spin_unlock_irqrestore(&tty_ldisc_lock, flags);
+       raw_spin_unlock_irqrestore(&tty_ldisc_lock, flags);
  
        return ret;
 @@ -119,7 +119,7 @@ int tty_unregister_ldisc(int disc)
                return -EINVAL;
  
-       spin_lock_irqsave(&tty_ldisc_lock, flags);
+       raw_spin_lock_irqsave(&tty_ldisc_lock, flags);
 -      if (tty_ldiscs[disc]->refcount)
 +      if (atomic_read(&tty_ldiscs[disc]->refcount))
                ret = -EBUSY;
@@ -40722,17 +44128,17 @@ index 0f2a2c5..471e228 100644
 @@ -153,7 +153,7 @@ static void put_ldops(struct tty_ldisc_ops *ldops)
        unsigned long flags;
  
-       spin_lock_irqsave(&tty_ldisc_lock, flags);
+       raw_spin_lock_irqsave(&tty_ldisc_lock, flags);
 -      ldops->refcount--;
 +      atomic_dec(&ldops->refcount);
        module_put(ldops->owner);
-       spin_unlock_irqrestore(&tty_ldisc_lock, flags);
+       raw_spin_unlock_irqrestore(&tty_ldisc_lock, flags);
  }
 diff --git a/drivers/tty/tty_port.c b/drivers/tty/tty_port.c
-index d7bdd8d..feaef30 100644
+index b7ff59d..7c6105e 100644
 --- a/drivers/tty/tty_port.c
 +++ b/drivers/tty/tty_port.c
-@@ -202,7 +202,7 @@ void tty_port_hangup(struct tty_port *port)
+@@ -218,7 +218,7 @@ void tty_port_hangup(struct tty_port *port)
        unsigned long flags;
  
        spin_lock_irqsave(&port->lock, flags);
@@ -40741,7 +44147,7 @@ index d7bdd8d..feaef30 100644
        port->flags &= ~ASYNC_NORMAL_ACTIVE;
        if (port->tty) {
                set_bit(TTY_IO_ERROR, &port->tty->flags);
-@@ -328,7 +328,7 @@ int tty_port_block_til_ready(struct tty_port *port,
+@@ -344,7 +344,7 @@ int tty_port_block_til_ready(struct tty_port *port,
        /* The port lock protects the port counts */
        spin_lock_irqsave(&port->lock, flags);
        if (!tty_hung_up_p(filp))
@@ -40750,7 +44156,7 @@ index d7bdd8d..feaef30 100644
        port->blocked_open++;
        spin_unlock_irqrestore(&port->lock, flags);
  
-@@ -370,7 +370,7 @@ int tty_port_block_til_ready(struct tty_port *port,
+@@ -386,7 +386,7 @@ int tty_port_block_til_ready(struct tty_port *port,
           we must not mess that up further */
        spin_lock_irqsave(&port->lock, flags);
        if (!tty_hung_up_p(filp))
@@ -40759,7 +44165,7 @@ index d7bdd8d..feaef30 100644
        port->blocked_open--;
        if (retval == 0)
                port->flags |= ASYNC_NORMAL_ACTIVE;
-@@ -390,19 +390,19 @@ int tty_port_close_start(struct tty_port *port,
+@@ -406,19 +406,19 @@ int tty_port_close_start(struct tty_port *port,
                return 0;
        }
  
@@ -40786,7 +44192,7 @@ index d7bdd8d..feaef30 100644
                spin_unlock_irqrestore(&port->lock, flags);
                if (port->ops->drop)
                        port->ops->drop(port);
-@@ -500,7 +500,7 @@ int tty_port_open(struct tty_port *port, struct tty_struct *tty,
+@@ -516,7 +516,7 @@ int tty_port_open(struct tty_port *port, struct tty_struct *tty,
  {
        spin_lock_irq(&port->lock);
        if (!tty_hung_up_p(filp))
@@ -41048,7 +44454,7 @@ index 35f10bf..6a38a0b 100644
        if (!left--) {
                if (instance->disconnected)
 diff --git a/drivers/usb/core/devices.c b/drivers/usb/core/devices.c
-index f460de3..95ba1f6 100644
+index cbacea9..246cccd 100644
 --- a/drivers/usb/core/devices.c
 +++ b/drivers/usb/core/devices.c
 @@ -126,7 +126,7 @@ static const char format_endpt[] =
@@ -41069,7 +44475,7 @@ index f460de3..95ba1f6 100644
        wake_up(&device_event.wait);
  }
  
-@@ -647,7 +647,7 @@ static unsigned int usb_device_poll(struct file *file,
+@@ -645,7 +645,7 @@ static unsigned int usb_device_poll(struct file *file,
  
        poll_wait(file, &device_event.wait, wait);
  
@@ -41079,10 +44485,10 @@ index f460de3..95ba1f6 100644
                file->f_version = event_count;
                return POLLIN | POLLRDNORM;
 diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
-index f034716..aed0368 100644
+index 8e64adf..9a33a3c 100644
 --- a/drivers/usb/core/hcd.c
 +++ b/drivers/usb/core/hcd.c
-@@ -1478,7 +1478,7 @@ int usb_hcd_submit_urb (struct urb *urb, gfp_t mem_flags)
+@@ -1522,7 +1522,7 @@ int usb_hcd_submit_urb (struct urb *urb, gfp_t mem_flags)
         */
        usb_get_urb(urb);
        atomic_inc(&urb->use_count);
@@ -41091,7 +44497,7 @@ index f034716..aed0368 100644
        usbmon_urb_submit(&hcd->self, urb);
  
        /* NOTE requirements on root-hub callers (usbfs and the hub
-@@ -1505,7 +1505,7 @@ int usb_hcd_submit_urb (struct urb *urb, gfp_t mem_flags)
+@@ -1549,7 +1549,7 @@ int usb_hcd_submit_urb (struct urb *urb, gfp_t mem_flags)
                urb->hcpriv = NULL;
                INIT_LIST_HEAD(&urb->urb_list);
                atomic_dec(&urb->use_count);
@@ -41100,6 +44506,19 @@ index f034716..aed0368 100644
                if (atomic_read(&urb->reject))
                        wake_up(&usb_kill_urb_queue);
                usb_put_urb(urb);
+diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c
+index 131f736..99004c3 100644
+--- a/drivers/usb/core/message.c
++++ b/drivers/usb/core/message.c
+@@ -129,7 +129,7 @@ static int usb_internal_control_msg(struct usb_device *usb_dev,
+  * method can wait for it to complete.  Since you don't have a handle on the
+  * URB used, you can't cancel the request.
+  */
+-int usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request,
++int __intentional_overflow(-1) usb_control_msg(struct usb_device *dev, unsigned int pipe, __u8 request,
+                   __u8 requesttype, __u16 value, __u16 index, void *data,
+                   __u16 size, int timeout)
+ {
 diff --git a/drivers/usb/core/sysfs.c b/drivers/usb/core/sysfs.c
 index 818e4a0..0fc9589 100644
 --- a/drivers/usb/core/sysfs.c
@@ -41114,10 +44533,10 @@ index 818e4a0..0fc9589 100644
  static DEVICE_ATTR(urbnum, S_IRUGO, show_urbnum, NULL);
  
 diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
-index cd8fb44..17fbe0c 100644
+index f81b925..78d22ec 100644
 --- a/drivers/usb/core/usb.c
 +++ b/drivers/usb/core/usb.c
-@@ -397,7 +397,7 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent,
+@@ -388,7 +388,7 @@ struct usb_device *usb_alloc_dev(struct usb_device *parent,
        set_dev_node(&dev->dev, dev_to_node(bus->controller));
        dev->state = USB_STATE_ATTACHED;
        dev->lpm_disable_count = 1;
@@ -41127,7 +44546,7 @@ index cd8fb44..17fbe0c 100644
        INIT_LIST_HEAD(&dev->ep0.urb_list);
        dev->ep0.desc.bLength = USB_DT_ENDPOINT_SIZE;
 diff --git a/drivers/usb/early/ehci-dbgp.c b/drivers/usb/early/ehci-dbgp.c
-index 4bfa78a..902bfbd 100644
+index 5e29dde..eca992f 100644
 --- a/drivers/usb/early/ehci-dbgp.c
 +++ b/drivers/usb/early/ehci-dbgp.c
 @@ -98,7 +98,8 @@ static inline u32 dbgp_len_update(u32 x, u32 len)
@@ -41168,7 +44587,7 @@ index 4bfa78a..902bfbd 100644
        return 0;
  }
 diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c
-index f173952..83d6ec0 100644
+index 598dcc1..032dd4f 100644
 --- a/drivers/usb/gadget/u_serial.c
 +++ b/drivers/usb/gadget/u_serial.c
 @@ -735,9 +735,9 @@ static int gs_open(struct tty_struct *tty, struct file *file)
@@ -41216,7 +44635,7 @@ index f173952..83d6ec0 100644
  
        gser = port->port_usb;
        if (gser && gser->disconnect)
-@@ -1157,7 +1157,7 @@ static int gs_closed(struct gs_port *port)
+@@ -1159,7 +1159,7 @@ static int gs_closed(struct gs_port *port)
        int cond;
  
        spin_lock_irq(&port->port_lock);
@@ -41225,7 +44644,7 @@ index f173952..83d6ec0 100644
        spin_unlock_irq(&port->port_lock);
        return cond;
  }
-@@ -1270,7 +1270,7 @@ int gserial_connect(struct gserial *gser, u8 port_num)
+@@ -1273,7 +1273,7 @@ int gserial_connect(struct gserial *gser, u8 port_num)
        /* if it's already open, start I/O ... and notify the serial
         * protocol about open/close status (connect/disconnect).
         */
@@ -41234,7 +44653,7 @@ index f173952..83d6ec0 100644
                pr_debug("gserial_connect: start ttyGS%d\n", port->port_num);
                gs_start_io(port);
                if (gser->connect)
-@@ -1317,7 +1317,7 @@ void gserial_disconnect(struct gserial *gser)
+@@ -1320,7 +1320,7 @@ void gserial_disconnect(struct gserial *gser)
  
        port->port_usb = NULL;
        gser->ioport = NULL;
@@ -41243,7 +44662,7 @@ index f173952..83d6ec0 100644
                wake_up_interruptible(&port->drain_wait);
                if (port->port.tty)
                        tty_hangup(port->port.tty);
-@@ -1333,7 +1333,7 @@ void gserial_disconnect(struct gserial *gser)
+@@ -1336,7 +1336,7 @@ void gserial_disconnect(struct gserial *gser)
  
        /* finally, free any unused/unusable I/O buffers */
        spin_lock_irqsave(&port->port_lock, flags);
@@ -41283,6 +44702,32 @@ index 5f3bcd3..bfca43f 100644
        usb_autopm_put_interface(serial->interface);
   error_get_interface:
        usb_serial_put(serial);
+diff --git a/drivers/usb/storage/realtek_cr.c b/drivers/usb/storage/realtek_cr.c
+index 6c3586a..a94e621 100644
+--- a/drivers/usb/storage/realtek_cr.c
++++ b/drivers/usb/storage/realtek_cr.c
+@@ -429,7 +429,7 @@ static int rts51x_read_status(struct us_data *us,
+       buf = kmalloc(len, GFP_NOIO);
+       if (buf == NULL)
+-              return USB_STOR_TRANSPORT_ERROR;
++              return -ENOMEM;
+       US_DEBUGP("%s, lun = %d\n", __func__, lun);
+diff --git a/drivers/usb/storage/usb.h b/drivers/usb/storage/usb.h
+index 75f70f0..d467e1a 100644
+--- a/drivers/usb/storage/usb.h
++++ b/drivers/usb/storage/usb.h
+@@ -63,7 +63,7 @@ struct us_unusual_dev {
+       __u8  useProtocol;
+       __u8  useTransport;
+       int (*initFunction)(struct us_data *);
+-};
++} __do_const;
+ /* Dynamic bitflag definitions (us->dflags): used in set_bit() etc. */
 diff --git a/drivers/usb/wusbcore/wa-hc.h b/drivers/usb/wusbcore/wa-hc.h
 index d6bea3e..60b250e 100644
 --- a/drivers/usb/wusbcore/wa-hc.h
@@ -41318,32 +44763,100 @@ index 57c01ab..8a05959 100644
  }
  
  /*
-diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c
-index dedaf81..b0f11ab 100644
---- a/drivers/vhost/vhost.c
-+++ b/drivers/vhost/vhost.c
-@@ -634,7 +634,7 @@ static long vhost_set_memory(struct vhost_dev *d, struct vhost_memory __user *m)
-       return 0;
- }
--static long vhost_set_vring(struct vhost_dev *d, int ioctl, void __user *argp)
-+static long vhost_set_vring(struct vhost_dev *d, unsigned int ioctl, void __user *argp)
- {
-       struct file *eventfp, *filep = NULL;
-       bool pollstart = false, pollstop = false;
 diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c
-index 0fefa84..7a9d581 100644
+index 8c55011..eed4ae1a 100644
 --- a/drivers/video/aty/aty128fb.c
 +++ b/drivers/video/aty/aty128fb.c
 @@ -149,7 +149,7 @@ enum {
  };
  
  /* Must match above enum */
--static char * const r128_family[] __devinitconst = {
-+static const char * const r128_family[] __devinitconst = {
+-static char * const r128_family[] = {
++static const char * const r128_family[] = {
        "AGP",
        "PCI",
        "PRO AGP",
+diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c
+index 4f27fdc..d3537e6 100644
+--- a/drivers/video/aty/atyfb_base.c
++++ b/drivers/video/aty/atyfb_base.c
+@@ -1325,10 +1325,14 @@ static int atyfb_set_par(struct fb_info *info)
+       par->accel_flags = var->accel_flags; /* hack */
+       if (var->accel_flags) {
+-              info->fbops->fb_sync = atyfb_sync;
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_sync = atyfb_sync;
++              pax_close_kernel();
+               info->flags &= ~FBINFO_HWACCEL_DISABLED;
+       } else {
+-              info->fbops->fb_sync = NULL;
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_sync = NULL;
++              pax_close_kernel();
+               info->flags |= FBINFO_HWACCEL_DISABLED;
+       }
+diff --git a/drivers/video/aty/mach64_cursor.c b/drivers/video/aty/mach64_cursor.c
+index 95ec042..e6affdd 100644
+--- a/drivers/video/aty/mach64_cursor.c
++++ b/drivers/video/aty/mach64_cursor.c
+@@ -7,6 +7,7 @@
+ #include <linux/string.h>
+ #include <asm/io.h>
++#include <asm/pgtable.h>
+ #ifdef __sparc__
+ #include <asm/fbio.h>
+@@ -208,7 +209,9 @@ int aty_init_cursor(struct fb_info *info)
+       info->sprite.buf_align = 16;    /* and 64 lines tall. */
+       info->sprite.flags = FB_PIXMAP_IO;
+-      info->fbops->fb_cursor = atyfb_cursor;
++      pax_open_kernel();
++      *(void **)&info->fbops->fb_cursor = atyfb_cursor;
++      pax_close_kernel();
+       return 0;
+ }
+diff --git a/drivers/video/backlight/kb3886_bl.c b/drivers/video/backlight/kb3886_bl.c
+index 6c5ed6b..b727c88 100644
+--- a/drivers/video/backlight/kb3886_bl.c
++++ b/drivers/video/backlight/kb3886_bl.c
+@@ -78,7 +78,7 @@ static struct kb3886bl_machinfo *bl_machinfo;
+ static unsigned long kb3886bl_flags;
+ #define KB3886BL_SUSPENDED     0x01
+-static struct dmi_system_id __initdata kb3886bl_device_table[] = {
++static const struct dmi_system_id __initconst kb3886bl_device_table[] = {
+       {
+               .ident = "Sahara Touch-iT",
+               .matches = {
+diff --git a/drivers/video/fb_defio.c b/drivers/video/fb_defio.c
+index 88cad6b..dd746c7 100644
+--- a/drivers/video/fb_defio.c
++++ b/drivers/video/fb_defio.c
+@@ -206,7 +206,9 @@ void fb_deferred_io_init(struct fb_info *info)
+       BUG_ON(!fbdefio);
+       mutex_init(&fbdefio->lock);
+-      info->fbops->fb_mmap = fb_deferred_io_mmap;
++      pax_open_kernel();
++      *(void **)&info->fbops->fb_mmap = fb_deferred_io_mmap;
++      pax_close_kernel();
+       INIT_DELAYED_WORK(&info->deferred_work, fb_deferred_io_work);
+       INIT_LIST_HEAD(&fbdefio->pagelist);
+       if (fbdefio->delay == 0) /* set a default of 1 s */
+@@ -237,7 +239,7 @@ void fb_deferred_io_cleanup(struct fb_info *info)
+               page->mapping = NULL;
+       }
+-      info->fbops->fb_mmap = NULL;
++      *(void **)&info->fbops->fb_mmap = NULL;
+       mutex_destroy(&fbdefio->lock);
+ }
+ EXPORT_SYMBOL_GPL(fb_deferred_io_cleanup);
 diff --git a/drivers/video/fbcmap.c b/drivers/video/fbcmap.c
 index 5c3960d..15cf8fc 100644
 --- a/drivers/video/fbcmap.c
@@ -41359,7 +44872,7 @@ index 5c3960d..15cf8fc 100644
                goto out1;
        }
 diff --git a/drivers/video/fbmem.c b/drivers/video/fbmem.c
-index 3ff0105..7589d98 100644
+index dc61c12..e29796e 100644
 --- a/drivers/video/fbmem.c
 +++ b/drivers/video/fbmem.c
 @@ -428,7 +428,7 @@ static void fb_do_show_logo(struct fb_info *info, struct fb_image *image,
@@ -44130,8 +47643,119 @@ index 3c14e43..eafa544 100644
 +4 4 4  4 4 4  4 4 4  4 4 4  4 4 4  4 4 4
 +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/mb862xx/mb862xxfb_accel.c b/drivers/video/mb862xx/mb862xxfb_accel.c
+index fe92eed..106e085 100644
+--- a/drivers/video/mb862xx/mb862xxfb_accel.c
++++ b/drivers/video/mb862xx/mb862xxfb_accel.c
+@@ -312,14 +312,18 @@ void mb862xxfb_init_accel(struct fb_info *info, int xres)
+       struct mb862xxfb_par *par = info->par;
+       if (info->var.bits_per_pixel == 32) {
+-              info->fbops->fb_fillrect = cfb_fillrect;
+-              info->fbops->fb_copyarea = cfb_copyarea;
+-              info->fbops->fb_imageblit = cfb_imageblit;
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_fillrect = cfb_fillrect;
++              *(void **)&info->fbops->fb_copyarea = cfb_copyarea;
++              *(void **)&info->fbops->fb_imageblit = cfb_imageblit;
++              pax_close_kernel();
+       } else {
+               outreg(disp, GC_L0EM, 3);
+-              info->fbops->fb_fillrect = mb86290fb_fillrect;
+-              info->fbops->fb_copyarea = mb86290fb_copyarea;
+-              info->fbops->fb_imageblit = mb86290fb_imageblit;
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_fillrect = mb86290fb_fillrect;
++              *(void **)&info->fbops->fb_copyarea = mb86290fb_copyarea;
++              *(void **)&info->fbops->fb_imageblit = mb86290fb_imageblit;
++              pax_close_kernel();
+       }
+       outreg(draw, GDC_REG_DRAW_BASE, 0);
+       outreg(draw, GDC_REG_MODE_MISC, 0x8000);
+diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c
+index ff22871..b129bed 100644
+--- a/drivers/video/nvidia/nvidia.c
++++ b/drivers/video/nvidia/nvidia.c
+@@ -669,19 +669,23 @@ static int nvidiafb_set_par(struct fb_info *info)
+       info->fix.line_length = (info->var.xres_virtual *
+                                info->var.bits_per_pixel) >> 3;
+       if (info->var.accel_flags) {
+-              info->fbops->fb_imageblit = nvidiafb_imageblit;
+-              info->fbops->fb_fillrect = nvidiafb_fillrect;
+-              info->fbops->fb_copyarea = nvidiafb_copyarea;
+-              info->fbops->fb_sync = nvidiafb_sync;
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_imageblit = nvidiafb_imageblit;
++              *(void **)&info->fbops->fb_fillrect = nvidiafb_fillrect;
++              *(void **)&info->fbops->fb_copyarea = nvidiafb_copyarea;
++              *(void **)&info->fbops->fb_sync = nvidiafb_sync;
++              pax_close_kernel();
+               info->pixmap.scan_align = 4;
+               info->flags &= ~FBINFO_HWACCEL_DISABLED;
+               info->flags |= FBINFO_READS_FAST;
+               NVResetGraphics(info);
+       } else {
+-              info->fbops->fb_imageblit = cfb_imageblit;
+-              info->fbops->fb_fillrect = cfb_fillrect;
+-              info->fbops->fb_copyarea = cfb_copyarea;
+-              info->fbops->fb_sync = NULL;
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_imageblit = cfb_imageblit;
++              *(void **)&info->fbops->fb_fillrect = cfb_fillrect;
++              *(void **)&info->fbops->fb_copyarea = cfb_copyarea;
++              *(void **)&info->fbops->fb_sync = NULL;
++              pax_close_kernel();
+               info->pixmap.scan_align = 1;
+               info->flags |= FBINFO_HWACCEL_DISABLED;
+               info->flags &= ~FBINFO_READS_FAST;
+@@ -1173,8 +1177,11 @@ static int nvidia_set_fbinfo(struct fb_info *info)
+       info->pixmap.size = 8 * 1024;
+       info->pixmap.flags = FB_PIXMAP_SYSTEM;
+-      if (!hwcur)
+-          info->fbops->fb_cursor = NULL;
++      if (!hwcur) {
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_cursor = NULL;
++              pax_close_kernel();
++      }
+       info->var.accel_flags = (!noaccel);
+diff --git a/drivers/video/s1d13xxxfb.c b/drivers/video/s1d13xxxfb.c
+index 76d9053..dec2bfd 100644
+--- a/drivers/video/s1d13xxxfb.c
++++ b/drivers/video/s1d13xxxfb.c
+@@ -881,8 +881,10 @@ static int s1d13xxxfb_probe(struct platform_device *pdev)
+       switch(prod_id) {
+       case S1D13506_PROD_ID:  /* activate acceleration */
+-              s1d13xxxfb_fbops.fb_fillrect = s1d13xxxfb_bitblt_solidfill;
+-              s1d13xxxfb_fbops.fb_copyarea = s1d13xxxfb_bitblt_copyarea;
++              pax_open_kernel();
++              *(void **)&s1d13xxxfb_fbops.fb_fillrect = s1d13xxxfb_bitblt_solidfill;
++              *(void **)&s1d13xxxfb_fbops.fb_copyarea = s1d13xxxfb_bitblt_copyarea;
++              pax_close_kernel();
+               info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN |
+                       FBINFO_HWACCEL_FILLRECT | FBINFO_HWACCEL_COPYAREA;
+               break;
+diff --git a/drivers/video/smscufx.c b/drivers/video/smscufx.c
+index 97bd662..39fab85 100644
+--- a/drivers/video/smscufx.c
++++ b/drivers/video/smscufx.c
+@@ -1171,7 +1171,9 @@ static int ufx_ops_release(struct fb_info *info, int user)
+               fb_deferred_io_cleanup(info);
+               kfree(info->fbdefio);
+               info->fbdefio = NULL;
+-              info->fbops->fb_mmap = ufx_ops_mmap;
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_mmap = ufx_ops_mmap;
++              pax_close_kernel();
+       }
+       pr_debug("released /dev/fb%d user=%d count=%d",
 diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c
-index 86d449e..af6a7f7 100644
+index 86d449e..8e04dc5 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,
@@ -44166,7 +47790,18 @@ index 86d449e..af6a7f7 100644
                    >> 10)), /* Kcycles */
                   &dev->cpu_kcycles_used);
  }
-@@ -1372,7 +1372,7 @@ static ssize_t metrics_bytes_rendered_show(struct device *fbdev,
+@@ -989,7 +989,9 @@ static int dlfb_ops_release(struct fb_info *info, int user)
+               fb_deferred_io_cleanup(info);
+               kfree(info->fbdefio);
+               info->fbdefio = NULL;
+-              info->fbops->fb_mmap = dlfb_ops_mmap;
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_mmap = dlfb_ops_mmap;
++              pax_close_kernel();
+       }
+       pr_warn("released /dev/fb%d user=%d count=%d\n",
+@@ -1372,7 +1374,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",
@@ -44175,7 +47810,7 @@ index 86d449e..af6a7f7 100644
  }
  
  static ssize_t metrics_bytes_identical_show(struct device *fbdev,
-@@ -1380,7 +1380,7 @@ static ssize_t metrics_bytes_identical_show(struct device *fbdev,
+@@ -1380,7 +1382,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",
@@ -44184,7 +47819,7 @@ index 86d449e..af6a7f7 100644
  }
  
  static ssize_t metrics_bytes_sent_show(struct device *fbdev,
-@@ -1388,7 +1388,7 @@ static ssize_t metrics_bytes_sent_show(struct device *fbdev,
+@@ -1388,7 +1390,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",
@@ -44193,7 +47828,7 @@ index 86d449e..af6a7f7 100644
  }
  
  static ssize_t metrics_cpu_kcycles_used_show(struct device *fbdev,
-@@ -1396,7 +1396,7 @@ static ssize_t metrics_cpu_kcycles_used_show(struct device *fbdev,
+@@ -1396,7 +1398,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",
@@ -44202,7 +47837,7 @@ index 86d449e..af6a7f7 100644
  }
  
  static ssize_t edid_show(
-@@ -1456,10 +1456,10 @@ static ssize_t metrics_reset_store(struct device *fbdev,
+@@ -1456,10 +1458,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;
  
@@ -44218,7 +47853,7 @@ index 86d449e..af6a7f7 100644
        return count;
  }
 diff --git a/drivers/video/uvesafb.c b/drivers/video/uvesafb.c
-index 2f8f82d..191de37 100644
+index b75db01..ad2f34a 100644
 --- a/drivers/video/uvesafb.c
 +++ b/drivers/video/uvesafb.c
 @@ -19,6 +19,7 @@
@@ -44229,7 +47864,7 @@ index 2f8f82d..191de37 100644
  #include <video/edid.h>
  #include <video/uvesafb.h>
  #ifdef CONFIG_X86
-@@ -569,10 +570,32 @@ static int __devinit uvesafb_vbe_getpmi(struct uvesafb_ktask *task,
+@@ -569,10 +570,32 @@ static int 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 {
@@ -44262,7 +47897,7 @@ index 2f8f82d..191de37 100644
                printk(KERN_INFO "uvesafb: protected mode interface info at "
                                 "%04x:%04x\n",
                                 (u16)task->t.regs.es, (u16)task->t.regs.edi);
-@@ -818,13 +841,14 @@ static int __devinit uvesafb_vbe_init(struct fb_info *info)
+@@ -817,13 +840,14 @@ static int uvesafb_vbe_init(struct fb_info *info)
        par->ypan = ypan;
  
        if (par->pmi_setpal || par->ypan) {
@@ -44279,7 +47914,35 @@ index 2f8f82d..191de37 100644
        }
  #else
        /* The protected mode interface is not available on non-x86. */
-@@ -1838,6 +1862,11 @@ out:
+@@ -1457,8 +1481,11 @@ static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode)
+       info->fix.ywrapstep = (par->ypan > 1) ? 1 : 0;
+       /* Disable blanking if the user requested so. */
+-      if (!blank)
+-              info->fbops->fb_blank = NULL;
++      if (!blank) {
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_blank = NULL;
++              pax_close_kernel();
++      }
+       /*
+        * Find out how much IO memory is required for the mode with
+@@ -1534,8 +1561,11 @@ static void uvesafb_init_info(struct fb_info *info, struct vbe_mode_ib *mode)
+       info->flags = FBINFO_FLAG_DEFAULT |
+                       (par->ypan ? FBINFO_HWACCEL_YPAN : 0);
+-      if (!par->ypan)
+-              info->fbops->fb_pan_display = NULL;
++      if (!par->ypan) {
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_pan_display = NULL;
++              pax_close_kernel();
++      }
+ }
+ static void uvesafb_init_mtrr(struct fb_info *info)
+@@ -1836,6 +1866,11 @@ out:
        if (par->vbe_modes)
                kfree(par->vbe_modes);
  
@@ -44291,7 +47954,7 @@ index 2f8f82d..191de37 100644
        framebuffer_release(info);
        return err;
  }
-@@ -1864,6 +1893,12 @@ static int uvesafb_remove(struct platform_device *dev)
+@@ -1862,6 +1897,12 @@ static int uvesafb_remove(struct platform_device *dev)
                                kfree(par->vbe_state_orig);
                        if (par->vbe_state_saved)
                                kfree(par->vbe_state_saved);
@@ -44305,7 +47968,7 @@ index 2f8f82d..191de37 100644
  
                framebuffer_release(info);
 diff --git a/drivers/video/vesafb.c b/drivers/video/vesafb.c
-index 501b340..86bd4cf 100644
+index 501b340..d80aa17 100644
 --- a/drivers/video/vesafb.c
 +++ b/drivers/video/vesafb.c
 @@ -9,6 +9,7 @@
@@ -44398,7 +48061,21 @@ index 501b340..86bd4cf 100644
                printk(KERN_INFO "vesafb: pmi: set display start = %p, set palette = %p\n",pmi_start,pmi_pal);
                if (pmi_base[3]) {
                        printk(KERN_INFO "vesafb: pmi: ports = ");
-@@ -488,6 +514,11 @@ static int __init vesafb_probe(struct platform_device *dev)
+@@ -472,8 +498,11 @@ static int __init vesafb_probe(struct platform_device *dev)
+       info->flags = FBINFO_FLAG_DEFAULT | FBINFO_MISC_FIRMWARE |
+               (ypan ? FBINFO_HWACCEL_YPAN : 0);
+-      if (!ypan)
+-              info->fbops->fb_pan_display = NULL;
++      if (!ypan) {
++              pax_open_kernel();
++              *(void **)&info->fbops->fb_pan_display = NULL;
++              pax_close_kernel();
++      }
+       if (fb_alloc_cmap(&info->cmap, 256, 0) < 0) {
+               err = -ENOMEM;
+@@ -488,6 +517,11 @@ static int __init vesafb_probe(struct platform_device *dev)
               info->node, info->fix.id);
        return 0;
  err:
@@ -44423,19 +48100,6 @@ index 88714ae..16c2e11 100644
  
  
  static inline u32 get_pll_internal_frequency(u32 ref_freq,
-diff --git a/drivers/virtio/virtio_mmio.c b/drivers/virtio/virtio_mmio.c
-index 6b1b7e1..b2fa4d5 100644
---- a/drivers/virtio/virtio_mmio.c
-+++ b/drivers/virtio/virtio_mmio.c
-@@ -530,7 +530,7 @@ static int vm_cmdline_set(const char *device,
-       resources[0].end = memparse(device, &str) - 1;
--      processed = sscanf(str, "@%lli:%u%n:%d%n",
-+      processed = sscanf(str, "@%lli:%llu%n:%d%n",
-                       &base, &resources[1].start, &consumed,
-                       &vm_cmdline_id, &consumed);
 diff --git a/drivers/xen/xenfs/xenstored.c b/drivers/xen/xenfs/xenstored.c
 index fef20db..d28b1ab 100644
 --- a/drivers/xen/xenfs/xenstored.c
@@ -44526,10 +48190,10 @@ index 71f613c..9d01f1f 100644
        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 cce7df5..eaa2731 100644
+index 1449adb..a2038c2 100644
 --- a/fs/attr.c
 +++ b/fs/attr.c
-@@ -100,6 +100,7 @@ int inode_newsize_ok(const struct inode *inode, loff_t offset)
+@@ -102,6 +102,7 @@ int inode_newsize_ok(const struct inode *inode, loff_t offset)
                unsigned long limit;
  
                limit = rlimit(RLIMIT_FSIZE);
@@ -44538,7 +48202,7 @@ index cce7df5..eaa2731 100644
                        goto out_sig;
                if (offset > inode->i_sb->s_maxbytes)
 diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
-index dce436e..55e670d 100644
+index 03bc1d3..6205356 100644
 --- a/fs/autofs4/waitq.c
 +++ b/fs/autofs4/waitq.c
 @@ -61,7 +61,7 @@ static int autofs4_write(struct autofs_sb_info *sbi,
@@ -44550,7 +48214,7 @@ index dce436e..55e670d 100644
        ssize_t wr = 0;
  
        sigpipe = sigismember(&current->pending.signal, SIGPIPE);
-@@ -347,6 +347,10 @@ static int validate_request(struct autofs_wait_queue **wait,
+@@ -348,6 +348,10 @@ static int validate_request(struct autofs_wait_queue **wait,
        return 1;
  }
  
@@ -44561,7 +48225,7 @@ index dce436e..55e670d 100644
  int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
                enum autofs_notify notify)
  {
-@@ -380,7 +384,12 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
+@@ -381,7 +385,12 @@ int autofs4_wait(struct autofs_sb_info *sbi, struct dentry *dentry,
  
        /* If this is a direct mount request create a dummy name */
        if (IS_ROOT(dentry) && autofs_type_trigger(sbi->type))
@@ -44574,6 +48238,28 @@ index dce436e..55e670d 100644
        else {
                qstr.len = autofs4_getpath(sbi, dentry, &name);
                if (!qstr.len) {
+diff --git a/fs/befs/endian.h b/fs/befs/endian.h
+index 2722387..c8dd2a7 100644
+--- a/fs/befs/endian.h
++++ b/fs/befs/endian.h
+@@ -11,7 +11,7 @@
+ #include <asm/byteorder.h>
+-static inline u64
++static inline u64 __intentional_overflow(-1)
+ fs64_to_cpu(const struct super_block *sb, fs64 n)
+ {
+       if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
+@@ -29,7 +29,7 @@ cpu_to_fs64(const struct super_block *sb, u64 n)
+               return (__force fs64)cpu_to_be64(n);
+ }
+-static inline u32
++static inline u32 __intentional_overflow(-1)
+ fs32_to_cpu(const struct super_block *sb, fs32 n)
+ {
+       if (BEFS_SB(sb)->byte_order == BEFS_BYTESEX_LE)
 diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c
 index 2b3bda8..6a2d4be 100644
 --- a/fs/befs/linuxvfs.c
@@ -44588,7 +48274,7 @@ index 2b3bda8..6a2d4be 100644
                        kfree(link);
        }
 diff --git a/fs/binfmt_aout.c b/fs/binfmt_aout.c
-index 0e7a6f8..332b1ca 100644
+index 6043567..16a9239 100644
 --- a/fs/binfmt_aout.c
 +++ b/fs/binfmt_aout.c
 @@ -16,6 +16,7 @@
@@ -44621,7 +48307,7 @@ index 0e7a6f8..332b1ca 100644
        if ((dump.u_ssize + 1) * PAGE_SIZE > cprm->limit)
                dump.u_ssize = 0;
  
-@@ -233,6 +238,8 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+@@ -234,6 +239,8 @@ static int load_aout_binary(struct linux_binprm * bprm)
        rlim = rlimit(RLIMIT_DATA);
        if (rlim >= RLIM_INFINITY)
                rlim = ~0;
@@ -44630,7 +48316,7 @@ index 0e7a6f8..332b1ca 100644
        if (ex.a_data + ex.a_bss > rlim)
                return -ENOMEM;
  
-@@ -267,6 +274,27 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+@@ -268,6 +275,27 @@ static int load_aout_binary(struct linux_binprm * bprm)
  
        install_exec_creds(bprm);
  
@@ -44658,7 +48344,7 @@ index 0e7a6f8..332b1ca 100644
        if (N_MAGIC(ex) == OMAGIC) {
                unsigned long text_addr, map_size;
                loff_t pos;
-@@ -332,7 +360,7 @@ static int load_aout_binary(struct linux_binprm * bprm, struct pt_regs * regs)
+@@ -333,7 +361,7 @@ static int load_aout_binary(struct linux_binprm * bprm)
                }
  
                error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data,
@@ -44668,7 +48354,7 @@ index 0e7a6f8..332b1ca 100644
                                fd_offset + ex.a_text);
                if (error != N_DATADDR(ex)) {
 diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
-index fbd9f60..0b845dd 100644
+index 0c42cdb..b62581e9 100644
 --- a/fs/binfmt_elf.c
 +++ b/fs/binfmt_elf.c
 @@ -33,6 +33,7 @@
@@ -45142,7 +48828,7 @@ index fbd9f60..0b845dd 100644
        if ((current->flags & PF_RANDOMIZE) &&
                !(current->personality & ADDR_NO_RANDOMIZE)) {
                random_variable = get_random_int() & STACK_RND_MASK;
-@@ -564,7 +899,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -564,7 +899,7 @@ static int load_elf_binary(struct linux_binprm *bprm)
        unsigned long load_addr = 0, load_bias = 0;
        int load_addr_set = 0;
        char * elf_interpreter = NULL;
@@ -45151,11 +48837,12 @@ index fbd9f60..0b845dd 100644
        struct elf_phdr *elf_ppnt, *elf_phdata;
        unsigned long elf_bss, elf_brk;
        int retval, i;
-@@ -574,11 +909,11 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -574,12 +909,12 @@ static int load_elf_binary(struct linux_binprm *bprm)
        unsigned long start_code, end_code, start_data, end_data;
        unsigned long reloc_func_desc __maybe_unused = 0;
        int executable_stack = EXSTACK_DEFAULT;
 -      unsigned long def_flags = 0;
+       struct pt_regs *regs = current_pt_regs();
        struct {
                struct elfhdr elf_ex;
                struct elfhdr interp_elf_ex;
@@ -45164,7 +48851,7 @@ index fbd9f60..0b845dd 100644
  
        loc = kmalloc(sizeof(*loc), GFP_KERNEL);
        if (!loc) {
-@@ -714,11 +1049,81 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -715,11 +1050,81 @@ static int load_elf_binary(struct linux_binprm *bprm)
                goto out_free_dentry;
  
        /* OK, This is the point of no return */
@@ -45206,7 +48893,7 @@ index fbd9f60..0b845dd 100644
 +#ifdef CONFIG_ARCH_TRACK_EXEC_LIMIT
 +      if ((current->mm->pax_flags & MF_PAX_PAGEEXEC) && !(__supported_pte_mask & _PAGE_NX)) {
 +              current->mm->context.user_cs_limit = PAGE_SIZE;
-+              current->mm->def_flags |= VM_PAGEEXEC;
++              current->mm->def_flags |= VM_PAGEEXEC | VM_NOHUGEPAGE;
 +      }
 +#endif
 +
@@ -45247,7 +48934,7 @@ index fbd9f60..0b845dd 100644
        if (elf_read_implies_exec(loc->elf_ex, executable_stack))
                current->personality |= READ_IMPLIES_EXEC;
  
-@@ -809,6 +1214,20 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -810,6 +1215,20 @@ static int load_elf_binary(struct linux_binprm *bprm)
  #else
                        load_bias = ELF_PAGESTART(ELF_ET_DYN_BASE - vaddr);
  #endif
@@ -45268,7 +48955,7 @@ index fbd9f60..0b845dd 100644
                }
  
                error = elf_map(bprm->file, load_bias + vaddr, elf_ppnt,
-@@ -841,9 +1260,9 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -842,9 +1261,9 @@ static int load_elf_binary(struct linux_binprm *bprm)
                 * allowed task size. Note that p_filesz must always be
                 * <= p_memsz so it is only necessary to check p_memsz.
                 */
@@ -45281,7 +48968,7 @@ index fbd9f60..0b845dd 100644
                        /* set_brk can never work. Avoid overflows. */
                        send_sig(SIGKILL, current, 0);
                        retval = -EINVAL;
-@@ -882,17 +1301,44 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
+@@ -883,17 +1302,44 @@ static int load_elf_binary(struct linux_binprm *bprm)
                goto out_free_dentry;
        }
        if (likely(elf_bss != elf_brk) && unlikely(padzero(elf_bss))) {
@@ -45297,23 +48984,23 @@ index fbd9f60..0b845dd 100644
  
 +#ifdef CONFIG_PAX_RANDMMAP
 +      if (current->mm->pax_flags & MF_PAX_RANDMMAP) {
-+              unsigned long start, size;
++              unsigned long start, size, flags, vm_flags;
 +
 +              start = ELF_PAGEALIGN(elf_brk);
 +              size = PAGE_SIZE + ((pax_get_random_long() & ((1UL << 22) - 1UL)) << 4);
-+              down_read(&current->mm->mmap_sem);
-+              retval = -ENOMEM;
-+              if (!find_vma_intersection(current->mm, start, start + size + PAGE_SIZE)) {
-+                      unsigned long prot = PROT_NONE;
++              flags = MAP_FIXED | MAP_PRIVATE;
++              vm_flags = VM_DONTEXPAND | VM_DONTDUMP;
 +
-+                      up_read(&current->mm->mmap_sem);
-+                      current->mm->brk_gap = PAGE_ALIGN(size) >> PAGE_SHIFT;
++              down_write(&current->mm->mmap_sem);
++              start = get_unmapped_area(NULL, start, PAGE_ALIGN(size), 0, flags);
++              retval = -ENOMEM;
++              if (!IS_ERR_VALUE(start) && !find_vma_intersection(current->mm, start, start + size + PAGE_SIZE)) {
 +//                    if (current->personality & ADDR_NO_RANDOMIZE)
-+//                            prot = PROT_READ;
-+                      start = vm_mmap(NULL, start, size, prot, MAP_ANONYMOUS | MAP_FIXED | MAP_PRIVATE, 0);
++//                            vm_flags |= VM_READ | VM_MAYREAD;
++                      start = mmap_region(NULL, start, PAGE_ALIGN(size), flags, vm_flags, 0);
 +                      retval = IS_ERR_VALUE(start) ? start : 0;
-+              } else
-+                      up_read(&current->mm->mmap_sem);
++              }
++              up_write(&current->mm->mmap_sem);
 +              if (retval == 0)
 +                      retval = set_brk(start + size, start + size + PAGE_SIZE);
 +              if (retval < 0) {
@@ -45332,7 +49019,7 @@ index fbd9f60..0b845dd 100644
                                            load_bias);
                if (!IS_ERR((void *)elf_entry)) {
                        /*
-@@ -1114,7 +1560,7 @@ static bool always_dump_vma(struct vm_area_struct *vma)
+@@ -1115,7 +1561,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,
@@ -45341,7 +49028,7 @@ index fbd9f60..0b845dd 100644
  {
  #define FILTER(type)  (mm_flags & (1UL << MMF_DUMP_##type))
  
-@@ -1151,7 +1597,7 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma,
+@@ -1152,7 +1598,7 @@ static unsigned long vma_dump_size(struct vm_area_struct *vma,
        if (vma->vm_file == NULL)
                return 0;
  
@@ -45350,7 +49037,7 @@ index fbd9f60..0b845dd 100644
                goto whole;
  
        /*
-@@ -1373,9 +1819,9 @@ static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm)
+@@ -1374,9 +1820,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;
@@ -45362,7 +49049,7 @@ index fbd9f60..0b845dd 100644
        fill_note(note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv);
  }
  
-@@ -2003,14 +2449,14 @@ static void fill_extnum_info(struct elfhdr *elf, struct elf_shdr *shdr4extnum,
+@@ -2006,14 +2452,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,
@@ -45379,7 +49066,7 @@ index fbd9f60..0b845dd 100644
        return size;
  }
  
-@@ -2104,7 +2550,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2107,7 +2553,7 @@ static int elf_core_dump(struct coredump_params *cprm)
  
        dataoff = offset = roundup(offset, ELF_EXEC_PAGESIZE);
  
@@ -45388,7 +49075,7 @@ index fbd9f60..0b845dd 100644
        offset += elf_core_extra_data_size();
        e_shoff = offset;
  
-@@ -2118,10 +2564,12 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2121,10 +2567,12 @@ static int elf_core_dump(struct coredump_params *cprm)
        offset = dataoff;
  
        size += sizeof(*elf);
@@ -45401,7 +49088,7 @@ index fbd9f60..0b845dd 100644
        if (size > cprm->limit
            || !dump_write(cprm->file, phdr4note, sizeof(*phdr4note)))
                goto end_coredump;
-@@ -2135,7 +2583,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2138,7 +2586,7 @@ static int elf_core_dump(struct coredump_params *cprm)
                phdr.p_offset = offset;
                phdr.p_vaddr = vma->vm_start;
                phdr.p_paddr = 0;
@@ -45410,7 +49097,7 @@ index fbd9f60..0b845dd 100644
                phdr.p_memsz = vma->vm_end - vma->vm_start;
                offset += phdr.p_filesz;
                phdr.p_flags = vma->vm_flags & VM_READ ? PF_R : 0;
-@@ -2146,6 +2594,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2149,6 +2597,7 @@ static int elf_core_dump(struct coredump_params *cprm)
                phdr.p_align = ELF_EXEC_PAGESIZE;
  
                size += sizeof(phdr);
@@ -45418,7 +49105,7 @@ index fbd9f60..0b845dd 100644
                if (size > cprm->limit
                    || !dump_write(cprm->file, &phdr, sizeof(phdr)))
                        goto end_coredump;
-@@ -2170,7 +2619,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2173,7 +2622,7 @@ static int elf_core_dump(struct coredump_params *cprm)
                unsigned long addr;
                unsigned long end;
  
@@ -45427,7 +49114,7 @@ index fbd9f60..0b845dd 100644
  
                for (addr = vma->vm_start; addr < end; addr += PAGE_SIZE) {
                        struct page *page;
-@@ -2179,6 +2628,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2182,6 +2631,7 @@ static int elf_core_dump(struct coredump_params *cprm)
                        page = get_dump_page(addr);
                        if (page) {
                                void *kaddr = kmap(page);
@@ -45435,7 +49122,7 @@ index fbd9f60..0b845dd 100644
                                stop = ((size += PAGE_SIZE) > cprm->limit) ||
                                        !dump_write(cprm->file, kaddr,
                                                    PAGE_SIZE);
-@@ -2196,6 +2646,7 @@ static int elf_core_dump(struct coredump_params *cprm)
+@@ -2199,6 +2649,7 @@ static int elf_core_dump(struct coredump_params *cprm)
  
        if (e_phnum == PN_XNUM) {
                size += sizeof(*shdr4extnum);
@@ -45443,7 +49130,7 @@ index fbd9f60..0b845dd 100644
                if (size > cprm->limit
                    || !dump_write(cprm->file, shdr4extnum,
                                   sizeof(*shdr4extnum)))
-@@ -2216,6 +2667,97 @@ out:
+@@ -2219,6 +2670,97 @@ out:
  
  #endif                /* CONFIG_ELF_CORE */
  
@@ -45542,7 +49229,7 @@ index fbd9f60..0b845dd 100644
  {
        register_binfmt(&elf_format);
 diff --git a/fs/binfmt_flat.c b/fs/binfmt_flat.c
-index e280352..7b2f231 100644
+index b563719..3868998 100644
 --- a/fs/binfmt_flat.c
 +++ b/fs/binfmt_flat.c
 @@ -562,7 +562,9 @@ static int load_flat_file(struct linux_binprm * bprm,
@@ -45609,10 +49296,10 @@ index b96fc6c..431d628 100644
        __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 ab3a456..7da538b 100644
+index 883dc49..f27794a 100644
 --- a/fs/block_dev.c
 +++ b/fs/block_dev.c
-@@ -651,7 +651,7 @@ static bool bd_may_claim(struct block_device *bdev, struct block_device *whole,
+@@ -652,7 +652,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 */
  
@@ -45622,10 +49309,10 @@ index ab3a456..7da538b 100644
        else if (whole->bd_holder != NULL)
                return false;    /* is a partition of a held device */
 diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
-index cdfb4c4..da736d4 100644
+index ce1c169..1ef484f 100644
 --- a/fs/btrfs/ctree.c
 +++ b/fs/btrfs/ctree.c
-@@ -1035,9 +1035,12 @@ static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans,
+@@ -1036,9 +1036,12 @@ static noinline int __btrfs_cow_block(struct btrfs_trans_handle *trans,
                free_extent_buffer(buf);
                add_root_to_dirty_list(root);
        } else {
@@ -45642,10 +49329,10 @@ index cdfb4c4..da736d4 100644
  
                WARN_ON(trans->transid != btrfs_header_generation(parent));
 diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
-index 95542a1..95a8727 100644
+index 7c4e6cc..27bd5c2 100644
 --- a/fs/btrfs/inode.c
 +++ b/fs/btrfs/inode.c
-@@ -7243,7 +7243,7 @@ fail:
+@@ -7314,7 +7314,7 @@ fail:
        return -ENOMEM;
  }
  
@@ -45654,7 +49341,7 @@ index 95542a1..95a8727 100644
                         struct dentry *dentry, struct kstat *stat)
  {
        struct inode *inode = dentry->d_inode;
-@@ -7257,6 +7257,14 @@ static int btrfs_getattr(struct vfsmount *mnt,
+@@ -7328,6 +7328,14 @@ static int btrfs_getattr(struct vfsmount *mnt,
        return 0;
  }
  
@@ -45670,10 +49357,10 @@ index 95542a1..95a8727 100644
   * 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 8fcf9a5..a200000 100644
+index 338f259..b657640 100644
 --- a/fs/btrfs/ioctl.c
 +++ b/fs/btrfs/ioctl.c
-@@ -2965,9 +2965,12 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
+@@ -3033,9 +3033,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;
  
@@ -45686,7 +49373,7 @@ index 8fcf9a5..a200000 100644
                info = NULL;
                rcu_read_lock();
                list_for_each_entry_rcu(tmp, &root->fs_info->space_info,
-@@ -2989,10 +2992,7 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
+@@ -3057,10 +3060,7 @@ long btrfs_ioctl_space_info(struct btrfs_root *root, void __user *arg)
                                memcpy(dest, &space, sizeof(space));
                                dest++;
                                space_args.total_spaces++;
@@ -45698,7 +49385,7 @@ index 8fcf9a5..a200000 100644
                up_read(&info->groups_sem);
        }
 diff --git a/fs/btrfs/relocation.c b/fs/btrfs/relocation.c
-index 776f0aa..3aad281 100644
+index 300e09a..9fe4539 100644
 --- a/fs/btrfs/relocation.c
 +++ b/fs/btrfs/relocation.c
 @@ -1269,7 +1269,7 @@ static int __update_reloc_root(struct btrfs_root *root, int del)
@@ -45710,6 +49397,19 @@ index 776f0aa..3aad281 100644
  
        if (!del) {
                spin_lock(&rc->reloc_root_tree.lock);
+diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
+index d8982e9..29a85fa 100644
+--- a/fs/btrfs/super.c
++++ b/fs/btrfs/super.c
+@@ -267,7 +267,7 @@ void __btrfs_abort_transaction(struct btrfs_trans_handle *trans,
+                            function, line, errstr);
+               return;
+       }
+-      ACCESS_ONCE(trans->transaction->aborted) = errno;
++      ACCESS_ONCE_RW(trans->transaction->aborted) = errno;
+       __btrfs_std_error(root->fs_info, function, line, errno, NULL);
+ }
+ /*
 diff --git a/fs/cachefiles/bind.c b/fs/cachefiles/bind.c
 index 622f469..e8d2d55 100644
 --- a/fs/cachefiles/bind.c
@@ -45771,10 +49471,10 @@ index 0a1467b..6a53245 100644
  
        cache->bstop_percent = bstop;
 diff --git a/fs/cachefiles/internal.h b/fs/cachefiles/internal.h
-index bd6bc1b..b627b53 100644
+index 4938251..7e01445 100644
 --- a/fs/cachefiles/internal.h
 +++ b/fs/cachefiles/internal.h
-@@ -57,7 +57,7 @@ struct cachefiles_cache {
+@@ -59,7 +59,7 @@ struct cachefiles_cache {
        wait_queue_head_t               daemon_pollwq;  /* poll waitqueue for daemon */
        struct rb_root                  active_nodes;   /* active nodes (can't be culled) */
        rwlock_t                        active_lock;    /* lock for active_nodes */
@@ -45783,7 +49483,7 @@ index bd6bc1b..b627b53 100644
        unsigned                        frun_percent;   /* when to stop culling (% files) */
        unsigned                        fcull_percent;  /* when to start culling (% files) */
        unsigned                        fstop_percent;  /* when to stop allocating (% files) */
-@@ -169,19 +169,19 @@ extern int cachefiles_check_in_use(struct cachefiles_cache *cache,
+@@ -171,19 +171,19 @@ extern int cachefiles_check_in_use(struct cachefiles_cache *cache,
   * proc.c
   */
  #ifdef CONFIG_CACHEFILES_HISTOGRAM
@@ -45809,10 +49509,10 @@ index bd6bc1b..b627b53 100644
  
  #else
 diff --git a/fs/cachefiles/namei.c b/fs/cachefiles/namei.c
-index b0b5f7c..039bb26 100644
+index 8c01c5fc..15f982e 100644
 --- a/fs/cachefiles/namei.c
 +++ b/fs/cachefiles/namei.c
-@@ -318,7 +318,7 @@ try_again:
+@@ -317,7 +317,7 @@ try_again:
        /* first step is to make up a grave dentry in the graveyard */
        sprintf(nbuffer, "%08x%08x",
                (uint32_t) get_seconds(),
@@ -45852,10 +49552,10 @@ index eccd339..4c1d995 100644
                        return 0;
  
 diff --git a/fs/cachefiles/rdwr.c b/fs/cachefiles/rdwr.c
-index c994691..2a1537f 100644
+index 4809922..aab2c39 100644
 --- a/fs/cachefiles/rdwr.c
 +++ b/fs/cachefiles/rdwr.c
-@@ -945,7 +945,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
+@@ -965,7 +965,7 @@ int cachefiles_write_page(struct fscache_storage *op, struct page *page)
                        old_fs = get_fs();
                        set_fs(KERNEL_DS);
                        ret = file->f_op->write(
@@ -45865,7 +49565,7 @@ index c994691..2a1537f 100644
                        kunmap(page);
                        if (ret != len)
 diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c
-index e5b7731..b9c59fb 100644
+index 8c1aabe..bbf856a 100644
 --- a/fs/ceph/dir.c
 +++ b/fs/ceph/dir.c
 @@ -243,7 +243,7 @@ static int ceph_readdir(struct file *filp, void *dirent, filldir_t filldir)
@@ -45922,10 +49622,10 @@ index d9ea6ed..1e6c8ac 100644
                                        server->ops->print_stats(m, tcon);
                        }
 diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
-index e7931cc..76a1ab9 100644
+index b9db388..9a73d6d 100644
 --- a/fs/cifs/cifsfs.c
 +++ b/fs/cifs/cifsfs.c
-@@ -999,7 +999,7 @@ cifs_init_request_bufs(void)
+@@ -1026,7 +1026,7 @@ cifs_init_request_bufs(void)
  /*    cERROR(1, "CIFSMaxBufSize %d 0x%x",CIFSMaxBufSize,CIFSMaxBufSize); */
        cifs_req_cachep = kmem_cache_create("cifs_request",
                                            CIFSMaxBufSize + max_hdr_size, 0,
@@ -45934,7 +49634,7 @@ index e7931cc..76a1ab9 100644
        if (cifs_req_cachep == NULL)
                return -ENOMEM;
  
-@@ -1026,7 +1026,7 @@ cifs_init_request_bufs(void)
+@@ -1053,7 +1053,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",
@@ -45943,7 +49643,7 @@ index e7931cc..76a1ab9 100644
                        NULL);
        if (cifs_sm_req_cachep == NULL) {
                mempool_destroy(cifs_req_poolp);
-@@ -1111,8 +1111,8 @@ init_cifs(void)
+@@ -1138,8 +1138,8 @@ init_cifs(void)
        atomic_set(&bufAllocCount, 0);
        atomic_set(&smBufAllocCount, 0);
  #ifdef CONFIG_CIFS_STATS2
@@ -45955,7 +49655,7 @@ index e7931cc..76a1ab9 100644
  
        atomic_set(&midCount, 0);
 diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h
-index f5af252..489b5f2 100644
+index e6899ce..d6b2920 100644
 --- a/fs/cifs/cifsglob.h
 +++ b/fs/cifs/cifsglob.h
 @@ -751,35 +751,35 @@ struct cifs_tcon {
@@ -46018,7 +49718,7 @@ index f5af252..489b5f2 100644
                } smb2_stats;
  #endif /* CONFIG_CIFS_SMB2 */
        } stats;
-@@ -1094,7 +1094,7 @@ build_path_to_root(struct smb_vol *vol, struct cifs_sb_info *cifs_sb,
+@@ -1080,7 +1080,7 @@ convert_delimiter(char *path, char delim)
  }
  
  #ifdef CONFIG_CIFS_STATS
@@ -46027,7 +49727,7 @@ index f5af252..489b5f2 100644
  
  static inline void cifs_stats_bytes_written(struct cifs_tcon *tcon,
                                            unsigned int bytes)
-@@ -1459,8 +1459,8 @@ GLOBAL_EXTERN atomic_t tconInfoReconnectCount;
+@@ -1445,8 +1445,8 @@ GLOBAL_EXTERN atomic_t tconInfoReconnectCount;
  /* Various Debug counters */
  GLOBAL_EXTERN atomic_t bufAllocCount;    /* current number allocated  */
  #ifdef CONFIG_CIFS_STATS2
@@ -46074,10 +49774,10 @@ index 3a00c0d..42d901c 100644
  
        }
 diff --git a/fs/cifs/smb1ops.c b/fs/cifs/smb1ops.c
-index 591bf19..690d600 100644
+index 47bc5a8..10decbe 100644
 --- a/fs/cifs/smb1ops.c
 +++ b/fs/cifs/smb1ops.c
-@@ -617,27 +617,27 @@ static void
+@@ -586,27 +586,27 @@ static void
  cifs_clear_stats(struct cifs_tcon *tcon)
  {
  #ifdef CONFIG_CIFS_STATS
@@ -46126,7 +49826,7 @@ index 591bf19..690d600 100644
  #endif
  }
  
-@@ -646,36 +646,36 @@ cifs_print_stats(struct seq_file *m, struct cifs_tcon *tcon)
+@@ -615,36 +615,36 @@ cifs_print_stats(struct seq_file *m, struct cifs_tcon *tcon)
  {
  #ifdef CONFIG_CIFS_STATS
        seq_printf(m, " Oplocks breaks: %d",
@@ -46183,10 +49883,10 @@ index 591bf19..690d600 100644
  }
  
 diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
-index 4d9dbe0..0af4601 100644
+index bceffe7..cd1ae59 100644
 --- a/fs/cifs/smb2ops.c
 +++ b/fs/cifs/smb2ops.c
-@@ -291,8 +291,8 @@ smb2_clear_stats(struct cifs_tcon *tcon)
+@@ -274,8 +274,8 @@ smb2_clear_stats(struct cifs_tcon *tcon)
  #ifdef CONFIG_CIFS_STATS
        int i;
        for (i = 0; i < NUMBER_OF_SMB2_COMMANDS; i++) {
@@ -46197,7 +49897,7 @@ index 4d9dbe0..0af4601 100644
        }
  #endif
  }
-@@ -301,66 +301,66 @@ static void
+@@ -284,66 +284,66 @@ static void
  smb2_print_stats(struct seq_file *m, struct cifs_tcon *tcon)
  {
  #ifdef CONFIG_CIFS_STATS
@@ -46304,6 +50004,20 @@ index 4d9dbe0..0af4601 100644
  #endif
  }
  
+diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
+index 41d9d07..dbb4772 100644
+--- a/fs/cifs/smb2pdu.c
++++ b/fs/cifs/smb2pdu.c
+@@ -1761,8 +1761,7 @@ SMB2_query_directory(const unsigned int xid, struct cifs_tcon *tcon,
+       default:
+               cERROR(1, "info level %u isn't supported",
+                      srch_inf->info_level);
+-              rc = -EINVAL;
+-              goto qdir_exit;
++              return -EINVAL;
+       }
+       req->FileIndex = cpu_to_le32(index);
 diff --git a/fs/coda/cache.c b/fs/coda/cache.c
 index 958ae0e..505c9d0 100644
 --- a/fs/coda/cache.c
@@ -46353,9 +50067,18 @@ index 958ae0e..505c9d0 100644
  
        return hit;
 diff --git a/fs/compat.c b/fs/compat.c
-index 015e1e1..5ce8e54 100644
+index a06dcbc..dacb6d3 100644
 --- a/fs/compat.c
 +++ b/fs/compat.c
+@@ -54,7 +54,7 @@
+ #include <asm/ioctls.h>
+ #include "internal.h"
+-int compat_log = 1;
++int compat_log = 0;
+ int compat_printk(const char *fmt, ...)
+ {
 @@ -490,7 +490,7 @@ compat_sys_io_setup(unsigned nr_reqs, u32 __user *ctx32p)
  
        set_fs(KERNEL_DS);
@@ -46374,7 +50097,7 @@ index 015e1e1..5ce8e54 100644
                goto out;
        if (nr_segs > fast_segs) {
                ret = -ENOMEM;
-@@ -831,6 +831,7 @@ struct compat_old_linux_dirent {
+@@ -835,6 +835,7 @@ struct compat_old_linux_dirent {
  
  struct compat_readdir_callback {
        struct compat_old_linux_dirent __user *dirent;
@@ -46382,7 +50105,7 @@ index 015e1e1..5ce8e54 100644
        int result;
  };
  
-@@ -848,6 +849,10 @@ static int compat_fillonedir(void *__buf, const char *name, int namlen,
+@@ -852,6 +853,10 @@ static int compat_fillonedir(void *__buf, const char *name, int namlen,
                buf->result = -EOVERFLOW;
                return -EOVERFLOW;
        }
@@ -46393,7 +50116,7 @@ index 015e1e1..5ce8e54 100644
        buf->result++;
        dirent = buf->dirent;
        if (!access_ok(VERIFY_WRITE, dirent,
-@@ -878,6 +883,7 @@ asmlinkage long compat_sys_old_readdir(unsigned int fd,
+@@ -882,6 +887,7 @@ asmlinkage long compat_sys_old_readdir(unsigned int fd,
  
        buf.result = 0;
        buf.dirent = dirent;
@@ -46401,7 +50124,7 @@ index 015e1e1..5ce8e54 100644
  
        error = vfs_readdir(f.file, compat_fillonedir, &buf);
        if (buf.result)
-@@ -897,6 +903,7 @@ struct compat_linux_dirent {
+@@ -901,6 +907,7 @@ struct compat_linux_dirent {
  struct compat_getdents_callback {
        struct compat_linux_dirent __user *current_dir;
        struct compat_linux_dirent __user *previous;
@@ -46409,7 +50132,7 @@ index 015e1e1..5ce8e54 100644
        int count;
        int error;
  };
-@@ -918,6 +925,10 @@ static int compat_filldir(void *__buf, const char *name, int namlen,
+@@ -922,6 +929,10 @@ static int compat_filldir(void *__buf, const char *name, int namlen,
                buf->error = -EOVERFLOW;
                return -EOVERFLOW;
        }
@@ -46420,7 +50143,7 @@ index 015e1e1..5ce8e54 100644
        dirent = buf->previous;
        if (dirent) {
                if (__put_user(offset, &dirent->d_off))
-@@ -963,6 +974,7 @@ asmlinkage long compat_sys_getdents(unsigned int fd,
+@@ -967,6 +978,7 @@ asmlinkage long compat_sys_getdents(unsigned int fd,
        buf.previous = NULL;
        buf.count = count;
        buf.error = 0;
@@ -46428,7 +50151,7 @@ index 015e1e1..5ce8e54 100644
  
        error = vfs_readdir(f.file, compat_filldir, &buf);
        if (error >= 0)
-@@ -983,6 +995,7 @@ asmlinkage long compat_sys_getdents(unsigned int fd,
+@@ -987,6 +999,7 @@ asmlinkage long compat_sys_getdents(unsigned int fd,
  struct compat_getdents_callback64 {
        struct linux_dirent64 __user *current_dir;
        struct linux_dirent64 __user *previous;
@@ -46436,7 +50159,7 @@ index 015e1e1..5ce8e54 100644
        int count;
        int error;
  };
-@@ -999,6 +1012,10 @@ static int compat_filldir64(void * __buf, const char * name, int namlen, loff_t
+@@ -1003,6 +1016,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;
@@ -46447,7 +50170,7 @@ index 015e1e1..5ce8e54 100644
        dirent = buf->previous;
  
        if (dirent) {
-@@ -1048,13 +1065,14 @@ asmlinkage long compat_sys_getdents64(unsigned int fd,
+@@ -1052,13 +1069,14 @@ asmlinkage long compat_sys_getdents64(unsigned int fd,
        buf.previous = NULL;
        buf.count = count;
        buf.error = 0;
@@ -46482,7 +50205,7 @@ index a81147e..20bf2b5 100644
  
  /*
 diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c
-index 4c6285f..b7a2411 100644
+index e2f57a0..3c78771 100644
 --- a/fs/compat_ioctl.c
 +++ b/fs/compat_ioctl.c
 @@ -623,7 +623,7 @@ static int serial_struct_ioctl(unsigned fd, unsigned cmd,
@@ -46503,7 +50226,7 @@ index 4c6285f..b7a2411 100644
                return -EFAULT;
  
        return ioctl_preallocate(file, p);
-@@ -1617,8 +1617,8 @@ asmlinkage long compat_sys_ioctl(unsigned int fd, unsigned int cmd,
+@@ -1620,8 +1620,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;
@@ -46515,10 +50238,24 @@ index 4c6285f..b7a2411 100644
                return 1;
        if (a < b)
 diff --git a/fs/configfs/dir.c b/fs/configfs/dir.c
-index 7414ae2..d98ad6d 100644
+index 712b10f..c33c4ca 100644
 --- a/fs/configfs/dir.c
 +++ b/fs/configfs/dir.c
-@@ -1564,7 +1564,8 @@ static int configfs_readdir(struct file * filp, void * dirent, filldir_t filldir
+@@ -1037,10 +1037,11 @@ static int configfs_dump(struct configfs_dirent *sd, int level)
+ static int configfs_depend_prep(struct dentry *origin,
+                               struct config_item *target)
+ {
+-      struct configfs_dirent *child_sd, *sd = origin->d_fsdata;
++      struct configfs_dirent *child_sd, *sd;
+       int ret = 0;
+-      BUG_ON(!origin || !sd);
++      BUG_ON(!origin || !origin->d_fsdata);
++      sd = origin->d_fsdata;
+       if (sd->s_element == target)  /* Boo-yah */
+               goto out;
+@@ -1564,7 +1565,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;
@@ -46528,7 +50265,7 @@ index 7414ae2..d98ad6d 100644
                                int len;
                                struct inode *inode = NULL;
  
-@@ -1574,7 +1575,12 @@ static int configfs_readdir(struct file * filp, void * dirent, filldir_t filldir
+@@ -1574,7 +1576,12 @@ static int configfs_readdir(struct file * filp, void * dirent, filldir_t filldir
                                        continue;
  
                                name = configfs_get_name(next);
@@ -46543,7 +50280,7 @@ index 7414ae2..d98ad6d 100644
                                /*
                                 * We'll have a dentry and an inode for
 diff --git a/fs/coredump.c b/fs/coredump.c
-index ce47379..68c8e43 100644
+index 1774932..5812106 100644
 --- a/fs/coredump.c
 +++ b/fs/coredump.c
 @@ -52,7 +52,7 @@ struct core_name {
@@ -46596,7 +50333,7 @@ index ce47379..68c8e43 100644
        pipe_unlock(pipe);
  
  }
-@@ -471,7 +471,8 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
+@@ -471,7 +471,8 @@ void do_coredump(siginfo_t *siginfo)
        int ispipe;
        struct files_struct *displaced;
        bool need_nonrelative = false;
@@ -46605,8 +50342,8 @@ index ce47379..68c8e43 100644
 +      long signr = siginfo->si_signo;
        struct coredump_params cprm = {
                .siginfo = siginfo,
-               .regs = regs,
-@@ -484,7 +485,10 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
+               .regs = signal_pt_regs(),
+@@ -484,7 +485,10 @@ void do_coredump(siginfo_t *siginfo)
                .mm_flags = mm->flags,
        };
  
@@ -46618,7 +50355,7 @@ index ce47379..68c8e43 100644
  
        binfmt = mm->binfmt;
        if (!binfmt || !binfmt->core_dump)
-@@ -508,7 +512,7 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
+@@ -508,7 +512,7 @@ void do_coredump(siginfo_t *siginfo)
                need_nonrelative = true;
        }
  
@@ -46627,7 +50364,7 @@ index ce47379..68c8e43 100644
        if (retval < 0)
                goto fail_creds;
  
-@@ -556,7 +560,7 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
+@@ -556,7 +560,7 @@ void do_coredump(siginfo_t *siginfo)
                }
                cprm.limit = RLIM_INFINITY;
  
@@ -46636,7 +50373,7 @@ index ce47379..68c8e43 100644
                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);
-@@ -583,6 +587,8 @@ void do_coredump(siginfo_t *siginfo, struct pt_regs *regs)
+@@ -583,6 +587,8 @@ void do_coredump(siginfo_t *siginfo)
        } else {
                struct inode *inode;
  
@@ -46664,10 +50401,10 @@ index ce47379..68c8e43 100644
  EXPORT_SYMBOL(dump_write);
  
 diff --git a/fs/dcache.c b/fs/dcache.c
-index 0d0adb6..f4646e9 100644
+index c3bbf85..5b71101 100644
 --- a/fs/dcache.c
 +++ b/fs/dcache.c
-@@ -3164,7 +3164,7 @@ void __init vfs_caches_init(unsigned long mempages)
+@@ -3139,7 +3139,7 @@ void __init vfs_caches_init(unsigned long mempages)
        mempages -= reserve;
  
        names_cachep = kmem_cache_create("names_cache", PATH_MAX, 0,
@@ -46677,10 +50414,10 @@ index 0d0adb6..f4646e9 100644
        dcache_init();
        inode_init();
 diff --git a/fs/debugfs/inode.c b/fs/debugfs/inode.c
-index b607d92..41fda09 100644
+index a5f12b7..4ee8a6f 100644
 --- a/fs/debugfs/inode.c
 +++ b/fs/debugfs/inode.c
-@@ -416,7 +416,11 @@ EXPORT_SYMBOL_GPL(debugfs_create_file);
+@@ -415,7 +415,11 @@ EXPORT_SYMBOL_GPL(debugfs_create_file);
   */
  struct dentry *debugfs_create_dir(const char *name, struct dentry *parent)
  {
@@ -46750,7 +50487,7 @@ index b2a34a1..162fa69 100644
        return rc;
  }
 diff --git a/fs/exec.c b/fs/exec.c
-index c6e6de4..45e71ad 100644
+index 20df02c..1b1d946 100644
 --- a/fs/exec.c
 +++ b/fs/exec.c
 @@ -55,6 +55,17 @@
@@ -46790,6 +50527,26 @@ index c6e6de4..45e71ad 100644
  int suid_dumpable = 0;
  
  static LIST_HEAD(formats);
+@@ -75,8 +98,8 @@ void __register_binfmt(struct linux_binfmt * fmt, int insert)
+ {
+       BUG_ON(!fmt);
+       write_lock(&binfmt_lock);
+-      insert ? list_add(&fmt->lh, &formats) :
+-               list_add_tail(&fmt->lh, &formats);
++      insert ? pax_list_add((struct list_head *)&fmt->lh, &formats) :
++               pax_list_add_tail((struct list_head *)&fmt->lh, &formats);
+       write_unlock(&binfmt_lock);
+ }
+@@ -85,7 +108,7 @@ EXPORT_SYMBOL(__register_binfmt);
+ void unregister_binfmt(struct linux_binfmt * fmt)
+ {
+       write_lock(&binfmt_lock);
+-      list_del(&fmt->lh);
++      pax_list_del((struct list_head *)&fmt->lh);
+       write_unlock(&binfmt_lock);
+ }
 @@ -180,18 +203,10 @@ static struct page *get_arg_page(struct linux_binprm *bprm, unsigned long pos,
                int write)
  {
@@ -46819,8 +50576,8 @@ index c6e6de4..45e71ad 100644
 +#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
 +              // only allow 512KB for argv+env on suid/sgid binaries
 +              // to prevent easy ASLR exhaustion
-+              if (((bprm->cred->euid != current_euid()) ||
-+                   (bprm->cred->egid != current_egid())) &&
++              if (((!uid_eq(bprm->cred->euid, current_euid())) ||
++                   (!gid_eq(bprm->cred->egid, current_egid()))) &&
 +                  (size > (512 * 1024))) {
 +                      put_page(page);
 +                      return NULL;
@@ -46855,28 +50612,16 @@ index c6e6de4..45e71ad 100644
        return 0;
  err:
        up_write(&mm->mmap_sem);
-@@ -384,19 +421,7 @@ err:
-       return err;
- }
+@@ -396,7 +433,7 @@ struct user_arg_ptr {
+       } ptr;
+ };
  
--struct user_arg_ptr {
--#ifdef CONFIG_COMPAT
--      bool is_compat;
--#endif
--      union {
--              const char __user *const __user *native;
--#ifdef CONFIG_COMPAT
--              const compat_uptr_t __user *compat;
--#endif
--      } ptr;
--};
--
 -static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr)
 +const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr)
  {
        const char __user *native;
  
-@@ -405,14 +430,14 @@ static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr)
+@@ -405,14 +442,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))
@@ -46893,7 +50638,7 @@ index c6e6de4..45e71ad 100644
  
        return native;
  }
-@@ -431,11 +456,12 @@ static int count(struct user_arg_ptr argv, int max)
+@@ -431,7 +468,7 @@ static int count(struct user_arg_ptr argv, int max)
                        if (!p)
                                break;
  
@@ -46901,14 +50646,8 @@ index c6e6de4..45e71ad 100644
 +                      if (IS_ERR((const char __force_kernel *)p))
                                return -EFAULT;
  
--                      if (i++ >= max)
-+                      if (i >= max)
-                               return -E2BIG;
-+                      ++i;
-                       if (fatal_signal_pending(current))
-                               return -ERESTARTNOHAND;
-@@ -465,7 +491,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
+                       if (i >= max)
+@@ -466,7 +503,7 @@ static int copy_strings(int argc, struct user_arg_ptr argv,
  
                ret = -EFAULT;
                str = get_user_arg_ptr(argv, argc);
@@ -46917,7 +50656,7 @@ index c6e6de4..45e71ad 100644
                        goto out;
  
                len = strnlen_user(str, MAX_ARG_STRLEN);
-@@ -547,7 +573,7 @@ int copy_strings_kernel(int argc, const char *const *__argv,
+@@ -548,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 = {
@@ -46926,7 +50665,7 @@ index c6e6de4..45e71ad 100644
        };
  
        set_fs(KERNEL_DS);
-@@ -582,7 +608,8 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)
+@@ -583,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;
  
@@ -46936,7 +50675,7 @@ index c6e6de4..45e71ad 100644
  
        /*
         * ensure there are no vmas between where we want to go
-@@ -591,6 +618,10 @@ static int shift_arg_pages(struct vm_area_struct *vma, unsigned long shift)
+@@ -592,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;
  
@@ -46947,7 +50686,7 @@ index c6e6de4..45e71ad 100644
        /*
         * cover the whole range: [new_start, old_end)
         */
-@@ -671,10 +702,6 @@ int setup_arg_pages(struct linux_binprm *bprm,
+@@ -672,10 +714,6 @@ int setup_arg_pages(struct linux_binprm *bprm,
        stack_top = arch_align_stack(stack_top);
        stack_top = PAGE_ALIGN(stack_top);
  
@@ -46958,7 +50697,7 @@ index c6e6de4..45e71ad 100644
        stack_shift = vma->vm_end - stack_top;
  
        bprm->p -= stack_shift;
-@@ -686,8 +713,28 @@ int setup_arg_pages(struct linux_binprm *bprm,
+@@ -687,8 +725,28 @@ int setup_arg_pages(struct linux_binprm *bprm,
        bprm->exec -= stack_shift;
  
        down_write(&mm->mmap_sem);
@@ -46987,7 +50726,7 @@ index c6e6de4..45e71ad 100644
        /*
         * Adjust stack execute permissions; explicitly enable for
         * EXSTACK_ENABLE_X, disable for EXSTACK_DISABLE_X and leave alone
-@@ -706,13 +753,6 @@ int setup_arg_pages(struct linux_binprm *bprm,
+@@ -707,13 +765,6 @@ int setup_arg_pages(struct linux_binprm *bprm,
                goto out_unlock;
        BUG_ON(prev != vma);
  
@@ -47001,12 +50740,12 @@ index c6e6de4..45e71ad 100644
        /* mprotect_fixup is overkill to remove the temporary stack flags */
        vma->vm_flags &= ~VM_STACK_INCOMPLETE_SETUP;
  
-@@ -736,6 +776,27 @@ int setup_arg_pages(struct linux_binprm *bprm,
+@@ -737,6 +788,27 @@ int setup_arg_pages(struct linux_binprm *bprm,
  #endif
        current->mm->start_stack = bprm->p;
        ret = expand_stack(vma, stack_base);
 +
-+#if !defined(CONFIG_STACK_GROWSUP) && defined(CONFIG_PAX_ASLR)
++#if !defined(CONFIG_STACK_GROWSUP) && defined(CONFIG_PAX_RANDMMAP)
 +      if (!ret && (mm->pax_flags & MF_PAX_RANDMMAP) && STACK_TOP <= 0xFFFFFFFFU && STACK_TOP > vma->vm_end) {
 +              unsigned long size, flags, vm_flags;
 +
@@ -47019,7 +50758,7 @@ index c6e6de4..45e71ad 100644
 +#ifdef CONFIG_X86
 +              if (!ret) {
 +                      size = mmap_min_addr + ((mm->delta_mmap ^ mm->delta_stack) & (0xFFUL << PAGE_SHIFT));
-+                      ret = 0 != mmap_region(NULL, 0, size, flags, vm_flags, 0);
++                      ret = 0 != mmap_region(NULL, 0, PAGE_ALIGN(size), flags, vm_flags, 0);
 +              }
 +#endif
 +
@@ -47029,7 +50768,7 @@ index c6e6de4..45e71ad 100644
        if (ret)
                ret = -EFAULT;
  
-@@ -771,6 +832,8 @@ struct file *open_exec(const char *name)
+@@ -772,6 +844,8 @@ struct file *open_exec(const char *name)
  
        fsnotify_open(file);
  
@@ -47038,7 +50777,7 @@ index c6e6de4..45e71ad 100644
        err = deny_write_access(file);
        if (err)
                goto exit;
-@@ -794,7 +857,7 @@ int kernel_read(struct file *file, loff_t offset,
+@@ -795,7 +869,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() */
@@ -47047,7 +50786,7 @@ index c6e6de4..45e71ad 100644
        set_fs(old_fs);
        return result;
  }
-@@ -1246,7 +1309,7 @@ static int check_unsafe_exec(struct linux_binprm *bprm)
+@@ -1247,7 +1321,7 @@ static int check_unsafe_exec(struct linux_binprm *bprm)
        }
        rcu_read_unlock();
  
@@ -47056,7 +50795,7 @@ index c6e6de4..45e71ad 100644
                bprm->unsafe |= LSM_UNSAFE_SHARE;
        } else {
                res = -EAGAIN;
-@@ -1449,6 +1512,28 @@ int search_binary_handler(struct linux_binprm *bprm,struct pt_regs *regs)
+@@ -1447,6 +1521,31 @@ int search_binary_handler(struct linux_binprm *bprm)
  
  EXPORT_SYMBOL(search_binary_handler);
  
@@ -47081,13 +50820,16 @@ index c6e6de4..45e71ad 100644
 +#else
 +static inline void increment_exec_counter(void) {}
 +#endif
++
++extern void gr_handle_exec_args(struct linux_binprm *bprm,
++                              struct user_arg_ptr argv);
 +
  /*
   * sys_execve() executes a new program.
   */
-@@ -1457,6 +1542,11 @@ static int do_execve_common(const char *filename,
-                               struct user_arg_ptr envp,
-                               struct pt_regs *regs)
+@@ -1454,6 +1553,11 @@ static int do_execve_common(const char *filename,
+                               struct user_arg_ptr argv,
+                               struct user_arg_ptr envp)
  {
 +#ifdef CONFIG_GRKERNSEC
 +      struct file *old_exec_file;
@@ -47097,7 +50839,7 @@ index c6e6de4..45e71ad 100644
        struct linux_binprm *bprm;
        struct file *file;
        struct files_struct *displaced;
-@@ -1464,6 +1554,8 @@ static int do_execve_common(const char *filename,
+@@ -1461,6 +1565,8 @@ static int do_execve_common(const char *filename,
        int retval;
        const struct cred *cred = current_cred();
  
@@ -47106,7 +50848,7 @@ index c6e6de4..45e71ad 100644
        /*
         * We move the actual failure in case of RLIMIT_NPROC excess from
         * set*uid() to execve() because too many poorly written programs
-@@ -1504,12 +1596,27 @@ static int do_execve_common(const char *filename,
+@@ -1501,12 +1607,27 @@ static int do_execve_common(const char *filename,
        if (IS_ERR(file))
                goto out_unmark;
  
@@ -47134,7 +50876,7 @@ index c6e6de4..45e71ad 100644
        retval = bprm_mm_init(bprm);
        if (retval)
                goto out_file;
-@@ -1526,24 +1633,65 @@ static int do_execve_common(const char *filename,
+@@ -1523,24 +1644,65 @@ static int do_execve_common(const char *filename,
        if (retval < 0)
                goto out;
  
@@ -47147,9 +50889,9 @@ index c6e6de4..45e71ad 100644
 +#endif
 +#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
 +      /* limit suid stack to 8MB
-+         we saved the old limits above and will restore them if this exec fails
-+      */
-+      if (((bprm->cred->euid != current_euid()) || (bprm->cred->egid != current_egid())) &&
++       * we saved the old limits above and will restore them if this exec fails
++       */
++      if (((!uid_eq(bprm->cred->euid, current_euid())) || (!gid_eq(bprm->cred->egid, current_egid()))) &&
 +          (old_rlim[RLIMIT_STACK].rlim_cur > (8 * 1024 * 1024)))
 +              current->signal->rlim[RLIMIT_STACK].rlim_cur = 8 * 1024 * 1024;
 +#endif
@@ -47189,7 +50931,7 @@ index c6e6de4..45e71ad 100644
 +
 +      gr_handle_exec_args(bprm, argv);
  
-       retval = search_binary_handler(bprm,regs);
+       retval = search_binary_handler(bprm);
        if (retval < 0)
 -              goto out;
 +              goto out_fail;
@@ -47204,7 +50946,7 @@ index c6e6de4..45e71ad 100644
        current->fs->in_exec = 0;
        current->in_execve = 0;
        acct_update_integrals(current);
-@@ -1552,6 +1700,14 @@ static int do_execve_common(const char *filename,
+@@ -1549,6 +1711,14 @@ static int do_execve_common(const char *filename,
                put_files_struct(displaced);
        return retval;
  
@@ -47219,8 +50961,8 @@ index c6e6de4..45e71ad 100644
  out:
        if (bprm->mm) {
                acct_arg_size(bprm, 0);
-@@ -1727,3 +1883,253 @@ int kernel_execve(const char *filename,
-       ret_from_kernel_execve(p);
+@@ -1697,3 +1867,253 @@ asmlinkage long compat_sys_execve(const char __user * filename,
+       return error;
  }
  #endif
 +
@@ -47232,7 +50974,7 @@ index c6e6de4..45e71ad 100644
 +      if (*flags & MF_PAX_SEGMEXEC)
 +      {
 +              *flags &= ~MF_PAX_SEGMEXEC;
-+              retval = -EINVAL;
++      retval = -EINVAL;
 +      }
 +#endif
 +
@@ -47257,7 +50999,7 @@ index c6e6de4..45e71ad 100644
 +         )
 +      {
 +              *flags &= ~MF_PAX_MPROTECT;
-+              retval = -EINVAL;
++      retval = -EINVAL;
 +      }
 +
 +      if ((*flags & MF_PAX_EMUTRAMP)
@@ -47340,7 +51082,7 @@ index c6e6de4..45e71ad 100644
 +      else
 +              printk(KERN_ERR "PAX: execution attempt in: %s, %08lx-%08lx %08lx\n", path_fault, start, end, offset);
 +      printk(KERN_ERR "PAX: terminating task: %s(%s):%d, uid/euid: %u/%u, PC: %p, SP: %p\n", path_exec, tsk->comm, task_pid_nr(tsk),
-+                      from_kuid(&init_user_ns, task_uid(tsk)), from_kuid(&init_user_ns, task_euid(tsk)), pc, sp);
++                      from_kuid_munged(&init_user_ns, task_uid(tsk)), from_kuid_munged(&init_user_ns, task_euid(tsk)), pc, sp);
 +      free_page((unsigned long)buffer_exec);
 +      free_page((unsigned long)buffer_fault);
 +      pax_report_insns(regs, pc, sp);
@@ -47349,7 +51091,7 @@ index c6e6de4..45e71ad 100644
 +      info.si_code = SI_KERNEL;
 +      info.si_pid = 0;
 +      info.si_uid = 0;
-+      do_coredump(&info, regs);
++      do_coredump(&info);
 +}
 +#endif
 +
@@ -47359,10 +51101,10 @@ index c6e6de4..45e71ad 100644
 +      if (current->signal->curr_ip)
 +              printk(KERN_ERR "PAX: From %pI4: refcount overflow detected in: %s:%d, uid/euid: %u/%u\n",
 +                              &current->signal->curr_ip, current->comm, task_pid_nr(current),
-+                              from_kuid(&init_user_ns, current_uid()), from_kuid(&init_user_ns, current_euid()));
++                              from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()));
 +      else
 +              printk(KERN_ERR "PAX: refcount overflow detected in: %s:%d, uid/euid: %u/%u\n", current->comm, task_pid_nr(current),
-+                              from_kuid(&init_user_ns, current_uid()), from_kuid(&init_user_ns, current_euid()));
++                              from_kuid_munged(&init_user_ns, current_uid()), from_kuid_munged(&init_user_ns, current_euid()));
 +      print_symbol(KERN_ERR "PAX: refcount overflow occured at: %s\n", instruction_pointer(regs));
 +      show_regs(regs);
 +      force_sig_info(SIGKILL, SEND_SIG_FORCED, current);
@@ -47417,21 +51159,21 @@ index c6e6de4..45e71ad 100644
 +#endif
 +}
 +
-+static __noreturn void pax_report_usercopy(const void *ptr, unsigned long len, bool to, const char *type)
++static __noreturn void pax_report_usercopy(const void *ptr, unsigned long len, bool to_user, const char *type)
 +{
 +      if (current->signal->curr_ip)
 +              printk(KERN_ERR "PAX: From %pI4: kernel memory %s attempt detected %s %p (%s) (%lu bytes)\n",
-+                      &current->signal->curr_ip, to ? "leak" : "overwrite", to ? "from" : "to", ptr, type ? : "unknown", len);
++                      &current->signal->curr_ip, to_user ? "leak" : "overwrite", to_user ? "from" : "to", ptr, type ? : "unknown", len);
 +      else
 +              printk(KERN_ERR "PAX: kernel memory %s attempt detected %s %p (%s) (%lu bytes)\n",
-+                      to ? "leak" : "overwrite", to ? "from" : "to", ptr, type ? : "unknown", len);
++                      to_user ? "leak" : "overwrite", to_user ? "from" : "to", ptr, type ? : "unknown", len);
 +      dump_stack();
 +      gr_handle_kernel_exploit();
 +      do_group_exit(SIGKILL);
 +}
 +#endif
 +
-+void __check_object_size(const void *ptr, unsigned long n, bool to)
++void __check_object_size(const void *ptr, unsigned long n, bool to_user)
 +{
 +
 +#ifdef CONFIG_PAX_USERCOPY
@@ -47447,7 +51189,7 @@ index c6e6de4..45e71ad 100644
 +              type = "<process stack>";
 +      }
 +
-+      pax_report_usercopy(ptr, n, to, type);
++      pax_report_usercopy(ptr, n, to_user, type);
 +#endif
 +
 +}
@@ -47508,10 +51250,10 @@ index 22548f5..41521d8 100644
        }
        return 1;
 diff --git a/fs/ext4/balloc.c b/fs/ext4/balloc.c
-index cf18217..8f6b9c3 100644
+index 92e68b3..115d987 100644
 --- a/fs/ext4/balloc.c
 +++ b/fs/ext4/balloc.c
-@@ -498,8 +498,8 @@ static int ext4_has_free_clusters(struct ext4_sb_info *sbi,
+@@ -505,8 +505,8 @@ static int ext4_has_free_clusters(struct ext4_sb_info *sbi,
        /* Hm, nope.  Are (enough) root reserved clusters available? */
        if (uid_eq(sbi->s_resuid, current_fsuid()) ||
            (!gid_eq(sbi->s_resgid, GLOBAL_ROOT_GID) && in_group_p(sbi->s_resgid)) ||
@@ -47523,10 +51265,10 @@ index cf18217..8f6b9c3 100644
                if (free_clusters >= (nclusters + dirty_clusters))
                        return 1;
 diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h
-index 3c20de1..6ff2460 100644
+index bbcd6a0..2824592 100644
 --- a/fs/ext4/ext4.h
 +++ b/fs/ext4/ext4.h
-@@ -1247,19 +1247,19 @@ struct ext4_sb_info {
+@@ -1265,19 +1265,19 @@ struct ext4_sb_info {
        unsigned long s_mb_last_start;
  
        /* stats for buddy allocator */
@@ -47557,7 +51299,7 @@ index 3c20de1..6ff2460 100644
  
        /* locality groups */
 diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
-index 526e553..3f2de85 100644
+index 82f8c2d..ce7c889 100644
 --- a/fs/ext4/mballoc.c
 +++ b/fs/ext4/mballoc.c
 @@ -1747,7 +1747,7 @@ void ext4_mb_simple_scan_group(struct ext4_allocation_context *ac,
@@ -47614,7 +51356,7 @@ index 526e553..3f2de85 100644
        }
  
        free_percpu(sbi->s_locality_groups);
-@@ -3052,16 +3052,16 @@ static void ext4_mb_collect_stats(struct ext4_allocation_context *ac)
+@@ -3060,16 +3060,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) {
@@ -47637,7 +51379,7 @@ index 526e553..3f2de85 100644
        }
  
        if (ac->ac_op == EXT4_MB_HISTORY_ALLOC)
-@@ -3461,7 +3461,7 @@ ext4_mb_new_inode_pa(struct ext4_allocation_context *ac)
+@@ -3469,7 +3469,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);
@@ -47646,7 +51388,7 @@ index 526e553..3f2de85 100644
  
        ei = EXT4_I(ac->ac_inode);
        grp = ext4_get_group_info(sb, ac->ac_b_ex.fe_group);
-@@ -3521,7 +3521,7 @@ ext4_mb_new_group_pa(struct ext4_allocation_context *ac)
+@@ -3529,7 +3529,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);
@@ -47655,7 +51397,7 @@ index 526e553..3f2de85 100644
  
        grp = ext4_get_group_info(sb, ac->ac_b_ex.fe_group);
        lg = ac->ac_lg;
-@@ -3610,7 +3610,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
+@@ -3618,7 +3618,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
                 * from the bitmap and continue.
                 */
        }
@@ -47664,7 +51406,7 @@ index 526e553..3f2de85 100644
  
        return err;
  }
-@@ -3628,7 +3628,7 @@ ext4_mb_release_group_pa(struct ext4_buddy *e4b,
+@@ -3636,7 +3636,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);
@@ -47674,17 +51416,18 @@ index 526e553..3f2de85 100644
  
        return 0;
 diff --git a/fs/ext4/super.c b/fs/ext4/super.c
-index d59b351..775f8c8 100644
+index 24c767d..893aa55 100644
 --- a/fs/ext4/super.c
 +++ b/fs/ext4/super.c
-@@ -3212,7 +3212,6 @@ int ext4_calculate_overhead(struct super_block *sb)
-       ext4_fsblk_t overhead = 0;
-       char *buf = (char *) get_zeroed_page(GFP_KERNEL);
--      memset(buf, 0, PAGE_SIZE);
-       if (!buf)
-               return -ENOMEM;
+@@ -2429,7 +2429,7 @@ struct ext4_attr {
+       ssize_t (*store)(struct ext4_attr *, struct ext4_sb_info *,
+                        const char *, size_t);
+       int offset;
+-};
++} __do_const;
  
+ static int parse_strtoul(const char *buf,
+               unsigned long max, unsigned long *value)
 diff --git a/fs/fcntl.c b/fs/fcntl.c
 index 71a600a..20d87b1 100644
 --- a/fs/fcntl.c
@@ -47702,7 +51445,7 @@ index 71a600a..20d87b1 100644
        return 0;
  }
 diff --git a/fs/fhandle.c b/fs/fhandle.c
-index f775bfd..629bd4c 100644
+index 999ff5c..41f4109 100644
 --- a/fs/fhandle.c
 +++ b/fs/fhandle.c
 @@ -67,8 +67,7 @@ static long do_sys_name_to_handle(struct path *path,
@@ -47790,7 +51533,7 @@ index cf6f434..3d7942c 100644
  
  err_nocleanup:
 diff --git a/fs/file.c b/fs/file.c
-index eff2316..8c8930c 100644
+index 2b3570b..c57924b 100644
 --- a/fs/file.c
 +++ b/fs/file.c
 @@ -16,6 +16,7 @@
@@ -47801,7 +51544,7 @@ index eff2316..8c8930c 100644
  #include <linux/fdtable.h>
  #include <linux/bitops.h>
  #include <linux/interrupt.h>
-@@ -898,6 +899,7 @@ int replace_fd(unsigned fd, struct file *file, unsigned flags)
+@@ -892,6 +893,7 @@ int replace_fd(unsigned fd, struct file *file, unsigned flags)
        if (!file)
                return __close_fd(files, fd);
  
@@ -47809,7 +51552,7 @@ index eff2316..8c8930c 100644
        if (fd >= rlimit(RLIMIT_NOFILE))
                return -EBADF;
  
-@@ -924,6 +926,7 @@ SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags)
+@@ -918,6 +920,7 @@ SYSCALL_DEFINE3(dup3, unsigned int, oldfd, unsigned int, newfd, int, flags)
        if (unlikely(oldfd == newfd))
                return -EINVAL;
  
@@ -47817,7 +51560,7 @@ index eff2316..8c8930c 100644
        if (newfd >= rlimit(RLIMIT_NOFILE))
                return -EBADF;
  
-@@ -979,6 +982,7 @@ SYSCALL_DEFINE1(dup, unsigned int, fildes)
+@@ -973,6 +976,7 @@ SYSCALL_DEFINE1(dup, unsigned int, fildes)
  int f_dupfd(unsigned int from, struct file *file, unsigned flags)
  {
        int err;
@@ -47843,7 +51586,7 @@ index da165f6..3671bdb 100644
  
        if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) {
 diff --git a/fs/fs_struct.c b/fs/fs_struct.c
-index 5df4775..9d9336f 100644
+index fe6ca58..65318cf 100644
 --- a/fs/fs_struct.c
 +++ b/fs/fs_struct.c
 @@ -4,6 +4,7 @@
@@ -47949,24 +51692,8 @@ index 5df4775..9d9336f 100644
        .lock           = __SPIN_LOCK_UNLOCKED(init_fs.lock),
        .seq            = SEQCNT_ZERO,
        .umask          = 0022,
-@@ -175,12 +197,13 @@ void daemonize_fs_struct(void)
-               task_lock(current);
-               spin_lock(&init_fs.lock);
--              init_fs.users++;
-+              atomic_inc(&init_fs.users);
-               spin_unlock(&init_fs.lock);
-               spin_lock(&fs->lock);
-               current->fs = &init_fs;
--              kill = !--fs->users;
-+              gr_set_chroot_entries(current, &current->fs->root);
-+              kill = !atomic_dec_return(&fs->users);
-               spin_unlock(&fs->lock);
-               task_unlock(current);
 diff --git a/fs/fscache/cookie.c b/fs/fscache/cookie.c
-index 9905350..02eaec4 100644
+index 8dcb114..b1072e2 100644
 --- a/fs/fscache/cookie.c
 +++ b/fs/fscache/cookie.c
 @@ -68,11 +68,11 @@ struct fscache_cookie *__fscache_acquire_cookie(
@@ -48049,7 +51776,16 @@ index 9905350..02eaec4 100644
  
        object->debug_id = atomic_inc_return(&fscache_object_debug_id);
  
-@@ -377,10 +377,10 @@ void __fscache_update_cookie(struct fscache_cookie *cookie)
+@@ -378,7 +378,7 @@ void __fscache_invalidate(struct fscache_cookie *cookie)
+       _enter("{%s}", cookie->def->name);
+-      fscache_stat(&fscache_n_invalidates);
++      fscache_stat_unchecked(&fscache_n_invalidates);
+       /* Only permit invalidation of data files.  Invalidating an index will
+        * require the caller to release all its attachments to the tree rooted
+@@ -437,10 +437,10 @@ void __fscache_update_cookie(struct fscache_cookie *cookie)
        struct fscache_object *object;
        struct hlist_node *_p;
  
@@ -48062,7 +51798,7 @@ index 9905350..02eaec4 100644
                _leave(" [no cookie]");
                return;
        }
-@@ -414,12 +414,12 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, int retire)
+@@ -474,12 +474,12 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, int retire)
        struct fscache_object *object;
        unsigned long event;
  
@@ -48078,7 +51814,7 @@ index 9905350..02eaec4 100644
                _leave(" [no cookie]");
                return;
        }
-@@ -435,7 +435,7 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, int retire)
+@@ -495,7 +495,7 @@ void __fscache_relinquish_cookie(struct fscache_cookie *cookie, int retire)
  
        /* wait for the cookie to finish being instantiated (or to fail) */
        if (test_bit(FSCACHE_COOKIE_CREATING, &cookie->flags)) {
@@ -48088,12 +51824,17 @@ index 9905350..02eaec4 100644
                            fscache_wait_bit, TASK_UNINTERRUPTIBLE);
        }
 diff --git a/fs/fscache/internal.h b/fs/fscache/internal.h
-index f6aad48..88dcf26 100644
+index ee38fef..0a326d4 100644
 --- a/fs/fscache/internal.h
 +++ b/fs/fscache/internal.h
-@@ -144,94 +144,94 @@ extern void fscache_proc_cleanup(void);
- extern atomic_t fscache_n_ops_processed[FSCACHE_MAX_THREADS];
- extern atomic_t fscache_n_objs_processed[FSCACHE_MAX_THREADS];
+@@ -148,101 +148,101 @@ extern void fscache_proc_cleanup(void);
+  * stats.c
+  */
+ #ifdef CONFIG_FSCACHE_STATS
+-extern atomic_t fscache_n_ops_processed[FSCACHE_MAX_THREADS];
+-extern atomic_t fscache_n_objs_processed[FSCACHE_MAX_THREADS];
++extern atomic_unchecked_t fscache_n_ops_processed[FSCACHE_MAX_THREADS];
++extern atomic_unchecked_t fscache_n_objs_processed[FSCACHE_MAX_THREADS];
  
 -extern atomic_t fscache_n_op_pend;
 -extern atomic_t fscache_n_op_run;
@@ -48186,10 +51927,12 @@ index f6aad48..88dcf26 100644
 -extern atomic_t fscache_n_store_vmscan_gone;
 -extern atomic_t fscache_n_store_vmscan_busy;
 -extern atomic_t fscache_n_store_vmscan_cancelled;
+-extern atomic_t fscache_n_store_vmscan_wait;
 +extern atomic_unchecked_t fscache_n_store_vmscan_not_storing;
 +extern atomic_unchecked_t fscache_n_store_vmscan_gone;
 +extern atomic_unchecked_t fscache_n_store_vmscan_busy;
 +extern atomic_unchecked_t fscache_n_store_vmscan_cancelled;
++extern atomic_unchecked_t fscache_n_store_vmscan_wait;
  
 -extern atomic_t fscache_n_marks;
 -extern atomic_t fscache_n_uncaches;
@@ -48209,6 +51952,11 @@ index f6aad48..88dcf26 100644
 +extern atomic_unchecked_t fscache_n_acquires_nobufs;
 +extern atomic_unchecked_t fscache_n_acquires_oom;
  
+-extern atomic_t fscache_n_invalidates;
+-extern atomic_t fscache_n_invalidates_run;
++extern atomic_unchecked_t fscache_n_invalidates;
++extern atomic_unchecked_t fscache_n_invalidates_run;
 -extern atomic_t fscache_n_updates;
 -extern atomic_t fscache_n_updates_null;
 -extern atomic_t fscache_n_updates_run;
@@ -48262,7 +52010,7 @@ index f6aad48..88dcf26 100644
  
  extern atomic_t fscache_n_cop_alloc_object;
  extern atomic_t fscache_n_cop_lookup_object;
-@@ -255,6 +255,11 @@ static inline void fscache_stat(atomic_t *stat)
+@@ -267,6 +267,11 @@ static inline void fscache_stat(atomic_t *stat)
        atomic_inc(stat);
  }
  
@@ -48274,7 +52022,7 @@ index f6aad48..88dcf26 100644
  static inline void fscache_stat_d(atomic_t *stat)
  {
        atomic_dec(stat);
-@@ -267,6 +272,7 @@ extern const struct file_operations fscache_stats_fops;
+@@ -279,6 +284,7 @@ extern const struct file_operations fscache_stats_fops;
  
  #define __fscache_stat(stat) (NULL)
  #define fscache_stat(stat) do {} while (0)
@@ -48283,10 +52031,19 @@ index f6aad48..88dcf26 100644
  #endif
  
 diff --git a/fs/fscache/object.c b/fs/fscache/object.c
-index b6b897c..0ffff9c 100644
+index 50d41c1..10ee117 100644
 --- a/fs/fscache/object.c
 +++ b/fs/fscache/object.c
-@@ -128,7 +128,7 @@ static void fscache_object_state_machine(struct fscache_object *object)
+@@ -143,7 +143,7 @@ static void fscache_object_state_machine(struct fscache_object *object)
+               /* Invalidate an object on disk */
+       case FSCACHE_OBJECT_INVALIDATING:
+               clear_bit(FSCACHE_OBJECT_EV_INVALIDATE, &object->events);
+-              fscache_stat(&fscache_n_invalidates_run);
++              fscache_stat_unchecked(&fscache_n_invalidates_run);
+               fscache_stat(&fscache_n_cop_invalidate_object);
+               fscache_invalidate_object(object);
+               fscache_stat_d(&fscache_n_cop_invalidate_object);
+@@ -153,7 +153,7 @@ static void fscache_object_state_machine(struct fscache_object *object)
                /* update the object metadata on disk */
        case FSCACHE_OBJECT_UPDATING:
                clear_bit(FSCACHE_OBJECT_EV_UPDATE, &object->events);
@@ -48295,7 +52052,7 @@ index b6b897c..0ffff9c 100644
                fscache_stat(&fscache_n_cop_update_object);
                object->cache->ops->update_object(object);
                fscache_stat_d(&fscache_n_cop_update_object);
-@@ -217,7 +217,7 @@ static void fscache_object_state_machine(struct fscache_object *object)
+@@ -242,7 +242,7 @@ static void fscache_object_state_machine(struct fscache_object *object)
                spin_lock(&object->lock);
                object->state = FSCACHE_OBJECT_DEAD;
                spin_unlock(&object->lock);
@@ -48304,7 +52061,7 @@ index b6b897c..0ffff9c 100644
                goto terminal_transit;
  
                /* handle the parent cache of this object being withdrawn from
-@@ -232,7 +232,7 @@ static void fscache_object_state_machine(struct fscache_object *object)
+@@ -257,7 +257,7 @@ static void fscache_object_state_machine(struct fscache_object *object)
                spin_lock(&object->lock);
                object->state = FSCACHE_OBJECT_DEAD;
                spin_unlock(&object->lock);
@@ -48313,7 +52070,7 @@ index b6b897c..0ffff9c 100644
                goto terminal_transit;
  
                /* complain about the object being woken up once it is
-@@ -461,7 +461,7 @@ static void fscache_lookup_object(struct fscache_object *object)
+@@ -495,7 +495,7 @@ static void fscache_lookup_object(struct fscache_object *object)
               parent->cookie->def->name, cookie->def->name,
               object->cache->tag->name);
  
@@ -48322,7 +52079,7 @@ index b6b897c..0ffff9c 100644
        fscache_stat(&fscache_n_cop_lookup_object);
        ret = object->cache->ops->lookup_object(object);
        fscache_stat_d(&fscache_n_cop_lookup_object);
-@@ -472,7 +472,7 @@ static void fscache_lookup_object(struct fscache_object *object)
+@@ -506,7 +506,7 @@ static void fscache_lookup_object(struct fscache_object *object)
        if (ret == -ETIMEDOUT) {
                /* probably stuck behind another object, so move this one to
                 * the back of the queue */
@@ -48331,7 +52088,7 @@ index b6b897c..0ffff9c 100644
                set_bit(FSCACHE_OBJECT_EV_REQUEUE, &object->events);
        }
  
-@@ -495,7 +495,7 @@ void fscache_object_lookup_negative(struct fscache_object *object)
+@@ -529,7 +529,7 @@ void fscache_object_lookup_negative(struct fscache_object *object)
  
        spin_lock(&object->lock);
        if (object->state == FSCACHE_OBJECT_LOOKING_UP) {
@@ -48340,7 +52097,7 @@ index b6b897c..0ffff9c 100644
  
                /* transit here to allow write requests to begin stacking up
                 * and read requests to begin returning ENODATA */
-@@ -541,7 +541,7 @@ void fscache_obtained_object(struct fscache_object *object)
+@@ -575,7 +575,7 @@ void fscache_obtained_object(struct fscache_object *object)
         * result, in which case there may be data available */
        spin_lock(&object->lock);
        if (object->state == FSCACHE_OBJECT_LOOKING_UP) {
@@ -48349,7 +52106,7 @@ index b6b897c..0ffff9c 100644
  
                clear_bit(FSCACHE_COOKIE_NO_DATA_YET, &cookie->flags);
  
-@@ -555,7 +555,7 @@ void fscache_obtained_object(struct fscache_object *object)
+@@ -589,7 +589,7 @@ void fscache_obtained_object(struct fscache_object *object)
                set_bit(FSCACHE_OBJECT_EV_REQUEUE, &object->events);
        } else {
                ASSERTCMP(object->state, ==, FSCACHE_OBJECT_CREATING);
@@ -48358,7 +52115,7 @@ index b6b897c..0ffff9c 100644
  
                object->state = FSCACHE_OBJECT_AVAILABLE;
                spin_unlock(&object->lock);
-@@ -602,7 +602,7 @@ static void fscache_object_available(struct fscache_object *object)
+@@ -634,7 +634,7 @@ static void fscache_object_available(struct fscache_object *object)
        fscache_enqueue_dependents(object);
  
        fscache_hist(fscache_obj_instantiate_histogram, object->lookup_jif);
@@ -48367,7 +52124,7 @@ index b6b897c..0ffff9c 100644
  
        _leave("");
  }
-@@ -861,7 +861,7 @@ enum fscache_checkaux fscache_check_aux(struct fscache_object *object,
+@@ -894,7 +894,7 @@ enum fscache_checkaux fscache_check_aux(struct fscache_object *object,
        enum fscache_checkaux result;
  
        if (!object->cookie->def->check_aux) {
@@ -48376,7 +52133,7 @@ index b6b897c..0ffff9c 100644
                return FSCACHE_CHECKAUX_OKAY;
        }
  
-@@ -870,17 +870,17 @@ enum fscache_checkaux fscache_check_aux(struct fscache_object *object,
+@@ -903,17 +903,17 @@ enum fscache_checkaux fscache_check_aux(struct fscache_object *object,
        switch (result) {
                /* entry okay as is */
        case FSCACHE_CHECKAUX_OKAY:
@@ -48398,7 +52155,7 @@ index b6b897c..0ffff9c 100644
  
        default:
 diff --git a/fs/fscache/operation.c b/fs/fscache/operation.c
-index 30afdfa..2256596 100644
+index 762a9ec..2023284 100644
 --- a/fs/fscache/operation.c
 +++ b/fs/fscache/operation.c
 @@ -17,7 +17,7 @@
@@ -48410,16 +52167,16 @@ index 30afdfa..2256596 100644
  EXPORT_SYMBOL(fscache_op_debug_id);
  
  /**
-@@ -38,7 +38,7 @@ void fscache_enqueue_operation(struct fscache_operation *op)
-       ASSERTCMP(op->object->state, >=, FSCACHE_OBJECT_AVAILABLE);
+@@ -39,7 +39,7 @@ void fscache_enqueue_operation(struct fscache_operation *op)
        ASSERTCMP(atomic_read(&op->usage), >, 0);
+       ASSERTCMP(op->state, ==, FSCACHE_OP_ST_IN_PROGRESS);
  
 -      fscache_stat(&fscache_n_op_enqueue);
 +      fscache_stat_unchecked(&fscache_n_op_enqueue);
        switch (op->flags & FSCACHE_OP_TYPE) {
        case FSCACHE_OP_ASYNC:
                _debug("queue async");
-@@ -69,7 +69,7 @@ static void fscache_run_op(struct fscache_object *object,
+@@ -73,7 +73,7 @@ static void fscache_run_op(struct fscache_object *object,
                wake_up_bit(&op->flags, FSCACHE_OP_WAITING);
        if (op->processor)
                fscache_enqueue_operation(op);
@@ -48428,8 +52185,8 @@ index 30afdfa..2256596 100644
  }
  
  /*
-@@ -98,11 +98,11 @@ int fscache_submit_exclusive_op(struct fscache_object *object,
-               if (object->n_ops > 1) {
+@@ -105,11 +105,11 @@ int fscache_submit_exclusive_op(struct fscache_object *object,
+               if (object->n_in_progress > 0) {
                        atomic_inc(&op->usage);
                        list_add_tail(&op->pend_link, &object->pending_ops);
 -                      fscache_stat(&fscache_n_op_pend);
@@ -48442,7 +52199,7 @@ index 30afdfa..2256596 100644
                        fscache_start_operations(object);
                } else {
                        ASSERTCMP(object->n_in_progress, ==, 0);
-@@ -118,7 +118,7 @@ int fscache_submit_exclusive_op(struct fscache_object *object,
+@@ -125,7 +125,7 @@ int fscache_submit_exclusive_op(struct fscache_object *object,
                object->n_exclusive++;  /* reads and writes must wait */
                atomic_inc(&op->usage);
                list_add_tail(&op->pend_link, &object->pending_ops);
@@ -48450,8 +52207,8 @@ index 30afdfa..2256596 100644
 +              fscache_stat_unchecked(&fscache_n_op_pend);
                ret = 0;
        } else {
-               /* not allowed to submit ops in any other state */
-@@ -203,11 +203,11 @@ int fscache_submit_op(struct fscache_object *object,
+               /* If we're in any other state, there must have been an I/O
+@@ -215,11 +215,11 @@ int fscache_submit_op(struct fscache_object *object,
                if (object->n_exclusive > 0) {
                        atomic_inc(&op->usage);
                        list_add_tail(&op->pend_link, &object->pending_ops);
@@ -48465,7 +52222,7 @@ index 30afdfa..2256596 100644
                        fscache_start_operations(object);
                } else {
                        ASSERTCMP(object->n_exclusive, ==, 0);
-@@ -219,12 +219,12 @@ int fscache_submit_op(struct fscache_object *object,
+@@ -231,12 +231,12 @@ int fscache_submit_op(struct fscache_object *object,
                object->n_ops++;
                atomic_inc(&op->usage);
                list_add_tail(&op->pend_link, &object->pending_ops);
@@ -48477,28 +52234,37 @@ index 30afdfa..2256596 100644
                   object->state == FSCACHE_OBJECT_WITHDRAWING) {
 -              fscache_stat(&fscache_n_op_rejected);
 +              fscache_stat_unchecked(&fscache_n_op_rejected);
+               op->state = FSCACHE_OP_ST_CANCELLED;
                ret = -ENOBUFS;
        } else if (!test_bit(FSCACHE_IOERROR, &object->cache->flags)) {
-               fscache_report_unexpected_submission(object, op, ostate);
-@@ -294,7 +294,7 @@ int fscache_cancel_op(struct fscache_operation *op)
+@@ -315,7 +315,7 @@ int fscache_cancel_op(struct fscache_operation *op,
        ret = -EBUSY;
-       if (!list_empty(&op->pend_link)) {
+       if (op->state == FSCACHE_OP_ST_PENDING) {
+               ASSERT(!list_empty(&op->pend_link));
 -              fscache_stat(&fscache_n_op_cancelled);
 +              fscache_stat_unchecked(&fscache_n_op_cancelled);
                list_del_init(&op->pend_link);
-               object->n_ops--;
-               if (test_bit(FSCACHE_OP_EXCLUSIVE, &op->flags))
-@@ -331,7 +331,7 @@ void fscache_put_operation(struct fscache_operation *op)
-       if (test_and_set_bit(FSCACHE_OP_DEAD, &op->flags))
-               BUG();
+               if (do_cancel)
+                       do_cancel(op);
+@@ -347,7 +347,7 @@ void fscache_cancel_all_ops(struct fscache_object *object)
+       while (!list_empty(&object->pending_ops)) {
+               op = list_entry(object->pending_ops.next,
+                               struct fscache_operation, pend_link);
+-              fscache_stat(&fscache_n_op_cancelled);
++              fscache_stat_unchecked(&fscache_n_op_cancelled);
+               list_del_init(&op->pend_link);
+               ASSERTCMP(op->state, ==, FSCACHE_OP_ST_PENDING);
+@@ -419,7 +419,7 @@ void fscache_put_operation(struct fscache_operation *op)
+                   op->state, ==, FSCACHE_OP_ST_CANCELLED);
+       op->state = FSCACHE_OP_ST_DEAD;
  
 -      fscache_stat(&fscache_n_op_release);
 +      fscache_stat_unchecked(&fscache_n_op_release);
  
        if (op->release) {
                op->release(op);
-@@ -348,7 +348,7 @@ void fscache_put_operation(struct fscache_operation *op)
+@@ -442,7 +442,7 @@ void fscache_put_operation(struct fscache_operation *op)
         * lock, and defer it otherwise */
        if (!spin_trylock(&object->lock)) {
                _debug("defer put");
@@ -48507,7 +52273,7 @@ index 30afdfa..2256596 100644
  
                cache = object->cache;
                spin_lock(&cache->op_gc_list_lock);
-@@ -410,7 +410,7 @@ void fscache_operation_gc(struct work_struct *work)
+@@ -495,7 +495,7 @@ void fscache_operation_gc(struct work_struct *work)
  
                _debug("GC DEFERRED REL OBJ%x OP%x",
                       object->debug_id, op->debug_id);
@@ -48515,12 +52281,12 @@ index 30afdfa..2256596 100644
 +              fscache_stat_unchecked(&fscache_n_op_gc);
  
                ASSERTCMP(atomic_read(&op->usage), ==, 0);
+               ASSERTCMP(op->state, ==, FSCACHE_OP_ST_DEAD);
 diff --git a/fs/fscache/page.c b/fs/fscache/page.c
-index 3f7a59b..cf196cc 100644
+index ff000e5..c44ec6d 100644
 --- a/fs/fscache/page.c
 +++ b/fs/fscache/page.c
-@@ -60,7 +60,7 @@ bool __fscache_maybe_release_page(struct fscache_cookie *cookie,
+@@ -61,7 +61,7 @@ try_again:
        val = radix_tree_lookup(&cookie->stores, page->index);
        if (!val) {
                rcu_read_unlock();
@@ -48529,7 +52295,7 @@ index 3f7a59b..cf196cc 100644
                __fscache_uncache_page(cookie, page);
                return true;
        }
-@@ -90,11 +90,11 @@ bool __fscache_maybe_release_page(struct fscache_cookie *cookie,
+@@ -91,11 +91,11 @@ try_again:
        spin_unlock(&cookie->stores_lock);
  
        if (xpage) {
@@ -48544,16 +52310,21 @@ index 3f7a59b..cf196cc 100644
        }
  
        wake_up_bit(&cookie->flags, 0);
-@@ -107,7 +107,7 @@ page_busy:
-       /* we might want to wait here, but that could deadlock the allocator as
-        * the work threads writing to the cache may all end up sleeping
-        * on memory allocation */
--      fscache_stat(&fscache_n_store_vmscan_busy);
-+      fscache_stat_unchecked(&fscache_n_store_vmscan_busy);
-       return false;
- }
- EXPORT_SYMBOL(__fscache_maybe_release_page);
-@@ -131,7 +131,7 @@ static void fscache_end_page_write(struct fscache_object *object,
+@@ -110,11 +110,11 @@ page_busy:
+        * sleeping on memory allocation, so we may need to impose a timeout
+        * too. */
+       if (!(gfp & __GFP_WAIT)) {
+-              fscache_stat(&fscache_n_store_vmscan_busy);
++              fscache_stat_unchecked(&fscache_n_store_vmscan_busy);
+               return false;
+       }
+-      fscache_stat(&fscache_n_store_vmscan_wait);
++      fscache_stat_unchecked(&fscache_n_store_vmscan_wait);
+       __fscache_wait_on_page_write(cookie, page);
+       gfp &= ~__GFP_WAIT;
+       goto try_again;
+@@ -140,7 +140,7 @@ static void fscache_end_page_write(struct fscache_object *object,
                                     FSCACHE_COOKIE_STORING_TAG);
                if (!radix_tree_tag_get(&cookie->stores, page->index,
                                        FSCACHE_COOKIE_PENDING_TAG)) {
@@ -48562,7 +52333,7 @@ index 3f7a59b..cf196cc 100644
                        xpage = radix_tree_delete(&cookie->stores, page->index);
                }
                spin_unlock(&cookie->stores_lock);
-@@ -152,7 +152,7 @@ static void fscache_attr_changed_op(struct fscache_operation *op)
+@@ -161,7 +161,7 @@ static void fscache_attr_changed_op(struct fscache_operation *op)
  
        _enter("{OBJ%x OP%x}", object->debug_id, op->debug_id);
  
@@ -48571,7 +52342,7 @@ index 3f7a59b..cf196cc 100644
  
        if (fscache_object_is_active(object)) {
                fscache_stat(&fscache_n_cop_attr_changed);
-@@ -177,11 +177,11 @@ int __fscache_attr_changed(struct fscache_cookie *cookie)
+@@ -187,11 +187,11 @@ int __fscache_attr_changed(struct fscache_cookie *cookie)
  
        ASSERTCMP(cookie->def->type, !=, FSCACHE_COOKIE_TYPE_INDEX);
  
@@ -48585,7 +52356,7 @@ index 3f7a59b..cf196cc 100644
                _leave(" = -ENOMEM");
                return -ENOMEM;
        }
-@@ -199,7 +199,7 @@ int __fscache_attr_changed(struct fscache_cookie *cookie)
+@@ -209,7 +209,7 @@ int __fscache_attr_changed(struct fscache_cookie *cookie)
        if (fscache_submit_exclusive_op(object, op) < 0)
                goto nobufs;
        spin_unlock(&cookie->lock);
@@ -48594,7 +52365,7 @@ index 3f7a59b..cf196cc 100644
        fscache_put_operation(op);
        _leave(" = 0");
        return 0;
-@@ -207,7 +207,7 @@ int __fscache_attr_changed(struct fscache_cookie *cookie)
+@@ -217,7 +217,7 @@ int __fscache_attr_changed(struct fscache_cookie *cookie)
  nobufs:
        spin_unlock(&cookie->lock);
        kfree(op);
@@ -48603,7 +52374,7 @@ index 3f7a59b..cf196cc 100644
        _leave(" = %d", -ENOBUFS);
        return -ENOBUFS;
  }
-@@ -243,7 +243,7 @@ static struct fscache_retrieval *fscache_alloc_retrieval(
+@@ -255,7 +255,7 @@ static struct fscache_retrieval *fscache_alloc_retrieval(
        /* allocate a retrieval operation and attempt to submit it */
        op = kzalloc(sizeof(*op), GFP_NOIO);
        if (!op) {
@@ -48612,7 +52383,7 @@ index 3f7a59b..cf196cc 100644
                return NULL;
        }
  
-@@ -271,13 +271,13 @@ static int fscache_wait_for_deferred_lookup(struct fscache_cookie *cookie)
+@@ -283,13 +283,13 @@ static int fscache_wait_for_deferred_lookup(struct fscache_cookie *cookie)
                return 0;
        }
  
@@ -48628,7 +52399,7 @@ index 3f7a59b..cf196cc 100644
                _leave(" = -ERESTARTSYS");
                return -ERESTARTSYS;
        }
-@@ -295,8 +295,8 @@ static int fscache_wait_for_deferred_lookup(struct fscache_cookie *cookie)
+@@ -318,8 +318,8 @@ static void fscache_do_cancel_retrieval(struct fscache_operation *_op)
   */
  static int fscache_wait_for_retrieval_activation(struct fscache_object *object,
                                                 struct fscache_retrieval *op,
@@ -48639,7 +52410,7 @@ index 3f7a59b..cf196cc 100644
  {
        int ret;
  
-@@ -304,7 +304,7 @@ static int fscache_wait_for_retrieval_activation(struct fscache_object *object,
+@@ -327,7 +327,7 @@ static int fscache_wait_for_retrieval_activation(struct fscache_object *object,
                goto check_if_dead;
  
        _debug(">>> WT");
@@ -48647,17 +52418,25 @@ index 3f7a59b..cf196cc 100644
 +      fscache_stat_unchecked(stat_op_waits);
        if (wait_on_bit(&op->op.flags, FSCACHE_OP_WAITING,
                        fscache_wait_bit_interruptible,
-                       TASK_INTERRUPTIBLE) < 0) {
-@@ -321,7 +321,7 @@ static int fscache_wait_for_retrieval_activation(struct fscache_object *object,
+                       TASK_INTERRUPTIBLE) != 0) {
+@@ -344,14 +344,14 @@ static int fscache_wait_for_retrieval_activation(struct fscache_object *object,
  
  check_if_dead:
+       if (op->op.state == FSCACHE_OP_ST_CANCELLED) {
+-              fscache_stat(stat_object_dead);
++              fscache_stat_unchecked(stat_object_dead);
+               _leave(" = -ENOBUFS [cancelled]");
+               return -ENOBUFS;
+       }
        if (unlikely(fscache_object_is_dead(object))) {
+               pr_err("%s() = -ENOBUFS [obj dead %d]\n", __func__, op->op.state);
+               fscache_cancel_op(&op->op, fscache_do_cancel_retrieval);
 -              fscache_stat(stat_object_dead);
 +              fscache_stat_unchecked(stat_object_dead);
                return -ENOBUFS;
        }
        return 0;
-@@ -348,7 +348,7 @@ int __fscache_read_or_alloc_page(struct fscache_cookie *cookie,
+@@ -378,7 +378,7 @@ int __fscache_read_or_alloc_page(struct fscache_cookie *cookie,
  
        _enter("%p,%p,,,", cookie, page);
  
@@ -48666,8 +52445,8 @@ index 3f7a59b..cf196cc 100644
  
        if (hlist_empty(&cookie->backing_objects))
                goto nobufs;
-@@ -381,7 +381,7 @@ int __fscache_read_or_alloc_page(struct fscache_cookie *cookie,
-               goto nobufs_unlock;
+@@ -417,7 +417,7 @@ int __fscache_read_or_alloc_page(struct fscache_cookie *cookie,
+               goto nobufs_unlock_dec;
        spin_unlock(&cookie->lock);
  
 -      fscache_stat(&fscache_n_retrieval_ops);
@@ -48675,7 +52454,7 @@ index 3f7a59b..cf196cc 100644
  
        /* pin the netfs read context in case we need to do the actual netfs
         * read because we've encountered a cache read failure */
-@@ -411,15 +411,15 @@ int __fscache_read_or_alloc_page(struct fscache_cookie *cookie,
+@@ -447,15 +447,15 @@ int __fscache_read_or_alloc_page(struct fscache_cookie *cookie,
  
  error:
        if (ret == -ENOMEM)
@@ -48696,7 +52475,7 @@ index 3f7a59b..cf196cc 100644
  
        fscache_put_retrieval(op);
        _leave(" = %d", ret);
-@@ -429,7 +429,7 @@ nobufs_unlock:
+@@ -467,7 +467,7 @@ nobufs_unlock:
        spin_unlock(&cookie->lock);
        kfree(op);
  nobufs:
@@ -48705,7 +52484,7 @@ index 3f7a59b..cf196cc 100644
        _leave(" = -ENOBUFS");
        return -ENOBUFS;
  }
-@@ -467,7 +467,7 @@ int __fscache_read_or_alloc_pages(struct fscache_cookie *cookie,
+@@ -505,7 +505,7 @@ int __fscache_read_or_alloc_pages(struct fscache_cookie *cookie,
  
        _enter("%p,,%d,,,", cookie, *nr_pages);
  
@@ -48714,8 +52493,8 @@ index 3f7a59b..cf196cc 100644
  
        if (hlist_empty(&cookie->backing_objects))
                goto nobufs;
-@@ -497,7 +497,7 @@ int __fscache_read_or_alloc_pages(struct fscache_cookie *cookie,
-               goto nobufs_unlock;
+@@ -541,7 +541,7 @@ int __fscache_read_or_alloc_pages(struct fscache_cookie *cookie,
+               goto nobufs_unlock_dec;
        spin_unlock(&cookie->lock);
  
 -      fscache_stat(&fscache_n_retrieval_ops);
@@ -48723,7 +52502,7 @@ index 3f7a59b..cf196cc 100644
  
        /* pin the netfs read context in case we need to do the actual netfs
         * read because we've encountered a cache read failure */
-@@ -527,15 +527,15 @@ int __fscache_read_or_alloc_pages(struct fscache_cookie *cookie,
+@@ -571,15 +571,15 @@ int __fscache_read_or_alloc_pages(struct fscache_cookie *cookie,
  
  error:
        if (ret == -ENOMEM)
@@ -48744,7 +52523,7 @@ index 3f7a59b..cf196cc 100644
  
        fscache_put_retrieval(op);
        _leave(" = %d", ret);
-@@ -545,7 +545,7 @@ nobufs_unlock:
+@@ -591,7 +591,7 @@ nobufs_unlock:
        spin_unlock(&cookie->lock);
        kfree(op);
  nobufs:
@@ -48753,7 +52532,7 @@ index 3f7a59b..cf196cc 100644
        _leave(" = -ENOBUFS");
        return -ENOBUFS;
  }
-@@ -569,7 +569,7 @@ int __fscache_alloc_page(struct fscache_cookie *cookie,
+@@ -615,7 +615,7 @@ int __fscache_alloc_page(struct fscache_cookie *cookie,
  
        _enter("%p,%p,,,", cookie, page);
  
@@ -48762,7 +52541,7 @@ index 3f7a59b..cf196cc 100644
  
        if (hlist_empty(&cookie->backing_objects))
                goto nobufs;
-@@ -595,7 +595,7 @@ int __fscache_alloc_page(struct fscache_cookie *cookie,
+@@ -647,7 +647,7 @@ int __fscache_alloc_page(struct fscache_cookie *cookie,
                goto nobufs_unlock;
        spin_unlock(&cookie->lock);
  
@@ -48771,7 +52550,7 @@ index 3f7a59b..cf196cc 100644
  
        ret = fscache_wait_for_retrieval_activation(
                object, op,
-@@ -611,11 +611,11 @@ int __fscache_alloc_page(struct fscache_cookie *cookie,
+@@ -663,11 +663,11 @@ int __fscache_alloc_page(struct fscache_cookie *cookie,
  
  error:
        if (ret == -ERESTARTSYS)
@@ -48786,7 +52565,7 @@ index 3f7a59b..cf196cc 100644
  
        fscache_put_retrieval(op);
        _leave(" = %d", ret);
-@@ -625,7 +625,7 @@ nobufs_unlock:
+@@ -677,7 +677,7 @@ nobufs_unlock:
        spin_unlock(&cookie->lock);
        kfree(op);
  nobufs:
@@ -48795,7 +52574,7 @@ index 3f7a59b..cf196cc 100644
        _leave(" = -ENOBUFS");
        return -ENOBUFS;
  }
-@@ -666,7 +666,7 @@ static void fscache_write_op(struct fscache_operation *_op)
+@@ -736,7 +736,7 @@ static void fscache_write_op(struct fscache_operation *_op)
  
        spin_lock(&cookie->stores_lock);
  
@@ -48804,7 +52583,7 @@ index 3f7a59b..cf196cc 100644
  
        /* find a page to store */
        page = NULL;
-@@ -677,7 +677,7 @@ static void fscache_write_op(struct fscache_operation *_op)
+@@ -747,7 +747,7 @@ static void fscache_write_op(struct fscache_operation *_op)
        page = results[0];
        _debug("gang %d [%lx]", n, page->index);
        if (page->index > op->store_limit) {
@@ -48813,7 +52592,7 @@ index 3f7a59b..cf196cc 100644
                goto superseded;
        }
  
-@@ -689,7 +689,7 @@ static void fscache_write_op(struct fscache_operation *_op)
+@@ -759,7 +759,7 @@ static void fscache_write_op(struct fscache_operation *_op)
        spin_unlock(&cookie->stores_lock);
        spin_unlock(&object->lock);
  
@@ -48822,16 +52601,16 @@ index 3f7a59b..cf196cc 100644
        fscache_stat(&fscache_n_cop_write_page);
        ret = object->cache->ops->write_page(op, page);
        fscache_stat_d(&fscache_n_cop_write_page);
-@@ -757,7 +757,7 @@ int __fscache_write_page(struct fscache_cookie *cookie,
+@@ -860,7 +860,7 @@ int __fscache_write_page(struct fscache_cookie *cookie,
        ASSERTCMP(cookie->def->type, !=, FSCACHE_COOKIE_TYPE_INDEX);
        ASSERT(PageFsCache(page));
  
 -      fscache_stat(&fscache_n_stores);
 +      fscache_stat_unchecked(&fscache_n_stores);
  
-       op = kzalloc(sizeof(*op), GFP_NOIO);
-       if (!op)
-@@ -808,7 +808,7 @@ int __fscache_write_page(struct fscache_cookie *cookie,
+       if (test_bit(FSCACHE_COOKIE_INVALIDATING, &cookie->flags)) {
+               _leave(" = -ENOBUFS [invalidating]");
+@@ -916,7 +916,7 @@ int __fscache_write_page(struct fscache_cookie *cookie,
        spin_unlock(&cookie->stores_lock);
        spin_unlock(&object->lock);
  
@@ -48840,7 +52619,7 @@ index 3f7a59b..cf196cc 100644
        op->store_limit = object->store_limit;
  
        if (fscache_submit_op(object, &op->op) < 0)
-@@ -816,8 +816,8 @@ int __fscache_write_page(struct fscache_cookie *cookie,
+@@ -924,8 +924,8 @@ int __fscache_write_page(struct fscache_cookie *cookie,
  
        spin_unlock(&cookie->lock);
        radix_tree_preload_end();
@@ -48851,7 +52630,7 @@ index 3f7a59b..cf196cc 100644
  
        /* the work queue now carries its own ref on the object */
        fscache_put_operation(&op->op);
-@@ -825,14 +825,14 @@ int __fscache_write_page(struct fscache_cookie *cookie,
+@@ -933,14 +933,14 @@ int __fscache_write_page(struct fscache_cookie *cookie,
        return 0;
  
  already_queued:
@@ -48868,7 +52647,7 @@ index 3f7a59b..cf196cc 100644
        _leave(" = 0");
        return 0;
  
-@@ -851,14 +851,14 @@ nobufs:
+@@ -959,14 +959,14 @@ nobufs:
        spin_unlock(&cookie->lock);
        radix_tree_preload_end();
        kfree(op);
@@ -48885,7 +52664,7 @@ index 3f7a59b..cf196cc 100644
        _leave(" = -ENOMEM");
        return -ENOMEM;
  }
-@@ -876,7 +876,7 @@ void __fscache_uncache_page(struct fscache_cookie *cookie, struct page *page)
+@@ -984,7 +984,7 @@ void __fscache_uncache_page(struct fscache_cookie *cookie, struct page *page)
        ASSERTCMP(cookie->def->type, !=, FSCACHE_COOKIE_TYPE_INDEX);
        ASSERTCMP(page, !=, NULL);
  
@@ -48894,20 +52673,20 @@ index 3f7a59b..cf196cc 100644
  
        /* cache withdrawal may beat us to it */
        if (!PageFsCache(page))
-@@ -929,7 +929,7 @@ void fscache_mark_pages_cached(struct fscache_retrieval *op,
-       unsigned long loop;
+@@ -1035,7 +1035,7 @@ void fscache_mark_page_cached(struct fscache_retrieval *op, struct page *page)
+       struct fscache_cookie *cookie = op->op.object->cookie;
  
  #ifdef CONFIG_FSCACHE_STATS
--      atomic_add(pagevec->nr, &fscache_n_marks);
-+      atomic_add_unchecked(pagevec->nr, &fscache_n_marks);
+-      atomic_inc(&fscache_n_marks);
++      atomic_inc_unchecked(&fscache_n_marks);
  #endif
  
-       for (loop = 0; loop < pagevec->nr; loop++) {
+       _debug("- mark %p{%lx}", page, page->index);
 diff --git a/fs/fscache/stats.c b/fs/fscache/stats.c
-index 4765190..2a067f2 100644
+index 8179e8b..5072cc7 100644
 --- a/fs/fscache/stats.c
 +++ b/fs/fscache/stats.c
-@@ -18,95 +18,95 @@
+@@ -18,99 +18,99 @@
  /*
   * operation counters
   */
@@ -49004,10 +52783,12 @@ index 4765190..2a067f2 100644
 -atomic_t fscache_n_store_vmscan_gone;
 -atomic_t fscache_n_store_vmscan_busy;
 -atomic_t fscache_n_store_vmscan_cancelled;
+-atomic_t fscache_n_store_vmscan_wait;
 +atomic_unchecked_t fscache_n_store_vmscan_not_storing;
 +atomic_unchecked_t fscache_n_store_vmscan_gone;
 +atomic_unchecked_t fscache_n_store_vmscan_busy;
 +atomic_unchecked_t fscache_n_store_vmscan_cancelled;
++atomic_unchecked_t fscache_n_store_vmscan_wait;
  
 -atomic_t fscache_n_marks;
 -atomic_t fscache_n_uncaches;
@@ -49027,6 +52808,11 @@ index 4765190..2a067f2 100644
 +atomic_unchecked_t fscache_n_acquires_nobufs;
 +atomic_unchecked_t fscache_n_acquires_oom;
  
+-atomic_t fscache_n_invalidates;
+-atomic_t fscache_n_invalidates_run;
++atomic_unchecked_t fscache_n_invalidates;
++atomic_unchecked_t fscache_n_invalidates_run;
 -atomic_t fscache_n_updates;
 -atomic_t fscache_n_updates_null;
 -atomic_t fscache_n_updates_run;
@@ -49080,7 +52866,7 @@ index 4765190..2a067f2 100644
  
  atomic_t fscache_n_cop_alloc_object;
  atomic_t fscache_n_cop_lookup_object;
-@@ -133,113 +133,113 @@ static int fscache_stats_show(struct seq_file *m, void *v)
+@@ -138,118 +138,118 @@ static int fscache_stats_show(struct seq_file *m, void *v)
        seq_puts(m, "FS-Cache statistics\n");
  
        seq_printf(m, "Cookies: idx=%u dat=%u spc=%u\n",
@@ -49143,6 +52929,12 @@ index 4765190..2a067f2 100644
 +                 atomic_read_unchecked(&fscache_n_object_created),
 +                 atomic_read_unchecked(&fscache_n_object_lookups_timed_out));
  
+       seq_printf(m, "Invals : n=%u run=%u\n",
+-                 atomic_read(&fscache_n_invalidates),
+-                 atomic_read(&fscache_n_invalidates_run));
++                 atomic_read_unchecked(&fscache_n_invalidates),
++                 atomic_read_unchecked(&fscache_n_invalidates_run));
        seq_printf(m, "Updates: n=%u nul=%u run=%u\n",
 -                 atomic_read(&fscache_n_updates),
 -                 atomic_read(&fscache_n_updates_null),
@@ -49239,15 +53031,17 @@ index 4765190..2a067f2 100644
 +                 atomic_read_unchecked(&fscache_n_store_radix_deletes),
 +                 atomic_read_unchecked(&fscache_n_store_pages_over_limit));
  
-       seq_printf(m, "VmScan : nos=%u gon=%u bsy=%u can=%u\n",
+       seq_printf(m, "VmScan : nos=%u gon=%u bsy=%u can=%u wt=%u\n",
 -                 atomic_read(&fscache_n_store_vmscan_not_storing),
 -                 atomic_read(&fscache_n_store_vmscan_gone),
 -                 atomic_read(&fscache_n_store_vmscan_busy),
--                 atomic_read(&fscache_n_store_vmscan_cancelled));
+-                 atomic_read(&fscache_n_store_vmscan_cancelled),
+-                 atomic_read(&fscache_n_store_vmscan_wait));
 +                 atomic_read_unchecked(&fscache_n_store_vmscan_not_storing),
 +                 atomic_read_unchecked(&fscache_n_store_vmscan_gone),
 +                 atomic_read_unchecked(&fscache_n_store_vmscan_busy),
-+                 atomic_read_unchecked(&fscache_n_store_vmscan_cancelled));
++                 atomic_read_unchecked(&fscache_n_store_vmscan_cancelled),
++                 atomic_read_unchecked(&fscache_n_store_vmscan_wait));
  
        seq_printf(m, "Ops    : pend=%u run=%u enq=%u can=%u rej=%u\n",
 -                 atomic_read(&fscache_n_op_pend),
@@ -49271,10 +53065,10 @@ index 4765190..2a067f2 100644
        seq_printf(m, "CacheOp: alo=%d luo=%d luc=%d gro=%d\n",
                   atomic_read(&fscache_n_cop_alloc_object),
 diff --git a/fs/fuse/cuse.c b/fs/fuse/cuse.c
-index ee8d550..7189d8c 100644
+index e397b67..b0d8709 100644
 --- a/fs/fuse/cuse.c
 +++ b/fs/fuse/cuse.c
-@@ -585,10 +585,12 @@ static int __init cuse_init(void)
+@@ -593,10 +593,12 @@ static int __init cuse_init(void)
                INIT_LIST_HEAD(&cuse_conntbl[i]);
  
        /* inherit and extend fuse_dev_operations */
@@ -49292,10 +53086,10 @@ index ee8d550..7189d8c 100644
        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 8c23fa7..0e3aac7 100644
+index e83351a..41e3c9c 100644
 --- a/fs/fuse/dev.c
 +++ b/fs/fuse/dev.c
-@@ -1241,7 +1241,7 @@ static ssize_t fuse_dev_splice_read(struct file *in, loff_t *ppos,
+@@ -1236,7 +1236,7 @@ static ssize_t fuse_dev_splice_read(struct file *in, loff_t *ppos,
        ret = 0;
        pipe_lock(pipe);
  
@@ -49305,10 +53099,10 @@ index 8c23fa7..0e3aac7 100644
                if (!ret)
                        ret = -EPIPE;
 diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
-index 324bc08..4fdd56e 100644
+index 315e1f8..91f890c 100644
 --- a/fs/fuse/dir.c
 +++ b/fs/fuse/dir.c
-@@ -1226,7 +1226,7 @@ static char *read_link(struct dentry *dentry)
+@@ -1233,7 +1233,7 @@ static char *read_link(struct dentry *dentry)
        return link;
  }
  
@@ -49318,10 +53112,10 @@ index 324bc08..4fdd56e 100644
        if (!IS_ERR(link))
                free_page((unsigned long) link);
 diff --git a/fs/gfs2/inode.c b/fs/gfs2/inode.c
-index 381893c..3793318 100644
+index 2b6f569..fcb4d1f 100644
 --- a/fs/gfs2/inode.c
 +++ b/fs/gfs2/inode.c
-@@ -1490,7 +1490,7 @@ out:
+@@ -1499,7 +1499,7 @@ out:
  
  static void gfs2_put_link(struct dentry *dentry, struct nameidata *nd, void *p)
  {
@@ -49331,18 +53125,18 @@ index 381893c..3793318 100644
                kfree(s);
  }
 diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c
-index c5bc355..163a13e 100644
+index 78bde32..767e906 100644
 --- a/fs/hugetlbfs/inode.c
 +++ b/fs/hugetlbfs/inode.c
-@@ -153,6 +153,7 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+@@ -152,6 +152,7 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+       struct mm_struct *mm = current->mm;
        struct vm_area_struct *vma;
-       unsigned long start_addr;
        struct hstate *h = hstate_file(file);
 +      unsigned long offset = gr_rand_threadstack_offset(mm, file, flags);
+       struct vm_unmapped_area_info info;
  
        if (len & ~huge_page_mask(h))
-               return -EINVAL;
-@@ -165,18 +166,21 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
+@@ -165,17 +166,26 @@ hugetlb_get_unmapped_area(struct file *file, unsigned long addr,
                return addr;
        }
  
@@ -49359,44 +53153,29 @@ index c5bc355..163a13e 100644
                        return addr;
        }
  
-       if (len > mm->cached_hole_size)
-               start_addr = mm->free_area_cache;
-       else {
--              start_addr = TASK_UNMAPPED_BASE;
-+              start_addr = mm->mmap_base;
-               mm->cached_hole_size = 0;
-       }
-@@ -190,15 +194,15 @@ full_search:
-                        * Start a new search - just in case we missed
-                        * some holes.
-                        */
--                      if (start_addr != TASK_UNMAPPED_BASE) {
--                              start_addr = TASK_UNMAPPED_BASE;
-+                      if (start_addr != mm->mmap_base) {
-+                              start_addr = mm->mmap_base;
-                               mm->cached_hole_size = 0;
-                               goto full_search;
-                       }
-                       return -ENOMEM;
-               }
--              if (!vma || addr + len <= vma->vm_start) {
-+              if (check_heap_stack_gap(vma, addr, len, offset)) {
-                       mm->free_area_cache = addr + len;
-                       return addr;
-               }
-@@ -923,7 +927,7 @@ static struct file_system_type hugetlbfs_fs_type = {
+       info.flags = 0;
+       info.length = len;
+       info.low_limit = TASK_UNMAPPED_BASE;
++
++#ifdef CONFIG_PAX_RANDMMAP
++      if (mm->pax_flags & MF_PAX_RANDMMAP)
++              info.low_limit += mm->delta_mmap;
++#endif
++
+       info.high_limit = TASK_SIZE;
+       info.align_mask = PAGE_MASK & ~huge_page_mask(h);
+       info.align_offset = 0;
+@@ -897,7 +907,7 @@ static struct file_system_type hugetlbfs_fs_type = {
        .kill_sb        = kill_litter_super,
  };
  
--static struct vfsmount *hugetlbfs_vfsmount;
-+struct vfsmount *hugetlbfs_vfsmount;
+-static struct vfsmount *hugetlbfs_vfsmount[HUGE_MAX_HSTATE];
++struct vfsmount *hugetlbfs_vfsmount[HUGE_MAX_HSTATE];
  
  static int can_do_hugetlb_shm(void)
  {
 diff --git a/fs/inode.c b/fs/inode.c
-index 64999f1..8fad608 100644
+index 14084b7..29af1d9 100644
 --- a/fs/inode.c
 +++ b/fs/inode.c
 @@ -880,8 +880,8 @@ unsigned int get_next_ino(void)
@@ -49439,9 +53218,27 @@ index a6597d6..41b30ec 100644
  
  /*
 diff --git a/fs/jfs/super.c b/fs/jfs/super.c
-index 1a543be..d803c40 100644
+index 1a543be..a4e1363 100644
 --- a/fs/jfs/super.c
 +++ b/fs/jfs/super.c
+@@ -225,7 +225,7 @@ static const match_table_t tokens = {
+ static int parse_options(char *options, struct super_block *sb, s64 *newLVSize,
+                        int *flag)
+ {
+-      void *nls_map = (void *)-1;     /* -1: no change;  NULL: none */
++      const void *nls_map = (const void *)-1; /* -1: no change;  NULL: none */
+       char *p;
+       struct jfs_sb_info *sbi = JFS_SBI(sb);
+@@ -253,7 +253,7 @@ static int parse_options(char *options, struct super_block *sb, s64 *newLVSize,
+                       /* Don't do anything ;-) */
+                       break;
+               case Opt_iocharset:
+-                      if (nls_map && nls_map != (void *) -1)
++                      if (nls_map && nls_map != (const void *) -1)
+                               unload_nls(nls_map);
+                       if (!strcmp(args[0].from, "none"))
+                               nls_map = NULL;
 @@ -855,7 +855,7 @@ static int __init init_jfs_fs(void)
  
        jfs_inode_cachep =
@@ -49452,7 +53249,7 @@ index 1a543be..d803c40 100644
        if (jfs_inode_cachep == NULL)
                return -ENOMEM;
 diff --git a/fs/libfs.c b/fs/libfs.c
-index 7cc37ca..b3e3eec 100644
+index 916da8c..1588998 100644
 --- a/fs/libfs.c
 +++ b/fs/libfs.c
 @@ -165,6 +165,9 @@ int dcache_readdir(struct file * filp, void * dirent, filldir_t filldir)
@@ -49480,7 +53277,7 @@ index 7cc37ca..b3e3eec 100644
                                            next->d_inode->i_ino, 
                                            dt_type(next->d_inode)) < 0)
 diff --git a/fs/lockd/clntproc.c b/fs/lockd/clntproc.c
-index 05d2912..760abfa 100644
+index 52e5120..808936e 100644
 --- a/fs/lockd/clntproc.c
 +++ b/fs/lockd/clntproc.c
 @@ -36,11 +36,11 @@ static const struct rpc_call_ops nlmclnt_cancel_ops;
@@ -49523,7 +53320,7 @@ index a94e331..060bce3 100644
  
        lock_flocks();
 diff --git a/fs/namei.c b/fs/namei.c
-index 5f4cdf3..959a013 100644
+index ec97aef..e67718d 100644
 --- a/fs/namei.c
 +++ b/fs/namei.c
 @@ -319,16 +319,32 @@ int generic_permission(struct inode *inode, int mask)
@@ -49577,7 +53374,7 @@ index 5f4cdf3..959a013 100644
        return -EACCES;
  }
  
-@@ -826,7 +834,7 @@ follow_link(struct path *link, struct nameidata *nd, void **p)
+@@ -824,7 +832,7 @@ follow_link(struct path *link, struct nameidata *nd, void **p)
  {
        struct dentry *dentry = link->dentry;
        int error;
@@ -49586,7 +53383,7 @@ index 5f4cdf3..959a013 100644
  
        BUG_ON(nd->flags & LOOKUP_RCU);
  
-@@ -847,6 +855,12 @@ follow_link(struct path *link, struct nameidata *nd, void **p)
+@@ -845,6 +853,12 @@ follow_link(struct path *link, struct nameidata *nd, void **p)
        if (error)
                goto out_put_nd_path;
  
@@ -49599,7 +53396,7 @@ index 5f4cdf3..959a013 100644
        nd->last_type = LAST_BIND;
        *p = dentry->d_inode->i_op->follow_link(dentry, nd);
        error = PTR_ERR(*p);
-@@ -1605,6 +1619,8 @@ static inline int nested_symlink(struct path *path, struct nameidata *nd)
+@@ -1594,6 +1608,8 @@ static inline int nested_symlink(struct path *path, struct nameidata *nd)
                        break;
                res = walk_component(nd, path, &nd->last,
                                     nd->last_type, LOOKUP_FOLLOW);
@@ -49608,7 +53405,7 @@ index 5f4cdf3..959a013 100644
                put_link(nd, &link, cookie);
        } while (res > 0);
  
-@@ -1703,7 +1719,7 @@ EXPORT_SYMBOL(full_name_hash);
+@@ -1692,7 +1708,7 @@ EXPORT_SYMBOL(full_name_hash);
  static inline unsigned long hash_name(const char *name, unsigned int *hashp)
  {
        unsigned long a, b, adata, bdata, mask, hash, len;
@@ -49617,7 +53414,7 @@ index 5f4cdf3..959a013 100644
  
        hash = a = 0;
        len = -sizeof(unsigned long);
-@@ -1993,6 +2009,8 @@ static int path_lookupat(int dfd, const char *name,
+@@ -1977,6 +1993,8 @@ static int path_lookupat(int dfd, const char *name,
                        if (err)
                                break;
                        err = lookup_last(nd, &path);
@@ -49626,21 +53423,13 @@ index 5f4cdf3..959a013 100644
                        put_link(nd, &link, cookie);
                }
        }
-@@ -2000,6 +2018,21 @@ static int path_lookupat(int dfd, const char *name,
+@@ -1984,6 +2002,13 @@ static int path_lookupat(int dfd, const char *name,
        if (!err)
                err = complete_walk(nd);
  
-+      if (!(nd->flags & LOOKUP_PARENT)) {
-+#ifdef CONFIG_GRKERNSEC
-+              if (flags & LOOKUP_RCU) {
-+                      if (!err)
-+                              path_put(&nd->path);
-+                      err = -ECHILD;
-+              } else
-+#endif
++      if (!err && !(nd->flags & LOOKUP_PARENT)) {
 +              if (!gr_acl_handle_hidden_file(nd->path.dentry, nd->path.mnt)) {
-+                      if (!err)
-+                              path_put(&nd->path);
++                      path_put(&nd->path);
 +                      err = -ENOENT;
 +              }
 +      }
@@ -49648,26 +53437,24 @@ index 5f4cdf3..959a013 100644
        if (!err && nd->flags & LOOKUP_DIRECTORY) {
                if (!nd->inode->i_op->lookup) {
                        path_put(&nd->path);
-@@ -2027,8 +2060,17 @@ static int filename_lookup(int dfd, struct filename *name,
+@@ -2011,8 +2036,15 @@ static int filename_lookup(int dfd, struct filename *name,
                retval = path_lookupat(dfd, name->name,
                                                flags | LOOKUP_REVAL, nd);
  
 -      if (likely(!retval))
 +      if (likely(!retval)) {
+               audit_inode(name, nd->path.dentry, flags & LOOKUP_PARENT);
 +              if (name->name[0] != '/' && nd->path.dentry && nd->inode) {
-+#ifdef CONFIG_GRKERNSEC
-+                      if (flags & LOOKUP_RCU)
-+                              return -ECHILD;
-+#endif
-+                      if (!gr_chroot_fchdir(nd->path.dentry, nd->path.mnt))
++                      if (!gr_chroot_fchdir(nd->path.dentry, nd->path.mnt)) {
++                              path_put(&nd->path);
 +                              return -ENOENT;
++                      }
 +              }
-               audit_inode(name, nd->path.dentry, flags & LOOKUP_PARENT);
 +      }
        return retval;
  }
  
-@@ -2402,6 +2444,13 @@ static int may_open(struct path *path, int acc_mode, int flag)
+@@ -2390,6 +2422,13 @@ static int may_open(struct path *path, int acc_mode, int flag)
        if (flag & O_NOATIME && !inode_owner_or_capable(inode))
                return -EPERM;
  
@@ -49681,7 +53468,7 @@ index 5f4cdf3..959a013 100644
        return 0;
  }
  
-@@ -2623,7 +2672,7 @@ looked_up:
+@@ -2611,7 +2650,7 @@ looked_up:
   * cleared otherwise prior to returning.
   */
  static int lookup_open(struct nameidata *nd, struct path *path,
@@ -49690,7 +53477,7 @@ index 5f4cdf3..959a013 100644
                        const struct open_flags *op,
                        bool got_write, int *opened)
  {
-@@ -2658,6 +2707,17 @@ static int lookup_open(struct nameidata *nd, struct path *path,
+@@ -2646,6 +2685,17 @@ static int lookup_open(struct nameidata *nd, struct path *path,
        /* Negative dentry, just create the file */
        if (!dentry->d_inode && (op->open_flag & O_CREAT)) {
                umode_t mode = op->mode;
@@ -49708,7 +53495,7 @@ index 5f4cdf3..959a013 100644
                if (!IS_POSIXACL(dir->d_inode))
                        mode &= ~current_umask();
                /*
-@@ -2679,6 +2739,8 @@ static int lookup_open(struct nameidata *nd, struct path *path,
+@@ -2667,6 +2717,8 @@ static int lookup_open(struct nameidata *nd, struct path *path,
                                   nd->flags & LOOKUP_EXCL);
                if (error)
                        goto out_dput;
@@ -49717,7 +53504,7 @@ index 5f4cdf3..959a013 100644
        }
  out_no_open:
        path->dentry = dentry;
-@@ -2693,7 +2755,7 @@ out_dput:
+@@ -2681,7 +2733,7 @@ out_dput:
  /*
   * Handle the last step of open()
   */
@@ -49726,16 +53513,10 @@ index 5f4cdf3..959a013 100644
                   struct file *file, const struct open_flags *op,
                   int *opened, struct filename *name)
  {
-@@ -2722,16 +2784,44 @@ static int do_last(struct nameidata *nd, struct path *path,
+@@ -2710,16 +2762,32 @@ static int do_last(struct nameidata *nd, struct path *path,
                error = complete_walk(nd);
                if (error)
                        return error;
-+#ifdef CONFIG_GRKERNSEC
-+              if (nd->flags & LOOKUP_RCU) {
-+                      error = -ECHILD;
-+                      goto out;
-+              }
-+#endif
 +              if (!gr_acl_handle_hidden_file(nd->path.dentry, nd->path.mnt)) {
 +                      error = -ENOENT;
 +                      goto out;
@@ -49754,12 +53535,6 @@ index 5f4cdf3..959a013 100644
                error = complete_walk(nd);
                if (error)
                        return error;
-+#ifdef CONFIG_GRKERNSEC
-+              if (nd->flags & LOOKUP_RCU) {
-+                      error = -ECHILD;
-+                      goto out;
-+              }
-+#endif
 +              if (!gr_acl_handle_hidden_file(dir, nd->path.mnt)) {
 +                      error = -ENOENT;
 +                      goto out;
@@ -49771,7 +53546,7 @@ index 5f4cdf3..959a013 100644
                audit_inode(name, dir, 0);
                goto finish_open;
        }
-@@ -2780,7 +2870,7 @@ retry_lookup:
+@@ -2768,7 +2836,7 @@ retry_lookup:
                 */
        }
        mutex_lock(&dir->d_inode->i_mutex);
@@ -49780,7 +53555,7 @@ index 5f4cdf3..959a013 100644
        mutex_unlock(&dir->d_inode->i_mutex);
  
        if (error <= 0) {
-@@ -2804,11 +2894,28 @@ retry_lookup:
+@@ -2792,11 +2860,28 @@ retry_lookup:
                goto finish_open_created;
        }
  
@@ -49810,7 +53585,7 @@ index 5f4cdf3..959a013 100644
  
        /*
         * If atomic_open() acquired write access it is dropped now due to
-@@ -2849,6 +2956,11 @@ finish_lookup:
+@@ -2837,6 +2922,11 @@ finish_lookup:
                        }
                }
                BUG_ON(inode != path->dentry->d_inode);
@@ -49822,7 +53597,7 @@ index 5f4cdf3..959a013 100644
                return 1;
        }
  
-@@ -2858,7 +2970,6 @@ finish_lookup:
+@@ -2846,7 +2936,6 @@ finish_lookup:
                save_parent.dentry = nd->path.dentry;
                save_parent.mnt = mntget(path->mnt);
                nd->path.dentry = path->dentry;
@@ -49830,17 +53605,11 @@ index 5f4cdf3..959a013 100644
        }
        nd->inode = inode;
        /* Why this, you ask?  _Now_ we might have grown LOOKUP_JUMPED... */
-@@ -2867,6 +2978,22 @@ finish_lookup:
+@@ -2855,6 +2944,16 @@ finish_lookup:
                path_put(&save_parent);
                return error;
        }
 +
-+#ifdef CONFIG_GRKERNSEC
-+      if (nd->flags & LOOKUP_RCU) {
-+              error = -ECHILD;
-+              goto out;
-+      }
-+#endif
 +      if (!gr_acl_handle_hidden_file(nd->path.dentry, nd->path.mnt)) {
 +              error = -ENOENT;
 +              goto out;
@@ -49853,7 +53622,7 @@ index 5f4cdf3..959a013 100644
        error = -EISDIR;
        if ((open_flag & O_CREAT) && S_ISDIR(nd->inode->i_mode))
                goto out;
-@@ -2965,7 +3092,7 @@ static struct file *path_openat(int dfd, struct filename *pathname,
+@@ -2953,7 +3052,7 @@ static struct file *path_openat(int dfd, struct filename *pathname,
        if (unlikely(error))
                goto out;
  
@@ -49862,7 +53631,7 @@ index 5f4cdf3..959a013 100644
        while (unlikely(error > 0)) { /* trailing symlink */
                struct path link = path;
                void *cookie;
-@@ -2983,7 +3110,7 @@ static struct file *path_openat(int dfd, struct filename *pathname,
+@@ -2971,7 +3070,7 @@ static struct file *path_openat(int dfd, struct filename *pathname,
                error = follow_link(&link, nd, &cookie);
                if (unlikely(error))
                        break;
@@ -49871,7 +53640,7 @@ index 5f4cdf3..959a013 100644
                put_link(nd, &link, cookie);
        }
  out:
-@@ -3073,8 +3200,12 @@ struct dentry *kern_path_create(int dfd, const char *pathname, struct path *path
+@@ -3071,8 +3170,12 @@ struct dentry *kern_path_create(int dfd, const char *pathname,
                goto unlock;
  
        error = -EEXIST;
@@ -49885,17 +53654,17 @@ index 5f4cdf3..959a013 100644
        /*
         * Special case - lookup gave negative, but... we had foo/bar/
         * From the vfs_mknod() POV we just have a negative dentry -
-@@ -3125,6 +3256,20 @@ struct dentry *user_path_create(int dfd, const char __user *pathname, struct pat
+@@ -3124,6 +3227,20 @@ struct dentry *user_path_create(int dfd, const char __user *pathname,
  }
  EXPORT_SYMBOL(user_path_create);
  
-+static struct dentry *user_path_create_with_name(int dfd, const char __user *pathname, struct path *path, struct filename **to, int is_dir)
++static struct dentry *user_path_create_with_name(int dfd, const char __user *pathname, struct path *path, struct filename **to, unsigned int lookup_flags)
 +{
 +      struct filename *tmp = getname(pathname);
 +      struct dentry *res;
 +      if (IS_ERR(tmp))
 +              return ERR_CAST(tmp);
-+      res = kern_path_create(dfd, tmp->name, path, is_dir);
++      res = kern_path_create(dfd, tmp->name, path, lookup_flags);
 +      if (IS_ERR(res))
 +              putname(tmp);
 +      else
@@ -49906,7 +53675,7 @@ index 5f4cdf3..959a013 100644
  int vfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode, dev_t dev)
  {
        int error = may_create(dir, dentry);
-@@ -3186,6 +3331,17 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode,
+@@ -3186,6 +3303,17 @@ retry:
  
        if (!IS_POSIXACL(path.dentry->d_inode))
                mode &= ~current_umask();
@@ -49924,25 +53693,23 @@ index 5f4cdf3..959a013 100644
        error = security_path_mknod(&path, dentry, mode, dev);
        if (error)
                goto out;
-@@ -3202,6 +3358,8 @@ SYSCALL_DEFINE4(mknodat, int, dfd, const char __user *, filename, umode_t, mode,
+@@ -3202,6 +3330,8 @@ retry:
                        break;
        }
  out:
 +      if (!error)
 +              gr_handle_create(dentry, path.mnt);
        done_path_create(&path, dentry);
-       return error;
- }
-@@ -3248,9 +3406,18 @@ SYSCALL_DEFINE3(mkdirat, int, dfd, const char __user *, pathname, umode_t, mode)
+       if (retry_estale(error, lookup_flags)) {
+               lookup_flags |= LOOKUP_REVAL;
+@@ -3254,9 +3384,16 @@ retry:
  
        if (!IS_POSIXACL(path.dentry->d_inode))
                mode &= ~current_umask();
-+
 +      if (!gr_acl_handle_mkdir(dentry, path.dentry, path.mnt)) {
 +              error = -EACCES;
 +              goto out;
 +      }
-+
        error = security_path_mkdir(&path, dentry, mode);
        if (!error)
                error = vfs_mkdir(path.dentry->d_inode, dentry, mode);
@@ -49950,18 +53717,18 @@ index 5f4cdf3..959a013 100644
 +              gr_handle_create(dentry, path.mnt);
 +out:
        done_path_create(&path, dentry);
-       return error;
- }
-@@ -3327,6 +3494,8 @@ static long do_rmdir(int dfd, const char __user *pathname)
+       if (retry_estale(error, lookup_flags)) {
+               lookup_flags |= LOOKUP_REVAL;
+@@ -3337,6 +3474,8 @@ static long do_rmdir(int dfd, const char __user *pathname)
        struct filename *name;
        struct dentry *dentry;
        struct nameidata nd;
 +      ino_t saved_ino = 0;
 +      dev_t saved_dev = 0;
-       name = user_path_parent(dfd, pathname, &nd);
-       if (IS_ERR(name))
-@@ -3358,10 +3527,21 @@ static long do_rmdir(int dfd, const char __user *pathname)
+       unsigned int lookup_flags = 0;
+ retry:
+       name = user_path_parent(dfd, pathname, &nd, lookup_flags);
+@@ -3369,10 +3508,21 @@ retry:
                error = -ENOENT;
                goto exit3;
        }
@@ -49983,16 +53750,16 @@ index 5f4cdf3..959a013 100644
  exit3:
        dput(dentry);
  exit2:
-@@ -3423,6 +3603,8 @@ static long do_unlinkat(int dfd, const char __user *pathname)
+@@ -3438,6 +3588,8 @@ static long do_unlinkat(int dfd, const char __user *pathname)
        struct dentry *dentry;
        struct nameidata nd;
        struct inode *inode = NULL;
 +      ino_t saved_ino = 0;
 +      dev_t saved_dev = 0;
-       name = user_path_parent(dfd, pathname, &nd);
-       if (IS_ERR(name))
-@@ -3448,10 +3630,22 @@ static long do_unlinkat(int dfd, const char __user *pathname)
+       unsigned int lookup_flags = 0;
+ retry:
+       name = user_path_parent(dfd, pathname, &nd, lookup_flags);
+@@ -3464,10 +3616,22 @@ retry:
                if (!inode)
                        goto slashes;
                ihold(inode);
@@ -50015,7 +53782,7 @@ index 5f4cdf3..959a013 100644
  exit2:
                dput(dentry);
        }
-@@ -3523,9 +3717,17 @@ SYSCALL_DEFINE3(symlinkat, const char __user *, oldname,
+@@ -3545,9 +3709,17 @@ retry:
        if (IS_ERR(dentry))
                goto out_putname;
  
@@ -50031,9 +53798,9 @@ index 5f4cdf3..959a013 100644
 +              gr_handle_create(dentry, path.mnt);
 +out:
        done_path_create(&path, dentry);
- out_putname:
-       putname(from);
-@@ -3595,6 +3797,7 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
+       if (retry_estale(error, lookup_flags)) {
+               lookup_flags |= LOOKUP_REVAL;
+@@ -3621,6 +3793,7 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
  {
        struct dentry *new_dentry;
        struct path old_path, new_path;
@@ -50041,16 +53808,16 @@ index 5f4cdf3..959a013 100644
        int how = 0;
        int error;
  
-@@ -3618,7 +3821,7 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
+@@ -3644,7 +3817,7 @@ retry:
        if (error)
                return error;
  
--      new_dentry = user_path_create(newdfd, newname, &new_path, 0);
-+      new_dentry = user_path_create_with_name(newdfd, newname, &new_path, &to, 0);
+-      new_dentry = user_path_create(newdfd, newname, &new_path,
++      new_dentry = user_path_create_with_name(newdfd, newname, &new_path, &to,
+                                       (how & LOOKUP_REVAL));
        error = PTR_ERR(new_dentry);
        if (IS_ERR(new_dentry))
-               goto out;
-@@ -3629,11 +3832,28 @@ SYSCALL_DEFINE5(linkat, int, olddfd, const char __user *, oldname,
+@@ -3656,11 +3829,28 @@ retry:
        error = may_linkat(&old_path);
        if (unlikely(error))
                goto out_dput;
@@ -50077,9 +53844,9 @@ index 5f4cdf3..959a013 100644
  out_dput:
 +      putname(to);
        done_path_create(&new_path, new_dentry);
- out:
-       path_put(&old_path);
-@@ -3873,12 +4093,21 @@ SYSCALL_DEFINE4(renameat, int, olddfd, const char __user *, oldname,
+       if (retry_estale(error, how)) {
+               how |= LOOKUP_REVAL;
+@@ -3906,12 +4096,21 @@ retry:
        if (new_dentry == trap)
                goto exit5;
  
@@ -50101,7 +53868,7 @@ index 5f4cdf3..959a013 100644
  exit5:
        dput(new_dentry);
  exit4:
-@@ -3903,6 +4132,8 @@ SYSCALL_DEFINE2(rename, const char __user *, oldname, const char __user *, newna
+@@ -3943,6 +4142,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)
  {
@@ -50110,7 +53877,7 @@ index 5f4cdf3..959a013 100644
        int len;
  
        len = PTR_ERR(link);
-@@ -3912,7 +4143,14 @@ int vfs_readlink(struct dentry *dentry, char __user *buffer, int buflen, const c
+@@ -3952,7 +4153,14 @@ int vfs_readlink(struct dentry *dentry, char __user *buffer, int buflen, const c
        len = strlen(link);
        if (len > (unsigned) buflen)
                len = buflen;
@@ -50127,10 +53894,10 @@ index 5f4cdf3..959a013 100644
  out:
        return len;
 diff --git a/fs/namespace.c b/fs/namespace.c
-index 2496062..e26f6d6 100644
+index 5dd7709..0002ebe 100644
 --- a/fs/namespace.c
 +++ b/fs/namespace.c
-@@ -1212,6 +1212,9 @@ static int do_umount(struct mount *mnt, int flags)
+@@ -1219,6 +1219,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);
@@ -50140,7 +53907,7 @@ index 2496062..e26f6d6 100644
                return retval;
        }
  
-@@ -1231,6 +1234,9 @@ static int do_umount(struct mount *mnt, int flags)
+@@ -1238,6 +1241,9 @@ static int do_umount(struct mount *mnt, int flags)
        br_write_unlock(&vfsmount_lock);
        up_write(&namespace_sem);
        release_mounts(&umount_list);
@@ -50150,7 +53917,7 @@ index 2496062..e26f6d6 100644
        return retval;
  }
  
-@@ -2244,6 +2250,16 @@ long do_mount(const char *dev_name, const char *dir_name,
+@@ -2294,6 +2300,16 @@ long do_mount(const char *dev_name, const char *dir_name,
                   MS_NOATIME | MS_NODIRATIME | MS_RELATIME| MS_KERNMOUNT |
                   MS_STRICTATIME);
  
@@ -50167,7 +53934,7 @@ index 2496062..e26f6d6 100644
        if (flags & MS_REMOUNT)
                retval = do_remount(&path, flags & ~MS_REMOUNT, mnt_flags,
                                    data_page);
-@@ -2258,6 +2274,9 @@ long do_mount(const char *dev_name, const char *dir_name,
+@@ -2308,6 +2324,9 @@ long do_mount(const char *dev_name, const char *dir_name,
                                      dev_name, data_page);
  dput_out:
        path_put(&path);
@@ -50177,7 +53944,7 @@ index 2496062..e26f6d6 100644
        return retval;
  }
  
-@@ -2516,6 +2535,11 @@ SYSCALL_DEFINE2(pivot_root, const char __user *, new_root,
+@@ -2594,6 +2613,11 @@ SYSCALL_DEFINE2(pivot_root, const char __user *, new_root,
        if (error)
                goto out2;
  
@@ -50189,11 +53956,33 @@ index 2496062..e26f6d6 100644
        get_fs_root(current->fs, &root);
        error = lock_mount(&old);
        if (error)
+@@ -2842,7 +2866,7 @@ static int mntns_install(struct nsproxy *nsproxy, void *ns)
+           !nsown_capable(CAP_SYS_ADMIN))
+               return -EPERM;
+-      if (fs->users != 1)
++      if (atomic_read(&fs->users) != 1)
+               return -EINVAL;
+       get_mnt_ns(mnt_ns);
+diff --git a/fs/nfs/callback_xdr.c b/fs/nfs/callback_xdr.c
+index 59461c9..b17c57e 100644
+--- a/fs/nfs/callback_xdr.c
++++ b/fs/nfs/callback_xdr.c
+@@ -51,7 +51,7 @@ struct callback_op {
+       callback_decode_arg_t decode_args;
+       callback_encode_res_t encode_res;
+       long res_maxsize;
+-};
++} __do_const;
+ static struct callback_op callback_ops[];
 diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c
-index 6fa01ae..2790820 100644
+index ebeb94c..ff35337 100644
 --- a/fs/nfs/inode.c
 +++ b/fs/nfs/inode.c
-@@ -1029,16 +1029,16 @@ static int nfs_size_need_update(const struct inode *inode, const struct nfs_fatt
+@@ -1042,16 +1042,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);
  }
  
@@ -50213,11 +54002,55 @@ index 6fa01ae..2790820 100644
  }
  
  void nfs_fattr_init(struct nfs_fattr *fattr)
+diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c
+index 9d1c5db..1e13db8 100644
+--- a/fs/nfsd/nfs4proc.c
++++ b/fs/nfsd/nfs4proc.c
+@@ -1097,7 +1097,7 @@ struct nfsd4_operation {
+       nfsd4op_rsize op_rsize_bop;
+       stateid_getter op_get_currentstateid;
+       stateid_setter op_set_currentstateid;
+-};
++} __do_const;
+ static struct nfsd4_operation nfsd4_ops[];
+diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
+index d1dd710..32ac0e8 100644
+--- a/fs/nfsd/nfs4xdr.c
++++ b/fs/nfsd/nfs4xdr.c
+@@ -1456,7 +1456,7 @@ nfsd4_decode_notsupp(struct nfsd4_compoundargs *argp, void *p)
+ typedef __be32(*nfsd4_dec)(struct nfsd4_compoundargs *argp, void *);
+-static nfsd4_dec nfsd4_dec_ops[] = {
++static const nfsd4_dec nfsd4_dec_ops[] = {
+       [OP_ACCESS]             = (nfsd4_dec)nfsd4_decode_access,
+       [OP_CLOSE]              = (nfsd4_dec)nfsd4_decode_close,
+       [OP_COMMIT]             = (nfsd4_dec)nfsd4_decode_commit,
+@@ -1496,7 +1496,7 @@ static nfsd4_dec nfsd4_dec_ops[] = {
+       [OP_RELEASE_LOCKOWNER]  = (nfsd4_dec)nfsd4_decode_release_lockowner,
+ };
+-static nfsd4_dec nfsd41_dec_ops[] = {
++static const nfsd4_dec nfsd41_dec_ops[] = {
+       [OP_ACCESS]             = (nfsd4_dec)nfsd4_decode_access,
+       [OP_CLOSE]              = (nfsd4_dec)nfsd4_decode_close,
+       [OP_COMMIT]             = (nfsd4_dec)nfsd4_decode_commit,
+@@ -1558,7 +1558,7 @@ static nfsd4_dec nfsd41_dec_ops[] = {
+ };
+ struct nfsd4_minorversion_ops {
+-      nfsd4_dec *decoders;
++      const nfsd4_dec *decoders;
+       int nops;
+ };
 diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
-index f59169e..fd7d359 100644
+index 69c6413..c0408d2 100644
 --- a/fs/nfsd/vfs.c
 +++ b/fs/nfsd/vfs.c
-@@ -941,7 +941,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
+@@ -939,7 +939,7 @@ nfsd_vfs_read(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
        } else {
                oldfs = get_fs();
                set_fs(KERNEL_DS);
@@ -50226,16 +54059,16 @@ index f59169e..fd7d359 100644
                set_fs(oldfs);
        }
  
-@@ -1045,7 +1045,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
+@@ -1026,7 +1026,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);
--      host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &offset);
-+      host_err = vfs_writev(file, (struct iovec __force_user *)vec, vlen, &offset);
+-      host_err = vfs_writev(file, (struct iovec __user *)vec, vlen, &pos);
++      host_err = vfs_writev(file, (struct iovec __force_user *)vec, vlen, &pos);
        set_fs(oldfs);
        if (host_err < 0)
                goto out_nfserr;
-@@ -1587,7 +1587,7 @@ nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp)
+@@ -1572,7 +1572,7 @@ nfsd_readlink(struct svc_rqst *rqstp, struct svc_fh *fhp, char *buf, int *lenp)
         */
  
        oldfs = get_fs(); set_fs(KERNEL_DS);
@@ -50244,11 +54077,94 @@ index f59169e..fd7d359 100644
        set_fs(oldfs);
  
        if (host_err < 0)
+diff --git a/fs/nls/nls_base.c b/fs/nls/nls_base.c
+index fea6bd5..8ee9d81 100644
+--- a/fs/nls/nls_base.c
++++ b/fs/nls/nls_base.c
+@@ -234,20 +234,22 @@ EXPORT_SYMBOL(utf16s_to_utf8s);
+ int register_nls(struct nls_table * nls)
+ {
+-      struct nls_table ** tmp = &tables;
++      struct nls_table *tmp = tables;
+       if (nls->next)
+               return -EBUSY;
+       spin_lock(&nls_lock);
+-      while (*tmp) {
+-              if (nls == *tmp) {
++      while (tmp) {
++              if (nls == tmp) {
+                       spin_unlock(&nls_lock);
+                       return -EBUSY;
+               }
+-              tmp = &(*tmp)->next;
++              tmp = tmp->next;
+       }
+-      nls->next = tables;
++      pax_open_kernel();
++      *(struct nls_table **)&nls->next = tables;
++      pax_close_kernel();
+       tables = nls;
+       spin_unlock(&nls_lock);
+       return 0;       
+@@ -255,12 +257,14 @@ int register_nls(struct nls_table * nls)
+ int unregister_nls(struct nls_table * nls)
+ {
+-      struct nls_table ** tmp = &tables;
++      struct nls_table * const * tmp = &tables;
+       spin_lock(&nls_lock);
+       while (*tmp) {
+               if (nls == *tmp) {
+-                      *tmp = nls->next;
++                      pax_open_kernel();
++                      *(struct nls_table **)tmp = nls->next;
++                      pax_close_kernel();
+                       spin_unlock(&nls_lock);
+                       return 0;
+               }
+diff --git a/fs/nls/nls_euc-jp.c b/fs/nls/nls_euc-jp.c
+index 7424929..35f6be5 100644
+--- a/fs/nls/nls_euc-jp.c
++++ b/fs/nls/nls_euc-jp.c
+@@ -561,8 +561,10 @@ static int __init init_nls_euc_jp(void)
+       p_nls = load_nls("cp932");
+       if (p_nls) {
+-              table.charset2upper = p_nls->charset2upper;
+-              table.charset2lower = p_nls->charset2lower;
++              pax_open_kernel();
++              *(const unsigned char **)&table.charset2upper = p_nls->charset2upper;
++              *(const unsigned char **)&table.charset2lower = p_nls->charset2lower;
++              pax_close_kernel();
+               return register_nls(&table);
+       }
+diff --git a/fs/nls/nls_koi8-ru.c b/fs/nls/nls_koi8-ru.c
+index e7bc1d7..06bd4bb 100644
+--- a/fs/nls/nls_koi8-ru.c
++++ b/fs/nls/nls_koi8-ru.c
+@@ -63,8 +63,10 @@ static int __init init_nls_koi8_ru(void)
+       p_nls = load_nls("koi8-u");
+       if (p_nls) {
+-              table.charset2upper = p_nls->charset2upper;
+-              table.charset2lower = p_nls->charset2lower;
++              pax_open_kernel();
++              *(const unsigned char **)&table.charset2upper = p_nls->charset2upper;
++              *(const unsigned char **)&table.charset2lower = p_nls->charset2lower;
++              pax_close_kernel();
+               return register_nls(&table);
+       }
 diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c
-index 6fcaeb8..9d16d04 100644
+index 9ff4a5e..deb1f0f 100644
 --- a/fs/notify/fanotify/fanotify_user.c
 +++ b/fs/notify/fanotify/fanotify_user.c
-@@ -250,8 +250,8 @@ static ssize_t copy_event_to_user(struct fsnotify_group *group,
+@@ -251,8 +251,8 @@ static ssize_t copy_event_to_user(struct fsnotify_group *group,
  
        fd = fanotify_event_metadata.fd;
        ret = -EFAULT;
@@ -50260,7 +54176,7 @@ index 6fcaeb8..9d16d04 100644
  
        ret = prepare_for_access_response(group, event, fd);
 diff --git a/fs/notify/notification.c b/fs/notify/notification.c
-index c887b13..0fdf472 100644
+index 7b51b05..5ea5ef6 100644
 --- a/fs/notify/notification.c
 +++ b/fs/notify/notification.c
 @@ -57,7 +57,7 @@ static struct kmem_cache *fsnotify_event_holder_cachep;
@@ -50295,10 +54211,10 @@ index 99e3610..02c1068 100644
                                "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 1ecf464..e1ff8bf 100644
+index 5b2d4f0..c6de396 100644
 --- a/fs/ntfs/file.c
 +++ b/fs/ntfs/file.c
-@@ -2232,6 +2232,6 @@ const struct inode_operations ntfs_file_inode_ops = {
+@@ -2242,6 +2242,6 @@ const struct inode_operations ntfs_file_inode_ops = {
  #endif /* NTFS_RW */
  };
  
@@ -50342,7 +54258,7 @@ index d355e6e..578d905 100644
  
  enum ocfs2_local_alloc_state
 diff --git a/fs/ocfs2/suballoc.c b/fs/ocfs2/suballoc.c
-index f169da4..9112253 100644
+index b7e74b5..19c6536 100644
 --- a/fs/ocfs2/suballoc.c
 +++ b/fs/ocfs2/suballoc.c
 @@ -872,7 +872,7 @@ static int ocfs2_reserve_suballoc_bits(struct ocfs2_super *osb,
@@ -50354,7 +54270,7 @@ index f169da4..9112253 100644
  
                /* You should never ask for this much metadata */
                BUG_ON(bits_wanted >
-@@ -2008,7 +2008,7 @@ int ocfs2_claim_metadata(handle_t *handle,
+@@ -2007,7 +2007,7 @@ int ocfs2_claim_metadata(handle_t *handle,
                mlog_errno(status);
                goto bail;
        }
@@ -50363,7 +54279,7 @@ index f169da4..9112253 100644
  
        *suballoc_loc = res.sr_bg_blkno;
        *suballoc_bit_start = res.sr_bit_offset;
-@@ -2172,7 +2172,7 @@ int ocfs2_claim_new_inode_at_loc(handle_t *handle,
+@@ -2171,7 +2171,7 @@ int ocfs2_claim_new_inode_at_loc(handle_t *handle,
        trace_ocfs2_claim_new_inode_at_loc((unsigned long long)di_blkno,
                                           res->sr_bits);
  
@@ -50372,7 +54288,7 @@ index f169da4..9112253 100644
  
        BUG_ON(res->sr_bits != 1);
  
-@@ -2214,7 +2214,7 @@ int ocfs2_claim_new_inode(handle_t *handle,
+@@ -2213,7 +2213,7 @@ int ocfs2_claim_new_inode(handle_t *handle,
                mlog_errno(status);
                goto bail;
        }
@@ -50381,7 +54297,7 @@ index f169da4..9112253 100644
  
        BUG_ON(res.sr_bits != 1);
  
-@@ -2318,7 +2318,7 @@ int __ocfs2_claim_clusters(handle_t *handle,
+@@ -2317,7 +2317,7 @@ int __ocfs2_claim_clusters(handle_t *handle,
                                                      cluster_start,
                                                      num_clusters);
                if (!status)
@@ -50390,7 +54306,7 @@ index f169da4..9112253 100644
        } else {
                if (min_clusters > (osb->bitmap_cpg - 1)) {
                        /* The only paths asking for contiguousness
-@@ -2344,7 +2344,7 @@ int __ocfs2_claim_clusters(handle_t *handle,
+@@ -2343,7 +2343,7 @@ int __ocfs2_claim_clusters(handle_t *handle,
                                ocfs2_desc_bitmap_to_cluster_off(ac->ac_inode,
                                                                 res.sr_bg_blkno,
                                                                 res.sr_bit_offset);
@@ -50438,7 +54354,7 @@ index 0e91ec2..f4b3fc6 100644
        /* Copy the blockcheck stats from the superblock probe */
        osb->osb_ecc_stats = *stats;
 diff --git a/fs/open.c b/fs/open.c
-index 59071f5..c6229a0 100644
+index 9b33c0c..2ffcca2 100644
 --- a/fs/open.c
 +++ b/fs/open.c
 @@ -31,6 +31,8 @@
@@ -50450,18 +54366,25 @@ index 59071f5..c6229a0 100644
  #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)
+@@ -101,6 +103,8 @@ long vfs_truncate(struct path *path, loff_t length)
        error = locks_verify_truncate(inode, NULL, length);
        if (!error)
-               error = security_path_truncate(&path);
-+
-+      if (!error && !gr_acl_handle_truncate(path.dentry, path.mnt))
+               error = security_path_truncate(path);
++      if (!error && !gr_acl_handle_truncate(path->dentry, path->mnt))
 +              error = -EACCES;
-+
        if (!error)
-               error = do_truncate(path.dentry, length, 0, NULL);
+               error = do_truncate(path->dentry, length, 0, NULL);
  
-@@ -362,6 +368,9 @@ SYSCALL_DEFINE3(faccessat, int, dfd, const char __user *, filename, int, mode)
+@@ -178,6 +182,8 @@ static long do_sys_ftruncate(unsigned int fd, loff_t length, int small)
+       error = locks_verify_truncate(inode, f.file, length);
+       if (!error)
+               error = security_path_truncate(&f.file->f_path);
++      if (!error && !gr_acl_handle_truncate(f.file->f_path.dentry, f.file->f_path.mnt))
++              error = -EACCES;
+       if (!error)
+               error = do_truncate(dentry, length, ATTR_MTIME|ATTR_CTIME, f.file);
+       sb_end_write(inode->i_sb);
+@@ -373,6 +379,9 @@ retry:
        if (__mnt_is_readonly(path.mnt))
                res = -EROFS;
  
@@ -50470,8 +54393,8 @@ index 59071f5..c6229a0 100644
 +
  out_path_release:
        path_put(&path);
- out:
-@@ -388,6 +397,8 @@ SYSCALL_DEFINE1(chdir, const char __user *, filename)
+       if (retry_estale(res, lookup_flags)) {
+@@ -404,6 +413,8 @@ retry:
        if (error)
                goto dput_and_out;
  
@@ -50480,7 +54403,7 @@ index 59071f5..c6229a0 100644
        set_fs_pwd(current->fs, &path);
  
  dput_and_out:
-@@ -413,6 +424,13 @@ SYSCALL_DEFINE1(fchdir, unsigned int, fd)
+@@ -433,6 +444,13 @@ SYSCALL_DEFINE1(fchdir, unsigned int, fd)
                goto out_putf;
  
        error = inode_permission(inode, MAY_EXEC | MAY_CHDIR);
@@ -50494,7 +54417,7 @@ index 59071f5..c6229a0 100644
        if (!error)
                set_fs_pwd(current->fs, &f.file->f_path);
  out_putf:
-@@ -441,7 +459,13 @@ SYSCALL_DEFINE1(chroot, const char __user *, filename)
+@@ -462,7 +480,13 @@ retry:
        if (error)
                goto dput_and_out;
  
@@ -50508,7 +54431,7 @@ index 59071f5..c6229a0 100644
        error = 0;
  dput_and_out:
        path_put(&path);
-@@ -459,6 +483,16 @@ static int chmod_common(struct path *path, umode_t mode)
+@@ -484,6 +508,16 @@ static int chmod_common(struct path *path, umode_t mode)
        if (error)
                return error;
        mutex_lock(&inode->i_mutex);
@@ -50525,7 +54448,7 @@ index 59071f5..c6229a0 100644
        error = security_path_chmod(path, mode);
        if (error)
                goto out_unlock;
-@@ -514,6 +548,9 @@ static int chown_common(struct path *path, uid_t user, gid_t group)
+@@ -544,6 +578,9 @@ static int chown_common(struct path *path, uid_t user, gid_t group)
        uid = make_kuid(current_user_ns(), user);
        gid = make_kgid(current_user_ns(), group);
  
@@ -50535,7 +54458,7 @@ index 59071f5..c6229a0 100644
        newattrs.ia_valid =  ATTR_CTIME;
        if (user != (uid_t) -1) {
                if (!uid_valid(uid))
-@@ -925,6 +962,7 @@ long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode)
+@@ -960,6 +997,7 @@ long do_sys_open(int dfd, const char __user *filename, int flags, umode_t mode)
                        } else {
                                fsnotify_open(f);
                                fd_install(fd, f);
@@ -50544,7 +54467,7 @@ index 59071f5..c6229a0 100644
                }
                putname(tmp);
 diff --git a/fs/pipe.c b/fs/pipe.c
-index bd3479d..fb92c4d 100644
+index 8e2e73f..1ef1048 100644
 --- a/fs/pipe.c
 +++ b/fs/pipe.c
 @@ -438,9 +438,9 @@ redo:
@@ -50639,7 +54562,7 @@ index bd3479d..fb92c4d 100644
        }
  
        mutex_unlock(&inode->i_mutex);
-@@ -868,9 +868,9 @@ pipe_rdwr_open(struct inode *inode, struct file *filp)
+@@ -871,9 +871,9 @@ pipe_rdwr_open(struct inode *inode, struct file *filp)
        if (inode->i_pipe) {
                ret = 0;
                if (filp->f_mode & FMODE_READ)
@@ -50651,7 +54574,7 @@ index bd3479d..fb92c4d 100644
        }
  
        mutex_unlock(&inode->i_mutex);
-@@ -962,7 +962,7 @@ void free_pipe_info(struct inode *inode)
+@@ -965,7 +965,7 @@ void free_pipe_info(struct inode *inode)
        inode->i_pipe = NULL;
  }
  
@@ -50660,7 +54583,7 @@ index bd3479d..fb92c4d 100644
  
  /*
   * pipefs_dname() is called from d_path().
-@@ -992,7 +992,8 @@ static struct inode * get_pipe_inode(void)
+@@ -995,7 +995,8 @@ static struct inode * get_pipe_inode(void)
                goto fail_iput;
        inode->i_pipe = pipe;
  
@@ -50702,7 +54625,7 @@ index 15af622..0e9f4467 100644
        help
          Various /proc files exist to monitor process memory utilization:
 diff --git a/fs/proc/array.c b/fs/proc/array.c
-index bd31e02..15cae71 100644
+index 6a91e6f..e54dbc14 100644
 --- a/fs/proc/array.c
 +++ b/fs/proc/array.c
 @@ -60,6 +60,7 @@
@@ -50713,7 +54636,7 @@ index bd31e02..15cae71 100644
  #include <linux/proc_fs.h>
  #include <linux/ioport.h>
  #include <linux/uaccess.h>
-@@ -346,6 +347,21 @@ static void task_cpus_allowed(struct seq_file *m, struct task_struct *task)
+@@ -362,6 +363,21 @@ static void task_cpus_allowed(struct seq_file *m, struct task_struct *task)
        seq_putc(m, '\n');
  }
  
@@ -50735,7 +54658,7 @@ index bd31e02..15cae71 100644
  int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
                        struct pid *pid, struct task_struct *task)
  {
-@@ -363,9 +379,24 @@ int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
+@@ -380,9 +396,24 @@ int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
        task_cpus_allowed(m, task);
        cpuset_task_status_allowed(m, task);
        task_context_switch_counts(m, task);
@@ -50760,7 +54683,7 @@ index bd31e02..15cae71 100644
  static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
                        struct pid *pid, struct task_struct *task, int whole)
  {
-@@ -387,6 +418,13 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
+@@ -404,6 +435,13 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
        char tcomm[sizeof(task->comm)];
        unsigned long flags;
  
@@ -50774,7 +54697,7 @@ index bd31e02..15cae71 100644
        state = *get_task_state(task);
        vsize = eip = esp = 0;
        permitted = ptrace_may_access(task, PTRACE_MODE_READ | PTRACE_MODE_NOAUDIT);
-@@ -458,6 +496,19 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
+@@ -475,6 +513,19 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
                gtime = task->gtime;
        }
  
@@ -50794,7 +54717,7 @@ index bd31e02..15cae71 100644
        /* 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);
-@@ -494,9 +545,15 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
+@@ -511,9 +562,15 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
        seq_put_decimal_ull(m, ' ', vsize);
        seq_put_decimal_ull(m, ' ', mm ? get_mm_rss(mm) : 0);
        seq_put_decimal_ull(m, ' ', rsslim);
@@ -50810,7 +54733,7 @@ index bd31e02..15cae71 100644
        seq_put_decimal_ull(m, ' ', esp);
        seq_put_decimal_ull(m, ' ', eip);
        /* The signal information here is obsolete.
-@@ -518,7 +575,11 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
+@@ -535,7 +592,11 @@ static int do_task_stat(struct seq_file *m, struct pid_namespace *ns,
        seq_put_decimal_ull(m, ' ', cputime_to_clock_t(gtime));
        seq_put_decimal_ll(m, ' ', cputime_to_clock_t(cgtime));
  
@@ -50823,7 +54746,7 @@ index bd31e02..15cae71 100644
                seq_put_decimal_ull(m, ' ', mm->start_data);
                seq_put_decimal_ull(m, ' ', mm->end_data);
                seq_put_decimal_ull(m, ' ', mm->start_brk);
-@@ -556,8 +617,15 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
+@@ -573,8 +634,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;
@@ -50840,7 +54763,7 @@ index bd31e02..15cae71 100644
        if (mm) {
                size = task_statm(mm, &shared, &text, &data, &resident);
                mmput(mm);
-@@ -580,6 +648,13 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
+@@ -597,6 +665,13 @@ int proc_pid_statm(struct seq_file *m, struct pid_namespace *ns,
        return 0;
  }
  
@@ -50855,7 +54778,7 @@ index bd31e02..15cae71 100644
  static struct pid *
  get_children_pid(struct inode *inode, struct pid *pid_prev, loff_t pos)
 diff --git a/fs/proc/base.c b/fs/proc/base.c
-index 9e28356..c485b3c 100644
+index 9b43ff77..0fa9564 100644
 --- a/fs/proc/base.c
 +++ b/fs/proc/base.c
 @@ -111,6 +111,14 @@ struct pid_entry {
@@ -50960,7 +54883,7 @@ index 9e28356..c485b3c 100644
                put_task_struct(task);
        }
        return allowed;
-@@ -562,10 +592,35 @@ static bool has_pid_permissions(struct pid_namespace *pid,
+@@ -555,10 +585,35 @@ static bool has_pid_permissions(struct pid_namespace *pid,
                                 struct task_struct *task,
                                 int hide_pid_min)
  {
@@ -50973,7 +54896,7 @@ index 9e28356..c485b3c 100644
 +              const struct cred *tmpcred = current_cred();
 +              const struct cred *cred = __task_cred(task);
 +
-+              if (!tmpcred->uid || (tmpcred->uid == cred->uid)
++              if (uid_eq(tmpcred->uid, GLOBAL_ROOT_UID) || uid_eq(tmpcred->uid, cred->uid)
 +#ifdef CONFIG_GRKERNSEC_PROC_USERGROUP
 +                      || in_group_p(grsec_proc_gid)
 +#endif
@@ -50996,7 +54919,7 @@ index 9e28356..c485b3c 100644
        return ptrace_may_access(task, PTRACE_MODE_READ);
  }
  
-@@ -583,7 +638,11 @@ static int proc_pid_permission(struct inode *inode, int mask)
+@@ -576,7 +631,11 @@ static int proc_pid_permission(struct inode *inode, int mask)
        put_task_struct(task);
  
        if (!has_perms) {
@@ -51008,7 +54931,7 @@ index 9e28356..c485b3c 100644
                        /*
                         * Let's make getdents(), stat(), and open()
                         * consistent with each other.  If a process
-@@ -681,6 +740,11 @@ static int __mem_open(struct inode *inode, struct file *file, unsigned int mode)
+@@ -674,6 +733,11 @@ static int __mem_open(struct inode *inode, struct file *file, unsigned int mode)
        if (!task)
                return -ESRCH;
  
@@ -51020,7 +54943,7 @@ index 9e28356..c485b3c 100644
        mm = mm_access(task, mode);
        put_task_struct(task);
  
-@@ -696,6 +760,10 @@ static int __mem_open(struct inode *inode, struct file *file, unsigned int mode)
+@@ -689,6 +753,10 @@ static int __mem_open(struct inode *inode, struct file *file, unsigned int mode)
  
        file->private_data = mm;
  
@@ -51031,7 +54954,7 @@ index 9e28356..c485b3c 100644
        return 0;
  }
  
-@@ -717,6 +785,17 @@ static ssize_t mem_rw(struct file *file, char __user *buf,
+@@ -710,6 +778,17 @@ static ssize_t mem_rw(struct file *file, char __user *buf,
        ssize_t copied;
        char *page;
  
@@ -51049,7 +54972,16 @@ index 9e28356..c485b3c 100644
        if (!mm)
                return 0;
  
-@@ -821,6 +900,13 @@ static ssize_t environ_read(struct file *file, char __user *buf,
+@@ -722,7 +801,7 @@ static ssize_t mem_rw(struct file *file, char __user *buf,
+               goto free;
+       while (count > 0) {
+-              int this_len = min_t(int, count, PAGE_SIZE);
++              ssize_t this_len = min_t(ssize_t, count, PAGE_SIZE);
+               if (write && copy_from_user(page, buf, this_len)) {
+                       copied = -EFAULT;
+@@ -814,6 +893,13 @@ static ssize_t environ_read(struct file *file, char __user *buf,
        if (!mm)
                return 0;
  
@@ -51063,7 +54995,16 @@ index 9e28356..c485b3c 100644
        page = (char *)__get_free_page(GFP_TEMPORARY);
        if (!page)
                return -ENOMEM;
-@@ -1436,7 +1522,7 @@ static void *proc_pid_follow_link(struct dentry *dentry, struct nameidata *nd)
+@@ -823,7 +909,7 @@ static ssize_t environ_read(struct file *file, char __user *buf,
+               goto free;
+       while (count > 0) {
+               size_t this_len, max_len;
+-              int retval;
++              ssize_t retval;
+               if (src >= (mm->env_end - mm->env_start))
+                       break;
+@@ -1429,7 +1515,7 @@ static void *proc_pid_follow_link(struct dentry *dentry, struct nameidata *nd)
        int error = -EACCES;
  
        /* Are we allowed to snoop on the tasks file descriptors? */
@@ -51072,7 +55013,7 @@ index 9e28356..c485b3c 100644
                goto out;
  
        error = PROC_I(inode)->op.proc_get_link(dentry, &path);
-@@ -1480,8 +1566,18 @@ static int proc_pid_readlink(struct dentry * dentry, char __user * buffer, int b
+@@ -1473,8 +1559,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? */
@@ -51093,7 +55034,7 @@ index 9e28356..c485b3c 100644
  
        error = PROC_I(inode)->op.proc_get_link(dentry, &path);
        if (error)
-@@ -1531,7 +1627,11 @@ struct inode *proc_pid_make_inode(struct super_block * sb, struct task_struct *t
+@@ -1524,7 +1620,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;
@@ -51105,7 +55046,7 @@ index 9e28356..c485b3c 100644
                rcu_read_unlock();
        }
        security_task_to_inode(task, inode);
-@@ -1567,10 +1667,19 @@ int pid_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
+@@ -1560,10 +1660,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)) ||
@@ -51125,7 +55066,7 @@ index 9e28356..c485b3c 100644
                }
        }
        rcu_read_unlock();
-@@ -1608,11 +1717,20 @@ int pid_revalidate(struct dentry *dentry, unsigned int flags)
+@@ -1601,11 +1710,20 @@ int pid_revalidate(struct dentry *dentry, unsigned int flags)
  
        if (task) {
                if ((inode->i_mode == (S_IFDIR|S_IRUGO|S_IXUGO)) ||
@@ -51146,7 +55087,7 @@ index 9e28356..c485b3c 100644
                        rcu_read_unlock();
                } else {
                        inode->i_uid = GLOBAL_ROOT_UID;
-@@ -2065,6 +2183,9 @@ static struct dentry *proc_pident_lookup(struct inode *dir,
+@@ -2058,6 +2176,9 @@ static struct dentry *proc_pident_lookup(struct inode *dir,
        if (!task)
                goto out_no_task;
  
@@ -51156,7 +55097,7 @@ index 9e28356..c485b3c 100644
        /*
         * Yes, it does not scale. And it should not. Don't add
         * new entries into /proc/<tgid>/ without very good reasons.
-@@ -2109,6 +2230,9 @@ static int proc_pident_readdir(struct file *filp,
+@@ -2102,6 +2223,9 @@ static int proc_pident_readdir(struct file *filp,
        if (!task)
                goto out_no_task;
  
@@ -51166,16 +55107,7 @@ index 9e28356..c485b3c 100644
        ret = 0;
        i = filp->f_pos;
        switch (i) {
-@@ -2380,7 +2504,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)
- {
--      char *s = nd_get_link(nd);
-+      const char *s = nd_get_link(nd);
-       if (!IS_ERR(s))
-               kfree(s);
- }
-@@ -2662,7 +2786,7 @@ static const struct pid_entry tgid_base_stuff[] = {
+@@ -2515,7 +2639,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),
@@ -51184,7 +55116,7 @@ index 9e28356..c485b3c 100644
        INF("syscall",    S_IRUGO, proc_pid_syscall),
  #endif
        INF("cmdline",    S_IRUGO, proc_pid_cmdline),
-@@ -2687,10 +2811,10 @@ static const struct pid_entry tgid_base_stuff[] = {
+@@ -2540,10 +2664,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
@@ -51197,7 +55129,7 @@ index 9e28356..c485b3c 100644
        ONE("stack",      S_IRUGO, proc_pid_stack),
  #endif
  #ifdef CONFIG_SCHEDSTATS
-@@ -2724,6 +2848,9 @@ static const struct pid_entry tgid_base_stuff[] = {
+@@ -2577,6 +2701,9 @@ static const struct pid_entry tgid_base_stuff[] = {
  #ifdef CONFIG_HARDWALL
        INF("hardwall",   S_IRUGO, proc_pid_hardwall),
  #endif
@@ -51207,7 +55139,7 @@ index 9e28356..c485b3c 100644
  #ifdef CONFIG_USER_NS
        REG("uid_map",    S_IRUGO|S_IWUSR, proc_uid_map_operations),
        REG("gid_map",    S_IRUGO|S_IWUSR, proc_gid_map_operations),
-@@ -2856,7 +2983,14 @@ static struct dentry *proc_pid_instantiate(struct inode *dir,
+@@ -2705,7 +2832,14 @@ static struct dentry *proc_pid_instantiate(struct inode *dir,
        if (!inode)
                goto out;
  
@@ -51222,7 +55154,7 @@ index 9e28356..c485b3c 100644
        inode->i_op = &proc_tgid_base_inode_operations;
        inode->i_fop = &proc_tgid_base_operations;
        inode->i_flags|=S_IMMUTABLE;
-@@ -2898,7 +3032,11 @@ struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, unsign
+@@ -2743,7 +2877,11 @@ struct dentry *proc_pid_lookup(struct inode *dir, struct dentry * dentry, unsign
        if (!task)
                goto out;
  
@@ -51234,7 +55166,7 @@ index 9e28356..c485b3c 100644
        put_task_struct(task);
  out:
        return result;
-@@ -2961,6 +3099,8 @@ static int proc_pid_fill_cache(struct file *filp, void *dirent, filldir_t filldi
+@@ -2806,6 +2944,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)
  {
@@ -51243,7 +55175,7 @@ index 9e28356..c485b3c 100644
        return 0;
  }
  
-@@ -3027,7 +3167,7 @@ static const struct pid_entry tid_base_stuff[] = {
+@@ -2857,7 +2997,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),
@@ -51252,7 +55184,7 @@ index 9e28356..c485b3c 100644
        INF("syscall",   S_IRUGO, proc_pid_syscall),
  #endif
        INF("cmdline",   S_IRUGO, proc_pid_cmdline),
-@@ -3054,10 +3194,10 @@ static const struct pid_entry tid_base_stuff[] = {
+@@ -2884,10 +3024,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
@@ -51298,7 +55230,7 @@ index b143471..bb105e5 100644
  }
  module_init(proc_devices_init);
 diff --git a/fs/proc/fd.c b/fs/proc/fd.c
-index f28a875..c467953 100644
+index d7a4a28..0201742 100644
 --- a/fs/proc/fd.c
 +++ b/fs/proc/fd.c
 @@ -25,7 +25,8 @@ static int seq_show(struct seq_file *m, void *v)
@@ -51311,7 +55243,7 @@ index f28a875..c467953 100644
        put_task_struct(task);
  
        if (files) {
-@@ -300,11 +301,21 @@ static struct dentry *proc_lookupfd(struct inode *dir, struct dentry *dentry,
+@@ -302,11 +303,21 @@ static struct dentry *proc_lookupfd(struct inode *dir, struct dentry *dentry,
   */
  int proc_fd_permission(struct inode *inode, int mask)
  {
@@ -51336,7 +55268,7 @@ index f28a875..c467953 100644
  }
  
 diff --git a/fs/proc/inode.c b/fs/proc/inode.c
-index 3b22bbd..895b58c 100644
+index 0ac1e1b..0497e58 100644
 --- a/fs/proc/inode.c
 +++ b/fs/proc/inode.c
 @@ -21,11 +21,17 @@
@@ -51357,10 +55289,10 @@ index 3b22bbd..895b58c 100644
  static void proc_evict_inode(struct inode *inode)
  {
        struct proc_dir_entry *de;
-@@ -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);
+@@ -53,6 +59,13 @@ static void proc_evict_inode(struct inode *inode)
+       ns = PROC_I(inode)->ns;
+       if (ns_ops && ns)
+               ns_ops->put(ns);
 +
 +#ifdef CONFIG_PROC_SYSCTL
 +      if (inode->i_op == &proc_sys_inode_operations ||
@@ -51384,10 +55316,10 @@ index 3b22bbd..895b58c 100644
                if (de->size)
                        inode->i_size = de->size;
 diff --git a/fs/proc/internal.h b/fs/proc/internal.h
-index 43973b0..a20e704 100644
+index 252544c..04395b9 100644
 --- a/fs/proc/internal.h
 +++ b/fs/proc/internal.h
-@@ -54,6 +54,9 @@ extern int proc_pid_status(struct seq_file *m, struct pid_namespace *ns,
+@@ -55,6 +55,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);
@@ -51398,7 +55330,7 @@ index 43973b0..a20e704 100644
  
  extern const struct file_operations proc_tid_children_operations;
 diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c
-index 86c67ee..cdca321 100644
+index e96d4f1..8b116ed 100644
 --- a/fs/proc/kcore.c
 +++ b/fs/proc/kcore.c
 @@ -480,9 +480,10 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos)
@@ -51486,7 +55418,7 @@ index b1822dd..df622cb 100644
  
        seq_putc(m, '\n');
 diff --git a/fs/proc/proc_net.c b/fs/proc/proc_net.c
-index fe72cd0..cb9b67d 100644
+index fe72cd0..21b52ff 100644
 --- a/fs/proc/proc_net.c
 +++ b/fs/proc/proc_net.c
 @@ -23,6 +23,7 @@
@@ -51506,17 +55438,17 @@ index fe72cd0..cb9b67d 100644
 +#endif
 +
 +#ifdef CONFIG_GRKERNSEC_PROC_USER
-+      if (cred->fsuid)
++      if (!uid_eq(cred->fsuid, GLOBAL_ROOT_UID))
 +              return net;
 +#elif defined(CONFIG_GRKERNSEC_PROC_USERGROUP)
-+      if (cred->fsuid && !in_group_p(grsec_proc_gid))
++      if (!uid_eq(cred->fsuid, GLOBAL_ROOT_UID) && !in_group_p(grsec_proc_gid))
 +              return net;
 +#endif
  
        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 a781bdf..6665284 100644
+index 1827d88..43b0279 100644
 --- a/fs/proc/proc_sysctl.c
 +++ b/fs/proc/proc_sysctl.c
 @@ -12,11 +12,15 @@
@@ -51537,7 +55469,7 @@ index a781bdf..6665284 100644
  
  void proc_sys_poll_notify(struct ctl_table_poll *poll)
  {
-@@ -465,6 +469,9 @@ static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,
+@@ -466,6 +470,9 @@ static struct dentry *proc_sys_lookup(struct inode *dir, struct dentry *dentry,
  
        err = NULL;
        d_set_d_op(dentry, &proc_sys_dentry_operations);
@@ -51547,7 +55479,7 @@ index a781bdf..6665284 100644
        d_add(dentry, inode);
  
  out:
-@@ -480,18 +487,20 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf,
+@@ -481,6 +488,7 @@ 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;
@@ -51555,21 +55487,16 @@ index a781bdf..6665284 100644
        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
+@@ -492,7 +500,7 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf,
         * 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))
+-      if (sysctl_perm(head, table, write ? MAY_WRITE : MAY_READ))
++      if (sysctl_perm(head, table, op))
                goto out;
  
        /* if that can happen at all, it should be -EINVAL, not -EISDIR */
-@@ -499,6 +508,22 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf,
+@@ -500,6 +508,22 @@ static ssize_t proc_sys_call_handler(struct file *filp, void __user *buf,
        if (!table->proc_handler)
                goto out;
  
@@ -51592,7 +55519,7 @@ index a781bdf..6665284 100644
        /* careful: calling conventions are nasty here */
        res = count;
        error = table->proc_handler(table, write, buf, &res, ppos);
-@@ -596,6 +621,9 @@ static int proc_sys_fill_cache(struct file *filp, void *dirent,
+@@ -597,6 +621,9 @@ static int proc_sys_fill_cache(struct file *filp, void *dirent,
                                return -ENOMEM;
                        } else {
                                d_set_d_op(child, &proc_sys_dentry_operations);
@@ -51602,7 +55529,7 @@ index a781bdf..6665284 100644
                                d_add(child, inode);
                        }
                } else {
-@@ -639,6 +667,9 @@ static int scan(struct ctl_table_header *head, ctl_table *table,
+@@ -640,6 +667,9 @@ static int scan(struct ctl_table_header *head, ctl_table *table,
        if ((*pos)++ < file->f_pos)
                return 0;
  
@@ -51612,7 +55539,7 @@ index a781bdf..6665284 100644
        if (unlikely(S_ISLNK(table->mode)))
                res = proc_sys_link_fill_cache(file, dirent, filldir, head, table);
        else
-@@ -756,6 +787,9 @@ static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct
+@@ -750,6 +780,9 @@ static int proc_sys_getattr(struct vfsmount *mnt, struct dentry *dentry, struct
        if (IS_ERR(head))
                return PTR_ERR(head);
  
@@ -51622,7 +55549,7 @@ index a781bdf..6665284 100644
        generic_fillattr(inode, stat);
        if (table)
                stat->mode = (stat->mode & S_IFMT) | table->mode;
-@@ -778,13 +812,13 @@ static const struct file_operations proc_sys_dir_file_operations = {
+@@ -772,13 +805,13 @@ static const struct file_operations proc_sys_dir_file_operations = {
        .llseek         = generic_file_llseek,
  };
  
@@ -51638,11 +55565,80 @@ index a781bdf..6665284 100644
        .lookup         = proc_sys_lookup,
        .permission     = proc_sys_permission,
        .setattr        = proc_sys_setattr,
+@@ -854,7 +887,7 @@ static struct ctl_dir *find_subdir(struct ctl_dir *dir,
+ static struct ctl_dir *new_dir(struct ctl_table_set *set,
+                              const char *name, int namelen)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       struct ctl_dir *new;
+       struct ctl_node *node;
+       char *new_name;
+@@ -866,7 +899,7 @@ static struct ctl_dir *new_dir(struct ctl_table_set *set,
+               return NULL;
+       node = (struct ctl_node *)(new + 1);
+-      table = (struct ctl_table *)(node + 1);
++      table = (ctl_table_no_const *)(node + 1);
+       new_name = (char *)(table + 2);
+       memcpy(new_name, name, namelen);
+       new_name[namelen] = '\0';
+@@ -1035,7 +1068,8 @@ static int sysctl_check_table(const char *path, struct ctl_table *table)
+ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table *table,
+       struct ctl_table_root *link_root)
+ {
+-      struct ctl_table *link_table, *entry, *link;
++      ctl_table_no_const *link_table, *link;
++      struct ctl_table *entry;
+       struct ctl_table_header *links;
+       struct ctl_node *node;
+       char *link_name;
+@@ -1058,7 +1092,7 @@ static struct ctl_table_header *new_links(struct ctl_dir *dir, struct ctl_table
+               return NULL;
+       node = (struct ctl_node *)(links + 1);
+-      link_table = (struct ctl_table *)(node + nr_entries);
++      link_table = (ctl_table_no_const *)(node + nr_entries);
+       link_name = (char *)&link_table[nr_entries + 1];
+       for (link = link_table, entry = table; entry->procname; link++, entry++) {
+@@ -1306,8 +1340,8 @@ static int register_leaf_sysctl_tables(const char *path, char *pos,
+       struct ctl_table_header ***subheader, struct ctl_table_set *set,
+       struct ctl_table *table)
+ {
+-      struct ctl_table *ctl_table_arg = NULL;
+-      struct ctl_table *entry, *files;
++      ctl_table_no_const *ctl_table_arg = NULL, *files = NULL;
++      struct ctl_table *entry;
+       int nr_files = 0;
+       int nr_dirs = 0;
+       int err = -ENOMEM;
+@@ -1319,10 +1353,9 @@ static int register_leaf_sysctl_tables(const char *path, char *pos,
+                       nr_files++;
+       }
+-      files = table;
+       /* If there are mixed files and directories we need a new table */
+       if (nr_dirs && nr_files) {
+-              struct ctl_table *new;
++              ctl_table_no_const *new;
+               files = kzalloc(sizeof(struct ctl_table) * (nr_files + 1),
+                               GFP_KERNEL);
+               if (!files)
+@@ -1340,7 +1373,7 @@ static int register_leaf_sysctl_tables(const char *path, char *pos,
+       /* Register everything except a directory full of subdirectories */
+       if (nr_files || !nr_dirs) {
+               struct ctl_table_header *header;
+-              header = __register_sysctl_table(set, path, files);
++              header = __register_sysctl_table(set, path, files ? files : table);
+               if (!header) {
+                       kfree(ctl_table_arg);
+                       goto out;
 diff --git a/fs/proc/root.c b/fs/proc/root.c
-index 9889a92..2613b48 100644
+index 9c7fab1..ed1c8e0 100644
 --- a/fs/proc/root.c
 +++ b/fs/proc/root.c
-@@ -187,7 +187,15 @@ void __init proc_root_init(void)
+@@ -180,7 +180,15 @@ void __init proc_root_init(void)
  #ifdef CONFIG_PROC_DEVICETREE
        proc_device_tree_init();
  #endif
@@ -51658,8 +55654,21 @@ index 9889a92..2613b48 100644
        proc_sys_init();
  }
  
+diff --git a/fs/proc/self.c b/fs/proc/self.c
+index aa5cc3b..c91a5d0 100644
+--- a/fs/proc/self.c
++++ b/fs/proc/self.c
+@@ -37,7 +37,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)
+ {
+-      char *s = nd_get_link(nd);
++      const char *s = nd_get_link(nd);
+       if (!IS_ERR(s))
+               kfree(s);
+ }
 diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c
-index 90c63f9..e662cfc 100644
+index ca5ce7f..02c1cf0 100644
 --- a/fs/proc/task_mmu.c
 +++ b/fs/proc/task_mmu.c
 @@ -11,12 +11,19 @@
@@ -51785,7 +55794,7 @@ index 90c63f9..e662cfc 100644
        show_map_vma(m, vma, is_pid);
  
        if (m->count < m->size)  /* vma is copied successfully */
-@@ -538,12 +574,23 @@ static int show_smap(struct seq_file *m, void *v, int is_pid)
+@@ -589,12 +625,23 @@ static int show_smap(struct seq_file *m, void *v, int is_pid)
                .private = &mss,
        };
  
@@ -51814,7 +55823,7 @@ index 90c63f9..e662cfc 100644
        show_map_vma(m, vma, is_pid);
  
        seq_printf(m,
-@@ -561,7 +608,11 @@ static int show_smap(struct seq_file *m, void *v, int is_pid)
+@@ -612,7 +659,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",
@@ -51826,7 +55835,7 @@ index 90c63f9..e662cfc 100644
                   mss.resident >> 10,
                   (unsigned long)(mss.pss >> (10 + PSS_SHIFT)),
                   mss.shared_clean  >> 10,
-@@ -1211,6 +1262,13 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
+@@ -1264,6 +1315,13 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
        int n;
        char buffer[50];
  
@@ -51840,8 +55849,8 @@ index 90c63f9..e662cfc 100644
        if (!mm)
                return 0;
  
-@@ -1228,11 +1286,15 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
-       mpol_to_str(buffer, sizeof(buffer), pol, 0);
+@@ -1281,11 +1339,15 @@ static int show_numa_map(struct seq_file *m, void *v, int is_pid)
+       mpol_to_str(buffer, sizeof(buffer), pol);
        mpol_cond_put(pol);
  
 +#ifdef CONFIG_GRKERNSEC_PROC_MEMMAP
@@ -51879,21 +55888,28 @@ index 1ccfa53..0848f95 100644
        } else if (mm) {
                pid_t tid = vm_is_stack(priv->task, vma, is_pid);
  
-diff --git a/fs/pstore/ftrace.c b/fs/pstore/ftrace.c
-index 2d57e1a..43b1280 100644
---- a/fs/pstore/ftrace.c
-+++ b/fs/pstore/ftrace.c
-@@ -28,7 +28,9 @@
- #include "internal.h"
+diff --git a/fs/qnx6/qnx6.h b/fs/qnx6/qnx6.h
+index b00fcc9..e0c6381 100644
+--- a/fs/qnx6/qnx6.h
++++ b/fs/qnx6/qnx6.h
+@@ -74,7 +74,7 @@ enum {
+       BYTESEX_BE,
+ };
  
- static void notrace pstore_ftrace_call(unsigned long ip,
--                                     unsigned long parent_ip)
-+                                     unsigned long parent_ip,
-+                                     struct ftrace_ops *op,
-+                                     struct pt_regs *regs)
+-static inline __u64 fs64_to_cpu(struct qnx6_sb_info *sbi, __fs64 n)
++static inline __u64 __intentional_overflow(-1) fs64_to_cpu(struct qnx6_sb_info *sbi, __fs64 n)
  {
-       unsigned long flags;
-       struct pstore_ftrace_record rec = {};
+       if (sbi->s_bytesex == BYTESEX_LE)
+               return le64_to_cpu((__force __le64)n);
+@@ -90,7 +90,7 @@ static inline __fs64 cpu_to_fs64(struct qnx6_sb_info *sbi, __u64 n)
+               return (__force __fs64)cpu_to_be64(n);
+ }
+-static inline __u32 fs32_to_cpu(struct qnx6_sb_info *sbi, __fs32 n)
++static inline __u32 __intentional_overflow(-1) fs32_to_cpu(struct qnx6_sb_info *sbi, __fs32 n)
+ {
+       if (sbi->s_bytesex == BYTESEX_LE)
+               return le32_to_cpu((__force __le32)n);
 diff --git a/fs/quota/netlink.c b/fs/quota/netlink.c
 index 16e8abb..2dcf914 100644
 --- a/fs/quota/netlink.c
@@ -51916,19 +55932,6 @@ index 16e8abb..2dcf914 100644
                        &quota_genl_family, 0, QUOTA_NL_C_WARNING);
        if (!msg_head) {
                printk(KERN_ERR
-diff --git a/fs/read_write.c b/fs/read_write.c
-index d065348..8e2b43d 100644
---- a/fs/read_write.c
-+++ b/fs/read_write.c
-@@ -935,6 +935,8 @@ ssize_t do_sendfile(int out_fd, int in_fd, loff_t *ppos, size_t count,
-       if (retval > 0) {
-               add_rchar(current, retval);
-               add_wchar(current, retval);
-+              fsnotify_access(in.file);
-+              fsnotify_modify(out.file);
-       }
-       inc_syscr(current);
 diff --git a/fs/readdir.c b/fs/readdir.c
 index 5e69ef5..e5d9099 100644
 --- a/fs/readdir.c
@@ -52058,7 +56061,7 @@ index e60e870..f40ac16 100644
                   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 33215f5..c5d427a 100644
+index 157e474..65a6114 100644
 --- a/fs/reiserfs/reiserfs.h
 +++ b/fs/reiserfs/reiserfs.h
 @@ -453,7 +453,7 @@ struct reiserfs_sb_info {
@@ -52079,6 +56082,21 @@ index 33215f5..c5d427a 100644
  #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/reiserfs/xattr.c b/fs/reiserfs/xattr.c
+index c196369..4cce1d9 100644
+--- a/fs/reiserfs/xattr.c
++++ b/fs/reiserfs/xattr.c
+@@ -187,8 +187,8 @@ fill_with_dentries(void *buf, const char *name, int namelen, loff_t offset,
+       if (dbuf->count == ARRAY_SIZE(dbuf->dentries))
+               return -ENOSPC;
+-      if (name[0] == '.' && (name[1] == '\0' ||
+-                             (name[1] == '.' && name[2] == '\0')))
++      if (name[0] == '.' && (namelen < 2 ||
++                             (namelen == 2 && name[1] == '.')))
+               return 0;
+       dentry = lookup_one_len(name, dbuf->xadir, namelen);
 diff --git a/fs/select.c b/fs/select.c
 index 2ef72d9..f213b17 100644
 --- a/fs/select.c
@@ -52100,7 +56118,7 @@ index 2ef72d9..f213b17 100644
                return -EINVAL;
  
 diff --git a/fs/seq_file.c b/fs/seq_file.c
-index 99dffab..e4fcb71 100644
+index f2bc3df..239d4f6 100644
 --- a/fs/seq_file.c
 +++ b/fs/seq_file.c
 @@ -10,6 +10,7 @@
@@ -52167,7 +56185,7 @@ index 99dffab..e4fcb71 100644
  
        if (op) {
 diff --git a/fs/splice.c b/fs/splice.c
-index 48c7bd1..d0740e4 100644
+index 6909d89..5b2e8f9 100644
 --- a/fs/splice.c
 +++ b/fs/splice.c
 @@ -194,7 +194,7 @@ ssize_t splice_to_pipe(struct pipe_inode_info *pipe,
@@ -52231,7 +56249,7 @@ index 48c7bd1..d0740e4 100644
                        return 0;
  
                if (sd->flags & SPLICE_F_NONBLOCK)
-@@ -1192,7 +1192,7 @@ ssize_t splice_direct_to_actor(struct file *in, struct splice_desc *sd,
+@@ -1189,7 +1189,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.
                 */
@@ -52240,7 +56258,7 @@ index 48c7bd1..d0740e4 100644
  
                current->splice_pipe = pipe;
        }
-@@ -1741,9 +1741,9 @@ static int ipipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
+@@ -1738,9 +1738,9 @@ static int ipipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
                        ret = -ERESTARTSYS;
                        break;
                }
@@ -52252,7 +56270,7 @@ index 48c7bd1..d0740e4 100644
                        if (flags & SPLICE_F_NONBLOCK) {
                                ret = -EAGAIN;
                                break;
-@@ -1775,7 +1775,7 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
+@@ -1772,7 +1772,7 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
        pipe_lock(pipe);
  
        while (pipe->nrbufs >= pipe->buffers) {
@@ -52261,7 +56279,7 @@ index 48c7bd1..d0740e4 100644
                        send_sig(SIGPIPE, current, 0);
                        ret = -EPIPE;
                        break;
-@@ -1788,9 +1788,9 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
+@@ -1785,9 +1785,9 @@ static int opipe_prep(struct pipe_inode_info *pipe, unsigned int flags)
                        ret = -ERESTARTSYS;
                        break;
                }
@@ -52273,7 +56291,7 @@ index 48c7bd1..d0740e4 100644
        }
  
        pipe_unlock(pipe);
-@@ -1826,14 +1826,14 @@ retry:
+@@ -1823,14 +1823,14 @@ retry:
        pipe_double_lock(ipipe, opipe);
  
        do {
@@ -52290,7 +56308,7 @@ index 48c7bd1..d0740e4 100644
                        break;
  
                /*
-@@ -1930,7 +1930,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
+@@ -1927,7 +1927,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
        pipe_double_lock(ipipe, opipe);
  
        do {
@@ -52299,7 +56317,7 @@ index 48c7bd1..d0740e4 100644
                        send_sig(SIGPIPE, current, 0);
                        if (!ret)
                                ret = -EPIPE;
-@@ -1975,7 +1975,7 @@ static int link_pipe(struct pipe_inode_info *ipipe,
+@@ -1972,7 +1972,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
         */
@@ -52309,7 +56327,7 @@ index 48c7bd1..d0740e4 100644
  
        pipe_unlock(ipipe);
 diff --git a/fs/stat.c b/fs/stat.c
-index eae4946..6198f55 100644
+index 14f4545..9b7f55b 100644
 --- a/fs/stat.c
 +++ b/fs/stat.c
 @@ -28,8 +28,13 @@ void generic_fillattr(struct inode *inode, struct kstat *stat)
@@ -52345,10 +56363,40 @@ index eae4946..6198f55 100644
  
        generic_fillattr(inode, stat);
        return 0;
+diff --git a/fs/sysfs/bin.c b/fs/sysfs/bin.c
+index 614b2b5..4d321e6 100644
+--- a/fs/sysfs/bin.c
++++ b/fs/sysfs/bin.c
+@@ -235,13 +235,13 @@ static int bin_page_mkwrite(struct vm_area_struct *vma, struct vm_fault *vmf)
+       return ret;
+ }
+-static int bin_access(struct vm_area_struct *vma, unsigned long addr,
+-                void *buf, int len, int write)
++static ssize_t bin_access(struct vm_area_struct *vma, unsigned long addr,
++                void *buf, size_t len, int write)
+ {
+       struct file *file = vma->vm_file;
+       struct bin_buffer *bb = file->private_data;
+       struct sysfs_dirent *attr_sd = file->f_path.dentry->d_fsdata;
+-      int ret;
++      ssize_t ret;
+       if (!bb->vm_ops)
+               return -EINVAL;
 diff --git a/fs/sysfs/dir.c b/fs/sysfs/dir.c
-index 2fbdff6..5530a61 100644
+index 1f8c823..ed57cfe 100644
 --- a/fs/sysfs/dir.c
 +++ b/fs/sysfs/dir.c
+@@ -40,7 +40,7 @@ static DEFINE_IDA(sysfs_ino_ida);
+  *
+  *    Returns 31 bit hash of ns + name (so it fits in an off_t )
+  */
+-static unsigned int sysfs_name_hash(const void *ns, const char *name)
++static unsigned int sysfs_name_hash(const void *ns, const unsigned char *name)
+ {
+       unsigned long hash = init_name_hash();
+       unsigned int len = strlen(name);
 @@ -685,6 +685,18 @@ static int create_dir(struct kobject *kobj, struct sysfs_dirent *parent_sd,
        struct sysfs_dirent *sd;
        int rc;
@@ -52369,7 +56417,7 @@ index 2fbdff6..5530a61 100644
        sd = sysfs_new_dirent(name, mode, SYSFS_DIR);
        if (!sd)
 diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
-index 00012e3..8392349 100644
+index 602f56d..6853db8 100644
 --- a/fs/sysfs/file.c
 +++ b/fs/sysfs/file.c
 @@ -37,7 +37,7 @@ static DEFINE_SPINLOCK(sysfs_open_dirent_lock);
@@ -52430,6 +56478,32 @@ index 3c9eb56..9dea5be 100644
        if (!IS_ERR(page))
                free_page((unsigned long)page);
  }
+diff --git a/fs/sysv/sysv.h b/fs/sysv/sysv.h
+index 69d4889..a810bd4 100644
+--- a/fs/sysv/sysv.h
++++ b/fs/sysv/sysv.h
+@@ -188,7 +188,7 @@ static inline u32 PDP_swab(u32 x)
+ #endif
+ }
+-static inline __u32 fs32_to_cpu(struct sysv_sb_info *sbi, __fs32 n)
++static inline __u32 __intentional_overflow(-1) fs32_to_cpu(struct sysv_sb_info *sbi, __fs32 n)
+ {
+       if (sbi->s_bytesex == BYTESEX_PDP)
+               return PDP_swab((__force __u32)n);
+diff --git a/fs/ubifs/io.c b/fs/ubifs/io.c
+index e18b988..f1d4ad0f 100644
+--- a/fs/ubifs/io.c
++++ b/fs/ubifs/io.c
+@@ -155,7 +155,7 @@ int ubifs_leb_change(struct ubifs_info *c, int lnum, const void *buf, int len)
+       return err;
+ }
+-int ubifs_leb_unmap(struct ubifs_info *c, int lnum)
++int __intentional_overflow(-1) ubifs_leb_unmap(struct ubifs_info *c, int lnum)
+ {
+       int err;
 diff --git a/fs/udf/misc.c b/fs/udf/misc.c
 index c175b4d..8f36a16 100644
 --- a/fs/udf/misc.c
@@ -52443,8 +56517,30 @@ index c175b4d..8f36a16 100644
        u8 checksum = 0;
        int i;
        for (i = 0; i < sizeof(struct tag); ++i)
+diff --git a/fs/ufs/swab.h b/fs/ufs/swab.h
+index 8d974c4..b82f6ec 100644
+--- a/fs/ufs/swab.h
++++ b/fs/ufs/swab.h
+@@ -22,7 +22,7 @@ enum {
+       BYTESEX_BE
+ };
+-static inline u64
++static inline u64 __intentional_overflow(-1)
+ fs64_to_cpu(struct super_block *sbp, __fs64 n)
+ {
+       if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE)
+@@ -40,7 +40,7 @@ cpu_to_fs64(struct super_block *sbp, u64 n)
+               return (__force __fs64)cpu_to_be64(n);
+ }
+-static inline u32
++static inline u32 __intentional_overflow(-1)
+ fs32_to_cpu(struct super_block *sbp, __fs32 n)
+ {
+       if (UFS_SB(sbp)->s_bytesex == BYTESEX_LE)
 diff --git a/fs/utimes.c b/fs/utimes.c
-index bb0696a..552054b 100644
+index f4fb7ec..3fe03c0 100644
 --- a/fs/utimes.c
 +++ b/fs/utimes.c
 @@ -1,6 +1,7 @@
@@ -52469,7 +56565,7 @@ index bb0696a..552054b 100644
        error = notify_change(path->dentry, &newattrs);
        mutex_unlock(&inode->i_mutex);
 diff --git a/fs/xattr.c b/fs/xattr.c
-index e21c119..21dfc7c 100644
+index 3377dff..4feded6 100644
 --- a/fs/xattr.c
 +++ b/fs/xattr.c
 @@ -319,7 +319,7 @@ EXPORT_SYMBOL_GPL(vfs_removexattr);
@@ -52495,7 +56591,7 @@ index e21c119..21dfc7c 100644
  out:
        if (vvalue)
                vfree(vvalue);
-@@ -376,7 +381,7 @@ SYSCALL_DEFINE5(setxattr, const char __user *, pathname,
+@@ -377,7 +382,7 @@ retry:
                return error;
        error = mnt_want_write(path.mnt);
        if (!error) {
@@ -52504,7 +56600,7 @@ index e21c119..21dfc7c 100644
                mnt_drop_write(path.mnt);
        }
        path_put(&path);
-@@ -395,7 +400,7 @@ SYSCALL_DEFINE5(lsetxattr, const char __user *, pathname,
+@@ -401,7 +406,7 @@ retry:
                return error;
        error = mnt_want_write(path.mnt);
        if (!error) {
@@ -52513,7 +56609,7 @@ index e21c119..21dfc7c 100644
                mnt_drop_write(path.mnt);
        }
        path_put(&path);
-@@ -406,16 +411,14 @@ SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name,
+@@ -416,16 +421,14 @@ SYSCALL_DEFINE5(fsetxattr, int, fd, const char __user *, name,
                const void __user *,value, size_t, size, int, flags)
  {
        struct fd f = fdget(fd);
@@ -52548,10 +56644,10 @@ index 9fbea87..6b19972 100644
        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 83d0cf3..2ef526b 100644
+index 572a858..12a9b0d 100644
 --- a/fs/xfs/xfs_bmap.c
 +++ b/fs/xfs/xfs_bmap.c
-@@ -189,7 +189,7 @@ xfs_bmap_validate_ret(
+@@ -192,7 +192,7 @@ xfs_bmap_validate_ret(
        int                     nmap,
        int                     ret_nmap);
  #else
@@ -52582,10 +56678,10 @@ index 1b9fc3e..e1bdde0 100644
                        *offset = off & 0x7fffffff;
                        return 0;
 diff --git a/fs/xfs/xfs_ioctl.c b/fs/xfs/xfs_ioctl.c
-index c1df3c6..f987db6 100644
+index c1c3ef8..0952438 100644
 --- a/fs/xfs/xfs_ioctl.c
 +++ b/fs/xfs/xfs_ioctl.c
-@@ -126,7 +126,7 @@ xfs_find_handle(
+@@ -127,7 +127,7 @@ xfs_find_handle(
        }
  
        error = -EFAULT;
@@ -52595,10 +56691,10 @@ index c1df3c6..f987db6 100644
                goto out_put;
  
 diff --git a/fs/xfs/xfs_iops.c b/fs/xfs/xfs_iops.c
-index 4e00cf0..3374374 100644
+index d82efaa..0904a8e 100644
 --- a/fs/xfs/xfs_iops.c
 +++ b/fs/xfs/xfs_iops.c
-@@ -394,7 +394,7 @@ xfs_vn_put_link(
+@@ -395,7 +395,7 @@ xfs_vn_put_link(
        struct nameidata *nd,
        void            *p)
  {
@@ -53680,10 +57776,10 @@ index 0000000..1b9afa9
 +endif
 diff --git a/grsecurity/gracl.c b/grsecurity/gracl.c
 new file mode 100644
-index 0000000..960766a
+index 0000000..b306b36
 --- /dev/null
 +++ b/grsecurity/gracl.c
-@@ -0,0 +1,4003 @@
+@@ -0,0 +1,4071 @@
 +#include <linux/kernel.h>
 +#include <linux/module.h>
 +#include <linux/sched.h>
@@ -53710,6 +57806,8 @@ index 0000000..960766a
 +#include <linux/fdtable.h>
 +#include <linux/percpu.h>
 +#include <linux/lglock.h>
++#include <linux/hugetlb.h>
++#include <linux/posix-timers.h>
 +#include "../fs/mount.h"
 +
 +#include <asm/uaccess.h>
@@ -53764,8 +57862,9 @@ index 0000000..960766a
 +
 +extern struct vfsmount *pipe_mnt;
 +extern struct vfsmount *shm_mnt;
++
 +#ifdef CONFIG_HUGETLBFS
-+extern struct vfsmount *hugetlbfs_vfsmount;
++extern struct vfsmount *hugetlbfs_vfsmount[HUGE_MAX_HSTATE];
 +#endif
 +
 +static struct acl_object_label *fakefs_obj_rw;
@@ -53977,11 +58076,11 @@ index 0000000..960766a
 +      /* we can't use real_root.dentry, real_root.mnt, because they belong only to the RBAC system */
 +      get_fs_root(reaper->fs, &root);
 +
-+      write_seqlock(&rename_lock);
 +      br_read_lock(&vfsmount_lock);
++      write_seqlock(&rename_lock);
 +      res = gen_full_path(&path, &root, buf, buflen);
-+      br_read_unlock(&vfsmount_lock);
 +      write_sequnlock(&rename_lock);
++      br_read_unlock(&vfsmount_lock);
 +
 +      path_put(&root);
 +      return res;
@@ -53991,12 +58090,12 @@ index 0000000..960766a
 +gr_to_filename_rbac(const struct dentry *dentry, const struct vfsmount *mnt)
 +{
 +      char *ret;
-+      write_seqlock(&rename_lock);
 +      br_read_lock(&vfsmount_lock);
++      write_seqlock(&rename_lock);
 +      ret = __d_real_path(dentry, mnt, per_cpu_ptr(gr_shared_page[0],smp_processor_id()),
 +                           PAGE_SIZE);
-+      br_read_unlock(&vfsmount_lock);
 +      write_sequnlock(&rename_lock);
++      br_read_unlock(&vfsmount_lock);
 +      return ret;
 +}
 +
@@ -54007,8 +58106,8 @@ index 0000000..960766a
 +      char *buf;
 +      int buflen;
 +
-+      write_seqlock(&rename_lock);
 +      br_read_lock(&vfsmount_lock);
++      write_seqlock(&rename_lock);
 +      buf = per_cpu_ptr(gr_shared_page[0], smp_processor_id());
 +      ret = __d_real_path(dentry, mnt, buf, PAGE_SIZE - 6);
 +      buflen = (int)(ret - buf);
@@ -54016,8 +58115,8 @@ index 0000000..960766a
 +              prepend(&ret, &buflen, "/proc", 5);
 +      else
 +              ret = strcpy(buf, "<path too long>");
-+      br_read_unlock(&vfsmount_lock);
 +      write_sequnlock(&rename_lock);
++      br_read_unlock(&vfsmount_lock);
 +      return ret;
 +}
 +
@@ -55540,6 +59639,20 @@ index 0000000..960766a
 +      return __full_lookup(orig_dentry, orig_mnt, inode, device, subj, path, newglob);
 +}
 +
++#ifdef CONFIG_HUGETLBFS
++static inline bool
++is_hugetlbfs_mnt(const struct vfsmount *mnt)
++{
++      int i;
++      for (i = 0; i < HUGE_MAX_HSTATE; i++) {
++              if (unlikely(hugetlbfs_vfsmount[i] == mnt))
++                      return true;
++      }
++
++      return false;
++}
++#endif
++
 +static struct acl_object_label *
 +__chk_obj_label(const struct dentry *l_dentry, const struct vfsmount *l_mnt,
 +            const struct acl_subject_label *subj, char *path, const int checkglob)
@@ -55550,15 +59663,15 @@ index 0000000..960766a
 +      struct acl_object_label *retval;
 +      struct dentry *parent;
 +
-+      write_seqlock(&rename_lock);
 +      br_read_lock(&vfsmount_lock);
++      write_seqlock(&rename_lock);
 +
 +      if (unlikely((mnt == shm_mnt && dentry->d_inode->i_nlink == 0) || mnt == pipe_mnt ||
 +#ifdef CONFIG_NET
 +          mnt == sock_mnt ||
 +#endif
 +#ifdef CONFIG_HUGETLBFS
-+          (mnt == hugetlbfs_vfsmount && dentry->d_inode->i_nlink == 0) ||
++          (is_hugetlbfs_mnt(mnt) && dentry->d_inode->i_nlink == 0) ||
 +#endif
 +              /* ignore Eric Biederman */
 +          IS_PRIVATE(l_dentry->d_inode))) {
@@ -55598,8 +59711,8 @@ index 0000000..960766a
 +      if (retval == NULL)
 +              retval = full_lookup(l_dentry, l_mnt, real_root.dentry, subj, &path, checkglob);
 +out:
-+      br_read_unlock(&vfsmount_lock);
 +      write_sequnlock(&rename_lock);
++      br_read_unlock(&vfsmount_lock);
 +
 +      BUG_ON(retval == NULL);
 +
@@ -55639,8 +59752,8 @@ index 0000000..960766a
 +      struct acl_subject_label *retval;
 +      struct dentry *parent;
 +
-+      write_seqlock(&rename_lock);
 +      br_read_lock(&vfsmount_lock);
++      write_seqlock(&rename_lock);
 +
 +      for (;;) {
 +              if (dentry == real_root.dentry && mnt == real_root.mnt)
@@ -55694,8 +59807,8 @@ index 0000000..960766a
 +              read_unlock(&gr_inode_lock);
 +      }
 +out:
-+      br_read_unlock(&vfsmount_lock);
 +      write_sequnlock(&rename_lock);
++      br_read_unlock(&vfsmount_lock);
 +
 +      BUG_ON(retval == NULL);
 +
@@ -55709,7 +59822,7 @@ index 0000000..960766a
 +      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,
++                     GR_GLOBAL_UID(cred->uid), GR_GLOBAL_GID(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, gr_to_filename(dentry, mnt), (unsigned long) mode, &task->signal->saved_ip);
 +
@@ -55717,16 +59830,29 @@ index 0000000..960766a
 +}
 +
 +static void
-+gr_log_learn_id_change(const char type, const unsigned int real, 
-+                     const unsigned int effective, const unsigned int fs)
++gr_log_learn_uid_change(const kuid_t real, const kuid_t effective, const kuid_t fs)
++{
++      struct task_struct *task = current;
++      const struct cred *cred = current_cred();
++
++      security_learn(GR_ID_LEARN_MSG, task->role->rolename, task->role->roletype,
++                     GR_GLOBAL_UID(cred->uid), GR_GLOBAL_GID(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,
++                     'u', GR_GLOBAL_UID(real), GR_GLOBAL_UID(effective), GR_GLOBAL_UID(fs), &task->signal->saved_ip);
++
++      return;
++}
++
++static void
++gr_log_learn_gid_change(const kgid_t real, const kgid_t effective, const kgid_t fs)
 +{
 +      struct task_struct *task = current;
 +      const struct cred *cred = current_cred();
 +
 +      security_learn(GR_ID_LEARN_MSG, task->role->rolename, task->role->roletype,
-+                     cred->uid, cred->gid, task->exec_file ? gr_to_filename1(task->exec_file->f_path.dentry,
++                     GR_GLOBAL_UID(cred->uid), GR_GLOBAL_GID(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,
-+                     type, real, effective, fs, &task->signal->saved_ip);
++                     'g', GR_GLOBAL_GID(real), GR_GLOBAL_GID(effective), GR_GLOBAL_GID(fs), &task->signal->saved_ip);
 +
 +      return;
 +}
@@ -55986,11 +60112,14 @@ index 0000000..960766a
 +              return;
 +
 +      for (i = 0; i < RLIM_NLIMITS; i++) {
-+              if (!(proc->resmask & (1 << i)))
++              if (!(proc->resmask & (1U << i)))
 +                      continue;
 +
 +              task->signal->rlim[i].rlim_cur = proc->res[i].rlim_cur;
 +              task->signal->rlim[i].rlim_max = proc->res[i].rlim_max;
++
++              if (i == RLIMIT_CPU)
++                      update_rlimit_cpu(task, proc->res[i].rlim_cur);
 +      }
 +
 +      return;
@@ -55999,23 +60128,28 @@ index 0000000..960766a
 +extern int __gr_process_user_ban(struct user_struct *user);
 +
 +int
-+gr_check_user_change(int real, int effective, int fs)
++gr_check_user_change(kuid_t real, kuid_t effective, kuid_t fs)
 +{
 +      unsigned int i;
 +      __u16 num;
 +      uid_t *uidlist;
-+      int curuid;
++      uid_t curuid;
 +      int realok = 0;
 +      int effectiveok = 0;
 +      int fsok = 0;
++      uid_t globalreal, globaleffective, globalfs;
 +
 +#if defined(CONFIG_GRKERNSEC_KERN_LOCKOUT) || defined(CONFIG_GRKERNSEC_BRUTE)
 +      struct user_struct *user;
 +
-+      if (real == -1)
++      if (!uid_valid(real))
 +              goto skipit;
 +
-+      user = find_user(real);
++      /* find user based on global namespace */
++
++      globalreal = GR_GLOBAL_UID(real);
++
++      user = find_user(make_kuid(&init_user_ns, globalreal));
 +      if (user == NULL)
 +              goto skipit;
 +
@@ -56035,7 +60169,7 @@ index 0000000..960766a
 +              return 0;
 +
 +      if (current->acl->mode & (GR_LEARN | GR_INHERITLEARN))
-+              gr_log_learn_id_change('u', real, effective, fs);
++              gr_log_learn_uid_change(real, effective, fs);
 +
 +      num = current->acl->user_trans_num;
 +      uidlist = current->acl->user_transitions;
@@ -56043,31 +60177,43 @@ index 0000000..960766a
 +      if (uidlist == NULL)
 +              return 0;
 +
-+      if (real == -1)
++      if (!uid_valid(real)) {
 +              realok = 1;
-+      if (effective == -1)
++              globalreal = (uid_t)-1;         
++      } else {
++              globalreal = GR_GLOBAL_UID(real);               
++      }
++      if (!uid_valid(effective)) {
 +              effectiveok = 1;
-+      if (fs == -1)
++              globaleffective = (uid_t)-1;
++      } else {
++              globaleffective = GR_GLOBAL_UID(effective);
++      }
++      if (!uid_valid(fs)) {
 +              fsok = 1;
++              globalfs = (uid_t)-1;
++      } else {
++              globalfs = GR_GLOBAL_UID(fs);
++      }
 +
 +      if (current->acl->user_trans_type & GR_ID_ALLOW) {
 +              for (i = 0; i < num; i++) {
-+                      curuid = (int)uidlist[i];
-+                      if (real == curuid)
++                      curuid = uidlist[i];
++                      if (globalreal == curuid)
 +                              realok = 1;
-+                      if (effective == curuid)
++                      if (globaleffective == curuid)
 +                              effectiveok = 1;
-+                      if (fs == curuid)
++                      if (globalfs == curuid)
 +                              fsok = 1;
 +              }
 +      } else if (current->acl->user_trans_type & GR_ID_DENY) {
 +              for (i = 0; i < num; i++) {
-+                      curuid = (int)uidlist[i];
-+                      if (real == curuid)
++                      curuid = uidlist[i];
++                      if (globalreal == curuid)
 +                              break;
-+                      if (effective == curuid)
++                      if (globaleffective == curuid)
 +                              break;
-+                      if (fs == curuid)
++                      if (globalfs == curuid)
 +                              break;
 +              }
 +              /* not in deny list */
@@ -56081,27 +60227,28 @@ index 0000000..960766a
 +      if (realok && effectiveok && fsok)
 +              return 0;
 +      else {
-+              gr_log_int(GR_DONT_AUDIT, GR_USRCHANGE_ACL_MSG, realok ? (effectiveok ? (fsok ? 0 : fs) : effective) : real);
++              gr_log_int(GR_DONT_AUDIT, GR_USRCHANGE_ACL_MSG, realok ? (effectiveok ? (fsok ? 0 : globalfs) : globaleffective) : globalreal);
 +              return 1;
 +      }
 +}
 +
 +int
-+gr_check_group_change(int real, int effective, int fs)
++gr_check_group_change(kgid_t real, kgid_t effective, kgid_t fs)
 +{
 +      unsigned int i;
 +      __u16 num;
 +      gid_t *gidlist;
-+      int curgid;
++      gid_t curgid;
 +      int realok = 0;
 +      int effectiveok = 0;
 +      int fsok = 0;
++      gid_t globalreal, globaleffective, globalfs;
 +
 +      if (unlikely(!(gr_status & GR_READY)))
 +              return 0;
 +
 +      if (current->acl->mode & (GR_LEARN | GR_INHERITLEARN))
-+              gr_log_learn_id_change('g', real, effective, fs);
++              gr_log_learn_gid_change(real, effective, fs);
 +
 +      num = current->acl->group_trans_num;
 +      gidlist = current->acl->group_transitions;
@@ -56109,31 +60256,43 @@ index 0000000..960766a
 +      if (gidlist == NULL)
 +              return 0;
 +
-+      if (real == -1)
++      if (!gid_valid(real)) {
 +              realok = 1;
-+      if (effective == -1)
++              globalreal = (gid_t)-1;         
++      } else {
++              globalreal = GR_GLOBAL_GID(real);
++      }
++      if (!gid_valid(effective)) {
 +              effectiveok = 1;
-+      if (fs == -1)
++              globaleffective = (gid_t)-1;            
++      } else {
++              globaleffective = GR_GLOBAL_GID(effective);
++      }
++      if (!gid_valid(fs)) {
 +              fsok = 1;
++              globalfs = (gid_t)-1;           
++      } else {
++              globalfs = GR_GLOBAL_GID(fs);
++      }
 +
 +      if (current->acl->group_trans_type & GR_ID_ALLOW) {
 +              for (i = 0; i < num; i++) {
-+                      curgid = (int)gidlist[i];
-+                      if (real == curgid)
++                      curgid = gidlist[i];
++                      if (globalreal == curgid)
 +                              realok = 1;
-+                      if (effective == curgid)
++                      if (globaleffective == curgid)
 +                              effectiveok = 1;
-+                      if (fs == curgid)
++                      if (globalfs == curgid)
 +                              fsok = 1;
 +              }
 +      } else if (current->acl->group_trans_type & GR_ID_DENY) {
 +              for (i = 0; i < num; i++) {
-+                      curgid = (int)gidlist[i];
-+                      if (real == curgid)
++                      curgid = gidlist[i];
++                      if (globalreal == curgid)
 +                              break;
-+                      if (effective == curgid)
++                      if (globaleffective == curgid)
 +                              break;
-+                      if (fs == curgid)
++                      if (globalfs == curgid)
 +                              break;
 +              }
 +              /* not in deny list */
@@ -56147,7 +60306,7 @@ index 0000000..960766a
 +      if (realok && effectiveok && fsok)
 +              return 0;
 +      else {
-+              gr_log_int(GR_DONT_AUDIT, GR_GRPCHANGE_ACL_MSG, realok ? (effectiveok ? (fsok ? 0 : fs) : effective) : real);
++              gr_log_int(GR_DONT_AUDIT, GR_GRPCHANGE_ACL_MSG, realok ? (effectiveok ? (fsok ? 0 : globalfs) : globaleffective) : globalreal);
 +              return 1;
 +      }
 +}
@@ -56155,16 +60314,21 @@ index 0000000..960766a
 +extern int gr_acl_is_capable(const int cap);
 +
 +void
-+gr_set_role_label(struct task_struct *task, const uid_t uid, const uid_t gid)
++gr_set_role_label(struct task_struct *task, const kuid_t kuid, const kgid_t kgid)
 +{
 +      struct acl_role_label *role = task->role;
 +      struct acl_subject_label *subj = NULL;
 +      struct acl_object_label *obj;
 +      struct file *filp;
++      uid_t uid;
++      gid_t gid;
 +
 +      if (unlikely(!(gr_status & GR_READY)))
 +              return;
 +
++      uid = GR_GLOBAL_UID(kuid);
++      gid = GR_GLOBAL_GID(kgid);
++
 +      filp = task->exec_file;
 +
 +      /* kernel process, we'll give them the kernel role */
@@ -56210,7 +60374,7 @@ index 0000000..960766a
 +              task->is_writable = 1;
 +
 +#ifdef CONFIG_GRKERNSEC_RBAC_DEBUG
-+      printk(KERN_ALERT "Set role label for (%s:%d): role:%s, subject:%s\n", task->comm, task->pid, task->role->rolename, task->acl->filename);
++      printk(KERN_ALERT "Set role label for (%s:%d): role:%s, subject:%s\n", task->comm, task_pid_nr(task), task->role->rolename, task->acl->filename);
 +#endif
 +
 +      gr_set_proc_res(task);
@@ -56285,7 +60449,7 @@ index 0000000..960766a
 +      gr_set_proc_res(task);
 +
 +#ifdef CONFIG_GRKERNSEC_RBAC_DEBUG
-+      printk(KERN_ALERT "Set subject label for (%s:%d): role:%s, subject:%s\n", task->comm, task->pid, task->role->rolename, task->acl->filename);
++      printk(KERN_ALERT "Set subject label for (%s:%d): role:%s, subject:%s\n", task->comm, task_pid_nr(task), task->role->rolename, task->acl->filename);
 +#endif
 +      return 0;
 +}
@@ -56699,7 +60863,7 @@ index 0000000..960766a
 +              tsk->is_writable = 1;
 +
 +#ifdef CONFIG_GRKERNSEC_RBAC_DEBUG
-+      printk(KERN_ALERT "Assigning special role:%s subject:%s to process (%s:%d)\n", tsk->role->rolename, tsk->acl->filename, tsk->comm, tsk->pid);
++      printk(KERN_ALERT "Assigning special role:%s subject:%s to process (%s:%d)\n", tsk->role->rolename, tsk->acl->filename, tsk->comm, task_pid_nr(tsk));
 +#endif
 +
 +out_unlock:
@@ -56753,7 +60917,7 @@ index 0000000..960766a
 +                      if (file && S_ISCHR(file->f_path.dentry->d_inode->i_mode) &&
 +                          file->f_path.dentry->d_inode->i_rdev == our_file->f_path.dentry->d_inode->i_rdev) {
 +                              p3 = task;
-+                              while (p3->pid > 0) {
++                              while (task_pid_nr(p3) > 0) {
 +                                      if (p3 == p)
 +                                              break;
 +                                      p3 = p3->real_parent;
@@ -56844,7 +61008,7 @@ index 0000000..960766a
 +
 +      if (gr_usermode->mode != GR_SPROLE && gr_usermode->mode != GR_STATUS &&
 +          gr_usermode->mode != GR_UNSPROLE && gr_usermode->mode != GR_SPROLEPAM &&
-+          !uid_eq(current_uid(), GLOBAL_ROOT_UID)) {
++          gr_is_global_nonroot(current_uid())) {
 +              error = -EPERM;
 +              goto out;
 +      }
@@ -57083,7 +61247,7 @@ index 0000000..960766a
 +              gr_set_proc_res(task);
 +
 +#ifdef CONFIG_GRKERNSEC_RBAC_DEBUG
-+              printk(KERN_ALERT "gr_set_acls for (%s:%d): role:%s, subject:%s\n", task->comm, task->pid, task->role->rolename, task->acl->filename);
++              printk(KERN_ALERT "gr_set_acls for (%s:%d): role:%s, subject:%s\n", task->comm, task_pid_nr(task), task->role->rolename, task->acl->filename);
 +#endif
 +      } else {
 +              return 1;
@@ -57118,13 +61282,13 @@ index 0000000..960766a
 +
 +              if (task->exec_file) {
 +                      cred = __task_cred(task);
-+                      task->role = lookup_acl_role_label(task, cred->uid, cred->gid);
++                      task->role = lookup_acl_role_label(task, GR_GLOBAL_UID(cred->uid), GR_GLOBAL_GID(cred->gid));
 +                      ret = gr_apply_subject_to_task(task);
 +                      if (ret) {
 +                              read_unlock(&grsec_exec_file_lock);
 +                              read_unlock(&tasklist_lock);
 +                              rcu_read_unlock();
-+                              gr_log_str_int(GR_DONT_AUDIT_GOOD, GR_DEFACL_MSG, task->comm, task->pid);
++                              gr_log_str_int(GR_DONT_AUDIT_GOOD, GR_DEFACL_MSG, task->comm, task_pid_nr(task));
 +                              return ret;
 +                      }
 +              } else {
@@ -57183,7 +61347,7 @@ index 0000000..960766a
 +      acl = task->acl;
 +
 +      if (likely(!acl || !(acl->mode & (GR_LEARN | GR_INHERITLEARN)) ||
-+                 !(acl->resmask & (1 << (unsigned short) res))))
++                 !(acl->resmask & (1U << (unsigned short) res))))
 +              return;
 +
 +      if (wanted >= acl->res[res].rlim_cur) {
@@ -57201,7 +61365,7 @@ index 0000000..960766a
 +              rcu_read_lock();
 +              cred = __task_cred(task);
 +              security_learn(GR_LEARN_AUDIT_MSG, task->role->rolename,
-+                             task->role->roletype, cred->uid, cred->gid, acl->filename,
++                             task->role->roletype, GR_GLOBAL_UID(cred->uid), GR_GLOBAL_GID(cred->gid), acl->filename,
 +                             acl->filename, acl->res[res].rlim_cur, acl->res[res].rlim_max,
 +                             "", (unsigned long) res, &task->signal->saved_ip);
 +              rcu_read_unlock();
@@ -57272,13 +61436,13 @@ index 0000000..960766a
 +      read_lock(&grsec_exec_file_lock);
 +      filp = task->exec_file;
 +
-+      while (tmp->pid > 0) {
++      while (task_pid_nr(tmp) > 0) {
 +              if (tmp == curtemp)
 +                      break;
 +              tmp = tmp->real_parent;
 +      }
 +
-+      if (!filp || (tmp->pid == 0 && ((grsec_enable_harden_ptrace && !uid_eq(current_uid(), GLOBAL_ROOT_UID) && !(gr_status & GR_READY)) ||
++      if (!filp || (task_pid_nr(tmp) == 0 && ((grsec_enable_harden_ptrace && gr_is_global_nonroot(current_uid()) && !(gr_status & GR_READY)) ||
 +                              ((gr_status & GR_READY) && !(current->acl->mode & GR_RELAXPTRACE))))) {
 +              read_unlock(&grsec_exec_file_lock);
 +              read_unlock(&tasklist_lock);
@@ -57302,7 +61466,7 @@ index 0000000..960766a
 +
 +      if (!(current->acl->mode & GR_POVERRIDE) && !(current->role->roletype & GR_ROLE_GOD)
 +          && (current->acl != task->acl || (current->acl != current->role->root_label
-+          && current->pid != task->pid)))
++          && task_pid_nr(current) != task_pid_nr(task))))
 +              return 1;
 +
 +      return 0;
@@ -57334,13 +61498,13 @@ index 0000000..960766a
 +#endif
 +      if (request == PTRACE_ATTACH || request == PTRACE_SEIZE) {
 +              read_lock(&tasklist_lock);
-+              while (tmp->pid > 0) {
++              while (task_pid_nr(tmp) > 0) {
 +                      if (tmp == curtemp)
 +                              break;
 +                      tmp = tmp->real_parent;
 +              }
 +
-+              if (tmp->pid == 0 && ((grsec_enable_harden_ptrace && !uid_eq(current_uid(), GLOBAL_ROOT_UID) && !(gr_status & GR_READY)) ||
++              if (task_pid_nr(tmp) == 0 && ((grsec_enable_harden_ptrace && gr_is_global_nonroot(current_uid()) && !(gr_status & GR_READY)) ||
 +                                      ((gr_status & GR_READY) && !(current->acl->mode & GR_RELAXPTRACE)))) {
 +                      read_unlock(&tasklist_lock);
 +                      gr_log_ptrace(GR_DONT_AUDIT, GR_PTRACE_ACL_MSG, task);
@@ -57552,10 +61716,10 @@ index 0000000..960766a
 +#if defined(CONFIG_GRKERNSEC_PROC_USER) || defined(CONFIG_GRKERNSEC_PROC_USERGROUP)
 +              cred = __task_cred(task);
 +#ifdef CONFIG_GRKERNSEC_PROC_USER
-+              if (!uid_eq(cred->uid, GLOBAL_ROOT_UID))
++              if (gr_is_global_nonroot(cred->uid))
 +                      ret = -EACCES;
 +#elif defined(CONFIG_GRKERNSEC_PROC_USERGROUP)
-+              if (!uid_eq(cred->uid, GLOBAL_ROOT_UID) && !groups_search(cred->group_info, grsec_proc_gid))
++              if (gr_is_global_nonroot(cred->uid) && !groups_search(cred->group_info, grsec_proc_gid))
 +                      ret = -EACCES;
 +#endif
 +#endif
@@ -57800,7 +61964,7 @@ index 0000000..34fefda
 +}
 diff --git a/grsecurity/gracl_cap.c b/grsecurity/gracl_cap.c
 new file mode 100644
-index 0000000..6d21049
+index 0000000..bdd51ea
 --- /dev/null
 +++ b/grsecurity/gracl_cap.c
 @@ -0,0 +1,110 @@
@@ -57855,8 +62019,8 @@ index 0000000..6d21049
 +      if ((curracl->mode & (GR_LEARN | GR_INHERITLEARN))
 +          && cap_raised(cred->cap_effective, cap)) {
 +              security_learn(GR_LEARN_AUDIT_MSG, task->role->rolename,
-+                             task->role->roletype, cred->uid,
-+                             cred->gid, task->exec_file ?
++                             task->role->roletype, GR_GLOBAL_UID(cred->uid),
++                             GR_GLOBAL_GID(cred->gid), task->exec_file ?
 +                             gr_to_filename(task->exec_file->f_path.dentry,
 +                             task->exec_file->f_path.mnt) : curracl->filename,
 +                             curracl->filename, 0UL,
@@ -58353,10 +62517,10 @@ index 0000000..a340c17
 +}
 diff --git a/grsecurity/gracl_ip.c b/grsecurity/gracl_ip.c
 new file mode 100644
-index 0000000..58800a7
+index 0000000..8132048
 --- /dev/null
 +++ b/grsecurity/gracl_ip.c
-@@ -0,0 +1,384 @@
+@@ -0,0 +1,387 @@
 +#include <linux/kernel.h>
 +#include <asm/uaccess.h>
 +#include <asm/errno.h>
@@ -58463,7 +62627,7 @@ index 0000000..58800a7
 +
 +      curr = current->acl;
 +
-+      if (curr->sock_families[domain / 32] & (1 << (domain % 32))) {
++      if (curr->sock_families[domain / 32] & (1U << (domain % 32))) {
 +              /* the family is allowed, if this is PF_INET allow it only if
 +                 the extra sock type/protocol checks pass */
 +              if (domain == PF_INET)
@@ -58473,8 +62637,8 @@ index 0000000..58800a7
 +              if (curr->mode & (GR_LEARN | GR_INHERITLEARN)) {
 +                      __u32 fakeip = 0;
 +                      security_learn(GR_IP_LEARN_MSG, current->role->rolename,
-+                                     current->role->roletype, cred->uid,
-+                                     cred->gid, current->exec_file ?
++                                     current->role->roletype, GR_GLOBAL_UID(cred->uid),
++                                     GR_GLOBAL_GID(cred->gid), current->exec_file ?
 +                                     gr_to_filename(current->exec_file->f_path.dentry,
 +                                     current->exec_file->f_path.mnt) :
 +                                     curr->filename, curr->filename,
@@ -58490,8 +62654,8 @@ index 0000000..58800a7
 +      if (!curr->ips)
 +              goto exit;
 +
-+      if ((curr->ip_type & (1 << type)) &&
-+          (curr->ip_proto[protocol / 32] & (1 << (protocol % 32))))
++      if ((curr->ip_type & (1U << type)) &&
++          (curr->ip_proto[protocol / 32] & (1U << (protocol % 32))))
 +              goto exit;
 +
 +      if (curr->mode & (GR_LEARN | GR_INHERITLEARN)) {
@@ -58501,8 +62665,8 @@ index 0000000..58800a7
 +              if (type == SOCK_RAW || type == SOCK_PACKET) {
 +                      __u32 fakeip = 0;
 +                      security_learn(GR_IP_LEARN_MSG, current->role->rolename,
-+                                     current->role->roletype, cred->uid,
-+                                     cred->gid, current->exec_file ?
++                                     current->role->roletype, GR_GLOBAL_UID(cred->uid),
++                                     GR_GLOBAL_GID(cred->gid), current->exec_file ?
 +                                     gr_to_filename(current->exec_file->f_path.dentry,
 +                                     current->exec_file->f_path.mnt) :
 +                                     curr->filename, curr->filename,
@@ -58511,8 +62675,8 @@ index 0000000..58800a7
 +              } else if ((type == SOCK_DGRAM) && (protocol == IPPROTO_IP)) {
 +                      __u32 fakeip = 0;
 +                      security_learn(GR_IP_LEARN_MSG, current->role->rolename,
-+                                     current->role->roletype, cred->uid,
-+                                     cred->gid, current->exec_file ?
++                                     current->role->roletype, GR_GLOBAL_UID(cred->uid),
++                                     GR_GLOBAL_GID(cred->gid), current->exec_file ?
 +                                     gr_to_filename(current->exec_file->f_path.dentry,
 +                                     current->exec_file->f_path.mnt) :
 +                                     curr->filename, curr->filename,
@@ -58528,6 +62692,9 @@ index 0000000..58800a7
 +              gr_log_str3(GR_DONT_AUDIT, GR_SOCK_MSG, gr_sockfamily_to_name(domain), 
 +                          gr_socktype_to_name(type), gr_proto_to_name(protocol));
 +      else
++#ifndef CONFIG_IPV6
++              if (domain != PF_INET6)
++#endif
 +              gr_log_str2_int(GR_DONT_AUDIT, GR_SOCK_NOINET_MSG, gr_sockfamily_to_name(domain), 
 +                          gr_socktype_to_name(type), protocol);
 +
@@ -58543,8 +62710,8 @@ index 0000000..58800a7
 +          (ip_port <= ip->high) &&
 +          ((ntohl(ip_addr) & our_netmask) ==
 +           (ntohl(our_addr) & our_netmask))
-+          && (ip->proto[protocol / 32] & (1 << (protocol % 32)))
-+          && (ip->type & (1 << type))) {
++          && (ip->proto[protocol / 32] & (1U << (protocol % 32)))
++          && (ip->type & (1U << type))) {
 +              if (ip->mode & GR_INVERT)
 +                      return 2; // specifically denied
 +              else
@@ -58608,8 +62775,8 @@ index 0000000..58800a7
 +
 +      if (curr->mode & (GR_LEARN | GR_INHERITLEARN)) {
 +              security_learn(GR_IP_LEARN_MSG, current->role->rolename,
-+                             current->role->roletype, cred->uid,
-+                             cred->gid, current->exec_file ?
++                             current->role->roletype, GR_GLOBAL_UID(cred->uid),
++                             GR_GLOBAL_GID(cred->gid), current->exec_file ?
 +                             gr_to_filename(current->exec_file->f_path.dentry,
 +                             current->exec_file->f_path.mnt) :
 +                             curr->filename, curr->filename,
@@ -59030,10 +63197,10 @@ index 0000000..39645c9
 +}
 diff --git a/grsecurity/gracl_segv.c b/grsecurity/gracl_segv.c
 new file mode 100644
-index 0000000..25197e9
+index 0000000..cb1e5ab
 --- /dev/null
 +++ b/grsecurity/gracl_segv.c
-@@ -0,0 +1,299 @@
+@@ -0,0 +1,303 @@
 +#include <linux/kernel.h>
 +#include <linux/mm.h>
 +#include <asm/uaccess.h>
@@ -59135,9 +63302,10 @@ index 0000000..25197e9
 +}
 +
 +static __inline__ void
-+gr_insert_uid(const uid_t uid, const unsigned long expires)
++gr_insert_uid(const kuid_t kuid, const unsigned long expires)
 +{
 +      int loc;
++      uid_t uid = GR_GLOBAL_UID(kuid);
 +
 +      if (uid_used == GR_UIDTABLE_MAX)
 +              return;
@@ -59172,14 +63340,17 @@ index 0000000..25197e9
 +}
 +
 +int
-+gr_check_crash_uid(const uid_t uid)
++gr_check_crash_uid(const kuid_t kuid)
 +{
 +      int loc;
 +      int ret = 0;
++      uid_t uid;
 +
 +      if (unlikely(!gr_acl_is_enabled()))
 +              return 0;
 +
++      uid = GR_GLOBAL_UID(kuid);
++
 +      spin_lock(&gr_uid_lock);
 +      loc = gr_find_uid(uid);
 +
@@ -59202,8 +63373,8 @@ index 0000000..25197e9
 +      if (!uid_eq(cred->uid, cred->euid) || !uid_eq(cred->uid, cred->suid) ||
 +          !uid_eq(cred->uid, cred->fsuid))
 +              return 1;
-+      if (!uid_eq(cred->gid, cred->egid) || !uid_eq(cred->gid, cred->sgid) ||
-+          !uid_eq(cred->gid, cred->fsgid))
++      if (!gid_eq(cred->gid, cred->egid) || !gid_eq(cred->gid, cred->sgid) ||
++          !gid_eq(cred->gid, cred->fsgid))
 +              return 1;
 +
 +      return 0;
@@ -59227,7 +63398,7 @@ index 0000000..25197e9
 +
 +      curr = task->acl;
 +
-+      if (!(curr->resmask & (1 << GR_CRASH_RES)))
++      if (!(curr->resmask & (1U << GR_CRASH_RES)))
 +              return;
 +
 +      if (time_before_eq(curr->expires, get_seconds())) {
@@ -59244,7 +63415,7 @@ index 0000000..25197e9
 +          time_after(curr->expires, get_seconds())) {
 +              rcu_read_lock();
 +              cred = __task_cred(task);
-+              if (!uid_eq(cred->uid, GLOBAL_ROOT_UID) && proc_is_setxid(cred)) {
++              if (gr_is_global_nonroot(cred->uid) && proc_is_setxid(cred)) {
 +                      gr_log_crash1(GR_DONT_AUDIT, GR_SEGVSTART_ACL_MSG, task, curr->res[GR_CRASH_RES].rlim_max);
 +                      spin_lock(&gr_uid_lock);
 +                      gr_insert_uid(cred->uid, curr->expires);
@@ -59293,7 +63464,7 @@ index 0000000..25197e9
 +                                   current->role);
 +      read_unlock(&gr_inode_lock);
 +
-+      if (!curr || !(curr->resmask & (1 << GR_CRASH_RES)) ||
++      if (!curr || !(curr->resmask & (1U << GR_CRASH_RES)) ||
 +          (!curr->crashes && !curr->expires))
 +              return 0;
 +
@@ -59335,7 +63506,7 @@ index 0000000..25197e9
 +}
 diff --git a/grsecurity/gracl_shm.c b/grsecurity/gracl_shm.c
 new file mode 100644
-index 0000000..9d83a69
+index 0000000..98011b0
 --- /dev/null
 +++ b/grsecurity/gracl_shm.c
 @@ -0,0 +1,40 @@
@@ -59350,7 +63521,7 @@ index 0000000..9d83a69
 +
 +int
 +gr_handle_shmat(const pid_t shm_cprid, const pid_t shm_lapid,
-+              const time_t shm_createtime, const uid_t cuid, const int shmid)
++              const time_t shm_createtime, const kuid_t cuid, const int shmid)
 +{
 +      struct task_struct *task;
 +
@@ -59366,12 +63537,12 @@ index 0000000..9d83a69
 +              task = find_task_by_vpid(shm_lapid);
 +
 +      if (unlikely(task && (time_before_eq((unsigned long)task->start_time.tv_sec, (unsigned long)shm_createtime) ||
-+                            (task->pid == shm_lapid)) &&
++                            (task_pid_nr(task) == shm_lapid)) &&
 +                   (task->acl->mode & GR_PROTSHM) &&
 +                   (task->acl != current->acl))) {
 +              read_unlock(&tasklist_lock);
 +              rcu_read_unlock();
-+              gr_log_int3(GR_DONT_AUDIT, GR_SHMAT_ACL_MSG, cuid, shm_cprid, shmid);
++              gr_log_int3(GR_DONT_AUDIT, GR_SHMAT_ACL_MSG, GR_GLOBAL_UID(cuid), shm_cprid, shmid);
 +              return 0;
 +      }
 +      read_unlock(&tasklist_lock);
@@ -59406,7 +63577,7 @@ index 0000000..bc0be01
 +}
 diff --git a/grsecurity/grsec_chroot.c b/grsecurity/grsec_chroot.c
 new file mode 100644
-index 0000000..70fe0ae
+index 0000000..6d2de57
 --- /dev/null
 +++ b/grsecurity/grsec_chroot.c
 @@ -0,0 +1,357 @@
@@ -59424,7 +63595,7 @@ index 0000000..70fe0ae
 +void gr_set_chroot_entries(struct task_struct *task, struct path *path)
 +{
 +#ifdef CONFIG_GRKERNSEC
-+      if (task->pid > 1 && path->dentry != init_task.fs->root.dentry &&
++      if (task_pid_nr(task) > 1 && path->dentry != init_task.fs->root.dentry &&
 +                           path->dentry != task->nsproxy->mnt_ns->root->mnt.mnt_root)
 +              task->gr_is_chrooted = 1;
 +      else
@@ -59489,7 +63660,7 @@ index 0000000..70fe0ae
 +#ifdef CONFIG_GRKERNSEC_CHROOT_NICE
 +      if (grsec_enable_chroot_nice && (niceval < task_nice(p))
 +                      && proc_is_chrooted(current)) {
-+              gr_log_str_int(GR_DONT_AUDIT, GR_PRIORITY_CHROOT_MSG, p->comm, p->pid);
++              gr_log_str_int(GR_DONT_AUDIT, GR_PRIORITY_CHROOT_MSG, p->comm, task_pid_nr(p));
 +              return -EACCES;
 +      }
 +#endif
@@ -59769,7 +63940,7 @@ index 0000000..70fe0ae
 +}
 diff --git a/grsecurity/grsec_disabled.c b/grsecurity/grsec_disabled.c
 new file mode 100644
-index 0000000..e6796b3
+index 0000000..207d409
 --- /dev/null
 +++ b/grsecurity/grsec_disabled.c
 @@ -0,0 +1,434 @@
@@ -59912,7 +64083,7 @@ index 0000000..e6796b3
 +}
 +
 +int
-+gr_check_crash_uid(const uid_t uid)
++gr_check_crash_uid(const kuid_t uid)
 +{
 +      return 0;
 +}
@@ -60089,7 +64260,7 @@ index 0000000..e6796b3
 +
 +int
 +gr_handle_shmat(const pid_t shm_cprid, const pid_t shm_lapid,
-+              const time_t shm_createtime, const uid_t cuid, const int shmid)
++              const time_t shm_createtime, const kuid_t cuid, const int shmid)
 +{
 +      return 1;
 +}
@@ -60146,7 +64317,7 @@ index 0000000..e6796b3
 +}
 +
 +void
-+gr_set_role_label(const uid_t uid, const gid_t gid)
++gr_set_role_label(const kuid_t uid, const kgid_t gid)
 +{
 +      return;
 +}
@@ -60176,13 +64347,13 @@ index 0000000..e6796b3
 +}
 +
 +int
-+gr_check_user_change(int real, int effective, int fs)
++gr_check_user_change(kuid_t real, kuid_t effective, kuid_t fs)
 +{
 +      return 0;
 +}
 +
 +int
-+gr_check_group_change(int real, int effective, int fs)
++gr_check_group_change(kgid_t real, kgid_t effective, kgid_t fs)
 +{
 +      return 0;
 +}
@@ -60209,10 +64380,10 @@ index 0000000..e6796b3
 +#endif
 diff --git a/grsecurity/grsec_exec.c b/grsecurity/grsec_exec.c
 new file mode 100644
-index 0000000..abfa971
+index 0000000..387032b
 --- /dev/null
 +++ b/grsecurity/grsec_exec.c
-@@ -0,0 +1,174 @@
+@@ -0,0 +1,187 @@
 +#include <linux/kernel.h>
 +#include <linux/sched.h>
 +#include <linux/file.h>
@@ -60224,6 +64395,7 @@ index 0000000..abfa971
 +#include <linux/grinternal.h>
 +#include <linux/capability.h>
 +#include <linux/module.h>
++#include <linux/compat.h>
 +
 +#include <asm/uaccess.h>
 +
@@ -60232,6 +64404,18 @@ index 0000000..abfa971
 +static DEFINE_MUTEX(gr_exec_arg_mutex);
 +#endif
 +
++struct user_arg_ptr {
++#ifdef CONFIG_COMPAT
++      bool is_compat;
++#endif
++      union {
++              const char __user *const __user *native;
++#ifdef CONFIG_COMPAT
++              const compat_uptr_t __user *compat;
++#endif
++      } ptr;
++};
++
 +extern const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr);
 +
 +void
@@ -60389,7 +64573,7 @@ index 0000000..abfa971
 +EXPORT_SYMBOL(gr_task_is_capable_nolog);
 diff --git a/grsecurity/grsec_fifo.c b/grsecurity/grsec_fifo.c
 new file mode 100644
-index 0000000..d3ee748
+index 0000000..06cc6ea
 --- /dev/null
 +++ b/grsecurity/grsec_fifo.c
 @@ -0,0 +1,24 @@
@@ -60408,10 +64592,10 @@ index 0000000..d3ee748
 +
 +      if (grsec_enable_fifo && S_ISFIFO(dentry->d_inode->i_mode) &&
 +          !(flag & O_EXCL) && (dir->d_inode->i_mode & S_ISVTX) &&
-+          (dentry->d_inode->i_uid != dir->d_inode->i_uid) &&
-+          (cred->fsuid != dentry->d_inode->i_uid)) {
++          !uid_eq(dentry->d_inode->i_uid, dir->d_inode->i_uid) &&
++          !uid_eq(cred->fsuid, dentry->d_inode->i_uid)) {
 +              if (!inode_permission(dentry->d_inode, acc_mode))
-+                      gr_log_fs_int2(GR_DONT_AUDIT, GR_FIFO_MSG, dentry, mnt, dentry->d_inode->i_uid, dentry->d_inode->i_gid);
++                      gr_log_fs_int2(GR_DONT_AUDIT, GR_FIFO_MSG, dentry, mnt, GR_GLOBAL_UID(dentry->d_inode->i_uid), GR_GLOBAL_GID(dentry->d_inode->i_gid));
 +              return -EACCES;
 +      }
 +#endif
@@ -60448,7 +64632,7 @@ index 0000000..8ca18bf
 +}
 diff --git a/grsecurity/grsec_init.c b/grsecurity/grsec_init.c
 new file mode 100644
-index 0000000..05a6015
+index 0000000..a862e9f
 --- /dev/null
 +++ b/grsecurity/grsec_init.c
 @@ -0,0 +1,283 @@
@@ -60464,7 +64648,7 @@ index 0000000..05a6015
 +int grsec_enable_ptrace_readexec;
 +int grsec_enable_setxid;
 +int grsec_enable_symlinkown;
-+int grsec_symlinkown_gid;
++kgid_t grsec_symlinkown_gid;
 +int grsec_enable_brute;
 +int grsec_enable_link;
 +int grsec_enable_dmesg;
@@ -60477,7 +64661,7 @@ index 0000000..05a6015
 +int grsec_enable_time;
 +int grsec_enable_audit_textrel;
 +int grsec_enable_group;
-+int grsec_audit_gid;
++kgid_t grsec_audit_gid;
 +int grsec_enable_chdir;
 +int grsec_enable_mount;
 +int grsec_enable_rofs;
@@ -60496,7 +64680,7 @@ index 0000000..05a6015
 +int grsec_enable_chroot_sysctl;
 +int grsec_enable_chroot_unix;
 +int grsec_enable_tpe;
-+int grsec_tpe_gid;
++kgid_t grsec_tpe_gid;
 +int grsec_enable_blackhole;
 +#ifdef CONFIG_IPV6_MODULE
 +EXPORT_SYMBOL(grsec_enable_blackhole);
@@ -60505,11 +64689,11 @@ index 0000000..05a6015
 +int grsec_enable_tpe_all;
 +int grsec_enable_tpe_invert;
 +int grsec_enable_socket_all;
-+int grsec_socket_all_gid;
++kgid_t grsec_socket_all_gid;
 +int grsec_enable_socket_client;
-+int grsec_socket_client_gid;
++kgid_t grsec_socket_client_gid;
 +int grsec_enable_socket_server;
-+int grsec_socket_server_gid;
++kgid_t grsec_socket_server_gid;
 +int grsec_resource_logging;
 +int grsec_disable_privio;
 +int grsec_enable_log_rwxmaps;
@@ -60615,7 +64799,7 @@ index 0000000..05a6015
 +#endif
 +#ifdef CONFIG_GRKERNSEC_AUDIT_GROUP
 +      grsec_enable_group = 1;
-+      grsec_audit_gid = CONFIG_GRKERNSEC_AUDIT_GID;
++      grsec_audit_gid = KGIDT_INIT(CONFIG_GRKERNSEC_AUDIT_GID);
 +#endif
 +#ifdef CONFIG_GRKERNSEC_PTRACE_READEXEC
 +      grsec_enable_ptrace_readexec = 1;
@@ -60710,26 +64894,26 @@ index 0000000..05a6015
 +#endif
 +#ifdef CONFIG_GRKERNSEC_SYMLINKOWN
 +      grsec_enable_symlinkown = 1;
-+      grsec_symlinkown_gid = CONFIG_GRKERNSEC_SYMLINKOWN_GID;
++      grsec_symlinkown_gid = KGIDT_INIT(CONFIG_GRKERNSEC_SYMLINKOWN_GID);
 +#endif
 +#ifdef CONFIG_GRKERNSEC_TPE
 +      grsec_enable_tpe = 1;
-+      grsec_tpe_gid = CONFIG_GRKERNSEC_TPE_GID;
++      grsec_tpe_gid = KGIDT_INIT(CONFIG_GRKERNSEC_TPE_GID);
 +#ifdef CONFIG_GRKERNSEC_TPE_ALL
 +      grsec_enable_tpe_all = 1;
 +#endif
 +#endif
 +#ifdef CONFIG_GRKERNSEC_SOCKET_ALL
 +      grsec_enable_socket_all = 1;
-+      grsec_socket_all_gid = CONFIG_GRKERNSEC_SOCKET_ALL_GID;
++      grsec_socket_all_gid = KGIDT_INIT(CONFIG_GRKERNSEC_SOCKET_ALL_GID);
 +#endif
 +#ifdef CONFIG_GRKERNSEC_SOCKET_CLIENT
 +      grsec_enable_socket_client = 1;
-+      grsec_socket_client_gid = CONFIG_GRKERNSEC_SOCKET_CLIENT_GID;
++      grsec_socket_client_gid = KGIDT_INIT(CONFIG_GRKERNSEC_SOCKET_CLIENT_GID);
 +#endif
 +#ifdef CONFIG_GRKERNSEC_SOCKET_SERVER
 +      grsec_enable_socket_server = 1;
-+      grsec_socket_server_gid = CONFIG_GRKERNSEC_SOCKET_SERVER_GID;
++      grsec_socket_server_gid = KGIDT_INIT(CONFIG_GRKERNSEC_SOCKET_SERVER_GID);
 +#endif
 +#endif
 +
@@ -60737,7 +64921,7 @@ index 0000000..05a6015
 +}
 diff --git a/grsecurity/grsec_link.c b/grsecurity/grsec_link.c
 new file mode 100644
-index 0000000..6095407
+index 0000000..5e05e20
 --- /dev/null
 +++ b/grsecurity/grsec_link.c
 @@ -0,0 +1,58 @@
@@ -60754,7 +64938,7 @@ index 0000000..6095407
 +
 +      if (grsec_enable_symlinkown && in_group_p(grsec_symlinkown_gid) &&
 +         /* ignore root-owned links, e.g. /proc/self */
-+          !uid_eq(link_inode->i_uid, GLOBAL_ROOT_UID) && target &&
++          gr_is_global_nonroot(link_inode->i_uid) && target &&
 +          !uid_eq(link_inode->i_uid, target->i_uid)) {
 +              gr_log_fs_int2(GR_DONT_AUDIT, GR_SYMLINKOWNER_MSG, link->dentry, link->mnt, link_inode->i_uid, target->i_uid);
 +              return 1;
@@ -60792,7 +64976,7 @@ index 0000000..6095407
 +      if (grsec_enable_link && !uid_eq(cred->fsuid, inode->i_uid) &&
 +          (!S_ISREG(mode) || is_privileged_binary(dentry) || 
 +           (inode_permission(inode, MAY_READ | MAY_WRITE))) &&
-+          !capable(CAP_FOWNER) && !uid_eq(cred->uid, GLOBAL_ROOT_UID)) {
++          !capable(CAP_FOWNER) && gr_is_global_nonroot(cred->uid)) {
 +              gr_log_fs_int2_str(GR_DONT_AUDIT, GR_HARDLINK_MSG, dentry, mnt, inode->i_uid, inode->i_gid, to->name);
 +              return -EPERM;
 +      }
@@ -60801,10 +64985,10 @@ index 0000000..6095407
 +}
 diff --git a/grsecurity/grsec_log.c b/grsecurity/grsec_log.c
 new file mode 100644
-index 0000000..7bd6c2b
+index 0000000..7c06085
 --- /dev/null
 +++ b/grsecurity/grsec_log.c
-@@ -0,0 +1,329 @@
+@@ -0,0 +1,326 @@
 +#include <linux/kernel.h>
 +#include <linux/sched.h>
 +#include <linux/file.h>
@@ -60820,9 +65004,6 @@ index 0000000..7bd6c2b
 +#define ENABLE_PREEMPT()
 +#endif
 +
-+#define GR_GLOBAL_UID(x) from_kuid_munged(&init_user_ns, (x))
-+#define GR_GLOBAL_GID(x) from_kgid_munged(&init_user_ns, (x))
-+
 +#define BEGIN_LOCKS(x) \
 +      DISABLE_PREEMPT(); \
 +      rcu_read_lock(); \
@@ -61328,7 +65509,7 @@ index 0000000..f7f29aa
 +}
 diff --git a/grsecurity/grsec_sig.c b/grsecurity/grsec_sig.c
 new file mode 100644
-index 0000000..5c00416
+index 0000000..e09715a
 --- /dev/null
 +++ b/grsecurity/grsec_sig.c
 @@ -0,0 +1,222 @@
@@ -61352,7 +65533,7 @@ index 0000000..5c00416
 +#ifdef CONFIG_GRKERNSEC_SIGNAL
 +      if (grsec_enable_signal && ((sig == SIGSEGV) || (sig == SIGILL) ||
 +                                  (sig == SIGABRT) || (sig == SIGBUS))) {
-+              if (t->pid == current->pid) {
++              if (task_pid_nr(t) == task_pid_nr(current)) {
 +                      gr_log_sig_addr(GR_DONT_AUDIT_GOOD, GR_UNISIGLOG_MSG, signames[sig], addr);
 +              } else {
 +                      gr_log_sig_task(GR_DONT_AUDIT_GOOD, GR_DUALSIGLOG_MSG, t, sig);
@@ -61367,7 +65548,7 @@ index 0000000..5c00416
 +{
 +#ifdef CONFIG_GRKERNSEC
 +      /* ignore the 0 signal for protected task checks */
-+      if (current->pid > 1 && sig && gr_check_protected_task(p)) {
++      if (task_pid_nr(current) > 1 && sig && gr_check_protected_task(p)) {
 +              gr_log_sig_task(GR_DONT_AUDIT, GR_SIG_ACL_MSG, p, sig);
 +              return -EPERM;
 +      } else if (gr_pid_is_chrooted((struct task_struct *)p)) {
@@ -61441,7 +65622,7 @@ index 0000000..5c00416
 +              const struct cred *cred = __task_cred(p), *cred2;
 +              struct task_struct *tsk, *tsk2;
 +
-+              if (!__get_dumpable(mm_flags) && !uid_eq(cred->uid, GLOBAL_ROOT_UID)) {
++              if (!__get_dumpable(mm_flags) && gr_is_global_nonroot(cred->uid)) {
 +                      struct user_struct *user;
 +
 +                      uid = cred->uid;
@@ -61467,9 +65648,9 @@ index 0000000..5c00416
 +      read_unlock(&tasklist_lock);
 +      rcu_read_unlock();
 +
-+      if (!uid_eq(uid, GLOBAL_ROOT_UID))
++      if (gr_is_global_nonroot(uid))
 +              printk(KERN_ALERT "grsec: bruteforce prevention initiated against uid %u, banning for %d minutes\n",
-+                      from_kuid_munged(&init_user_ns, uid), GR_USER_BAN_TIME / 60);
++                      GR_GLOBAL_UID(uid), GR_USER_BAN_TIME / 60);
 +      else if (daemon)
 +              gr_log_noargs(GR_DONT_AUDIT, GR_BRUTE_DAEMON_MSG);
 +
@@ -61505,7 +65686,7 @@ index 0000000..5c00416
 +
 +      uid = current_uid();
 +
-+      if (uid_eq(uid, GLOBAL_ROOT_UID))
++      if (gr_is_global_root(uid))
 +              panic("grsec: halting the system due to suspicious kernel crash caused by root");
 +      else {
 +              /* kill all the processes of this user, hold a reference
@@ -61513,7 +65694,7 @@ index 0000000..5c00416
 +                 another process until system reset
 +              */
 +              printk(KERN_ALERT "grsec: banning user with uid %u until system restart for suspicious kernel crash\n",
-+                      from_kuid_munged(&init_user_ns, uid));
++                      GR_GLOBAL_UID(uid));
 +              /* we intentionally leak this ref */
 +              user = get_uid(current->cred->user);
 +              if (user) {
@@ -62303,7 +66484,7 @@ index 0000000..0dc13c3
 +EXPORT_SYMBOL(gr_log_timechange);
 diff --git a/grsecurity/grsec_tpe.c b/grsecurity/grsec_tpe.c
 new file mode 100644
-index 0000000..07e0dc0
+index 0000000..ee57dcf
 --- /dev/null
 +++ b/grsecurity/grsec_tpe.c
 @@ -0,0 +1,73 @@
@@ -62325,7 +66506,7 @@ index 0000000..07e0dc0
 +      char *msg2 = NULL;
 +
 +      // never restrict root
-+      if (!cred->uid)
++      if (gr_is_global_root(cred->uid))
 +              return 1;
 +
 +      if (grsec_enable_tpe) {
@@ -62346,7 +66527,7 @@ index 0000000..07e0dc0
 +      if (!msg)
 +              goto next_check;
 +
-+      if (inode->i_uid)
++      if (gr_is_global_nonroot(inode->i_uid))
 +              msg2 = "file in non-root-owned directory";
 +      else if (inode->i_mode & S_IWOTH)
 +              msg2 = "file in world-writable directory";
@@ -62365,7 +66546,7 @@ index 0000000..07e0dc0
 +      if (!grsec_enable_tpe || !grsec_enable_tpe_all)
 +              return 1;
 +
-+      if (inode->i_uid && (inode->i_uid != cred->uid))
++      if (gr_is_global_nonroot(inode->i_uid) && !uid_eq(inode->i_uid, cred->uid))
 +              msg = "directory not owned by user";
 +      else if (inode->i_mode & S_IWOTH)
 +              msg = "file in world-writable directory";
@@ -63016,12 +67197,12 @@ index 810431d..0ec4804f 100644
   * (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 b36ce40..019426d 100644
+index 5cf680a..4b74d62 100644
 --- a/include/asm-generic/pgtable.h
 +++ b/include/asm-generic/pgtable.h
-@@ -554,6 +554,14 @@ static inline int pmd_trans_unstable(pmd_t *pmd)
- #endif
+@@ -688,6 +688,14 @@ static inline pmd_t pmd_mknuma(pmd_t pmd)
  }
+ #endif /* CONFIG_NUMA_BALANCING */
  
 +#ifndef __HAVE_ARCH_PAX_OPEN_KERNEL
 +static inline unsigned long pax_open_kernel(void) { return 0; }
@@ -63083,7 +67264,7 @@ index 418d270..bfd2794 100644
  struct crypto_instance {
        struct crypto_alg alg;
 diff --git a/include/drm/drmP.h b/include/drm/drmP.h
-index 3fd8280..2b3c415 100644
+index fad21c9..ab858bc 100644
 --- a/include/drm/drmP.h
 +++ b/include/drm/drmP.h
 @@ -72,6 +72,7 @@
@@ -63094,7 +67275,43 @@ index 3fd8280..2b3c415 100644
  #include <drm/drm.h>
  #include <drm/drm_sarea.h>
  
-@@ -1068,7 +1069,7 @@ struct drm_device {
+@@ -293,10 +294,12 @@ do {                                                                             \
+  * \param cmd command.
+  * \param arg argument.
+  */
+-typedef int drm_ioctl_t(struct drm_device *dev, void *data,
++typedef int (* const drm_ioctl_t)(struct drm_device *dev, void *data,
++                      struct drm_file *file_priv);
++typedef int (* drm_ioctl_no_const_t)(struct drm_device *dev, void *data,
+                       struct drm_file *file_priv);
+-typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd,
++typedef int (* const drm_ioctl_compat_t)(struct file *filp, unsigned int cmd,
+                              unsigned long arg);
+ #define DRM_IOCTL_NR(n)                _IOC_NR(n)
+@@ -311,9 +314,9 @@ typedef int drm_ioctl_compat_t(struct file *filp, unsigned int cmd,
+ struct drm_ioctl_desc {
+       unsigned int cmd;
+       int flags;
+-      drm_ioctl_t *func;
++      drm_ioctl_t func;
+       unsigned int cmd_drv;
+-};
++} __do_const;
+ /**
+  * Creates a driver or general drm_ioctl_desc array entry for the given
+@@ -995,7 +998,7 @@ struct drm_info_list {
+       int (*show)(struct seq_file*, void*); /** show callback */
+       u32 driver_features; /**< Required driver features for this entry */
+       void *data;
+-};
++} __do_const;
+ /**
+  * debugfs node structure. This structure represents a debugfs file.
+@@ -1068,7 +1071,7 @@ struct drm_device {
  
        /** \name Usage Counters */
        /*@{ */
@@ -63103,7 +67320,7 @@ index 3fd8280..2b3c415 100644
        atomic_t ioctl_count;           /**< Outstanding IOCTLs pending */
        atomic_t vma_count;             /**< Outstanding vma areas open */
        int buf_use;                    /**< Buffers in use -- cannot alloc */
-@@ -1079,7 +1080,7 @@ struct drm_device {
+@@ -1079,7 +1082,7 @@ struct drm_device {
        /*@{ */
        unsigned long counters;
        enum drm_stat_type types[15];
@@ -63113,7 +67330,7 @@ index 3fd8280..2b3c415 100644
  
        struct list_head filelist;
 diff --git a/include/drm/drm_crtc_helper.h b/include/drm/drm_crtc_helper.h
-index e01cc80..6fb6f25 100644
+index f43d556..94d9343 100644
 --- a/include/drm/drm_crtc_helper.h
 +++ b/include/drm/drm_crtc_helper.h
 @@ -109,7 +109,7 @@ struct drm_encoder_helper_funcs {
@@ -63126,7 +67343,7 @@ index e01cc80..6fb6f25 100644
  /**
   * drm_connector_helper_funcs - helper operations for connectors
 diff --git a/include/drm/ttm/ttm_memory.h b/include/drm/ttm/ttm_memory.h
-index d6d1da4..fdd1ac5 100644
+index 72dcbe8..8db58d7 100644
 --- a/include/drm/ttm/ttm_memory.h
 +++ b/include/drm/ttm/ttm_memory.h
 @@ -48,7 +48,7 @@
@@ -63138,8 +67355,21 @@ index d6d1da4..fdd1ac5 100644
  
  /**
   * struct ttm_mem_global - Global memory accounting structure.
+diff --git a/include/keys/asymmetric-subtype.h b/include/keys/asymmetric-subtype.h
+index 4b840e8..155d235 100644
+--- a/include/keys/asymmetric-subtype.h
++++ b/include/keys/asymmetric-subtype.h
+@@ -37,7 +37,7 @@ struct asymmetric_key_subtype {
+       /* Verify the signature on a key of this subtype (optional) */
+       int (*verify_signature)(const struct key *key,
+                               const struct public_key_signature *sig);
+-};
++} __do_const;
+ /**
+  * asymmetric_key_subtype - Get the subtype from an asymmetric key
 diff --git a/include/linux/atmdev.h b/include/linux/atmdev.h
-index 22ef21c..75904ba 100644
+index c1da539..1dcec55 100644
 --- a/include/linux/atmdev.h
 +++ b/include/linux/atmdev.h
 @@ -28,7 +28,7 @@ struct compat_atm_iobuf {
@@ -63151,23 +67381,35 @@ index 22ef21c..75904ba 100644
        __AAL_STAT_ITEMS
  #undef __HANDLE_ITEM
  };
+@@ -200,7 +200,7 @@ struct atmdev_ops { /* only send is required */
+       int (*change_qos)(struct atm_vcc *vcc,struct atm_qos *qos,int flags);
+       int (*proc_read)(struct atm_dev *dev,loff_t *pos,char *page);
+       struct module *owner;
+-};
++} __do_const ;
+ struct atmphy_ops {
+       int (*start)(struct atm_dev *dev);
 diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h
-index de0628e..38f42eb 100644
+index 0530b98..96a8ac0 100644
 --- a/include/linux/binfmts.h
 +++ b/include/linux/binfmts.h
-@@ -75,6 +75,7 @@ struct linux_binfmt {
-       int (*load_binary)(struct linux_binprm *, struct  pt_regs * regs);
+@@ -73,8 +73,9 @@ struct linux_binfmt {
+       int (*load_binary)(struct linux_binprm *);
        int (*load_shlib)(struct file *);
        int (*core_dump)(struct coredump_params *cprm);
 +      void (*handle_mprotect)(struct vm_area_struct *vma, unsigned long newflags);
        unsigned long min_coredump;     /* minimal dump size */
- };
+-};
++} __do_const;
+ extern void __register_binfmt(struct linux_binfmt *fmt, int insert);
  
 diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
-index 1756001..ab117ec 100644
+index f94bc83..62b9cfe 100644
 --- a/include/linux/blkdev.h
 +++ b/include/linux/blkdev.h
-@@ -1478,7 +1478,7 @@ struct block_device_operations {
+@@ -1498,7 +1498,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;
@@ -63247,12 +67489,42 @@ index 42e55de..1cd0e66 100644
  
  extern struct cleancache_ops
        cleancache_register_ops(struct cleancache_ops *ops);
+diff --git a/include/linux/compat.h b/include/linux/compat.h
+index dec7e2d..45db13f 100644
+--- a/include/linux/compat.h
++++ b/include/linux/compat.h
+@@ -311,14 +311,14 @@ long compat_sys_msgsnd(int first, int second, int third, void __user *uptr);
+ long compat_sys_msgrcv(int first, int second, int msgtyp, int third,
+               int version, void __user *uptr);
+ long compat_sys_shmat(int first, int second, compat_uptr_t third, int version,
+-              void __user *uptr);
++              void __user *uptr) __intentional_overflow(0);
+ #else
+ long compat_sys_semctl(int semid, int semnum, int cmd, int arg);
+ long compat_sys_msgsnd(int msqid, struct compat_msgbuf __user *msgp,
+               compat_ssize_t msgsz, int msgflg);
+ long compat_sys_msgrcv(int msqid, struct compat_msgbuf __user *msgp,
+               compat_ssize_t msgsz, long msgtyp, int msgflg);
+-long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg);
++long compat_sys_shmat(int shmid, compat_uptr_t shmaddr, int shmflg) __intentional_overflow(0);
+ #endif
+ long compat_sys_msgctl(int first, int second, void __user *uptr);
+ long compat_sys_shmctl(int first, int second, void __user *uptr);
+@@ -414,7 +414,7 @@ extern int compat_ptrace_request(struct task_struct *child,
+ extern long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
+                              compat_ulong_t addr, compat_ulong_t data);
+ asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid,
+-                                compat_long_t addr, compat_long_t data);
++                                compat_ulong_t addr, compat_ulong_t data);
+ /*
+  * epoll (fs/eventpoll.c) compat bits follow ...
 diff --git a/include/linux/compiler-gcc4.h b/include/linux/compiler-gcc4.h
-index 412bc6c..c31666e 100644
+index 662fd1b..e801992 100644
 --- a/include/linux/compiler-gcc4.h
 +++ b/include/linux/compiler-gcc4.h
-@@ -32,6 +32,21 @@
- #define __linktime_error(message) __attribute__((__error__(message)))
+@@ -34,6 +34,21 @@
+ #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)
  
  #if __GNUC_MINOR__ >= 5
 +
@@ -63273,7 +67545,7 @@ index 412bc6c..c31666e 100644
  /*
   * Mark a position in code as unreachable.  This can be used to
   * suppress control flow warnings after asm blocks that transfer
-@@ -47,6 +62,11 @@
+@@ -49,6 +64,11 @@
  #define __noclone     __attribute__((__noclone__))
  
  #endif
@@ -63286,10 +67558,10 @@ index 412bc6c..c31666e 100644
  
  #if __GNUC_MINOR__ >= 6
 diff --git a/include/linux/compiler.h b/include/linux/compiler.h
-index f430e41..38be90f 100644
+index dd852b7..1ad5fba 100644
 --- a/include/linux/compiler.h
 +++ b/include/linux/compiler.h
-@@ -5,31 +5,62 @@
+@@ -5,11 +5,14 @@
  
  #ifdef __CHECKER__
  # define __user               __attribute__((noderef, address_space(1)))
@@ -63301,9 +67573,10 @@ index f430e41..38be90f 100644
  # define __nocast     __attribute__((nocast))
  # define __iomem      __attribute__((noderef, address_space(2)))
 +# define __force_iomem        __force __iomem
+ # define __must_hold(x)       __attribute__((context(x,1,1)))
  # define __acquires(x)        __attribute__((context(x,0,1)))
  # define __releases(x)        __attribute__((context(x,1,0)))
- # define __acquire(x) __context__(x,1)
+@@ -17,20 +20,37 @@
  # define __release(x) __context__(x,-1)
  # define __cond_lock(x,c)     ((c) ? ({ __acquire(x); 1; }) : 0)
  # define __percpu     __attribute__((noderef, address_space(3)))
@@ -63317,33 +67590,24 @@ index f430e41..38be90f 100644
  #endif
  extern void __chk_user_ptr(const volatile void __user *);
  extern void __chk_io_ptr(const volatile void __iomem *);
-+#elif defined(CHECKER_PLUGIN)
-+//# define __user
-+//# define __force_user
-+//# define __kernel
-+//# define __force_kernel
-+# define __safe
-+# define __force
-+# define __nocast
-+# define __iomem
-+# define __force_iomem
-+# define __chk_user_ptr(x) (void)0
-+# define __chk_io_ptr(x) (void)0
-+# define __builtin_warning(x, y...) (1)
-+# define __acquires(x)
-+# define __releases(x)
-+# define __acquire(x) (void)0
-+# define __release(x) (void)0
-+# define __cond_lock(x,c) (c)
-+# define __percpu
-+# define __force_percpu
-+# define __rcu
-+# define __force_rcu
  #else
- # define __user
-+# define __force_user
- # define __kernel
-+# define __force_kernel
+-# define __user
+-# define __kernel
++# ifdef CHECKER_PLUGIN
++//#  define __user
++//#  define __force_user
++//#  define __kernel
++//#  define __force_kernel
++# else
++#  ifdef STRUCTLEAK_PLUGIN
++#   define __user __attribute__((user))
++#  else
++#   define __user
++#  endif
++#  define __force_user
++#  define __kernel
++#  define __force_kernel
++# endif
  # define __safe
  # define __force
  # define __nocast
@@ -63352,7 +67616,7 @@ index f430e41..38be90f 100644
  # define __chk_user_ptr(x) (void)0
  # define __chk_io_ptr(x) (void)0
  # define __builtin_warning(x, y...) (1)
-@@ -39,7 +70,9 @@ extern void __chk_io_ptr(const volatile void __iomem *);
+@@ -41,7 +61,9 @@ extern void __chk_io_ptr(const volatile void __iomem *);
  # define __release(x) (void)0
  # define __cond_lock(x,c) (c)
  # define __percpu
@@ -63361,8 +67625,8 @@ index f430e41..38be90f 100644
 +# define __force_rcu
  #endif
  
- #ifdef __KERNEL__
-@@ -264,6 +297,26 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
+ /* Indirect macros required for expanded argument pasting, eg. __LINE__. */
+@@ -275,6 +297,26 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
  # define __attribute_const__  /* unimplemented */
  #endif
  
@@ -63389,7 +67653,7 @@ index f430e41..38be90f 100644
  /*
   * Tell gcc if a function is cold. The compiler will assume any path
   * directly leading to the call is unlikely.
-@@ -273,6 +326,22 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
+@@ -284,6 +326,22 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
  #define __cold
  #endif
  
@@ -63412,7 +67676,7 @@ index f430e41..38be90f 100644
  /* Simple shorthand for a section definition */
  #ifndef __section
  # define __section(S) __attribute__ ((__section__(#S)))
-@@ -312,6 +381,7 @@ void ftrace_likely_update(struct ftrace_branch_data *f, int val, int expect);
+@@ -323,6 +381,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.
   */
@@ -63421,11 +67685,154 @@ index f430e41..38be90f 100644
 +#define ACCESS_ONCE_RW(x) (*(volatile typeof(x) *)&(x))
  
  #endif /* __LINUX_COMPILER_H */
+diff --git a/include/linux/completion.h b/include/linux/completion.h
+index 51494e6..0fd1b61 100644
+--- a/include/linux/completion.h
++++ b/include/linux/completion.h
+@@ -78,13 +78,13 @@ static inline void init_completion(struct completion *x)
+ extern void wait_for_completion(struct completion *);
+ extern int wait_for_completion_interruptible(struct completion *x);
+-extern int wait_for_completion_killable(struct completion *x);
++extern int wait_for_completion_killable(struct completion *x) __intentional_overflow(-1);
+ extern unsigned long wait_for_completion_timeout(struct completion *x,
+                                                  unsigned long timeout);
+ extern long wait_for_completion_interruptible_timeout(
+-      struct completion *x, unsigned long timeout);
++      struct completion *x, unsigned long timeout) __intentional_overflow(-1);
+ extern long wait_for_completion_killable_timeout(
+-      struct completion *x, unsigned long timeout);
++      struct completion *x, unsigned long timeout) __intentional_overflow(-1);
+ extern bool try_wait_for_completion(struct completion *x);
+ extern bool completion_done(struct completion *x);
+diff --git a/include/linux/configfs.h b/include/linux/configfs.h
+index 34025df..d94bbbc 100644
+--- a/include/linux/configfs.h
++++ b/include/linux/configfs.h
+@@ -125,7 +125,7 @@ struct configfs_attribute {
+       const char              *ca_name;
+       struct module           *ca_owner;
+       umode_t                 ca_mode;
+-};
++} __do_const;
+ /*
+  * Users often need to create attribute structures for their configurable
+diff --git a/include/linux/cpu.h b/include/linux/cpu.h
+index ce7a074..01ab8ac 100644
+--- a/include/linux/cpu.h
++++ b/include/linux/cpu.h
+@@ -115,7 +115,7 @@ enum {
+ /* Need to know about CPUs going up/down? */
+ #if defined(CONFIG_HOTPLUG_CPU) || !defined(MODULE)
+ #define cpu_notifier(fn, pri) {                                       \
+-      static struct notifier_block fn##_nb __cpuinitdata =    \
++      static struct notifier_block fn##_nb =                  \
+               { .notifier_call = fn, .priority = pri };       \
+       register_cpu_notifier(&fn##_nb);                        \
+ }
+diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h
+index a55b88e..fba90c5 100644
+--- a/include/linux/cpufreq.h
++++ b/include/linux/cpufreq.h
+@@ -240,7 +240,7 @@ struct cpufreq_driver {
+       int     (*suspend)      (struct cpufreq_policy *policy);
+       int     (*resume)       (struct cpufreq_policy *policy);
+       struct freq_attr        **attr;
+-};
++} __do_const;
+ /* flags */
+@@ -299,6 +299,7 @@ struct global_attr {
+       ssize_t (*store)(struct kobject *a, struct attribute *b,
+                        const char *c, size_t count);
+ };
++typedef struct global_attr __no_const global_attr_no_const;
+ #define define_one_global_ro(_name)           \
+ static struct global_attr _name =             \
+diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
+index 24cd1037..20a63aae 100644
+--- a/include/linux/cpuidle.h
++++ b/include/linux/cpuidle.h
+@@ -54,7 +54,8 @@ struct cpuidle_state {
+                       int index);
+       int (*enter_dead) (struct cpuidle_device *dev, int index);
+-};
++} __do_const;
++typedef struct cpuidle_state __no_const cpuidle_state_no_const;
+ /* Idle State Flags */
+ #define CPUIDLE_FLAG_TIME_VALID       (0x01) /* is residency time measurable? */
+@@ -216,7 +217,7 @@ struct cpuidle_governor {
+       void (*reflect)         (struct cpuidle_device *dev, int index);
+       struct module           *owner;
+-};
++} __do_const;
+ #ifdef CONFIG_CPU_IDLE
+diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h
+index 0325602..5e9feff 100644
+--- a/include/linux/cpumask.h
++++ b/include/linux/cpumask.h
+@@ -118,17 +118,17 @@ static inline unsigned int cpumask_first(const struct cpumask *srcp)
+ }
+ /* Valid inputs for n are -1 and 0. */
+-static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)
++static inline unsigned int __intentional_overflow(-1) cpumask_next(int n, const struct cpumask *srcp)
+ {
+       return n+1;
+ }
+-static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp)
++static inline unsigned int __intentional_overflow(-1) cpumask_next_zero(int n, const struct cpumask *srcp)
+ {
+       return n+1;
+ }
+-static inline unsigned int cpumask_next_and(int n,
++static inline unsigned int __intentional_overflow(-1) cpumask_next_and(int n,
+                                           const struct cpumask *srcp,
+                                           const struct cpumask *andp)
+ {
+@@ -167,7 +167,7 @@ static inline unsigned int cpumask_first(const struct cpumask *srcp)
+  *
+  * Returns >= nr_cpu_ids if no further cpus set.
+  */
+-static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)
++static inline unsigned int __intentional_overflow(-1) cpumask_next(int n, const struct cpumask *srcp)
+ {
+       /* -1 is a legal arg here. */
+       if (n != -1)
+@@ -182,7 +182,7 @@ static inline unsigned int cpumask_next(int n, const struct cpumask *srcp)
+  *
+  * Returns >= nr_cpu_ids if no further cpus unset.
+  */
+-static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp)
++static inline unsigned int __intentional_overflow(-1) cpumask_next_zero(int n, const struct cpumask *srcp)
+ {
+       /* -1 is a legal arg here. */
+       if (n != -1)
+@@ -190,7 +190,7 @@ static inline unsigned int cpumask_next_zero(int n, const struct cpumask *srcp)
+       return find_next_zero_bit(cpumask_bits(srcp), nr_cpumask_bits, n+1);
+ }
+-int cpumask_next_and(int n, const struct cpumask *, const struct cpumask *);
++int cpumask_next_and(int n, const struct cpumask *, const struct cpumask *) __intentional_overflow(-1);
+ int cpumask_any_but(const struct cpumask *mask, unsigned int cpu);
+ /**
 diff --git a/include/linux/cred.h b/include/linux/cred.h
-index ebbed2c..908cc2c 100644
+index 04421e8..6bce4ef 100644
 --- a/include/linux/cred.h
 +++ b/include/linux/cred.h
-@@ -208,6 +208,9 @@ static inline void validate_creds_for_do_exit(struct task_struct *tsk)
+@@ -194,6 +194,9 @@ static inline void validate_creds_for_do_exit(struct task_struct *tsk)
  static inline void validate_process_creds(void)
  {
  }
@@ -63464,6 +67871,19 @@ index b92eadf..b4ecdc1 100644
  
  #define crt_ablkcipher        crt_u.ablkcipher
  #define crt_aead      crt_u.aead
+diff --git a/include/linux/ctype.h b/include/linux/ctype.h
+index 8acfe31..6ffccd63 100644
+--- a/include/linux/ctype.h
++++ b/include/linux/ctype.h
+@@ -56,7 +56,7 @@ static inline unsigned char __toupper(unsigned char c)
+  * Fast implementation of tolower() for internal usage. Do not use in your
+  * code.
+  */
+-static inline char _tolower(const char c)
++static inline unsigned char _tolower(const unsigned char c)
+ {
+       return c | 0x20;
+ }
 diff --git a/include/linux/decompress/mm.h b/include/linux/decompress/mm.h
 index 7925bf0..d5143d2 100644
 --- a/include/linux/decompress/mm.h
@@ -63477,6 +67897,55 @@ index 7925bf0..d5143d2 100644
  #define free(a) kfree(a)
  
  #define large_malloc(a) vmalloc(a)
+diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h
+index e83ef39..33e0eb3 100644
+--- a/include/linux/devfreq.h
++++ b/include/linux/devfreq.h
+@@ -114,7 +114,7 @@ struct devfreq_governor {
+       int (*get_target_freq)(struct devfreq *this, unsigned long *freq);
+       int (*event_handler)(struct devfreq *devfreq,
+                               unsigned int event, void *data);
+-};
++} __do_const;
+ /**
+  * struct devfreq - Device devfreq structure
+diff --git a/include/linux/device.h b/include/linux/device.h
+index 43dcda9..7a1fb65 100644
+--- a/include/linux/device.h
++++ b/include/linux/device.h
+@@ -294,7 +294,7 @@ struct subsys_interface {
+       struct list_head node;
+       int (*add_dev)(struct device *dev, struct subsys_interface *sif);
+       int (*remove_dev)(struct device *dev, struct subsys_interface *sif);
+-};
++} __do_const;
+ int subsys_interface_register(struct subsys_interface *sif);
+ void subsys_interface_unregister(struct subsys_interface *sif);
+@@ -474,7 +474,7 @@ struct device_type {
+       void (*release)(struct device *dev);
+       const struct dev_pm_ops *pm;
+-};
++} __do_const;
+ /* interface for exporting device attributes */
+ struct device_attribute {
+@@ -484,11 +484,12 @@ struct device_attribute {
+       ssize_t (*store)(struct device *dev, struct device_attribute *attr,
+                        const char *buf, size_t count);
+ };
++typedef struct device_attribute __no_const device_attribute_no_const;
+ struct dev_ext_attribute {
+       struct device_attribute attr;
+       void *var;
+-};
++} __do_const;
+ ssize_t device_show_ulong(struct device *dev, struct device_attribute *attr,
+                         char *buf);
 diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
 index 94af418..b1ca7a2 100644
 --- a/include/linux/dma-mapping.h
@@ -63506,6 +67975,18 @@ index d3201e4..8281e63 100644
        struct dma_pinned_list *pinned_list, struct page *page,
        unsigned int offset, size_t len);
  
+diff --git a/include/linux/efi.h b/include/linux/efi.h
+index 7a9498a..155713d 100644
+--- a/include/linux/efi.h
++++ b/include/linux/efi.h
+@@ -733,6 +733,7 @@ struct efivar_operations {
+       efi_set_variable_t *set_variable;
+       efi_query_variable_info_t *query_variable_info;
+ };
++typedef struct efivar_operations __no_const efivar_operations_no_const;
+ struct efivars {
+       /*
 diff --git a/include/linux/elf.h b/include/linux/elf.h
 index 8c9048e..16a4665 100644
 --- a/include/linux/elf.h
@@ -63526,8 +68007,53 @@ index 8c9048e..16a4665 100644
  
  #endif
  
+diff --git a/include/linux/err.h b/include/linux/err.h
+index f2edce2..cc2082c 100644
+--- a/include/linux/err.h
++++ b/include/linux/err.h
+@@ -19,12 +19,12 @@
+ #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
+-static inline void * __must_check ERR_PTR(long error)
++static inline void * __must_check __intentional_overflow(-1) ERR_PTR(long error)
+ {
+       return (void *) error;
+ }
+-static inline long __must_check PTR_ERR(const void *ptr)
++static inline long __must_check __intentional_overflow(-1) PTR_ERR(const void *ptr)
+ {
+       return (long) ptr;
+ }
+diff --git a/include/linux/extcon.h b/include/linux/extcon.h
+index fcb51c8..bdafcf6 100644
+--- a/include/linux/extcon.h
++++ b/include/linux/extcon.h
+@@ -134,7 +134,7 @@ struct extcon_dev {
+       /* /sys/class/extcon/.../mutually_exclusive/... */
+       struct attribute_group attr_g_muex;
+       struct attribute **attrs_muex;
+-      struct device_attribute *d_attrs_muex;
++      device_attribute_no_const *d_attrs_muex;
+ };
+ /**
+diff --git a/include/linux/fb.h b/include/linux/fb.h
+index c7a9571..02eeffe 100644
+--- a/include/linux/fb.h
++++ b/include/linux/fb.h
+@@ -302,7 +302,7 @@ struct fb_ops {
+       /* called at KDB enter and leave time to prepare the console */
+       int (*fb_debug_enter)(struct fb_info *info);
+       int (*fb_debug_leave)(struct fb_info *info);
+-};
++} __do_const;
+ #ifdef CONFIG_FB_TILEBLITTING
+ #define FB_TILE_CURSOR_NONE        0
 diff --git a/include/linux/filter.h b/include/linux/filter.h
-index 24d251f..7afb83d 100644
+index c45eabc..baa0be5 100644
 --- a/include/linux/filter.h
 +++ b/include/linux/filter.h
 @@ -20,6 +20,7 @@ struct compat_sock_fprog {
@@ -63562,20 +68088,20 @@ index 3044254..9767f41 100644
  extern bool frontswap_enabled;
  extern struct frontswap_ops
 diff --git a/include/linux/fs.h b/include/linux/fs.h
-index 75fe9a1..8417cac 100644
+index 7617ee0..b575199 100644
 --- a/include/linux/fs.h
 +++ b/include/linux/fs.h
-@@ -1543,7 +1543,8 @@ struct file_operations {
-       int (*setlease)(struct file *, long, struct file_lock **);
+@@ -1541,7 +1541,8 @@ struct file_operations {
        long (*fallocate)(struct file *file, int mode, loff_t offset,
                          loff_t len);
+       int (*show_fdinfo)(struct seq_file *m, struct file *f);
 -};
 +} __do_const;
 +typedef struct file_operations __no_const file_operations_no_const;
  
  struct inode_operations {
        struct dentry * (*lookup) (struct inode *,struct dentry *, unsigned int);
-@@ -2667,4 +2668,14 @@ static inline void inode_has_no_xattr(struct inode *inode)
+@@ -2665,4 +2666,14 @@ static inline void inode_has_no_xattr(struct inode *inode)
                inode->i_flags |= S_NOSEC;
  }
  
@@ -63591,7 +68117,7 @@ index 75fe9a1..8417cac 100644
 +
  #endif /* _LINUX_FS_H */
 diff --git a/include/linux/fs_struct.h b/include/linux/fs_struct.h
-index 003dc0f..3c4ea97 100644
+index 324f931..f292b65 100644
 --- a/include/linux/fs_struct.h
 +++ b/include/linux/fs_struct.h
 @@ -6,7 +6,7 @@
@@ -63604,10 +68130,10 @@ index 003dc0f..3c4ea97 100644
        seqcount_t seq;
        int umask;
 diff --git a/include/linux/fscache-cache.h b/include/linux/fscache-cache.h
-index ce31408..b1ad003 100644
+index 5dfa0aa..6acf322 100644
 --- a/include/linux/fscache-cache.h
 +++ b/include/linux/fscache-cache.h
-@@ -102,7 +102,7 @@ struct fscache_operation {
+@@ -112,7 +112,7 @@ struct fscache_operation {
        fscache_operation_release_t release;
  };
  
@@ -63616,15 +68142,28 @@ index ce31408..b1ad003 100644
  extern void fscache_op_work_func(struct work_struct *work);
  
  extern void fscache_enqueue_operation(struct fscache_operation *);
-@@ -122,7 +122,7 @@ static inline void fscache_operation_init(struct fscache_operation *op,
- {
+@@ -134,7 +134,7 @@ static inline void fscache_operation_init(struct fscache_operation *op,
        INIT_WORK(&op->work, fscache_op_work_func);
        atomic_set(&op->usage, 1);
+       op->state = FSCACHE_OP_ST_INITIALISED;
 -      op->debug_id = atomic_inc_return(&fscache_op_debug_id);
 +      op->debug_id = atomic_inc_return_unchecked(&fscache_op_debug_id);
        op->processor = processor;
        op->release = release;
        INIT_LIST_HEAD(&op->pend_link);
+diff --git a/include/linux/fscache.h b/include/linux/fscache.h
+index 7a08623..4c07b0f 100644
+--- a/include/linux/fscache.h
++++ b/include/linux/fscache.h
+@@ -152,7 +152,7 @@ struct fscache_cookie_def {
+        * - this is mandatory for any object that may have data
+        */
+       void (*now_uncached)(void *cookie_netfs_data);
+-};
++} __do_const;
+ /*
+  * fscache cached network filesystem type
 diff --git a/include/linux/fsnotify.h b/include/linux/fsnotify.h
 index 0fbfb46..508eb0d 100644
 --- a/include/linux/fsnotify.h
@@ -63659,10 +68198,10 @@ index 0fbfb46..508eb0d 100644
  
  /*
 diff --git a/include/linux/ftrace_event.h b/include/linux/ftrace_event.h
-index 642928c..93afe6a 100644
+index a3d4895..ddd2a50 100644
 --- a/include/linux/ftrace_event.h
 +++ b/include/linux/ftrace_event.h
-@@ -266,7 +266,7 @@ extern int trace_define_field(struct ftrace_event_call *call, const char *type,
+@@ -272,7 +272,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);
  
@@ -63672,10 +68211,10 @@ index 642928c..93afe6a 100644
  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 4f440b3..342233a 100644
+index 79b8bba..86b539e 100644
 --- a/include/linux/genhd.h
 +++ b/include/linux/genhd.h
-@@ -190,7 +190,7 @@ struct gendisk {
+@@ -194,7 +194,7 @@ struct gendisk {
        struct kobject *slave_dir;
  
        struct timer_rand_state *random;
@@ -63684,32 +68223,46 @@ index 4f440b3..342233a 100644
        struct disk_events *ev;
  #ifdef  CONFIG_BLK_DEV_INTEGRITY
        struct blk_integrity *integrity;
+diff --git a/include/linux/genl_magic_func.h b/include/linux/genl_magic_func.h
+index 023bc34..b02b46a 100644
+--- a/include/linux/genl_magic_func.h
++++ b/include/linux/genl_magic_func.h
+@@ -246,7 +246,7 @@ const char *CONCAT_(GENL_MAGIC_FAMILY, _genl_cmd_to_str)(__u8 cmd)
+ },
+ #define ZZZ_genl_ops          CONCAT_(GENL_MAGIC_FAMILY, _genl_ops)
+-static struct genl_ops ZZZ_genl_ops[] __read_mostly = {
++static struct genl_ops ZZZ_genl_ops[] = {
+ #include GENL_MAGIC_INCLUDE_FILE
+ };
 diff --git a/include/linux/gfp.h b/include/linux/gfp.h
-index d0a7967..63c4c47 100644
+index 0f615eb..5c3832f 100644
 --- a/include/linux/gfp.h
 +++ b/include/linux/gfp.h
-@@ -35,6 +35,12 @@ struct vm_area_struct;
+@@ -35,6 +35,13 @@ struct vm_area_struct;
+ #define ___GFP_NO_KSWAPD      0x400000u
  #define ___GFP_OTHER_NODE     0x800000u
  #define ___GFP_WRITE          0x1000000u
++
 +#ifdef CONFIG_PAX_USERCOPY_SLABS
 +#define ___GFP_USERCOPY               0x2000000u
 +#else
 +#define ___GFP_USERCOPY               0
 +#endif
 +
+ /* If the above are modified, __GFP_BITS_SHIFT may need updating */
  /*
-  * GFP bitmasks..
-  *
-@@ -89,6 +95,7 @@ struct vm_area_struct;
- #define __GFP_NO_KSWAPD       ((__force gfp_t)___GFP_NO_KSWAPD)
+@@ -92,6 +99,7 @@ struct vm_area_struct;
  #define __GFP_OTHER_NODE ((__force gfp_t)___GFP_OTHER_NODE) /* On behalf of other node */
+ #define __GFP_KMEMCG  ((__force gfp_t)___GFP_KMEMCG) /* Allocation comes from a memcg-accounted resource */
  #define __GFP_WRITE   ((__force gfp_t)___GFP_WRITE)   /* Allocator intends to dirty page */
 +#define __GFP_USERCOPY        ((__force gfp_t)___GFP_USERCOPY)/* Allocator intends to copy page to/from userland */
  
  /*
   * This may seem redundant, but it's a way of annotating false positives vs.
-@@ -96,7 +103,7 @@ struct vm_area_struct;
+@@ -99,7 +107,7 @@ struct vm_area_struct;
   */
  #define __GFP_NOTRACK_FALSE_POSITIVE (__GFP_NOTRACK)
  
@@ -63718,7 +68271,7 @@ index d0a7967..63c4c47 100644
  #define __GFP_BITS_MASK ((__force gfp_t)((1 << __GFP_BITS_SHIFT) - 1))
  
  /* This equals 0, but use constants in case they ever change */
-@@ -150,6 +157,8 @@ struct vm_area_struct;
+@@ -153,6 +161,8 @@ struct vm_area_struct;
  /* 4GB DMA on some platforms */
  #define GFP_DMA32     __GFP_DMA32
  
@@ -64215,7 +68768,7 @@ index 0000000..be66033
 +#endif
 diff --git a/include/linux/grinternal.h b/include/linux/grinternal.h
 new file mode 100644
-index 0000000..baa6e96
+index 0000000..9bb6662
 --- /dev/null
 +++ b/include/linux/grinternal.h
 @@ -0,0 +1,215 @@
@@ -64281,18 +68834,18 @@ index 0000000..baa6e96
 +extern int grsec_enable_chroot_sysctl;
 +extern int grsec_enable_chroot_unix;
 +extern int grsec_enable_symlinkown;
-+extern int grsec_symlinkown_gid;
++extern kgid_t grsec_symlinkown_gid;
 +extern int grsec_enable_tpe;
-+extern int grsec_tpe_gid;
++extern kgid_t grsec_tpe_gid;
 +extern int grsec_enable_tpe_all;
 +extern int grsec_enable_tpe_invert;
 +extern int grsec_enable_socket_all;
-+extern int grsec_socket_all_gid;
++extern kgid_t grsec_socket_all_gid;
 +extern int grsec_enable_socket_client;
-+extern int grsec_socket_client_gid;
++extern kgid_t grsec_socket_client_gid;
 +extern int grsec_enable_socket_server;
-+extern int grsec_socket_server_gid;
-+extern int grsec_audit_gid;
++extern kgid_t grsec_socket_server_gid;
++extern kgid_t grsec_audit_gid;
 +extern int grsec_enable_group;
 +extern int grsec_enable_audit_textrel;
 +extern int grsec_enable_log_rwxmaps;
@@ -64553,10 +69106,10 @@ index 0000000..2bd4c8d
 +#define GR_BRUTE_DAEMON_MSG "bruteforce prevention initiated for the next 30 minutes or until service restarted, stalling each fork 30 seconds.  Please investigate the crash report for "
 diff --git a/include/linux/grsecurity.h b/include/linux/grsecurity.h
 new file mode 100644
-index 0000000..c5e5913
+index 0000000..8da63a4
 --- /dev/null
 +++ b/include/linux/grsecurity.h
-@@ -0,0 +1,257 @@
+@@ -0,0 +1,242 @@
 +#ifndef GR_SECURITY_H
 +#define GR_SECURITY_H
 +#include <linux/fs.h>
@@ -64578,20 +69131,6 @@ index 0000000..c5e5913
 +#error "CONFIG_PAX enabled, but no PaX options are enabled."
 +#endif
 +
-+#include <linux/compat.h>
-+
-+struct user_arg_ptr {
-+#ifdef CONFIG_COMPAT
-+      bool is_compat;
-+#endif
-+      union {
-+              const char __user *const __user *native;
-+#ifdef CONFIG_COMPAT
-+              const compat_uptr_t __user *compat;
-+#endif
-+      } ptr;
-+};
-+
 +void gr_handle_brute_attach(unsigned long mm_flags);
 +void gr_handle_brute_check(void);
 +void gr_handle_kernel_exploit(void);
@@ -64601,8 +69140,8 @@ index 0000000..c5e5913
 +
 +int gr_acl_enable_at_secure(void);
 +
-+int gr_check_user_change(int real, int effective, int fs);
-+int gr_check_group_change(int real, int effective, int fs);
++int gr_check_user_change(kuid_t real, kuid_t effective, kuid_t fs);
++int gr_check_group_change(kgid_t real, kgid_t effective, kgid_t fs);
 +
 +void gr_del_task_from_ip_table(struct task_struct *p);
 +
@@ -64645,7 +69184,6 @@ index 0000000..c5e5913
 +                       const struct vfsmount *mnt);
 +void gr_log_chroot_exec(const struct dentry *dentry,
 +                             const struct vfsmount *mnt);
-+void gr_handle_exec_args(struct linux_binprm *bprm, struct user_arg_ptr argv);
 +void gr_log_remount(const char *devname, const int retval);
 +void gr_log_unmount(const char *devname, const int retval);
 +void gr_log_mount(const char *from, const char *to, const int retval);
@@ -64674,7 +69212,7 @@ index 0000000..c5e5913
 +void gr_copy_label(struct task_struct *tsk);
 +void gr_handle_crash(struct task_struct *task, const int sig);
 +int gr_handle_signal(const struct task_struct *p, const int sig);
-+int gr_check_crash_uid(const uid_t uid);
++int gr_check_crash_uid(const kuid_t uid);
 +int gr_check_protected_task(const struct task_struct *task);
 +int gr_check_protected_task_fowner(struct pid *pid, enum pid_type type);
 +int gr_acl_handle_mmap(const struct file *file,
@@ -64701,8 +69239,8 @@ index 0000000..c5e5913
 +int gr_check_crash_exec(const struct file *filp);
 +int gr_acl_is_enabled(void);
 +void gr_set_kernel_label(struct task_struct *task);
-+void gr_set_role_label(struct task_struct *task, const uid_t uid,
-+                            const gid_t gid);
++void gr_set_role_label(struct task_struct *task, const kuid_t uid,
++                            const kgid_t gid);
 +int gr_set_proc_label(const struct dentry *dentry,
 +                      const struct vfsmount *mnt,
 +                      const int unsafe_flags);
@@ -64802,7 +69340,7 @@ index 0000000..c5e5913
 +extern int grsec_disable_privio;
 +
 +#ifdef CONFIG_GRKERNSEC_PROC_USERGROUP
-+extern int grsec_proc_gid;
++extern kgid_t grsec_proc_gid;
 +#endif
 +
 +#ifdef CONFIG_GRKERNSEC_CHROOT_FINDTASK
@@ -64862,11 +69400,34 @@ index ef788b5..ac41b7b 100644
  static inline void zero_user_segments(struct page *page,
        unsigned start1, unsigned end1,
        unsigned start2, unsigned end2)
+diff --git a/include/linux/hwmon-sysfs.h b/include/linux/hwmon-sysfs.h
+index 1c7b89a..7f52502 100644
+--- a/include/linux/hwmon-sysfs.h
++++ b/include/linux/hwmon-sysfs.h
+@@ -25,7 +25,8 @@
+ struct sensor_device_attribute{
+       struct device_attribute dev_attr;
+       int index;
+-};
++} __do_const;
++typedef struct sensor_device_attribute __no_const sensor_device_attribute_no_const;
+ #define to_sensor_dev_attr(_dev_attr) \
+       container_of(_dev_attr, struct sensor_device_attribute, dev_attr)
+@@ -41,7 +42,7 @@ struct sensor_device_attribute_2 {
+       struct device_attribute dev_attr;
+       u8 index;
+       u8 nr;
+-};
++} __do_const;
+ #define to_sensor_dev_attr_2(_dev_attr) \
+       container_of(_dev_attr, struct sensor_device_attribute_2, dev_attr)
 diff --git a/include/linux/i2c.h b/include/linux/i2c.h
-index 800de22..7a2fa46 100644
+index d0c4db7..61b3577 100644
 --- a/include/linux/i2c.h
 +++ b/include/linux/i2c.h
-@@ -367,6 +367,7 @@ struct i2c_algorithm {
+@@ -369,6 +369,7 @@ struct i2c_algorithm {
        /* To determine what the adapter supports */
        u32 (*functionality) (struct i2c_adapter *);
  };
@@ -64901,7 +69462,7 @@ index aff7ad8..3942bbd 100644
  extern int register_pppox_proto(int proto_num, const struct pppox_proto *pp);
  extern void unregister_pppox_proto(int proto_num);
 diff --git a/include/linux/init.h b/include/linux/init.h
-index e59041e..df0a975 100644
+index 10ed4f4..8e8490d 100644
 --- a/include/linux/init.h
 +++ b/include/linux/init.h
 @@ -39,9 +39,36 @@
@@ -64945,22 +69506,13 @@ index e59041e..df0a975 100644
 @@ -94,7 +121,7 @@
  #define __exit          __section(.exit.text) __exitused __cold notrace
  
- /* Used for HOTPLUG */
--#define __devinit        __section(.devinit.text) __cold notrace
-+#define __devinit        __section(.devinit.text) __cold notrace add_devinit_latent_entropy
- #define __devinitdata    __section(.devinit.data)
- #define __devinitconst   __constsection(.devinit.rodata)
- #define __devexit        __section(.devexit.text) __exitused __cold notrace
-@@ -102,7 +129,7 @@
- #define __devexitconst   __constsection(.devexit.rodata)
  /* Used for HOTPLUG_CPU */
 -#define __cpuinit        __section(.cpuinit.text) __cold notrace
 +#define __cpuinit        __section(.cpuinit.text) __cold notrace add_cpuinit_latent_entropy
  #define __cpuinitdata    __section(.cpuinit.data)
  #define __cpuinitconst   __constsection(.cpuinit.rodata)
  #define __cpuexit        __section(.cpuexit.text) __exitused __cold notrace
-@@ -110,7 +137,7 @@
+@@ -102,7 +129,7 @@
  #define __cpuexitconst   __constsection(.cpuexit.rodata)
  
  /* Used for MEMORY_HOTPLUG */
@@ -64995,10 +69547,10 @@ index 6d087c5..401cab8 100644
        .files          = &init_files,                                  \
        .signal         = &init_signals,                                \
 diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h
-index 5e4e617..eee383d 100644
+index 5fa5afe..ac55b25 100644
 --- a/include/linux/interrupt.h
 +++ b/include/linux/interrupt.h
-@@ -435,7 +435,7 @@ enum
+@@ -430,7 +430,7 @@ enum
  /* map softirq index to softirq name. update 'softirq_to_name' in
   * kernel/softirq.c when adding a new softirq.
   */
@@ -65007,13 +69559,14 @@ index 5e4e617..eee383d 100644
  
  /* softirq mask and active fields moved to irq_cpustat_t in
   * asm/hardirq.h to get better cache usage.  KAO
-@@ -443,12 +443,12 @@ extern char *softirq_to_name[NR_SOFTIRQS];
+@@ -438,12 +438,12 @@ extern char *softirq_to_name[NR_SOFTIRQS];
  
  struct softirq_action
  {
 -      void    (*action)(struct softirq_action *);
+-};
 +      void    (*action)(void);
- };
++} __no_const;
  
  asmlinkage void do_softirq(void);
  asmlinkage void __do_softirq(void);
@@ -65022,6 +69575,33 @@ index 5e4e617..eee383d 100644
  extern void softirq_init(void);
  extern void __raise_softirq_irqoff(unsigned int nr);
  
+diff --git a/include/linux/iommu.h b/include/linux/iommu.h
+index f3b99e1..9b73cee 100644
+--- a/include/linux/iommu.h
++++ b/include/linux/iommu.h
+@@ -101,7 +101,7 @@ struct iommu_ops {
+       int (*domain_set_attr)(struct iommu_domain *domain,
+                              enum iommu_attr attr, void *data);
+       unsigned long pgsize_bitmap;
+-};
++} __do_const;
+ #define IOMMU_GROUP_NOTIFY_ADD_DEVICE         1 /* Device added */
+ #define IOMMU_GROUP_NOTIFY_DEL_DEVICE         2 /* Pre Device removed */
+diff --git a/include/linux/irq.h b/include/linux/irq.h
+index fdf2c4a..5332486 100644
+--- a/include/linux/irq.h
++++ b/include/linux/irq.h
+@@ -328,7 +328,8 @@ struct irq_chip {
+       void            (*irq_print_chip)(struct irq_data *data, struct seq_file *p);
+       unsigned long   flags;
+-};
++} __do_const;
++typedef struct irq_chip __no_const irq_chip_no_const;
+ /*
+  * irq_chip specific flags
 diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h
 index 6883e19..06992b1 100644
 --- a/include/linux/kallsyms.h
@@ -65054,6 +69634,19 @@ index 6883e19..06992b1 100644
  
  /* This macro allows us to keep printk typechecking */
  static __printf(1, 2)
+diff --git a/include/linux/key-type.h b/include/linux/key-type.h
+index 518a53a..5e28358 100644
+--- a/include/linux/key-type.h
++++ b/include/linux/key-type.h
+@@ -125,7 +125,7 @@ struct key_type {
+       /* internal fields */
+       struct list_head        link;           /* link in types list */
+       struct lock_class_key   lock_class;     /* key->sem lock class */
+-};
++} __do_const;
+ extern struct key_type key_type_keyring;
 diff --git a/include/linux/kgdb.h b/include/linux/kgdb.h
 index 4dff0c6..1ca9b72 100644
 --- a/include/linux/kgdb.h
@@ -65099,7 +69692,7 @@ index 5398d58..5883a34 100644
  #define request_module_nowait(mod...) __request_module(false, mod)
  #define try_then_request_module(x, mod...) \
 diff --git a/include/linux/kobject.h b/include/linux/kobject.h
-index 1e57449..4fede7b 100644
+index 939b112..ed6ed51 100644
 --- a/include/linux/kobject.h
 +++ b/include/linux/kobject.h
 @@ -111,7 +111,7 @@ struct kobj_type {
@@ -65111,8 +69704,29 @@ index 1e57449..4fede7b 100644
  
  struct kobj_uevent_env {
        char *envp[UEVENT_NUM_ENVP];
+@@ -134,6 +134,7 @@ struct kobj_attribute {
+       ssize_t (*store)(struct kobject *kobj, struct kobj_attribute *attr,
+                        const char *buf, size_t count);
+ };
++typedef struct kobj_attribute __no_const kobj_attribute_no_const;
+ extern const struct sysfs_ops kobj_sysfs_ops;
+diff --git a/include/linux/kobject_ns.h b/include/linux/kobject_ns.h
+index f66b065..c2c29b4 100644
+--- a/include/linux/kobject_ns.h
++++ b/include/linux/kobject_ns.h
+@@ -43,7 +43,7 @@ struct kobj_ns_type_operations {
+       const void *(*netlink_ns)(struct sock *sk);
+       const void *(*initial_ns)(void);
+       void (*drop_ns)(void *);
+-};
++} __do_const;
+ int kobj_ns_type_register(const struct kobj_ns_type_operations *ops);
+ int kobj_ns_type_registered(enum kobj_ns_type type);
 diff --git a/include/linux/kref.h b/include/linux/kref.h
-index 65af688..0592677 100644
+index 4972e6e..de4d19b 100644
 --- a/include/linux/kref.h
 +++ b/include/linux/kref.h
 @@ -64,7 +64,7 @@ static inline void kref_get(struct kref *kref)
@@ -65125,10 +69739,10 @@ index 65af688..0592677 100644
        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 ecc5543..0e96bcc 100644
+index 2c497ab..afe32f5 100644
 --- a/include/linux/kvm_host.h
 +++ b/include/linux/kvm_host.h
-@@ -403,7 +403,7 @@ void kvm_vcpu_uninit(struct kvm_vcpu *vcpu);
+@@ -418,7 +418,7 @@ void kvm_vcpu_uninit(struct kvm_vcpu *vcpu);
  int __must_check vcpu_load(struct kvm_vcpu *vcpu);
  void vcpu_put(struct kvm_vcpu *vcpu);
  
@@ -65137,7 +69751,7 @@ index ecc5543..0e96bcc 100644
                  struct module *module);
  void kvm_exit(void);
  
-@@ -558,7 +558,7 @@ int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu,
+@@ -574,7 +574,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);
  
@@ -65147,7 +69761,7 @@ index ecc5543..0e96bcc 100644
  
  int kvm_arch_vcpu_init(struct kvm_vcpu *vcpu);
 diff --git a/include/linux/libata.h b/include/linux/libata.h
-index 1e36c63..0c5046e 100644
+index 649e5f8..ead5194 100644
 --- a/include/linux/libata.h
 +++ b/include/linux/libata.h
 @@ -915,7 +915,7 @@ struct ata_port_operations {
@@ -65160,21 +69774,71 @@ index 1e36c63..0c5046e 100644
  struct ata_port_info {
        unsigned long           flags;
 diff --git a/include/linux/list.h b/include/linux/list.h
-index cc6d2aa..71febca 100644
+index cc6d2aa..c10ee83 100644
 --- a/include/linux/list.h
 +++ b/include/linux/list.h
-@@ -112,6 +112,9 @@ extern void __list_del_entry(struct list_head *entry);
+@@ -112,6 +112,19 @@ extern void __list_del_entry(struct list_head *entry);
  extern void list_del(struct list_head *entry);
  #endif
  
-+extern void pax_list_add_tail(struct list_head *new, struct list_head *head);
++extern void __pax_list_add(struct list_head *new,
++                            struct list_head *prev,
++                            struct list_head *next);
++static inline void pax_list_add(struct list_head *new, struct list_head *head)
++{
++      __pax_list_add(new, head, head->next);
++}
++static inline void pax_list_add_tail(struct list_head *new, struct list_head *head)
++{
++      __pax_list_add(new, head->prev, head);
++}
 +extern void pax_list_del(struct list_head *entry);
 +
  /**
   * list_replace - replace old entry by new one
   * @old : the element to be replaced
+@@ -145,6 +158,8 @@ static inline void list_del_init(struct list_head *entry)
+       INIT_LIST_HEAD(entry);
+ }
++extern void pax_list_del_init(struct list_head *entry);
++
+ /**
+  * list_move - delete from one list and add as another's head
+  * @list: the entry to move
+diff --git a/include/linux/math64.h b/include/linux/math64.h
+index b8ba855..0148090 100644
+--- a/include/linux/math64.h
++++ b/include/linux/math64.h
+@@ -14,7 +14,7 @@
+  * This is commonly provided by 32bit archs to provide an optimized 64bit
+  * divide.
+  */
+-static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
++static inline u64 __intentional_overflow(-1) div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
+ {
+       *remainder = dividend % divisor;
+       return dividend / divisor;
+@@ -50,7 +50,7 @@ static inline s64 div64_s64(s64 dividend, s64 divisor)
+ #define div64_long(x,y) div_s64((x),(y))
+ #ifndef div_u64_rem
+-static inline u64 div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
++static inline u64 __intentional_overflow(-1) div_u64_rem(u64 dividend, u32 divisor, u32 *remainder)
+ {
+       *remainder = do_div(dividend, divisor);
+       return dividend;
+@@ -79,7 +79,7 @@ extern s64 div64_s64(s64 dividend, s64 divisor);
+  * divide.
+  */
+ #ifndef div_u64
+-static inline u64 div_u64(u64 dividend, u32 divisor)
++static inline u64 __intentional_overflow(-1) div_u64(u64 dividend, u32 divisor)
+ {
+       u32 remainder;
+       return div_u64_rem(dividend, divisor, &remainder);
 diff --git a/include/linux/mm.h b/include/linux/mm.h
-index 280dae5..39046ec 100644
+index 66e2f7c..b916b9a 100644
 --- a/include/linux/mm.h
 +++ b/include/linux/mm.h
 @@ -101,6 +101,11 @@ extern unsigned int kobjsize(const void *objp);
@@ -65189,7 +69853,52 @@ index 280dae5..39046ec 100644
  #define VM_DONTDUMP   0x04000000      /* Do not include in the core dump */
  
  #define VM_MIXEDMAP   0x10000000      /* Can contain "struct page" and pure PFN pages */
-@@ -1039,34 +1044,6 @@ int set_page_dirty(struct page *page);
+@@ -200,8 +205,8 @@ struct vm_operations_struct {
+       /* called by access_process_vm when get_user_pages() fails, typically
+        * for use by special VMAs that can switch between memory and hardware
+        */
+-      int (*access)(struct vm_area_struct *vma, unsigned long addr,
+-                    void *buf, int len, int write);
++      ssize_t (*access)(struct vm_area_struct *vma, unsigned long addr,
++                    void *buf, size_t len, int write);
+ #ifdef CONFIG_NUMA
+       /*
+        * set_policy() op must add a reference to any non-NULL @new mempolicy
+@@ -231,6 +236,7 @@ struct vm_operations_struct {
+       int (*remap_pages)(struct vm_area_struct *vma, unsigned long addr,
+                          unsigned long size, pgoff_t pgoff);
+ };
++typedef struct vm_operations_struct __no_const vm_operations_struct_no_const;
+ struct mmu_gather;
+ struct inode;
+@@ -995,8 +1001,8 @@ int follow_pfn(struct vm_area_struct *vma, unsigned long address,
+       unsigned long *pfn);
+ int follow_phys(struct vm_area_struct *vma, unsigned long address,
+               unsigned int flags, unsigned long *prot, resource_size_t *phys);
+-int generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
+-                      void *buf, int len, int write);
++ssize_t generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
++                      void *buf, size_t len, int write);
+ static inline void unmap_shared_mapping_range(struct address_space *mapping,
+               loff_t const holebegin, loff_t const holelen)
+@@ -1035,10 +1041,10 @@ static inline int fixup_user_fault(struct task_struct *tsk,
+ }
+ #endif
+-extern int make_pages_present(unsigned long addr, unsigned long end);
+-extern int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write);
+-extern int access_remote_vm(struct mm_struct *mm, unsigned long addr,
+-              void *buf, int len, int write);
++extern ssize_t make_pages_present(unsigned long addr, unsigned long end);
++extern ssize_t access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, size_t len, int write);
++extern ssize_t access_remote_vm(struct mm_struct *mm, unsigned long addr,
++              void *buf, size_t len, int write);
+ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
+                    unsigned long start, int len, unsigned int foll_flags,
+@@ -1068,34 +1074,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);
  
@@ -65224,7 +69933,7 @@ index 280dae5..39046ec 100644
  extern pid_t
  vm_is_stack(struct task_struct *task, struct vm_area_struct *vma, int in_group);
  
-@@ -1166,6 +1143,15 @@ static inline void sync_mm_rss(struct mm_struct *mm)
+@@ -1198,6 +1176,15 @@ static inline void sync_mm_rss(struct mm_struct *mm)
  }
  #endif
  
@@ -65240,7 +69949,7 @@ index 280dae5..39046ec 100644
  int vma_wants_writenotify(struct vm_area_struct *vma);
  
  extern pte_t *__get_locked_pte(struct mm_struct *mm, unsigned long addr,
-@@ -1184,8 +1170,15 @@ static inline int __pud_alloc(struct mm_struct *mm, pgd_t *pgd,
+@@ -1216,8 +1203,15 @@ static inline int __pud_alloc(struct mm_struct *mm, pgd_t *pgd,
  {
        return 0;
  }
@@ -65256,7 +69965,7 @@ index 280dae5..39046ec 100644
  #endif
  
  #ifdef __PAGETABLE_PMD_FOLDED
-@@ -1194,8 +1187,15 @@ static inline int __pmd_alloc(struct mm_struct *mm, pud_t *pud,
+@@ -1226,8 +1220,15 @@ static inline int __pmd_alloc(struct mm_struct *mm, pud_t *pud,
  {
        return 0;
  }
@@ -65272,7 +69981,7 @@ index 280dae5..39046ec 100644
  #endif
  
  int __pte_alloc(struct mm_struct *mm, struct vm_area_struct *vma,
-@@ -1213,11 +1213,23 @@ static inline pud_t *pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long a
+@@ -1245,11 +1246,23 @@ static inline pud_t *pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long a
                NULL: pud_offset(pgd, address);
  }
  
@@ -65296,7 +70005,7 @@ index 280dae5..39046ec 100644
  #endif /* CONFIG_MMU && !__ARCH_HAS_4LEVEL_HACK */
  
  #if USE_SPLIT_PTLOCKS
-@@ -1447,6 +1459,7 @@ extern unsigned long do_mmap_pgoff(struct file *, unsigned long,
+@@ -1479,6 +1492,7 @@ extern unsigned long do_mmap_pgoff(struct file *, unsigned long,
          unsigned long, unsigned long,
          unsigned long, unsigned long);
  extern int do_munmap(struct mm_struct *, unsigned long, size_t);
@@ -65304,7 +70013,7 @@ index 280dae5..39046ec 100644
  
  /* These take the mm semaphore themselves */
  extern unsigned long vm_brk(unsigned long, unsigned long);
-@@ -1510,6 +1523,10 @@ extern struct vm_area_struct * find_vma(struct mm_struct * mm, unsigned long add
+@@ -1573,6 +1587,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);
  
@@ -65315,7 +70024,7 @@ index 280dae5..39046ec 100644
  /* 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)
-@@ -1538,15 +1555,6 @@ static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm,
+@@ -1601,15 +1619,6 @@ static inline struct vm_area_struct *find_exact_vma(struct mm_struct *mm,
        return vma;
  }
  
@@ -65328,10 +70037,22 @@ index 280dae5..39046ec 100644
 -}
 -#endif
 -
- 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);
-@@ -1652,7 +1660,7 @@ extern int unpoison_memory(unsigned long pfn);
+ #ifdef CONFIG_ARCH_USES_NUMA_PROT_NONE
+ unsigned long change_prot_numa(struct vm_area_struct *vma,
+                       unsigned long start, unsigned long end);
+@@ -1649,6 +1658,11 @@ void vm_stat_account(struct mm_struct *, unsigned long, struct file *, long);
+ static inline void vm_stat_account(struct mm_struct *mm,
+                       unsigned long flags, struct file *file, long pages)
+ {
++
++#ifdef CONFIG_PAX_RANDMMAP
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP) || (flags & (VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)))
++#endif
++
+       mm->total_vm += pages;
+ }
+ #endif /* CONFIG_PROC_FS */
+@@ -1721,7 +1735,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);
@@ -65340,7 +70061,7 @@ index 280dae5..39046ec 100644
  extern int soft_offline_page(struct page *page, int flags);
  
  extern void dump_page(struct page *page);
-@@ -1683,5 +1691,11 @@ static inline unsigned int debug_guardpage_minorder(void) { return 0; }
+@@ -1752,5 +1766,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 */
  
@@ -65353,10 +70074,10 @@ index 280dae5..39046ec 100644
  #endif /* __KERNEL__ */
  #endif /* _LINUX_MM_H */
 diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h
-index 31f8a3a..499f1db 100644
+index f8f5162..3aaf20f 100644
 --- a/include/linux/mm_types.h
 +++ b/include/linux/mm_types.h
-@@ -275,6 +275,8 @@ struct vm_area_struct {
+@@ -288,6 +288,8 @@ struct vm_area_struct {
  #ifdef CONFIG_NUMA
        struct mempolicy *vm_policy;    /* NUMA policy for the VMA */
  #endif
@@ -65365,17 +70086,8 @@ index 31f8a3a..499f1db 100644
  };
  
  struct core_thread {
-@@ -348,7 +350,7 @@ struct mm_struct {
-       unsigned long def_flags;
-       unsigned long nr_ptes;          /* Page table pages */
-       unsigned long start_code, end_code, start_data, end_data;
--      unsigned long start_brk, brk, start_stack;
-+      unsigned long brk_gap, start_brk, brk, start_stack;
-       unsigned long arg_start, arg_end, env_start, env_end;
-       unsigned long saved_auxv[AT_VECTOR_SIZE]; /* for /proc/PID/auxv */
-@@ -399,6 +401,24 @@ struct mm_struct {
-       struct cpumask cpumask_allocation;
+@@ -436,6 +438,24 @@ struct mm_struct {
+       int first_nid;
  #endif
        struct uprobes_state uprobes_state;
 +
@@ -65398,7 +70110,7 @@ index 31f8a3a..499f1db 100644
 +
  };
  
- static inline void mm_init_cpumask(struct mm_struct *mm)
+ /* first nid will either be a valid NID or one of these values */
 diff --git a/include/linux/mmiotrace.h b/include/linux/mmiotrace.h
 index c5d5278..f0b68c8 100644
 --- a/include/linux/mmiotrace.h
@@ -65422,10 +70134,10 @@ index c5d5278..f0b68c8 100644
  }
  
 diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h
-index a23923b..073fee4 100644
+index 73b64a3..6562925 100644
 --- a/include/linux/mmzone.h
 +++ b/include/linux/mmzone.h
-@@ -421,7 +421,7 @@ struct zone {
+@@ -412,7 +412,7 @@ struct zone {
        unsigned long           flags;             /* zone flags, see below */
  
        /* Zone statistics */
@@ -65435,7 +70147,7 @@ index a23923b..073fee4 100644
        /*
         * 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 fed3def..7cc3f93 100644
+index fed3def..c933f99 100644
 --- a/include/linux/mod_devicetable.h
 +++ b/include/linux/mod_devicetable.h
 @@ -12,7 +12,7 @@
@@ -65456,8 +70168,17 @@ index fed3def..7cc3f93 100644
  #define HID_BUS_ANY                           0xffff
  #define HID_GROUP_ANY                         0x0000
  
+@@ -498,7 +498,7 @@ struct dmi_system_id {
+       const char *ident;
+       struct dmi_strmatch matches[4];
+       void *driver_data;
+-};
++} __do_const;
+ /*
+  * struct dmi_device_id appears during expansion of
+  * "MODULE_DEVICE_TABLE(dmi, x)". Compiler doesn't look inside it
 diff --git a/include/linux/module.h b/include/linux/module.h
-index 1375ee3..d631af0 100644
+index 1375ee3..ced8177 100644
 --- a/include/linux/module.h
 +++ b/include/linux/module.h
 @@ -17,9 +17,11 @@
@@ -65472,7 +70193,31 @@ index 1375ee3..d631af0 100644
  
  /* In stripped ARM and x86-64 modules, ~ is surprisingly rare. */
  #define MODULE_SIG_STRING "~Module signature appended~\n"
-@@ -281,19 +283,16 @@ struct module
+@@ -54,12 +56,13 @@ struct module_attribute {
+       int (*test)(struct module *);
+       void (*free)(struct module *);
+ };
++typedef struct module_attribute __no_const module_attribute_no_const;
+ struct module_version_attribute {
+       struct module_attribute mattr;
+       const char *module_name;
+       const char *version;
+-} __attribute__ ((__aligned__(sizeof(void *))));
++} __do_const __attribute__ ((__aligned__(sizeof(void *))));
+ extern ssize_t __modver_version_show(struct module_attribute *,
+                                    struct module_kobject *, char *);
+@@ -232,7 +235,7 @@ struct module
+       /* Sysfs stuff. */
+       struct module_kobject mkobj;
+-      struct module_attribute *modinfo_attrs;
++      module_attribute_no_const *modinfo_attrs;
+       const char *version;
+       const char *srcversion;
+       struct kobject *holders_dir;
+@@ -281,19 +284,16 @@ struct module
        int (*init)(void);
  
        /* If this is non-NULL, vfree after init() returns */
@@ -65496,7 +70241,7 @@ index 1375ee3..d631af0 100644
  
        /* Arch-specific module values */
        struct mod_arch_specific arch;
-@@ -349,6 +348,10 @@ struct module
+@@ -349,6 +349,10 @@ struct module
  #ifdef CONFIG_EVENT_TRACING
        struct ftrace_event_call **trace_events;
        unsigned int num_trace_events;
@@ -65507,7 +70252,7 @@ index 1375ee3..d631af0 100644
  #endif
  #ifdef CONFIG_FTRACE_MCOUNT_RECORD
        unsigned int num_ftrace_callsites;
-@@ -396,16 +399,46 @@ bool is_module_address(unsigned long addr);
+@@ -396,16 +400,46 @@ bool is_module_address(unsigned long addr);
  bool is_module_percpu_address(unsigned long addr);
  bool is_module_text_address(unsigned long addr);
  
@@ -65559,22 +70304,19 @@ index 1375ee3..d631af0 100644
  
  /* Search for module by name: must hold module_mutex. */
 diff --git a/include/linux/moduleloader.h b/include/linux/moduleloader.h
-index 560ca53..5ee8d73 100644
+index 560ca53..ef621ef 100644
 --- a/include/linux/moduleloader.h
 +++ b/include/linux/moduleloader.h
-@@ -23,11 +23,23 @@ unsigned int arch_mod_section_prepend(struct module *mod, unsigned int section);
- /* Allocator used for allocating struct module, core sections and init
+@@ -25,9 +25,21 @@ unsigned int arch_mod_section_prepend(struct module *mod, unsigned int section);
     sections.  Returns NULL on failure. */
--void *module_alloc(unsigned long size);
-+void *module_alloc(unsigned long size) __size_overflow(1);
-+
+ void *module_alloc(unsigned long size);
 +#ifdef CONFIG_PAX_KERNEXEC
-+void *module_alloc_exec(unsigned long size) __size_overflow(1);
++void *module_alloc_exec(unsigned long size);
 +#else
 +#define module_alloc_exec(x) module_alloc(x)
 +#endif
++
  /* Free memory returned from module_alloc. */
  void module_free(struct module *mod, void *module_region);
  
@@ -65608,10 +70350,10 @@ index 560ca53..5ee8d73 100644
  }
  #endif
 diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h
-index d6a5806..7c13347 100644
+index 137b419..fe663ec 100644
 --- a/include/linux/moduleparam.h
 +++ b/include/linux/moduleparam.h
-@@ -286,7 +286,7 @@ static inline void __kernel_param_unlock(void)
+@@ -284,7 +284,7 @@ static inline void __kernel_param_unlock(void)
   * @len is usually just sizeof(string).
   */
  #define module_param_string(name, string, len, perm)                  \
@@ -65620,7 +70362,7 @@ index d6a5806..7c13347 100644
                = { len, string };                                      \
        __module_param_call(MODULE_PARAM_PREFIX, name,                  \
                            &param_ops_string,                          \
-@@ -425,7 +425,7 @@ extern int param_set_bint(const char *val, const struct kernel_param *kp);
+@@ -423,7 +423,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]);                          \
@@ -65630,10 +70372,10 @@ index d6a5806..7c13347 100644
            .ops = &param_ops_##type,                                   \
            .elemsize = sizeof(array[0]), .elem = array };              \
 diff --git a/include/linux/namei.h b/include/linux/namei.h
-index 4bf19d8..5268cea 100644
+index 5a5ff57..5ae5070 100644
 --- a/include/linux/namei.h
 +++ b/include/linux/namei.h
-@@ -18,7 +18,7 @@ struct nameidata {
+@@ -19,7 +19,7 @@ struct nameidata {
        unsigned        seq;
        int             last_type;
        unsigned        depth;
@@ -65642,7 +70384,7 @@ index 4bf19d8..5268cea 100644
  };
  
  /*
-@@ -83,12 +83,12 @@ extern void unlock_rename(struct dentry *, struct dentry *);
+@@ -84,12 +84,12 @@ extern void unlock_rename(struct dentry *, struct dentry *);
  
  extern void nd_jump_link(struct nameidata *nd, struct path *path);
  
@@ -65657,19 +70399,32 @@ index 4bf19d8..5268cea 100644
  {
        return nd->saved_names[nd->depth];
  }
+diff --git a/include/linux/net.h b/include/linux/net.h
+index aa16731..514b875 100644
+--- a/include/linux/net.h
++++ b/include/linux/net.h
+@@ -183,7 +183,7 @@ struct net_proto_family {
+       int             (*create)(struct net *net, struct socket *sock,
+                                 int protocol, int kern);
+       struct module   *owner;
+-};
++} __do_const;
+ struct iovec;
+ struct kvec;
 diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
-index a848ffc..3bbbaee 100644
+index 9ef07d0..130a5d9 100644
 --- a/include/linux/netdevice.h
 +++ b/include/linux/netdevice.h
-@@ -999,6 +999,7 @@ struct net_device_ops {
-                                               struct net_device *dev,
-                                               int idx);
+@@ -1012,6 +1012,7 @@ struct net_device_ops {
+                                                     u32 pid, u32 seq,
+                                                     struct net_device *dev);
  };
 +typedef struct net_device_ops __no_const net_device_ops_no_const;
  
  /*
   *    The DEVICE structure.
-@@ -1059,7 +1060,7 @@ struct net_device {
+@@ -1078,7 +1079,7 @@ struct net_device {
        int                     iflink;
  
        struct net_device_stats stats;
@@ -65678,6 +70433,19 @@ index a848ffc..3bbbaee 100644
                                             * Do not use this in drivers.
                                             */
  
+diff --git a/include/linux/netfilter.h b/include/linux/netfilter.h
+index ee14284..bc65d63 100644
+--- a/include/linux/netfilter.h
++++ b/include/linux/netfilter.h
+@@ -82,7 +82,7 @@ struct nf_sockopt_ops {
+ #endif
+       /* Use the module struct to lock set/get code in place */
+       struct module *owner;
+-};
++} __do_const;
+ /* Function to register/unregister hook points. */
+ int nf_register_hook(struct nf_hook_ops *reg);
 diff --git a/include/linux/netfilter/ipset/ip_set.h b/include/linux/netfilter/ipset/ip_set.h
 index 7958e84..ed74d7a 100644
 --- a/include/linux/netfilter/ipset/ip_set.h
@@ -65719,6 +70487,19 @@ index 0000000..33f4af8
 +};
 +
 +#endif
+diff --git a/include/linux/nls.h b/include/linux/nls.h
+index 5dc635f..35f5e11 100644
+--- a/include/linux/nls.h
++++ b/include/linux/nls.h
+@@ -31,7 +31,7 @@ struct nls_table {
+       const unsigned char *charset2upper;
+       struct module *owner;
+       struct nls_table *next;
+-};
++} __do_const;
+ /* this value hold the maximum octet of charset */
+ #define NLS_MAX_CHARSET_SIZE 6 /* for UTF-8 */
 diff --git a/include/linux/notifier.h b/include/linux/notifier.h
 index d65746e..62e72c2 100644
 --- a/include/linux/notifier.h
@@ -65749,8 +70530,22 @@ index a4c5624..79d6d88 100644
   
  /** create a directory */
  struct dentry * oprofilefs_mkdir(struct super_block * sb, struct dentry * root,
+diff --git a/include/linux/pci_hotplug.h b/include/linux/pci_hotplug.h
+index 45fc162..01a4068 100644
+--- a/include/linux/pci_hotplug.h
++++ b/include/linux/pci_hotplug.h
+@@ -80,7 +80,8 @@ struct hotplug_slot_ops {
+       int (*get_attention_status)     (struct hotplug_slot *slot, u8 *value);
+       int (*get_latch_status)         (struct hotplug_slot *slot, u8 *value);
+       int (*get_adapter_status)       (struct hotplug_slot *slot, u8 *value);
+-};
++} __do_const;
++typedef struct hotplug_slot_ops __no_const hotplug_slot_ops_no_const;
+ /**
+  * struct hotplug_slot_info - used to notify the hotplug pci core of the state of the slot
 diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h
-index 6bfb2faa..1204767 100644
+index a280650..2b67b91 100644
 --- a/include/linux/perf_event.h
 +++ b/include/linux/perf_event.h
 @@ -328,8 +328,8 @@ struct perf_event {
@@ -65775,6 +70570,15 @@ index 6bfb2faa..1204767 100644
  
        /*
         * Protect attach/detach and child_list:
+@@ -807,7 +807,7 @@ static inline void perf_restore_debug_store(void)                  { }
+  */
+ #define perf_cpu_notifier(fn)                                         \
+ do {                                                                  \
+-      static struct notifier_block fn##_nb __cpuinitdata =            \
++      static struct notifier_block fn##_nb =                          \
+               { .notifier_call = fn, .priority = CPU_PRI_PERF };      \
+       unsigned long cpu = smp_processor_id();                         \
+       unsigned long flags;                                            \
 diff --git a/include/linux/pipe_fs_i.h b/include/linux/pipe_fs_i.h
 index ad1a427..6419649 100644
 --- a/include/linux/pipe_fs_i.h
@@ -65805,6 +70609,32 @@ index 5f28cae..3d23723 100644
  
  extern void s5p_ehci_set_platdata(struct s5p_ehci_platdata *pd);
  
+diff --git a/include/linux/platform_data/usb-exynos.h b/include/linux/platform_data/usb-exynos.h
+index c256c59..8ea94c7 100644
+--- a/include/linux/platform_data/usb-exynos.h
++++ b/include/linux/platform_data/usb-exynos.h
+@@ -14,7 +14,7 @@
+ struct exynos4_ohci_platdata {
+       int (*phy_init)(struct platform_device *pdev, int type);
+       int (*phy_exit)(struct platform_device *pdev, int type);
+-};
++} __no_const;
+ extern void exynos4_ohci_set_platdata(struct exynos4_ohci_platdata *pd);
+diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h
+index 7c1d252..c5c773e 100644
+--- a/include/linux/pm_domain.h
++++ b/include/linux/pm_domain.h
+@@ -48,7 +48,7 @@ struct gpd_dev_ops {
+ struct gpd_cpu_data {
+       unsigned int saved_exit_latency;
+-      struct cpuidle_state *idle_state;
++      cpuidle_state_no_const *idle_state;
+ };
+ struct generic_pm_domain {
 diff --git a/include/linux/pm_runtime.h b/include/linux/pm_runtime.h
 index f271860..6b3bec5 100644
 --- a/include/linux/pm_runtime.h
@@ -65818,6 +70648,19 @@ index f271860..6b3bec5 100644
  }
  
  #else /* !CONFIG_PM_RUNTIME */
+diff --git a/include/linux/pnp.h b/include/linux/pnp.h
+index 195aafc..49a7bc2 100644
+--- a/include/linux/pnp.h
++++ b/include/linux/pnp.h
+@@ -297,7 +297,7 @@ static inline void pnp_set_drvdata(struct pnp_dev *pdev, void *data)
+ struct pnp_fixup {
+       char id[7];
+       void (*quirk_function) (struct pnp_dev * dev);  /* fixup function */
+-};
++} __do_const;
+ /* config parameters */
+ #define PNP_CONFIG_NORMAL     0x0001
 diff --git a/include/linux/poison.h b/include/linux/poison.h
 index 2110a81..13a11bb 100644
 --- a/include/linux/poison.h
@@ -65834,7 +70677,7 @@ index 2110a81..13a11bb 100644
  /********** include/linux/timer.h **********/
  /*
 diff --git a/include/linux/power/smartreflex.h b/include/linux/power/smartreflex.h
-index 4a496eb..d9c5659 100644
+index c0f44c2..1572583 100644
 --- a/include/linux/power/smartreflex.h
 +++ b/include/linux/power/smartreflex.h
 @@ -238,7 +238,7 @@ struct omap_sr_class_data {
@@ -65846,6 +70689,19 @@ index 4a496eb..d9c5659 100644
  
  /**
   * struct omap_sr_nvalue_table        - Smartreflex n-target value info
+diff --git a/include/linux/ppp-comp.h b/include/linux/ppp-comp.h
+index 4ea1d37..80f4b33 100644
+--- a/include/linux/ppp-comp.h
++++ b/include/linux/ppp-comp.h
+@@ -84,7 +84,7 @@ struct compressor {
+       struct module *owner;
+       /* Extra skb space needed by the compressor algorithm */
+       unsigned int comp_extra;
+-};
++} __do_const;
+ /*
+  * The return value from decompress routine is the length of the
 diff --git a/include/linux/printk.h b/include/linux/printk.h
 index 9afc01e..92c32e8 100644
 --- a/include/linux/printk.h
@@ -65868,10 +70724,10 @@ index 9afc01e..92c32e8 100644
  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 3fd2e87..75db910 100644
+index 32676b3..e46f2c0 100644
 --- a/include/linux/proc_fs.h
 +++ b/include/linux/proc_fs.h
-@@ -155,6 +155,18 @@ static inline struct proc_dir_entry *proc_create(const char *name, umode_t mode,
+@@ -159,6 +159,18 @@ static inline struct proc_dir_entry *proc_create(const char *name, umode_t mode,
        return proc_create_data(name, mode, parent, proc_fops, NULL);
  }
  
@@ -65890,29 +70746,79 @@ index 3fd2e87..75db910 100644
  static inline struct proc_dir_entry *create_proc_read_entry(const char *name,
        umode_t mode, struct proc_dir_entry *base, 
        read_proc_t *read_proc, void * data)
+@@ -268,7 +280,7 @@ struct proc_ns_operations {
+       void (*put)(void *ns);
+       int (*install)(struct nsproxy *nsproxy, void *ns);
+       unsigned int (*inum)(void *ns);
+-};
++} __do_const;
+ extern const struct proc_ns_operations netns_operations;
+ extern const struct proc_ns_operations utsns_operations;
+ extern const struct proc_ns_operations ipcns_operations;
 diff --git a/include/linux/random.h b/include/linux/random.h
-index 6330ed4..419c6c3 100644
+index d984608..d6f0042 100644
 --- a/include/linux/random.h
 +++ b/include/linux/random.h
-@@ -30,12 +30,17 @@ void srandom32(u32 seed);
u32 prandom32(struct rnd_state *);
+@@ -39,6 +39,11 @@ void prandom_seed(u32 seed);
+ u32 prandom_u32_state(struct rnd_state *);
void prandom_bytes_state(struct rnd_state *state, void *buf, int nbytes);
  
 +static inline unsigned long pax_get_random_long(void)
 +{
-+      return random32() + (sizeof(long) > 4 ? (unsigned long)random32() << 32 : 0);
++      return prandom_u32() + (sizeof(long) > 4 ? (unsigned long)prandom_u32() << 32 : 0);
 +}
 +
  /*
   * Handle minimum values for seeds
   */
- static inline u32 __seed(u32 x, u32 m)
- {
--      return (x < m) ? x + m : x;
-+      return (x <= m) ? x + m + 1 : x;
+diff --git a/include/linux/rculist.h b/include/linux/rculist.h
+index c92dd28..08f4eab 100644
+--- a/include/linux/rculist.h
++++ b/include/linux/rculist.h
+@@ -44,6 +44,9 @@ extern void __list_add_rcu(struct list_head *new,
+               struct list_head *prev, struct list_head *next);
+ #endif
++extern void __pax_list_add_rcu(struct list_head *new,
++              struct list_head *prev, struct list_head *next);
++
+ /**
+  * list_add_rcu - add a new entry to rcu-protected list
+  * @new: new entry to be added
+@@ -65,6 +68,11 @@ static inline void list_add_rcu(struct list_head *new, struct list_head *head)
+       __list_add_rcu(new, head, head->next);
+ }
++static inline void pax_list_add_rcu(struct list_head *new, struct list_head *head)
++{
++      __pax_list_add_rcu(new, head, head->next);
++}
++
+ /**
+  * list_add_tail_rcu - add a new entry to rcu-protected list
+  * @new: new entry to be added
+@@ -87,6 +95,12 @@ static inline void list_add_tail_rcu(struct list_head *new,
+       __list_add_rcu(new, head->prev, head);
+ }
++static inline void pax_list_add_tail_rcu(struct list_head *new,
++                                      struct list_head *head)
++{
++      __pax_list_add_rcu(new, head->prev, head);
++}
++
+ /**
+  * list_del_rcu - deletes entry from list without re-initialization
+  * @entry: the element to delete from the list.
+@@ -117,6 +131,8 @@ static inline void list_del_rcu(struct list_head *entry)
+       entry->prev = LIST_POISON2;
  }
  
++extern void pax_list_del_rcu(struct list_head *entry);
++
  /**
+  * hlist_del_init_rcu - deletes entry from hash list with re-initialization
+  * @n: the element to delete from the hash list.
 diff --git a/include/linux/reboot.h b/include/linux/reboot.h
 index 23b3630..e1bc12b 100644
 --- a/include/linux/reboot.h
@@ -65953,15 +70859,16 @@ index 23b3630..e1bc12b 100644
  
  #endif /* _LINUX_REBOOT_H */
 diff --git a/include/linux/regset.h b/include/linux/regset.h
-index 8e0c9fe..fdb64bc 100644
+index 8e0c9fe..ac4d221 100644
 --- a/include/linux/regset.h
 +++ b/include/linux/regset.h
-@@ -161,7 +161,7 @@ struct user_regset {
+@@ -161,7 +161,8 @@ struct user_regset {
        unsigned int                    align;
        unsigned int                    bias;
        unsigned int                    core_note_type;
 -};
 +} __do_const;
++typedef struct user_regset __no_const user_regset_no_const;
  
  /**
   * struct user_regset_view - available regsets
@@ -65992,10 +70899,10 @@ index a3e7842..d973ca6 100644
  #define RIO_RESOURCE_MEM      0x00000100
  #define RIO_RESOURCE_DOORBELL 0x00000200
 diff --git a/include/linux/rmap.h b/include/linux/rmap.h
-index bfe1f47..6a33ee3 100644
+index c20635c..2f5def4 100644
 --- a/include/linux/rmap.h
 +++ b/include/linux/rmap.h
-@@ -134,8 +134,8 @@ static inline void anon_vma_unlock(struct anon_vma *anon_vma)
+@@ -145,8 +145,8 @@ static inline void anon_vma_unlock_read(struct anon_vma *anon_vma)
  void anon_vma_init(void);     /* create anon_vma_cachep */
  int  anon_vma_prepare(struct vm_area_struct *);
  void unlink_anon_vmas(struct vm_area_struct *);
@@ -66007,7 +70914,7 @@ index bfe1f47..6a33ee3 100644
  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 3e63925..6c93b17 100644
+index d211247..eac6c2c 100644
 --- a/include/linux/sched.h
 +++ b/include/linux/sched.h
 @@ -61,6 +61,7 @@ struct bio_list;
@@ -66018,7 +70925,16 @@ index 3e63925..6c93b17 100644
  
  /*
   * List of flags we want to share for kernel threads,
-@@ -344,10 +345,23 @@ struct user_namespace;
+@@ -327,7 +328,7 @@ extern char __sched_text_start[], __sched_text_end[];
+ extern int in_sched_functions(unsigned long addr);
+ #define       MAX_SCHEDULE_TIMEOUT    LONG_MAX
+-extern signed long schedule_timeout(signed long timeout);
++extern signed long schedule_timeout(signed long timeout) __intentional_overflow(-1);
+ extern signed long schedule_timeout_interruptible(signed long timeout);
+ extern signed long schedule_timeout_killable(signed long timeout);
+ extern signed long schedule_timeout_uninterruptible(signed long timeout);
+@@ -354,10 +355,23 @@ struct user_namespace;
  #define DEFAULT_MAX_MAP_COUNT (USHRT_MAX - MAPCOUNT_ELF_CORE_MARGIN)
  
  extern int sysctl_max_map_count;
@@ -66042,7 +70958,7 @@ index 3e63925..6c93b17 100644
  extern void arch_pick_mmap_layout(struct mm_struct *mm);
  extern unsigned long
  arch_get_unmapped_area(struct file *, unsigned long, unsigned long,
-@@ -614,6 +628,17 @@ struct signal_struct {
+@@ -639,6 +653,17 @@ struct signal_struct {
  #ifdef CONFIG_TASKSTATS
        struct taskstats *stats;
  #endif
@@ -66060,7 +70976,7 @@ index 3e63925..6c93b17 100644
  #ifdef CONFIG_AUDIT
        unsigned audit_tty;
        struct tty_audit_buf *tty_audit_buf;
-@@ -691,6 +716,11 @@ struct user_struct {
+@@ -717,6 +742,11 @@ struct user_struct {
        struct key *session_keyring;    /* UID's default session keyring */
  #endif
  
@@ -66072,7 +70988,16 @@ index 3e63925..6c93b17 100644
        /* Hash table maintenance information */
        struct hlist_node uidhash_node;
        kuid_t uid;
-@@ -1312,8 +1342,8 @@ struct task_struct {
+@@ -1116,7 +1146,7 @@ struct sched_class {
+ #ifdef CONFIG_FAIR_GROUP_SCHED
+       void (*task_move_group) (struct task_struct *p, int on_rq);
+ #endif
+-};
++} __do_const;
+ struct load_weight {
+       unsigned long weight, inv_weight;
+@@ -1360,8 +1390,8 @@ struct task_struct {
        struct list_head thread_group;
  
        struct completion *vfork_done;          /* for vfork() */
@@ -66083,7 +71008,7 @@ index 3e63925..6c93b17 100644
  
        cputime_t utime, stime, utimescaled, stimescaled;
        cputime_t gtime;
-@@ -1329,11 +1359,6 @@ struct task_struct {
+@@ -1377,11 +1407,6 @@ struct task_struct {
        struct task_cputime cputime_expires;
        struct list_head cpu_timers[3];
  
@@ -66095,7 +71020,7 @@ index 3e63925..6c93b17 100644
        char comm[TASK_COMM_LEN]; /* executable name excluding path
                                     - access with [gs]et_task_comm (which lock
                                       it with task_lock())
-@@ -1350,6 +1375,10 @@ struct task_struct {
+@@ -1398,6 +1423,10 @@ struct task_struct {
  #endif
  /* CPU-specific state of this task */
        struct thread_struct thread;
@@ -66106,7 +71031,7 @@ index 3e63925..6c93b17 100644
  /* filesystem information */
        struct fs_struct *fs;
  /* open file information */
-@@ -1423,6 +1452,10 @@ struct task_struct {
+@@ -1471,6 +1500,10 @@ struct task_struct {
        gfp_t lockdep_reclaim_gfp;
  #endif
  
@@ -66117,7 +71042,7 @@ index 3e63925..6c93b17 100644
  /* journalling filesystem info */
        void *journal_info;
  
-@@ -1461,6 +1494,10 @@ struct task_struct {
+@@ -1509,6 +1542,10 @@ struct task_struct {
        /* cg_list protected by css_set_lock and tsk->alloc_lock */
        struct list_head cg_list;
  #endif
@@ -66128,7 +71053,7 @@ index 3e63925..6c93b17 100644
  #ifdef CONFIG_FUTEX
        struct robust_list_head __user *robust_list;
  #ifdef CONFIG_COMPAT
-@@ -1548,8 +1585,74 @@ struct task_struct {
+@@ -1605,8 +1642,74 @@ struct task_struct {
  #ifdef CONFIG_UPROBES
        struct uprobe_task *utask;
  #endif
@@ -66203,7 +71128,16 @@ index 3e63925..6c93b17 100644
  /* Future-safe accessor for struct task_struct's cpus_allowed. */
  #define tsk_cpus_allowed(tsk) (&(tsk)->cpus_allowed)
  
-@@ -2092,7 +2195,9 @@ void yield(void);
+@@ -1696,7 +1799,7 @@ struct pid_namespace;
+ pid_t __task_pid_nr_ns(struct task_struct *task, enum pid_type type,
+                       struct pid_namespace *ns);
+-static inline pid_t task_pid_nr(struct task_struct *tsk)
++static inline pid_t task_pid_nr(const struct task_struct *tsk)
+ {
+       return tsk->pid;
+ }
+@@ -2155,7 +2258,9 @@ void yield(void);
  extern struct exec_domain     default_exec_domain;
  
  union thread_union {
@@ -66213,7 +71147,7 @@ index 3e63925..6c93b17 100644
        unsigned long stack[THREAD_SIZE/sizeof(long)];
  };
  
-@@ -2125,6 +2230,7 @@ extern struct pid_namespace init_pid_ns;
+@@ -2188,6 +2293,7 @@ extern struct pid_namespace init_pid_ns;
   */
  
  extern struct task_struct *find_task_by_vpid(pid_t nr);
@@ -66221,16 +71155,16 @@ index 3e63925..6c93b17 100644
  extern struct task_struct *find_task_by_pid_ns(pid_t nr,
                struct pid_namespace *ns);
  
-@@ -2281,7 +2387,7 @@ extern void __cleanup_sighand(struct sighand_struct *);
+@@ -2344,7 +2450,7 @@ extern void __cleanup_sighand(struct sighand_struct *);
  extern void exit_itimers(struct signal_struct *);
  extern void flush_itimer_signals(void);
  
 -extern void do_group_exit(int);
 +extern __noreturn void do_group_exit(int);
  
- extern void daemonize(const char *, ...);
  extern int allow_signal(int);
-@@ -2485,9 +2591,9 @@ static inline unsigned long *end_of_stack(struct task_struct *p)
+ extern int disallow_signal(int);
+@@ -2545,9 +2651,9 @@ static inline unsigned long *end_of_stack(struct task_struct *p)
  
  #endif
  
@@ -66243,7 +71177,7 @@ index 3e63925..6c93b17 100644
        return (obj >= stack) && (obj < (stack + THREAD_SIZE));
  }
 diff --git a/include/linux/security.h b/include/linux/security.h
-index 05e88bd..5cda002 100644
+index eee7478..290f7ba 100644
 --- a/include/linux/security.h
 +++ b/include/linux/security.h
 @@ -26,6 +26,7 @@
@@ -66277,7 +71211,7 @@ index 68a04a3..866e6a1 100644
  #define SEQ_SKIP 1
  
 diff --git a/include/linux/shm.h b/include/linux/shm.h
-index bcf8a6a..4d0af77 100644
+index 429c199..4d42e38 100644
 --- a/include/linux/shm.h
 +++ b/include/linux/shm.h
 @@ -21,6 +21,10 @@ struct shmid_kernel /* private to the kernel */
@@ -66292,10 +71226,10 @@ index bcf8a6a..4d0af77 100644
  
  /* shm_mode upper byte flags */
 diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
-index 6a2c34e..a1f320f 100644
+index 98399e2..7c74c41 100644
 --- a/include/linux/skbuff.h
 +++ b/include/linux/skbuff.h
-@@ -577,7 +577,7 @@ extern bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
+@@ -590,7 +590,7 @@ extern bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
  extern struct sk_buff *__alloc_skb(unsigned int size,
                                   gfp_t priority, int flags, int node);
  extern struct sk_buff *build_skb(void *data, unsigned int frag_size);
@@ -66304,7 +71238,7 @@ index 6a2c34e..a1f320f 100644
                                        gfp_t priority)
  {
        return __alloc_skb(size, priority, 0, NUMA_NO_NODE);
-@@ -687,7 +687,7 @@ static inline struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb)
+@@ -700,7 +700,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)
  {
@@ -66313,7 +71247,7 @@ index 6a2c34e..a1f320f 100644
  }
  
  /**
-@@ -700,7 +700,7 @@ static inline int skb_queue_empty(const struct sk_buff_head *list)
+@@ -713,7 +713,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)
  {
@@ -66322,7 +71256,7 @@ index 6a2c34e..a1f320f 100644
  }
  
  /**
-@@ -713,7 +713,7 @@ static inline bool skb_queue_is_last(const struct sk_buff_head *list,
+@@ -726,7 +726,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)
  {
@@ -66331,7 +71265,7 @@ index 6a2c34e..a1f320f 100644
  }
  
  /**
-@@ -1626,7 +1626,7 @@ static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len)
+@@ -1727,7 +1727,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
@@ -66340,7 +71274,7 @@ index 6a2c34e..a1f320f 100644
  #endif
  
  extern int ___pskb_trim(struct sk_buff *skb, unsigned int len);
-@@ -2204,7 +2204,7 @@ extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags,
+@@ -2305,7 +2305,7 @@ extern struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags,
                                         int noblock, int *err);
  extern unsigned int    datagram_poll(struct file *file, struct socket *sock,
                                     struct poll_table_struct *wait);
@@ -66349,14 +71283,25 @@ index 6a2c34e..a1f320f 100644
                                               int offset, struct iovec *to,
                                               int size);
  extern int           skb_copy_and_csum_datagram_iovec(struct sk_buff *skb,
+@@ -2595,6 +2595,9 @@ static inline void nf_reset(struct sk_buff *skb)
+       nf_bridge_put(skb->nf_bridge);
+       skb->nf_bridge = NULL;
+ #endif
++#if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE)
++      skb->nf_trace = 0;
++#endif
+ }
+ /* Note: This doesn't put any conntrack and bridge info in dst. */
 diff --git a/include/linux/slab.h b/include/linux/slab.h
-index 83d1a14..e23d723 100644
+index 5d168d7..720bff3 100644
 --- a/include/linux/slab.h
 +++ b/include/linux/slab.h
-@@ -11,12 +11,20 @@
+@@ -12,13 +12,20 @@
  #include <linux/gfp.h>
  #include <linux/types.h>
+ #include <linux/workqueue.h>
+-
 +#include <linux/err.h>
  
  /*
@@ -66374,7 +71319,7 @@ index 83d1a14..e23d723 100644
  #define SLAB_RED_ZONE         0x00000400UL    /* DEBUG: Red zone objs in a cache */
  #define SLAB_POISON           0x00000800UL    /* DEBUG: Poison objects */
  #define SLAB_HWCACHE_ALIGN    0x00002000UL    /* Align objs on cache lines */
-@@ -87,10 +95,13 @@
+@@ -89,10 +96,13 @@
   * ZERO_SIZE_PTR can be passed to kfree though in the same way that NULL can.
   * Both make kfree a no-op.
   */
@@ -66391,7 +71336,7 @@ index 83d1a14..e23d723 100644
  
  /*
   * Common fields provided in kmem_cache by all slab allocators
-@@ -110,7 +121,7 @@ struct kmem_cache {
+@@ -112,7 +122,7 @@ struct kmem_cache {
        unsigned int align;     /* Alignment as calculated */
        unsigned long flags;    /* Active flags on the slab */
        const char *name;       /* Slab name for sysfs */
@@ -66400,7 +71345,7 @@ index 83d1a14..e23d723 100644
        void (*ctor)(void *);   /* Called on object slot creation */
        struct list_head list;  /* List of all slab caches on the system */
  };
-@@ -185,6 +196,8 @@ void * __must_check krealloc(const void *, size_t, gfp_t);
+@@ -232,6 +242,8 @@ void * __must_check krealloc(const void *, size_t, gfp_t);
  void kfree(const void *);
  void kzfree(const void *);
  size_t ksize(const void *);
@@ -66409,26 +71354,15 @@ index 83d1a14..e23d723 100644
  
  /*
   * Allocator specific definitions. These are mainly used to establish optimized
-@@ -264,8 +277,18 @@ size_t ksize(const void *);
+@@ -311,6 +323,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.
   */
-+
-+extern void kmalloc_array_error(void)
-+#if defined(CONFIG_GCOV_KERNEL) && defined(CONFIG_PAX_SIZE_OVERFLOW)
-+__compiletime_warning("kmalloc_array called with swapped arguments?");
-+#else
-+__compiletime_error("kmalloc_array called with swapped arguments?");
-+#endif
 +
  static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags)
  {
-+      if (__builtin_constant_p(n) && !__builtin_constant_p(size))
-+              kmalloc_array_error();
        if (size != 0 && n > SIZE_MAX / size)
-               return NULL;
-       return __kmalloc(n * size, flags);
-@@ -323,7 +346,7 @@ static inline void *kmem_cache_alloc_node(struct kmem_cache *cachep,
+@@ -370,7 +383,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)) || \
        (defined(CONFIG_SLOB) && defined(CONFIG_TRACING))
@@ -66437,7 +71371,7 @@ index 83d1a14..e23d723 100644
  #define kmalloc_track_caller(size, flags) \
        __kmalloc_track_caller(size, flags, _RET_IP_)
  #else
-@@ -343,7 +366,7 @@ extern void *__kmalloc_track_caller(size_t, gfp_t, unsigned long);
+@@ -390,7 +403,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)) || \
        (defined(CONFIG_SLOB) && defined(CONFIG_TRACING))
@@ -66447,7 +71381,7 @@ index 83d1a14..e23d723 100644
        __kmalloc_node_track_caller(size, flags, node, \
                        _RET_IP_)
 diff --git a/include/linux/slab_def.h b/include/linux/slab_def.h
-index cc290f0..0ba60931 100644
+index 8bb6e0e..8eb0dbe 100644
 --- a/include/linux/slab_def.h
 +++ b/include/linux/slab_def.h
 @@ -52,7 +52,7 @@ struct kmem_cache {
@@ -66474,7 +71408,7 @@ index cc290f0..0ba60931 100644
  
        /*
         * If debugging is enabled, then the allocator can add additional
-@@ -104,11 +104,16 @@ struct cache_sizes {
+@@ -111,11 +111,16 @@ struct cache_sizes {
  #ifdef CONFIG_ZONE_DMA
        struct kmem_cache       *cs_dmacachep;
  #endif
@@ -66492,7 +71426,7 @@ index cc290f0..0ba60931 100644
  
  #ifdef CONFIG_TRACING
  extern void *kmem_cache_alloc_trace(struct kmem_cache *, gfp_t, size_t);
-@@ -145,6 +150,13 @@ found:
+@@ -152,6 +157,13 @@ found:
                        cachep = malloc_sizes[i].cs_dmacachep;
                else
  #endif
@@ -66506,7 +71440,7 @@ index cc290f0..0ba60931 100644
                        cachep = malloc_sizes[i].cs_cachep;
  
                ret = kmem_cache_alloc_trace(cachep, flags, size);
-@@ -155,7 +167,7 @@ found:
+@@ -162,7 +174,7 @@ found:
  }
  
  #ifdef CONFIG_NUMA
@@ -66515,7 +71449,7 @@ index cc290f0..0ba60931 100644
  extern void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
  
  #ifdef CONFIG_TRACING
-@@ -198,6 +210,13 @@ found:
+@@ -205,6 +217,13 @@ found:
                        cachep = malloc_sizes[i].cs_dmacachep;
                else
  #endif
@@ -66552,7 +71486,7 @@ index f28e14a..7831211 100644
        return kmalloc(size, flags);
  }
 diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h
-index df448ad..b99e7f6 100644
+index 9db4825..ed42fb5 100644
 --- a/include/linux/slub_def.h
 +++ b/include/linux/slub_def.h
 @@ -91,7 +91,7 @@ struct kmem_cache {
@@ -66564,7 +71498,7 @@ index df448ad..b99e7f6 100644
        void (*ctor)(void *);
        int inuse;              /* Offset to metadata */
        int align;              /* Alignment */
-@@ -152,7 +152,7 @@ extern struct kmem_cache *kmalloc_caches[SLUB_PAGE_SHIFT];
+@@ -156,7 +156,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.
   */
@@ -66573,7 +71507,7 @@ index df448ad..b99e7f6 100644
  {
        if (!size)
                return 0;
-@@ -217,7 +217,7 @@ static __always_inline struct kmem_cache *kmalloc_slab(size_t size)
+@@ -221,7 +221,7 @@ static __always_inline struct kmem_cache *kmalloc_slab(size_t size)
  }
  
  void *kmem_cache_alloc(struct kmem_cache *, gfp_t);
@@ -66582,7 +71516,7 @@ index df448ad..b99e7f6 100644
  
  static __always_inline void *
  kmalloc_order(size_t size, gfp_t flags, unsigned int order)
-@@ -258,7 +258,7 @@ kmalloc_order_trace(size_t size, gfp_t flags, unsigned int order)
+@@ -265,7 +265,7 @@ kmalloc_order_trace(size_t size, gfp_t flags, unsigned int order)
  }
  #endif
  
@@ -66591,7 +71525,7 @@ index df448ad..b99e7f6 100644
  {
        unsigned int order = get_order(size);
        return kmalloc_order_trace(size, flags, order);
-@@ -283,7 +283,7 @@ static __always_inline void *kmalloc(size_t size, gfp_t flags)
+@@ -290,7 +290,7 @@ static __always_inline void *kmalloc(size_t size, gfp_t flags)
  }
  
  #ifdef CONFIG_NUMA
@@ -66600,6 +71534,19 @@ index df448ad..b99e7f6 100644
  void *kmem_cache_alloc_node(struct kmem_cache *, gfp_t flags, int node);
  
  #ifdef CONFIG_TRACING
+diff --git a/include/linux/sock_diag.h b/include/linux/sock_diag.h
+index e8d702e..0a56eb4 100644
+--- a/include/linux/sock_diag.h
++++ b/include/linux/sock_diag.h
+@@ -10,7 +10,7 @@ struct sock;
+ struct sock_diag_handler {
+       __u8 family;
+       int (*dump)(struct sk_buff *skb, struct nlmsghdr *nlh);
+-};
++} __do_const;
+ int sock_diag_register(const struct sock_diag_handler *h);
+ void sock_diag_unregister(const struct sock_diag_handler *h);
 diff --git a/include/linux/sonet.h b/include/linux/sonet.h
 index 680f9a3..f13aeb0 100644
 --- a/include/linux/sonet.h
@@ -66614,9 +71561,18 @@ index 680f9a3..f13aeb0 100644
  #undef __HANDLE_ITEM
  };
 diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h
-index 34206b8..f019e06 100644
+index 34206b8..3db7f1c 100644
 --- a/include/linux/sunrpc/clnt.h
 +++ b/include/linux/sunrpc/clnt.h
+@@ -96,7 +96,7 @@ struct rpc_procinfo {
+       unsigned int            p_timer;        /* Which RTT timer to use */
+       u32                     p_statidx;      /* Which procedure to account */
+       const char *            p_name;         /* name of procedure */
+-};
++} __do_const;
+ #ifdef __KERNEL__
 @@ -176,9 +176,9 @@ static inline unsigned short rpc_get_port(const struct sockaddr *sap)
  {
        switch (sap->sa_family) {
@@ -66647,6 +71603,19 @@ index 34206b8..f019e06 100644
  }
  
  #endif /* __KERNEL__ */
+diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
+index 676ddf5..4c519a1 100644
+--- a/include/linux/sunrpc/svc.h
++++ b/include/linux/sunrpc/svc.h
+@@ -410,7 +410,7 @@ struct svc_procedure {
+       unsigned int            pc_count;       /* call count */
+       unsigned int            pc_cachetype;   /* cache info (NFS) */
+       unsigned int            pc_xdrressize;  /* maximum size of XDR reply */
+-};
++} __do_const;
+ /*
+  * Function prototypes.
 diff --git a/include/linux/sunrpc/svc_rdma.h b/include/linux/sunrpc/svc_rdma.h
 index 0b8e3e6..33e0a01 100644
 --- a/include/linux/sunrpc/svc_rdma.h
@@ -66676,11 +71645,71 @@ index 0b8e3e6..33e0a01 100644
  
  #define RPCRDMA_VERSION 1
  
+diff --git a/include/linux/sunrpc/svcauth.h b/include/linux/sunrpc/svcauth.h
+index dd74084a..7f509d5 100644
+--- a/include/linux/sunrpc/svcauth.h
++++ b/include/linux/sunrpc/svcauth.h
+@@ -109,7 +109,7 @@ struct auth_ops {
+       int     (*release)(struct svc_rqst *rq);
+       void    (*domain_release)(struct auth_domain *);
+       int     (*set_client)(struct svc_rqst *rq);
+-};
++} __do_const;
+ #define       SVC_GARBAGE     1
+ #define       SVC_SYSERR      2
+diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h
+index 071d62c..4ccc7ac 100644
+--- a/include/linux/swiotlb.h
++++ b/include/linux/swiotlb.h
+@@ -59,7 +59,8 @@ extern void
+ extern void
+ swiotlb_free_coherent(struct device *hwdev, size_t size,
+-                    void *vaddr, dma_addr_t dma_handle);
++                    void *vaddr, dma_addr_t dma_handle,
++                    struct dma_attrs *attrs);
+ extern dma_addr_t swiotlb_map_page(struct device *dev, struct page *page,
+                                  unsigned long offset, size_t size,
+diff --git a/include/linux/syscalls.h b/include/linux/syscalls.h
+index 45e2db2..1635156a 100644
+--- a/include/linux/syscalls.h
++++ b/include/linux/syscalls.h
+@@ -615,7 +615,7 @@ asmlinkage long sys_getsockname(int, struct sockaddr __user *, int __user *);
+ asmlinkage long sys_getpeername(int, struct sockaddr __user *, int __user *);
+ asmlinkage long sys_send(int, void __user *, size_t, unsigned);
+ asmlinkage long sys_sendto(int, void __user *, size_t, unsigned,
+-                              struct sockaddr __user *, int);
++                              struct sockaddr __user *, int) __intentional_overflow(0);
+ asmlinkage long sys_sendmsg(int fd, struct msghdr __user *msg, unsigned flags);
+ asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg,
+                            unsigned int vlen, unsigned flags);
+diff --git a/include/linux/syscore_ops.h b/include/linux/syscore_ops.h
+index 27b3b0b..e093dd9 100644
+--- a/include/linux/syscore_ops.h
++++ b/include/linux/syscore_ops.h
+@@ -16,7 +16,7 @@ struct syscore_ops {
+       int (*suspend)(void);
+       void (*resume)(void);
+       void (*shutdown)(void);
+-};
++} __do_const;
+ extern void register_syscore_ops(struct syscore_ops *ops);
+ extern void unregister_syscore_ops(struct syscore_ops *ops);
 diff --git a/include/linux/sysctl.h b/include/linux/sysctl.h
-index cd844a6..3ca3592 100644
+index 14a8ff2..af52bad 100644
 --- a/include/linux/sysctl.h
 +++ b/include/linux/sysctl.h
-@@ -41,6 +41,8 @@ typedef int proc_handler (struct ctl_table *ctl, int write,
+@@ -34,13 +34,13 @@ struct ctl_table_root;
+ struct ctl_table_header;
+ struct ctl_dir;
+-typedef struct ctl_table ctl_table;
+-
+ typedef int proc_handler (struct ctl_table *ctl, int write,
+                         void __user *buffer, size_t *lenp, loff_t *ppos);
  
  extern int proc_dostring(struct ctl_table *, int,
                         void __user *, size_t *, loff_t *);
@@ -66689,11 +71718,65 @@ index cd844a6..3ca3592 100644
  extern int proc_dointvec(struct ctl_table *, int,
                         void __user *, size_t *, loff_t *);
  extern int proc_dointvec_minmax(struct ctl_table *, int,
+@@ -115,7 +115,9 @@ struct ctl_table
+       struct ctl_table_poll *poll;
+       void *extra1;
+       void *extra2;
+-};
++} __do_const;
++typedef struct ctl_table __no_const ctl_table_no_const;
++typedef struct ctl_table ctl_table;
+ struct ctl_node {
+       struct rb_node node;
+diff --git a/include/linux/sysfs.h b/include/linux/sysfs.h
+index 381f06d..dc16cc7 100644
+--- a/include/linux/sysfs.h
++++ b/include/linux/sysfs.h
+@@ -31,7 +31,8 @@ struct attribute {
+       struct lock_class_key   *key;
+       struct lock_class_key   skey;
+ #endif
+-};
++} __do_const;
++typedef struct attribute __no_const attribute_no_const;
+ /**
+  *    sysfs_attr_init - initialize a dynamically allocated sysfs attribute
+@@ -59,8 +60,8 @@ struct attribute_group {
+       umode_t                 (*is_visible)(struct kobject *,
+                                             struct attribute *, int);
+       struct attribute        **attrs;
+-};
+-
++} __do_const;
++typedef struct attribute_group __no_const attribute_group_no_const;
+ /**
+@@ -107,7 +108,8 @@ struct bin_attribute {
+                        char *, loff_t, size_t);
+       int (*mmap)(struct file *, struct kobject *, struct bin_attribute *attr,
+                   struct vm_area_struct *vma);
+-};
++} __do_const;
++typedef struct bin_attribute __no_const bin_attribute_no_const;
+ /**
+  *    sysfs_bin_attr_init - initialize a dynamically allocated bin_attribute
 diff --git a/include/linux/sysrq.h b/include/linux/sysrq.h
-index 7faf933..eb6f5e3 100644
+index 7faf933..9b85a0c 100644
 --- a/include/linux/sysrq.h
 +++ b/include/linux/sysrq.h
-@@ -36,7 +36,7 @@ struct sysrq_key_op {
+@@ -16,6 +16,7 @@
+ #include <linux/errno.h>
+ #include <linux/types.h>
++#include <linux/compiler.h>
+ /* Enable/disable SYSRQ support by default (0==no, 1==yes). */
+ #define SYSRQ_DEFAULT_ENABLE  1
+@@ -36,7 +37,7 @@ struct sysrq_key_op {
        char *help_msg;
        char *action_msg;
        int enable_mask;
@@ -66703,30 +71786,30 @@ index 7faf933..eb6f5e3 100644
  #ifdef CONFIG_MAGIC_SYSRQ
  
 diff --git a/include/linux/thread_info.h b/include/linux/thread_info.h
-index ccc1899..b1aaceb 100644
+index e7e0473..7989295 100644
 --- a/include/linux/thread_info.h
 +++ b/include/linux/thread_info.h
-@@ -146,6 +146,15 @@ static inline bool test_and_clear_restore_sigmask(void)
+@@ -148,6 +148,15 @@ static inline bool test_and_clear_restore_sigmask(void)
  #error "no set_restore_sigmask() provided and default one won't work"
  #endif
  
-+extern void __check_object_size(const void *ptr, unsigned long n, bool to);
-+static inline void check_object_size(const void *ptr, unsigned long n, bool to)
++extern void __check_object_size(const void *ptr, unsigned long n, bool to_user);
++static inline void check_object_size(const void *ptr, unsigned long n, bool to_user)
 +{
 +#ifndef CONFIG_PAX_USERCOPY_DEBUG
 +      if (!__builtin_constant_p(n))
 +#endif
-+              __check_object_size(ptr, n, to);
++              __check_object_size(ptr, n, to_user);
 +}
 +
  #endif        /* __KERNEL__ */
  
  #endif /* _LINUX_THREAD_INFO_H */
 diff --git a/include/linux/tty.h b/include/linux/tty.h
-index f0b4eb4..1c4854e 100644
+index 8db1b56..c16a040 100644
 --- a/include/linux/tty.h
 +++ b/include/linux/tty.h
-@@ -192,7 +192,7 @@ struct tty_port {
+@@ -194,7 +194,7 @@ struct tty_port {
        const struct tty_port_operations *ops;  /* Port operations */
        spinlock_t              lock;           /* Lock protecting tty field */
        int                     blocked_open;   /* Waiting to open */
@@ -66735,7 +71818,7 @@ index f0b4eb4..1c4854e 100644
        wait_queue_head_t       open_wait;      /* Open waiters */
        wait_queue_head_t       close_wait;     /* Close waiters */
        wait_queue_head_t       delta_msr_wait; /* Modem status change */
-@@ -513,7 +513,7 @@ extern int tty_port_open(struct tty_port *port,
+@@ -490,7 +490,7 @@ extern int tty_port_open(struct tty_port *port,
                                struct tty_struct *tty, struct file *filp);
  static inline int tty_port_users(struct tty_port *port)
  {
@@ -66771,10 +71854,10 @@ index fb79dd8d..07d4773 100644
  
  struct tty_ldisc {
 diff --git a/include/linux/types.h b/include/linux/types.h
-index 1cc0e4b..0d50edf 100644
+index 4d118ba..c3ee9bf 100644
 --- a/include/linux/types.h
 +++ b/include/linux/types.h
-@@ -175,10 +175,26 @@ typedef struct {
+@@ -176,10 +176,26 @@ typedef struct {
        int counter;
  } atomic_t;
  
@@ -66820,43 +71903,65 @@ index 5ca0951..ab496a5 100644
                ret;                                    \
        })
  
+diff --git a/include/linux/uidgid.h b/include/linux/uidgid.h
+index 8e522cbc..aa8572d 100644
+--- a/include/linux/uidgid.h
++++ b/include/linux/uidgid.h
+@@ -197,4 +197,9 @@ static inline bool kgid_has_mapping(struct user_namespace *ns, kgid_t gid)
+ #endif /* CONFIG_USER_NS */
++#define GR_GLOBAL_UID(x) from_kuid_munged(&init_user_ns, (x))
++#define GR_GLOBAL_GID(x) from_kgid_munged(&init_user_ns, (x))
++#define gr_is_global_root(x) uid_eq((x), GLOBAL_ROOT_UID)
++#define gr_is_global_nonroot(x) (!uid_eq((x), GLOBAL_ROOT_UID))
++
+ #endif /* _LINUX_UIDGID_H */
 diff --git a/include/linux/unaligned/access_ok.h b/include/linux/unaligned/access_ok.h
-index 99c1b4d..bb94261 100644
+index 99c1b4d..562e6f3 100644
 --- a/include/linux/unaligned/access_ok.h
 +++ b/include/linux/unaligned/access_ok.h
-@@ -6,32 +6,32 @@
+@@ -4,34 +4,34 @@
+ #include <linux/kernel.h>
+ #include <asm/byteorder.h>
  
- static inline u16 get_unaligned_le16(const void *p)
+-static inline u16 get_unaligned_le16(const void *p)
++static inline u16 __intentional_overflow(-1) get_unaligned_le16(const void *p)
  {
 -      return le16_to_cpup((__le16 *)p);
 +      return le16_to_cpup((const __le16 *)p);
  }
  
- static inline u32 get_unaligned_le32(const void *p)
+-static inline u32 get_unaligned_le32(const void *p)
++static inline u32 __intentional_overflow(-1) get_unaligned_le32(const void *p)
  {
 -      return le32_to_cpup((__le32 *)p);
 +      return le32_to_cpup((const __le32 *)p);
  }
  
- static inline u64 get_unaligned_le64(const void *p)
+-static inline u64 get_unaligned_le64(const void *p)
++static inline u64 __intentional_overflow(-1) get_unaligned_le64(const void *p)
  {
 -      return le64_to_cpup((__le64 *)p);
 +      return le64_to_cpup((const __le64 *)p);
  }
  
- static inline u16 get_unaligned_be16(const void *p)
+-static inline u16 get_unaligned_be16(const void *p)
++static inline u16 __intentional_overflow(-1) get_unaligned_be16(const void *p)
  {
 -      return be16_to_cpup((__be16 *)p);
 +      return be16_to_cpup((const __be16 *)p);
  }
  
- static inline u32 get_unaligned_be32(const void *p)
+-static inline u32 get_unaligned_be32(const void *p)
++static inline u32 __intentional_overflow(-1) get_unaligned_be32(const void *p)
  {
 -      return be32_to_cpup((__be32 *)p);
 +      return be32_to_cpup((const __be32 *)p);
  }
  
- static inline u64 get_unaligned_be64(const void *p)
+-static inline u64 get_unaligned_be64(const void *p)
++static inline u64 __intentional_overflow(-1) get_unaligned_be64(const void *p)
  {
 -      return be64_to_cpup((__be64 *)p);
 +      return be64_to_cpup((const __be64 *)p);
@@ -66864,10 +71969,10 @@ index 99c1b4d..bb94261 100644
  
  static inline void put_unaligned_le16(u16 val, void *p)
 diff --git a/include/linux/usb.h b/include/linux/usb.h
-index 10278d1..e21ec3c 100644
+index 4d22d0f..8d0e8f8 100644
 --- a/include/linux/usb.h
 +++ b/include/linux/usb.h
-@@ -551,7 +551,7 @@ struct usb_device {
+@@ -554,7 +554,7 @@ struct usb_device {
        int maxchild;
  
        u32 quirks;
@@ -66876,6 +71981,15 @@ index 10278d1..e21ec3c 100644
  
        unsigned long active_duration;
  
+@@ -1604,7 +1604,7 @@ void usb_buffer_unmap_sg(const struct usb_device *dev, int is_in,
+ extern int usb_control_msg(struct usb_device *dev, unsigned int pipe,
+       __u8 request, __u8 requesttype, __u16 value, __u16 index,
+-      void *data, __u16 size, int timeout);
++      void *data, __u16 size, int timeout) __intentional_overflow(-1);
+ extern int usb_interrupt_msg(struct usb_device *usb_dev, unsigned int pipe,
+       void *data, int len, int *actual_length, int timeout);
+ extern int usb_bulk_msg(struct usb_device *usb_dev, unsigned int pipe,
 diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h
 index c5d36c6..108f4f9 100644
 --- a/include/linux/usb/renesas_usbhs.h
@@ -66889,27 +72003,42 @@ index c5d36c6..108f4f9 100644
  
  /*
   * callback functions for platform
-diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h
-index ddbbb7d..9134611 100644
---- a/include/linux/usb/usbnet.h
-+++ b/include/linux/usb/usbnet.h
-@@ -33,6 +33,7 @@ struct usbnet {
-       wait_queue_head_t       *wait;
-       struct mutex            phy_mutex;
-       unsigned char           suspend_count;
-+      unsigned char           pkt_cnt, pkt_err;
-       /* i/o info: pipes etc */
-       unsigned                in, out;
-@@ -69,6 +70,8 @@ struct usbnet {
- #             define EVENT_DEV_ASLEEP 6
- #             define EVENT_DEV_OPEN   7
- #             define EVENT_DEVICE_REPORT_IDLE 8
-+#             define EVENT_NO_RUNTIME_PM      9
-+#             define EVENT_RX_KILL    10
- };
- static inline struct usb_driver *driver_of(struct usb_interface *intf)
+diff --git a/include/linux/user_namespace.h b/include/linux/user_namespace.h
+index 5209cfe..b6b215f 100644
+--- a/include/linux/user_namespace.h
++++ b/include/linux/user_namespace.h
+@@ -21,7 +21,7 @@ struct user_namespace {
+       struct uid_gid_map      uid_map;
+       struct uid_gid_map      gid_map;
+       struct uid_gid_map      projid_map;
+-      struct kref             kref;
++      atomic_t                count;
+       struct user_namespace   *parent;
+       kuid_t                  owner;
+       kgid_t                  group;
+@@ -37,18 +37,18 @@ extern struct user_namespace init_user_ns;
+ static inline struct user_namespace *get_user_ns(struct user_namespace *ns)
+ {
+       if (ns)
+-              kref_get(&ns->kref);
++              atomic_inc(&ns->count);
+       return ns;
+ }
+ extern int create_user_ns(struct cred *new);
+ extern int unshare_userns(unsigned long unshare_flags, struct cred **new_cred);
+-extern void free_user_ns(struct kref *kref);
++extern void free_user_ns(struct user_namespace *ns);
+ static inline void put_user_ns(struct user_namespace *ns)
+ {
+-      if (ns)
+-              kref_put(&ns->kref, free_user_ns);
++      if (ns && atomic_dec_and_test(&ns->count))
++              free_user_ns(ns);
+ }
+ struct seq_operations;
 diff --git a/include/linux/vermagic.h b/include/linux/vermagic.h
 index 6f8fbcf..8259001 100644
 --- a/include/linux/vermagic.h
@@ -66988,10 +72117,10 @@ index 6071e91..ca6a489 100644
  /*
   *    Internals.  Dont't use..
 diff --git a/include/linux/vmstat.h b/include/linux/vmstat.h
-index 92a86b2..1d9eb3c 100644
+index a13291f..af51fa3 100644
 --- a/include/linux/vmstat.h
 +++ b/include/linux/vmstat.h
-@@ -87,18 +87,18 @@ static inline void vm_events_fold_cpu(int cpu)
+@@ -95,18 +95,18 @@ static inline void vm_events_fold_cpu(int cpu)
  /*
   * Zone based page accounting with per cpu differentials.
   */
@@ -67014,7 +72143,7 @@ index 92a86b2..1d9eb3c 100644
  #ifdef CONFIG_SMP
        if (x < 0)
                x = 0;
-@@ -109,7 +109,7 @@ static inline unsigned long global_page_state(enum zone_stat_item item)
+@@ -117,7 +117,7 @@ static inline unsigned long global_page_state(enum zone_stat_item item)
  static inline unsigned long zone_page_state(struct zone *zone,
                                        enum zone_stat_item item)
  {
@@ -67023,7 +72152,7 @@ index 92a86b2..1d9eb3c 100644
  #ifdef CONFIG_SMP
        if (x < 0)
                x = 0;
-@@ -126,7 +126,7 @@ static inline unsigned long zone_page_state(struct zone *zone,
+@@ -134,7 +134,7 @@ static inline unsigned long zone_page_state(struct zone *zone,
  static inline unsigned long zone_page_state_snapshot(struct zone *zone,
                                        enum zone_stat_item item)
  {
@@ -67032,7 +72161,7 @@ index 92a86b2..1d9eb3c 100644
  
  #ifdef CONFIG_SMP
        int cpu;
-@@ -218,8 +218,8 @@ static inline void __mod_zone_page_state(struct zone *zone,
+@@ -226,8 +226,8 @@ static inline void __mod_zone_page_state(struct zone *zone,
  
  static inline void __inc_zone_state(struct zone *zone, enum zone_stat_item item)
  {
@@ -67043,7 +72172,7 @@ index 92a86b2..1d9eb3c 100644
  }
  
  static inline void __inc_zone_page_state(struct page *page,
-@@ -230,8 +230,8 @@ static inline void __inc_zone_page_state(struct page *page,
+@@ -238,8 +238,8 @@ static inline void __inc_zone_page_state(struct page *page,
  
  static inline void __dec_zone_state(struct zone *zone, enum zone_stat_item item)
  {
@@ -67054,6 +72183,40 @@ index 92a86b2..1d9eb3c 100644
  }
  
  static inline void __dec_zone_page_state(struct page *page,
+diff --git a/include/linux/xattr.h b/include/linux/xattr.h
+index fdbafc6..b7ffd47 100644
+--- a/include/linux/xattr.h
++++ b/include/linux/xattr.h
+@@ -28,7 +28,7 @@ struct xattr_handler {
+                  size_t size, int handler_flags);
+       int (*set)(struct dentry *dentry, const char *name, const void *buffer,
+                  size_t size, int flags, int handler_flags);
+-};
++} __do_const;
+ struct xattr {
+       char *name;
+diff --git a/include/linux/zlib.h b/include/linux/zlib.h
+index 9c5a6b4..09c9438 100644
+--- a/include/linux/zlib.h
++++ b/include/linux/zlib.h
+@@ -31,6 +31,7 @@
+ #define _ZLIB_H
+ #include <linux/zconf.h>
++#include <linux/compiler.h>
+ /* zlib deflate based on ZLIB_VERSION "1.1.3" */
+ /* zlib inflate based on ZLIB_VERSION "1.2.3" */
+@@ -179,7 +180,7 @@ typedef z_stream *z_streamp;
+                         /* basic functions */
+-extern int zlib_deflate_workspacesize (int windowBits, int memLevel);
++extern int zlib_deflate_workspacesize (int windowBits, int memLevel) __intentional_overflow(0);
+ /*
+    Returns the number of bytes that needs to be allocated for a per-
+    stream workspace with the specified parameters.  A pointer to this
 diff --git a/include/media/v4l2-dev.h b/include/media/v4l2-dev.h
 index 95d1c91..6798cca 100644
 --- a/include/media/v4l2-dev.h
@@ -67068,10 +72231,10 @@ index 95d1c91..6798cca 100644
  /*
   * Newer version of video_device, handled by videodev2.c
 diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h
-index e48b571..7e40de4 100644
+index 4118ad1..cb7e25f 100644
 --- a/include/media/v4l2-ioctl.h
 +++ b/include/media/v4l2-ioctl.h
-@@ -282,7 +282,6 @@ struct v4l2_ioctl_ops {
+@@ -284,7 +284,6 @@ struct v4l2_ioctl_ops {
                                        bool valid_prio, int cmd, void *arg);
  };
  
@@ -67079,6 +72242,32 @@ index e48b571..7e40de4 100644
  /* v4l debugging and diagnostics */
  
  /* Debug bitmask flags to be used on V4L2 */
+diff --git a/include/net/9p/transport.h b/include/net/9p/transport.h
+index adcbb20..62c2559 100644
+--- a/include/net/9p/transport.h
++++ b/include/net/9p/transport.h
+@@ -57,7 +57,7 @@ struct p9_trans_module {
+       int (*cancel) (struct p9_client *, struct p9_req_t *req);
+       int (*zc_request)(struct p9_client *, struct p9_req_t *,
+                         char *, char *, int , int, int, int);
+-};
++} __do_const;
+ void v9fs_register_trans(struct p9_trans_module *m);
+ void v9fs_unregister_trans(struct p9_trans_module *m);
+diff --git a/include/net/bluetooth/l2cap.h b/include/net/bluetooth/l2cap.h
+index 7588ef4..e62d35f 100644
+--- a/include/net/bluetooth/l2cap.h
++++ b/include/net/bluetooth/l2cap.h
+@@ -552,7 +552,7 @@ struct l2cap_ops {
+       void                    (*defer) (struct l2cap_chan *chan);
+       struct sk_buff          *(*alloc_skb) (struct l2cap_chan *chan,
+                                              unsigned long len, int nb);
+-};
++} __do_const;
+ struct l2cap_conn {
+       struct hci_conn         *hcon;
 diff --git a/include/net/caif/cfctrl.h b/include/net/caif/cfctrl.h
 index 9e5425b..8136ffc 100644
 --- a/include/net/caif/cfctrl.h
@@ -67115,6 +72304,19 @@ index 628e11b..4c475df 100644
 +extern atomic_unchecked_t flow_cache_genid;
  
  #endif
+diff --git a/include/net/genetlink.h b/include/net/genetlink.h
+index bdfbe68..4402ebe 100644
+--- a/include/net/genetlink.h
++++ b/include/net/genetlink.h
+@@ -118,7 +118,7 @@ struct genl_ops {
+                                        struct netlink_callback *cb);
+       int                    (*done)(struct netlink_callback *cb);
+       struct list_head        ops_list;
+-};
++} __do_const;
+ extern int genl_register_family(struct genl_family *family);
+ extern int genl_register_family_with_ops(struct genl_family *family,
 diff --git a/include/net/gro_cells.h b/include/net/gro_cells.h
 index e5062c9..48a9a4b 100644
 --- a/include/net/gro_cells.h
@@ -67181,11 +72383,24 @@ index 53f464d..ba76aaa 100644
        return new;
  }
  
+diff --git a/include/net/ip.h b/include/net/ip.h
+index a68f838..74518ab 100644
+--- a/include/net/ip.h
++++ b/include/net/ip.h
+@@ -202,7 +202,7 @@ extern struct local_ports {
+ } sysctl_local_ports;
+ extern void inet_get_local_port_range(int *low, int *high);
+-extern unsigned long *sysctl_local_reserved_ports;
++extern unsigned long sysctl_local_reserved_ports[65536 / 8 / sizeof(unsigned long)];
+ static inline int inet_is_reserved_local_port(int port)
+ {
+       return test_bit(port, sysctl_local_reserved_ports);
 diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h
-index 9497be1..5a4fafe 100644
+index e49db91..76a81de 100644
 --- a/include/net/ip_fib.h
 +++ b/include/net/ip_fib.h
-@@ -169,7 +169,7 @@ extern __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
+@@ -167,7 +167,7 @@ extern __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh);
  
  #define FIB_RES_SADDR(net, res)                               \
        ((FIB_RES_NH(res).nh_saddr_genid ==             \
@@ -67195,10 +72410,10 @@ index 9497be1..5a4fafe 100644
         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 ee75ccd..2cc2b95 100644
+index 68c69d5..bdab192 100644
 --- a/include/net/ip_vs.h
 +++ b/include/net/ip_vs.h
-@@ -510,7 +510,7 @@ struct ip_vs_conn {
+@@ -599,7 +599,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 */
@@ -67207,7 +72422,7 @@ index ee75ccd..2cc2b95 100644
  
        /* packet transmitter for different forwarding methods.  If it
           mangles the packet, it must return NF_DROP or better NF_STOLEN,
-@@ -648,7 +648,7 @@ struct ip_vs_dest {
+@@ -737,7 +737,7 @@ struct ip_vs_dest {
        __be16                  port;           /* port number of the server */
        union nf_inet_addr      addr;           /* IP address of the server */
        volatile unsigned int   flags;          /* dest status flags */
@@ -67216,6 +72431,20 @@ index ee75ccd..2cc2b95 100644
        atomic_t                weight;         /* server weight */
  
        atomic_t                refcnt;         /* reference counter */
+@@ -980,11 +980,11 @@ struct netns_ipvs {
+       /* ip_vs_lblc */
+       int                     sysctl_lblc_expiration;
+       struct ctl_table_header *lblc_ctl_header;
+-      struct ctl_table        *lblc_ctl_table;
++      ctl_table_no_const      *lblc_ctl_table;
+       /* ip_vs_lblcr */
+       int                     sysctl_lblcr_expiration;
+       struct ctl_table_header *lblcr_ctl_header;
+-      struct ctl_table        *lblcr_ctl_table;
++      ctl_table_no_const      *lblcr_ctl_table;
+       /* ip_vs_est */
+       struct list_head        est_list;       /* estimator list */
+       spinlock_t              est_lock;
 diff --git a/include/net/irda/ircomm_tty.h b/include/net/irda/ircomm_tty.h
 index 80ffde3..968b0f4 100644
 --- a/include/net/irda/ircomm_tty.h
@@ -67241,6 +72470,86 @@ index cc7c197..9f2da2a 100644
  };
  
  unsigned int iucv_sock_poll(struct file *file, struct socket *sock,
+diff --git a/include/net/llc_c_ac.h b/include/net/llc_c_ac.h
+index df83f69..9b640b8 100644
+--- a/include/net/llc_c_ac.h
++++ b/include/net/llc_c_ac.h
+@@ -87,7 +87,7 @@
+ #define LLC_CONN_AC_STOP_SENDACK_TMR                  70
+ #define LLC_CONN_AC_START_SENDACK_TMR_IF_NOT_RUNNING  71
+-typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
++typedef int (* const llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
+ extern int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
+ extern int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
+diff --git a/include/net/llc_c_ev.h b/include/net/llc_c_ev.h
+index 6ca3113..f8026dd 100644
+--- a/include/net/llc_c_ev.h
++++ b/include/net/llc_c_ev.h
+@@ -125,8 +125,8 @@ static __inline__ struct llc_conn_state_ev *llc_conn_ev(struct sk_buff *skb)
+       return (struct llc_conn_state_ev *)skb->cb;
+ }
+-typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
+-typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
++typedef int (* const llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
++typedef int (* const llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
+ extern int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb);
+ extern int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb);
+diff --git a/include/net/llc_c_st.h b/include/net/llc_c_st.h
+index 0e79cfb..f46db31 100644
+--- a/include/net/llc_c_st.h
++++ b/include/net/llc_c_st.h
+@@ -37,7 +37,7 @@ struct llc_conn_state_trans {
+       u8                 next_state;
+       llc_conn_ev_qfyr_t *ev_qualifiers;
+       llc_conn_action_t  *ev_actions;
+-};
++} __do_const;
+ struct llc_conn_state {
+       u8                          current_state;
+diff --git a/include/net/llc_s_ac.h b/include/net/llc_s_ac.h
+index 37a3bbd..55a4241 100644
+--- a/include/net/llc_s_ac.h
++++ b/include/net/llc_s_ac.h
+@@ -23,7 +23,7 @@
+ #define SAP_ACT_TEST_IND      9
+ /* All action functions must look like this */
+-typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
++typedef int (* const llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
+ extern int llc_sap_action_unitdata_ind(struct llc_sap *sap,
+                                      struct sk_buff *skb);
+diff --git a/include/net/llc_s_st.h b/include/net/llc_s_st.h
+index 567c681..cd73ac0 100644
+--- a/include/net/llc_s_st.h
++++ b/include/net/llc_s_st.h
+@@ -20,7 +20,7 @@ struct llc_sap_state_trans {
+       llc_sap_ev_t      ev;
+       u8                next_state;
+       llc_sap_action_t *ev_actions;
+-};
++} __do_const;
+ struct llc_sap_state {
+       u8                         curr_state;
+diff --git a/include/net/mac80211.h b/include/net/mac80211.h
+index ee50c5e..1bc3b1a 100644
+--- a/include/net/mac80211.h
++++ b/include/net/mac80211.h
+@@ -3996,7 +3996,7 @@ struct rate_control_ops {
+       void (*add_sta_debugfs)(void *priv, void *priv_sta,
+                               struct dentry *dir);
+       void (*remove_sta_debugfs)(void *priv, void *priv_sta);
+-};
++} __do_const;
+ static inline int rate_supported(struct ieee80211_sta *sta,
+                                enum ieee80211_band band,
 diff --git a/include/net/neighbour.h b/include/net/neighbour.h
 index 0dab173..1b76af0 100644
 --- a/include/net/neighbour.h
@@ -67255,10 +72564,10 @@ index 0dab173..1b76af0 100644
  struct pneigh_entry {
        struct pneigh_entry     *next;
 diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h
-index 95e6466..251016d 100644
+index de644bc..dfbcc4c 100644
 --- a/include/net/net_namespace.h
 +++ b/include/net/net_namespace.h
-@@ -110,7 +110,7 @@ struct net {
+@@ -115,7 +115,7 @@ struct net {
  #endif
        struct netns_ipvs       *ipvs;
        struct sock             *diag_nlsk;
@@ -67267,7 +72576,28 @@ index 95e6466..251016d 100644
  };
  
  /*
-@@ -320,12 +320,12 @@ static inline void unregister_net_sysctl_table(struct ctl_table_header *header)
+@@ -272,7 +272,11 @@ static inline struct net *read_pnet(struct net * const *pnet)
+ #define __net_init    __init
+ #define __net_exit    __exit_refok
+ #define __net_initdata        __initdata
++#ifdef CONSTIFY_PLUGIN
+ #define __net_initconst       __initconst
++#else
++#define __net_initconst       __initdata
++#endif
+ #endif
+ struct pernet_operations {
+@@ -282,7 +286,7 @@ struct pernet_operations {
+       void (*exit_batch)(struct list_head *net_exit_list);
+       int *id;
+       size_t size;
+-};
++} __do_const;
+ /*
+  * Use these carefully.  If you implement a network device and it
+@@ -330,12 +334,12 @@ static inline void unregister_net_sysctl_table(struct ctl_table_header *header)
  
  static inline int rt_genid(struct net *net)
  {
@@ -67295,19 +72625,6 @@ index 8ba8ce2..99b7fff 100644
                struct sk_buff *skb, int offset, struct iovec *to,
                size_t len, struct dma_pinned_list *pinned_list);
  
-diff --git a/include/net/netfilter/nf_queue.h b/include/net/netfilter/nf_queue.h
-index 252fd10..aa1421f 100644
---- a/include/net/netfilter/nf_queue.h
-+++ b/include/net/netfilter/nf_queue.h
-@@ -22,7 +22,7 @@ struct nf_queue_handler {
-       int                     (*outfn)(struct nf_queue_entry *entry,
-                                        unsigned int queuenum);
-       char                    *name;
--};
-+} __do_const;
- extern int nf_register_queue_handler(u_int8_t pf,
-                                    const struct nf_queue_handler *qh);
 diff --git a/include/net/netlink.h b/include/net/netlink.h
 index 9690b0f..87aded7 100644
 --- a/include/net/netlink.h
@@ -67321,6 +72638,32 @@ index 9690b0f..87aded7 100644
  }
  
  /**
+diff --git a/include/net/netns/conntrack.h b/include/net/netns/conntrack.h
+index 923cb20..deae816 100644
+--- a/include/net/netns/conntrack.h
++++ b/include/net/netns/conntrack.h
+@@ -12,10 +12,10 @@ struct nf_conntrack_ecache;
+ struct nf_proto_net {
+ #ifdef CONFIG_SYSCTL
+       struct ctl_table_header *ctl_table_header;
+-      struct ctl_table        *ctl_table;
++      ctl_table_no_const      *ctl_table;
+ #ifdef CONFIG_NF_CONNTRACK_PROC_COMPAT
+       struct ctl_table_header *ctl_compat_header;
+-      struct ctl_table        *ctl_compat_table;
++      ctl_table_no_const      *ctl_compat_table;
+ #endif
+ #endif
+       unsigned int            users;
+@@ -58,7 +58,7 @@ struct nf_ip_net {
+       struct nf_icmp_net      icmpv6;
+ #if defined(CONFIG_SYSCTL) && defined(CONFIG_NF_CONNTRACK_PROC_COMPAT)
+       struct ctl_table_header *ctl_table_header;
+-      struct ctl_table        *ctl_table;
++      ctl_table_no_const      *ctl_table;
+ #endif
+ };
 diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h
 index 2ae2b83..dbdc85e 100644
 --- a/include/net/netns/ipv4.h
@@ -67335,11 +72678,11 @@ index 2ae2b83..dbdc85e 100644
  #ifdef CONFIG_IP_MROUTE
  #ifndef CONFIG_IP_MROUTE_MULTIPLE_TABLES
 diff --git a/include/net/protocol.h b/include/net/protocol.h
-index 929528c..c84d4f6 100644
+index 047c047..b9dad15 100644
 --- a/include/net/protocol.h
 +++ b/include/net/protocol.h
-@@ -48,7 +48,7 @@ struct net_protocol {
-       int                     (*gro_complete)(struct sk_buff *skb);
+@@ -44,7 +44,7 @@ struct net_protocol {
+       void                    (*err_handler)(struct sk_buff *skb, u32 info);
        unsigned int            no_policy:1,
                                netns_ok:1;
 -};
@@ -67347,20 +72690,33 @@ index 929528c..c84d4f6 100644
  
  #if IS_ENABLED(CONFIG_IPV6)
  struct inet6_protocol {
-@@ -69,7 +69,7 @@ struct inet6_protocol {
-       int     (*gro_complete)(struct sk_buff *skb);
+@@ -57,7 +57,7 @@ struct inet6_protocol {
+                              u8 type, u8 code, int offset,
+                              __be32 info);
        unsigned int    flags;  /* INET6_PROTO_xxx */
 -};
 +} __do_const;
  
  #define INET6_PROTO_NOPOLICY  0x1
  #define INET6_PROTO_FINAL     0x2
+diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h
+index 5a15fab..d799ea7 100644
+--- a/include/net/rtnetlink.h
++++ b/include/net/rtnetlink.h
+@@ -81,7 +81,7 @@ struct rtnl_link_ops {
+                                              const struct net_device *dev);
+       unsigned int            (*get_num_tx_queues)(void);
+       unsigned int            (*get_num_rx_queues)(void);
+-};
++} __do_const;
+ extern int    __rtnl_link_register(struct rtnl_link_ops *ops);
+ extern void   __rtnl_link_unregister(struct rtnl_link_ops *ops);
 diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h
-index 9c6414f..fbd0524 100644
+index 7fdf298..197e9f7 100644
 --- a/include/net/sctp/sctp.h
 +++ b/include/net/sctp/sctp.h
-@@ -318,9 +318,9 @@ do {                                                                       \
+@@ -330,9 +330,9 @@ do {                                                                       \
  
  #else /* SCTP_DEBUG */
  
@@ -67373,20 +72729,33 @@ index 9c6414f..fbd0524 100644
  #define SCTP_ENABLE_DEBUG
  #define SCTP_DISABLE_DEBUG
  #define SCTP_ASSERT(expr, str, func)
+diff --git a/include/net/sctp/sm.h b/include/net/sctp/sm.h
+index 2a82d13..62a31c2 100644
+--- a/include/net/sctp/sm.h
++++ b/include/net/sctp/sm.h
+@@ -87,7 +87,7 @@ typedef void (sctp_timer_event_t) (unsigned long);
+ typedef struct {
+       sctp_state_fn_t *fn;
+       const char *name;
+-} sctp_sm_table_entry_t;
++} __do_const sctp_sm_table_entry_t;
+ /* A naming convention of "sctp_sf_xxx" applies to all the state functions
+  * currently in use.
+@@ -299,7 +299,7 @@ __u32 sctp_generate_tag(const struct sctp_endpoint *);
+ __u32 sctp_generate_tsn(const struct sctp_endpoint *);
+ /* Extern declarations for major data structures.  */
+-extern sctp_timer_event_t *sctp_timer_events[SCTP_NUM_TIMEOUT_TYPES];
++extern sctp_timer_event_t * const sctp_timer_events[SCTP_NUM_TIMEOUT_TYPES];
+ /* Get the size of a DATA chunk payload. */
 diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
-index 64158aa..b65533c 100644
+index fdeb85a..1329d95 100644
 --- a/include/net/sctp/structs.h
 +++ b/include/net/sctp/structs.h
-@@ -496,7 +496,7 @@ struct sctp_af {
-       int             sockaddr_len;
-       sa_family_t     sa_family;
-       struct list_head list;
--};
-+} __do_const;
- struct sctp_af *sctp_get_af_specific(sa_family_t);
- int sctp_register_af(struct sctp_af *);
-@@ -516,7 +516,7 @@ struct sctp_pf {
+@@ -517,7 +517,7 @@ struct sctp_pf {
                                          struct sctp_association *asoc);
        void (*addr_v4map) (struct sctp_sock *, union sctp_addr *);
        struct sctp_af *af;
@@ -67396,10 +72765,10 @@ index 64158aa..b65533c 100644
  
  /* Structure to track chunk fragments that have been acked, but peer
 diff --git a/include/net/sock.h b/include/net/sock.h
-index c945fba..e162e56 100644
+index 25afaa0..8bb0070 100644
 --- a/include/net/sock.h
 +++ b/include/net/sock.h
-@@ -304,7 +304,7 @@ struct sock {
+@@ -322,7 +322,7 @@ struct sock {
  #ifdef CONFIG_RPS
        __u32                   sk_rxhash;
  #endif
@@ -67408,7 +72777,7 @@ index c945fba..e162e56 100644
        int                     sk_rcvbuf;
  
        struct sk_filter __rcu  *sk_filter;
-@@ -1763,7 +1763,7 @@ static inline void sk_nocaps_add(struct sock *sk, netdev_features_t flags)
+@@ -1781,7 +1781,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,
@@ -67417,7 +72786,7 @@ index c945fba..e162e56 100644
                                           int copy, int offset)
  {
        if (skb->ip_summed == CHECKSUM_NONE) {
-@@ -2022,7 +2022,7 @@ static inline void sk_stream_moderate_sndbuf(struct sock *sk)
+@@ -2040,7 +2040,7 @@ static inline void sk_stream_moderate_sndbuf(struct sock *sk)
        }
  }
  
@@ -67427,10 +72796,10 @@ index c945fba..e162e56 100644
  /**
   * sk_page_frag - return an appropriate page_frag
 diff --git a/include/net/tcp.h b/include/net/tcp.h
-index 4af45e3..af97861 100644
+index aed42c7..43890c6 100644
 --- a/include/net/tcp.h
 +++ b/include/net/tcp.h
-@@ -531,7 +531,7 @@ extern void tcp_retransmit_timer(struct sock *sk);
+@@ -530,7 +530,7 @@ extern void tcp_retransmit_timer(struct sock *sk);
  extern void tcp_xmit_retransmit_queue(struct sock *);
  extern void tcp_simple_retransmit(struct sock *);
  extern int tcp_trim_head(struct sock *, struct sk_buff *, u32);
@@ -67439,7 +72808,7 @@ index 4af45e3..af97861 100644
  
  extern void tcp_send_probe0(struct sock *);
  extern void tcp_send_partial(struct sock *);
-@@ -702,8 +702,8 @@ struct tcp_skb_cb {
+@@ -701,8 +701,8 @@ struct tcp_skb_cb {
                struct inet6_skb_parm   h6;
  #endif
        } header;       /* For incoming frames          */
@@ -67450,7 +72819,7 @@ index 4af45e3..af97861 100644
        __u32           when;           /* used to compute rtt's        */
        __u8            tcp_flags;      /* TCP header flags. (tcp[13])  */
  
-@@ -717,7 +717,7 @@ struct tcp_skb_cb {
+@@ -716,7 +716,7 @@ struct tcp_skb_cb {
  
        __u8            ip_dsfield;     /* IPv4 tos or IPv6 dsfield     */
        /* 1 byte hole */
@@ -67460,9 +72829,27 @@ index 4af45e3..af97861 100644
  
  #define TCP_SKB_CB(__skb)     ((struct tcp_skb_cb *)&((__skb)->cb[0]))
 diff --git a/include/net/xfrm.h b/include/net/xfrm.h
-index 63445ed..74ef61d 100644
+index 63445ed..d6fc34f 100644
 --- a/include/net/xfrm.h
 +++ b/include/net/xfrm.h
+@@ -304,7 +304,7 @@ struct xfrm_policy_afinfo {
+                                           struct net_device *dev,
+                                           const struct flowi *fl);
+       struct dst_entry        *(*blackhole_route)(struct net *net, struct dst_entry *orig);
+-};
++} __do_const;
+ extern int xfrm_policy_register_afinfo(struct xfrm_policy_afinfo *afinfo);
+ extern int xfrm_policy_unregister_afinfo(struct xfrm_policy_afinfo *afinfo);
+@@ -340,7 +340,7 @@ struct xfrm_state_afinfo {
+                                                 struct sk_buff *skb);
+       int                     (*transport_finish)(struct sk_buff *skb,
+                                                   int async);
+-};
++} __do_const;
+ extern int xfrm_state_register_afinfo(struct xfrm_state_afinfo *afinfo);
+ extern int xfrm_state_unregister_afinfo(struct xfrm_state_afinfo *afinfo);
 @@ -423,7 +423,7 @@ struct xfrm_mode {
        struct module *owner;
        unsigned int encap;
@@ -67516,10 +72903,10 @@ index 399162b..b337f1a 100644
        u8                             qfull;
        enum fc_lport_state            state;
 diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
-index 55367b0..d97bd2a 100644
+index e65c62e..aa2e5a2 100644
 --- a/include/scsi/scsi_device.h
 +++ b/include/scsi/scsi_device.h
-@@ -169,9 +169,9 @@ struct scsi_device {
+@@ -170,9 +170,9 @@ struct scsi_device {
        unsigned int max_device_blocked; /* what device_blocked counts down from  */
  #define SCSI_DEFAULT_DEVICE_BLOCKED   3
  
@@ -67547,10 +72934,10 @@ index b797e8f..8e2c3aa 100644
  
  /**
 diff --git a/include/sound/soc.h b/include/sound/soc.h
-index 91244a0..89ca1a7 100644
+index bc56738..a4be132 100644
 --- a/include/sound/soc.h
 +++ b/include/sound/soc.h
-@@ -769,7 +769,7 @@ struct snd_soc_codec_driver {
+@@ -771,7 +771,7 @@ struct snd_soc_codec_driver {
        /* probe ordering - for components with runtime dependencies */
        int probe_order;
        int remove_order;
@@ -67559,7 +72946,7 @@ index 91244a0..89ca1a7 100644
  
  /* SoC platform interface */
  struct snd_soc_platform_driver {
-@@ -815,7 +815,7 @@ struct snd_soc_platform_driver {
+@@ -817,7 +817,7 @@ struct snd_soc_platform_driver {
        unsigned int (*read)(struct snd_soc_platform *, unsigned int);
        int (*write)(struct snd_soc_platform *, unsigned int, unsigned int);
        int (*bespoke_trigger)(struct snd_pcm_substream *, int);
@@ -67569,10 +72956,10 @@ index 91244a0..89ca1a7 100644
  struct snd_soc_platform {
        const char *name;
 diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
-index fca8bbe..c0242ea 100644
+index 663e34a..91b306a 100644
 --- a/include/target/target_core_base.h
 +++ b/include/target/target_core_base.h
-@@ -760,7 +760,7 @@ struct se_device {
+@@ -654,7 +654,7 @@ struct se_device {
        spinlock_t              stats_lock;
        /* Active commands on this virtual SE device */
        atomic_t                simple_cmds;
@@ -67580,7 +72967,7 @@ index fca8bbe..c0242ea 100644
 +      atomic_unchecked_t      dev_ordered_id;
        atomic_t                dev_ordered_sync;
        atomic_t                dev_qf_count;
-       struct se_obj           dev_obj;
+       int                     export_count;
 diff --git a/include/trace/events/fs.h b/include/trace/events/fs.h
 new file mode 100644
 index 0000000..fb634b7
@@ -67682,7 +73069,7 @@ index 7caf44c..23c6f27 100644
  #define N_MAGIC(exec) ((exec).a_info & 0xffff)
  #endif
 diff --git a/include/uapi/linux/byteorder/little_endian.h b/include/uapi/linux/byteorder/little_endian.h
-index d876736..b36014e 100644
+index d876736..ccce5c0 100644
 --- a/include/uapi/linux/byteorder/little_endian.h
 +++ b/include/uapi/linux/byteorder/little_endian.h
 @@ -42,51 +42,51 @@
@@ -67692,7 +73079,8 @@ index d876736..b36014e 100644
 -      return (__force __le64)*p;
 +      return (__force const __le64)*p;
  }
- static inline __u64 __le64_to_cpup(const __le64 *p)
+-static inline __u64 __le64_to_cpup(const __le64 *p)
++static inline __u64 __intentional_overflow(-1) __le64_to_cpup(const __le64 *p)
  {
 -      return (__force __u64)*p;
 +      return (__force const __u64)*p;
@@ -67732,7 +73120,8 @@ index d876736..b36014e 100644
 -      return (__force __be32)__swab32p(p);
 +      return (__force const __be32)__swab32p(p);
  }
- static inline __u32 __be32_to_cpup(const __be32 *p)
+-static inline __u32 __be32_to_cpup(const __be32 *p)
++static inline __u32 __intentional_overflow(-1) __be32_to_cpup(const __be32 *p)
  {
 -      return __swab32p((__u32 *)p);
 +      return __swab32p((const __u32 *)p);
@@ -67835,6 +73224,37 @@ index 7530e74..e714828 100644
  } __attribute__((packed));
  
  #define VIDEO_TYPE_MDA                0x10    /* Monochrome Text Display      */
+diff --git a/include/uapi/linux/swab.h b/include/uapi/linux/swab.h
+index 0e011eb..82681b1 100644
+--- a/include/uapi/linux/swab.h
++++ b/include/uapi/linux/swab.h
+@@ -43,7 +43,7 @@
+  * ___swab16, ___swab32, ___swab64, ___swahw32, ___swahb32
+  */
+-static inline __attribute_const__ __u16 __fswab16(__u16 val)
++static inline __intentional_overflow(-1) __attribute_const__ __u16 __fswab16(__u16 val)
+ {
+ #ifdef __HAVE_BUILTIN_BSWAP16__
+       return __builtin_bswap16(val);
+@@ -54,7 +54,7 @@ static inline __attribute_const__ __u16 __fswab16(__u16 val)
+ #endif
+ }
+-static inline __attribute_const__ __u32 __fswab32(__u32 val)
++static inline __intentional_overflow(-1) __attribute_const__ __u32 __fswab32(__u32 val)
+ {
+ #ifdef __HAVE_BUILTIN_BSWAP32__
+       return __builtin_bswap32(val);
+@@ -65,7 +65,7 @@ static inline __attribute_const__ __u32 __fswab32(__u32 val)
+ #endif
+ }
+-static inline __attribute_const__ __u64 __fswab64(__u64 val)
++static inline __intentional_overflow(-1) __attribute_const__ __u64 __fswab64(__u64 val)
+ {
+ #ifdef __HAVE_BUILTIN_BSWAP64__
+       return __builtin_bswap64(val);
 diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h
 index 6d67213..8dab561 100644
 --- a/include/uapi/linux/sysctl.h
@@ -67898,10 +73318,10 @@ index 0993a22..32ba2fe 100644
        void *pmi_pal;
        u8 *vbe_state_orig;             /*
 diff --git a/init/Kconfig b/init/Kconfig
-index 6fdd6e3..5b01610 100644
+index be8b7f5..1eeca9b 100644
 --- a/init/Kconfig
 +++ b/init/Kconfig
-@@ -925,6 +925,7 @@ endif # CGROUPS
+@@ -990,6 +990,7 @@ endif # CGROUPS
  
  config CHECKPOINT_RESTORE
        bool "Checkpoint/restore support" if EXPERT
@@ -67909,16 +73329,7 @@ index 6fdd6e3..5b01610 100644
        default n
        help
          Enables additional kernel features in a sake of checkpoint/restore.
-@@ -1016,6 +1017,8 @@ config UIDGID_CONVERTED
-       depends on OCFS2_FS = n
-       depends on XFS_FS = n
-+      depends on GRKERNSEC = n
-+
- config UIDGID_STRICT_TYPE_CHECKS
-       bool "Require conversions between uid/gids and their internal representation"
-       depends on UIDGID_CONVERTED
-@@ -1405,7 +1408,7 @@ config SLUB_DEBUG
+@@ -1468,7 +1469,7 @@ config SLUB_DEBUG
  
  config COMPAT_BRK
        bool "Disable heap randomization"
@@ -67927,7 +73338,7 @@ index 6fdd6e3..5b01610 100644
        help
          Randomizing heap placement makes heap exploits harder, but it
          also breaks ancient binaries (including anything libc5 based).
-@@ -1648,7 +1651,7 @@ config INIT_ALL_POSSIBLE
+@@ -1711,7 +1712,7 @@ config INIT_ALL_POSSIBLE
  config STOP_MACHINE
        bool
        default y
@@ -67951,10 +73362,10 @@ index 7bc47ee..6da2dc7 100644
  ifneq ($(CONFIG_BLK_DEV_INITRD),y)
  obj-y                          += noinitramfs.o
 diff --git a/init/do_mounts.c b/init/do_mounts.c
-index f8a6642..4e5ee1b 100644
+index 1d1b634..a1c810f 100644
 --- a/init/do_mounts.c
 +++ b/init/do_mounts.c
-@@ -336,11 +336,11 @@ static void __init get_fs_names(char *page)
+@@ -355,11 +355,11 @@ static void __init get_fs_names(char *page)
  static int __init do_mount_root(char *name, char *fs, int flags, void *data)
  {
        struct super_block *s;
@@ -67968,7 +73379,7 @@ index f8a6642..4e5ee1b 100644
        s = current->fs->pwd.dentry->d_sb;
        ROOT_DEV = s->s_dev;
        printk(KERN_INFO
-@@ -461,18 +461,18 @@ void __init change_floppy(char *fmt, ...)
+@@ -480,18 +480,18 @@ void __init change_floppy(char *fmt, ...)
        va_start(args, fmt);
        vsprintf(buf, fmt, args);
        va_end(args);
@@ -67990,7 +73401,7 @@ index f8a6642..4e5ee1b 100644
                termios.c_lflag |= ICANON;
                sys_ioctl(fd, TCSETSF, (long)&termios);
                sys_close(fd);
-@@ -566,6 +566,6 @@ void __init prepare_namespace(void)
+@@ -585,6 +585,6 @@ void __init prepare_namespace(void)
        mount_root();
  out:
        devtmpfs_mount("dev");
@@ -68257,7 +73668,7 @@ index 84c6bf1..8899338 100644
        next_state = Reset;
        return 0;
 diff --git a/init/main.c b/init/main.c
-index 857166f..9df1d8e 100644
+index cee4b5c..360e10a 100644
 --- a/init/main.c
 +++ b/init/main.c
 @@ -96,6 +96,8 @@ static inline void mark_rodata_ro(void) { }
@@ -68274,10 +73685,10 @@ index 857166f..9df1d8e 100644
  __setup("reset_devices", set_reset_devices);
  
 +#ifdef CONFIG_GRKERNSEC_PROC_USERGROUP
-+int grsec_proc_gid = CONFIG_GRKERNSEC_PROC_GID;
++kgid_t grsec_proc_gid = KGIDT_INIT(CONFIG_GRKERNSEC_PROC_GID);
 +static int __init setup_grsec_proc_gid(char *str)
 +{
-+      grsec_proc_gid = (int)simple_strtol(str, NULL, 0);
++      grsec_proc_gid = KGIDT_INIT(simple_strtol(str, NULL, 0));
 +      return 1;
 +}
 +__setup("grsec_proc_gid=", setup_grsec_proc_gid);
@@ -68359,18 +73770,7 @@ index 857166f..9df1d8e 100644
        }
  
        return ret;
-@@ -743,6 +801,10 @@ static char *initcall_level_names[] __initdata = {
-       "late",
- };
-+#ifdef CONFIG_PAX_LATENT_ENTROPY
-+u64 latent_entropy;
-+#endif
-+
- static void __init do_initcall_level(int level)
- {
-       extern const struct kernel_param __start___param[], __stop___param[];
-@@ -755,8 +817,14 @@ static void __init do_initcall_level(int level)
+@@ -755,8 +813,14 @@ static void __init do_initcall_level(int level)
                   level, level,
                   &repair_env_string);
  
@@ -68378,15 +73778,15 @@ index 857166f..9df1d8e 100644
 +      for (fn = initcall_levels[level]; fn < initcall_levels[level+1]; fn++) {
                do_one_initcall(*fn);
 +
-+#ifdef CONFIG_PAX_LATENT_ENTROPY
-+              add_device_randomness(&latent_entropy, sizeof(latent_entropy));
++#ifdef LATENT_ENTROPY_PLUGIN
++              add_device_randomness((const void *)&latent_entropy, sizeof(latent_entropy));
 +#endif
 +
 +      }
  }
  
  static void __init do_initcalls(void)
-@@ -790,8 +858,14 @@ static void __init do_pre_smp_initcalls(void)
+@@ -790,8 +854,14 @@ static void __init do_pre_smp_initcalls(void)
  {
        initcall_t *fn;
  
@@ -68394,15 +73794,15 @@ index 857166f..9df1d8e 100644
 +      for (fn = __initcall_start; fn < __initcall0_start; fn++) {
                do_one_initcall(*fn);
 +
-+#ifdef CONFIG_PAX_LATENT_ENTROPY
-+              add_device_randomness(&latent_entropy, sizeof(latent_entropy));
++#ifdef LATENT_ENTROPY_PLUGIN
++              add_device_randomness((const void *)&latent_entropy, sizeof(latent_entropy));
 +#endif
 +
 +      }
  }
  
  static int run_init_process(const char *init_filename)
-@@ -876,7 +950,7 @@ static noinline void __init kernel_init_freeable(void)
+@@ -877,7 +947,7 @@ static noinline void __init kernel_init_freeable(void)
        do_basic_setup();
  
        /* Open the /dev/console on the rootfs, this should never fail */
@@ -68411,7 +73811,7 @@ index 857166f..9df1d8e 100644
                printk(KERN_WARNING "Warning: unable to open an initial console.\n");
  
        (void) sys_dup(0);
-@@ -889,11 +963,13 @@ static noinline void __init kernel_init_freeable(void)
+@@ -890,11 +960,13 @@ static noinline void __init kernel_init_freeable(void)
        if (!ramdisk_execute_command)
                ramdisk_execute_command = "/init";
  
@@ -68426,8 +73826,70 @@ index 857166f..9df1d8e 100644
        /*
         * Ok, we have completed the initial bootup, and
         * we're essentially up and running. Get rid of the
+diff --git a/ipc/ipc_sysctl.c b/ipc/ipc_sysctl.c
+index 130dfec..cc88451 100644
+--- a/ipc/ipc_sysctl.c
++++ b/ipc/ipc_sysctl.c
+@@ -30,7 +30,7 @@ static void *get_ipc(ctl_table *table)
+ static int proc_ipc_dointvec(ctl_table *table, int write,
+       void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table ipc_table;
++      ctl_table_no_const ipc_table;
+       memcpy(&ipc_table, table, sizeof(ipc_table));
+       ipc_table.data = get_ipc(table);
+@@ -41,7 +41,7 @@ static int proc_ipc_dointvec(ctl_table *table, int write,
+ static int proc_ipc_dointvec_minmax(ctl_table *table, int write,
+       void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table ipc_table;
++      ctl_table_no_const ipc_table;
+       memcpy(&ipc_table, table, sizeof(ipc_table));
+       ipc_table.data = get_ipc(table);
+@@ -65,7 +65,7 @@ static int proc_ipc_dointvec_minmax_orphans(ctl_table *table, int write,
+ static int proc_ipc_callback_dointvec(ctl_table *table, int write,
+       void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table ipc_table;
++      ctl_table_no_const ipc_table;
+       size_t lenp_bef = *lenp;
+       int rc;
+@@ -88,7 +88,7 @@ static int proc_ipc_callback_dointvec(ctl_table *table, int write,
+ static int proc_ipc_doulongvec_minmax(ctl_table *table, int write,
+       void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table ipc_table;
++      ctl_table_no_const ipc_table;
+       memcpy(&ipc_table, table, sizeof(ipc_table));
+       ipc_table.data = get_ipc(table);
+@@ -122,7 +122,7 @@ static void ipc_auto_callback(int val)
+ static int proc_ipcauto_dointvec_minmax(ctl_table *table, int write,
+       void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table ipc_table;
++      ctl_table_no_const ipc_table;
+       size_t lenp_bef = *lenp;
+       int oldval;
+       int rc;
+diff --git a/ipc/mq_sysctl.c b/ipc/mq_sysctl.c
+index 383d638..943fdbb 100644
+--- a/ipc/mq_sysctl.c
++++ b/ipc/mq_sysctl.c
+@@ -25,7 +25,7 @@ static void *get_mq(ctl_table *table)
+ static int proc_mq_dointvec_minmax(ctl_table *table, int write,
+       void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table mq_table;
++      ctl_table_no_const mq_table;
+       memcpy(&mq_table, table, sizeof(mq_table));
+       mq_table.data = get_mq(table);
 diff --git a/ipc/mqueue.c b/ipc/mqueue.c
-index 71a3ca1..cc330ee 100644
+index f3f40dc..ffe5a3a 100644
 --- a/ipc/mqueue.c
 +++ b/ipc/mqueue.c
 @@ -278,6 +278,7 @@ static struct inode *mqueue_get_inode(struct super_block *sb,
@@ -68439,7 +73901,7 @@ index 71a3ca1..cc330ee 100644
                if (u->mq_bytes + mq_bytes < u->mq_bytes ||
                    u->mq_bytes + mq_bytes > rlimit(RLIMIT_MSGQUEUE)) {
 diff --git a/ipc/msg.c b/ipc/msg.c
-index a71af5a..a90a110 100644
+index 31cd1bf..9778e0f8 100644
 --- a/ipc/msg.c
 +++ b/ipc/msg.c
 @@ -309,18 +309,19 @@ static inline int msg_security(struct kern_ipc_perm *ipcp, int msgflg)
@@ -68467,6 +73929,14 @@ index a71af5a..a90a110 100644
        msg_params.key = key;
        msg_params.flg = msgflg;
  
+@@ -872,6 +873,7 @@ long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp,
+                                                       goto out_unlock;
+                                               break;
+                                       }
++                                      msg = ERR_PTR(-EAGAIN);
+                               } else
+                                       break;
+                               msg_counter++;
 diff --git a/ipc/sem.c b/ipc/sem.c
 index 58d31f1..cce7a55 100644
 --- a/ipc/sem.c
@@ -68500,7 +73970,7 @@ index 58d31f1..cce7a55 100644
        sem_params.flg = semflg;
        sem_params.u.nsems = nsems;
 diff --git a/ipc/shm.c b/ipc/shm.c
-index dff40c9..9450e27 100644
+index 4fa6d8f..55cff14 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);
@@ -68509,7 +73979,7 @@ index dff40c9..9450e27 100644
  
 +#ifdef CONFIG_GRKERNSEC
 +extern int gr_handle_shmat(const pid_t shm_cprid, const pid_t shm_lapid,
-+                         const time_t shm_createtime, const uid_t cuid,
++                         const time_t shm_createtime, const kuid_t cuid,
 +                         const int shmid);
 +extern int gr_chroot_shmat(const pid_t shm_cprid, const pid_t shm_lapid,
 +                         const time_t shm_createtime);
@@ -68518,7 +73988,7 @@ index dff40c9..9450e27 100644
  void shm_init_ns(struct ipc_namespace *ns)
  {
        ns->shm_ctlmax = SHMMAX;
-@@ -520,6 +528,14 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params)
+@@ -521,6 +529,14 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params)
        shp->shm_lprid = 0;
        shp->shm_atim = shp->shm_dtim = 0;
        shp->shm_ctim = get_seconds();
@@ -68533,7 +74003,7 @@ index dff40c9..9450e27 100644
        shp->shm_segsz = size;
        shp->shm_nattch = 0;
        shp->shm_file = file;
-@@ -571,18 +587,19 @@ static inline int shm_more_checks(struct kern_ipc_perm *ipcp,
+@@ -572,18 +588,19 @@ static inline int shm_more_checks(struct kern_ipc_perm *ipcp,
        return 0;
  }
  
@@ -68558,7 +74028,7 @@ index dff40c9..9450e27 100644
        shm_params.key = key;
        shm_params.flg = shmflg;
        shm_params.u.size = size;
-@@ -1003,6 +1020,12 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr,
+@@ -1004,6 +1021,12 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr,
                f_mode = FMODE_READ | FMODE_WRITE;
        }
        if (shmflg & SHM_EXEC) {
@@ -68571,7 +74041,7 @@ index dff40c9..9450e27 100644
                prot |= PROT_EXEC;
                acc_mode |= S_IXUGO;
        }
-@@ -1026,9 +1049,21 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr,
+@@ -1027,9 +1050,21 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr,
        if (err)
                goto out_unlock;
  
@@ -68607,7 +74077,7 @@ index 051e071..15e0920 100644
        current->signal->rlim[RLIMIT_FSIZE].rlim_cur = flim;
        set_fs(fs);
 diff --git a/kernel/audit.c b/kernel/audit.c
-index 40414e9..c920b72 100644
+index d596e53..dbef3c3 100644
 --- a/kernel/audit.c
 +++ b/kernel/audit.c
 @@ -116,7 +116,7 @@ u32                audit_sig_sid = 0;
@@ -68637,7 +74107,7 @@ index 40414e9..c920b72 100644
                                audit_rate_limit,
                                audit_backlog_limit);
                audit_panic(message);
-@@ -677,7 +677,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
+@@ -681,7 +681,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
                status_set.pid           = audit_pid;
                status_set.rate_limit    = audit_rate_limit;
                status_set.backlog_limit = audit_backlog_limit;
@@ -68647,10 +74117,10 @@ index 40414e9..c920b72 100644
                audit_send_reply(NETLINK_CB(skb).portid, seq, AUDIT_GET, 0, 0,
                                 &status_set, sizeof(status_set));
 diff --git a/kernel/auditsc.c b/kernel/auditsc.c
-index 157e989..b28b365 100644
+index a371f85..da826c1 100644
 --- a/kernel/auditsc.c
 +++ b/kernel/auditsc.c
-@@ -2352,7 +2352,7 @@ int auditsc_get_stamp(struct audit_context *ctx,
+@@ -2292,7 +2292,7 @@ int auditsc_get_stamp(struct audit_context *ctx,
  }
  
  /* global counter which is incremented every time something logs in */
@@ -68659,7 +74129,7 @@ index 157e989..b28b365 100644
  
  /**
   * audit_set_loginuid - set current task's audit_context loginuid
-@@ -2376,7 +2376,7 @@ int audit_set_loginuid(kuid_t loginuid)
+@@ -2316,7 +2316,7 @@ int audit_set_loginuid(kuid_t loginuid)
                return -EPERM;
  #endif  /* CONFIG_AUDIT_LOGINUID_IMMUTABLE */
  
@@ -68669,7 +74139,7 @@ index 157e989..b28b365 100644
                struct audit_buffer *ab;
  
 diff --git a/kernel/capability.c b/kernel/capability.c
-index 493d972..ea17248 100644
+index 493d972..f87dfbd 100644
 --- a/kernel/capability.c
 +++ b/kernel/capability.c
 @@ -202,6 +202,9 @@ SYSCALL_DEFINE2(capget, cap_user_header_t, header, cap_user_data_t, dataptr)
@@ -68725,11 +74195,11 @@ index 493d972..ea17248 100644
 +bool ns_capable_nolog(struct user_namespace *ns, int cap)
 +{
 +      if (unlikely(!cap_valid(cap))) {
-+              printk(KERN_CRIT "capable() called with invalid cap=%u\n", cap);
++              printk(KERN_CRIT "capable_nolog() called with invalid cap=%u\n", cap);
 +              BUG();
 +      }
 +
-+      if (security_capable(current_cred(), ns, cap) == 0 && gr_is_capable_nolog(cap)) {
++      if (security_capable_noaudit(current_cred(), ns, cap) == 0 && gr_is_capable_nolog(cap)) {
 +              current->flags |= PF_SUPERPRIV;
 +              return true;
 +      }
@@ -68765,10 +74235,10 @@ index 493d972..ea17248 100644
 +      return ns_capable_nolog(ns, cap) && kuid_has_mapping(ns, inode->i_uid);
 +}
 diff --git a/kernel/cgroup.c b/kernel/cgroup.c
-index ad99830..992d8a7 100644
+index 1e23664..570a83d 100644
 --- a/kernel/cgroup.c
 +++ b/kernel/cgroup.c
-@@ -5514,7 +5514,7 @@ static int cgroup_css_links_read(struct cgroup *cont,
+@@ -5543,7 +5543,7 @@ static int cgroup_css_links_read(struct cgroup *cont,
                struct css_set *cg = link->cg;
                struct task_struct *task;
                int count = 0;
@@ -68778,7 +74248,7 @@ index ad99830..992d8a7 100644
                        if (count++ > MAX_TASKS_SHOWN_PER_CSS) {
                                seq_puts(seq, "  ...\n");
 diff --git a/kernel/compat.c b/kernel/compat.c
-index c28a306..b4d0cf3 100644
+index 36700e9..73d770c 100644
 --- a/kernel/compat.c
 +++ b/kernel/compat.c
 @@ -13,6 +13,7 @@
@@ -68834,7 +74304,7 @@ index c28a306..b4d0cf3 100644
        set_fs(old_fs);
  
        if (ret)
-@@ -550,8 +551,8 @@ compat_sys_wait4(compat_pid_t pid, compat_uint_t __user *stat_addr, int options,
+@@ -552,8 +553,8 @@ COMPAT_SYSCALL_DEFINE4(wait4,
                set_fs (KERNEL_DS);
                ret = sys_wait4(pid,
                                (stat_addr ?
@@ -68845,7 +74315,7 @@ index c28a306..b4d0cf3 100644
                set_fs (old_fs);
  
                if (ret > 0) {
-@@ -576,8 +577,8 @@ asmlinkage long compat_sys_waitid(int which, compat_pid_t pid,
+@@ -579,8 +580,8 @@ COMPAT_SYSCALL_DEFINE5(waitid,
        memset(&info, 0, sizeof(info));
  
        set_fs(KERNEL_DS);
@@ -68856,7 +74326,7 @@ index c28a306..b4d0cf3 100644
        set_fs(old_fs);
  
        if ((ret < 0) || (info.si_signo == 0))
-@@ -707,8 +708,8 @@ long compat_sys_timer_settime(timer_t timer_id, int flags,
+@@ -714,8 +715,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,
@@ -68867,7 +74337,7 @@ index c28a306..b4d0cf3 100644
        set_fs(oldfs);
        if (!err && old && put_compat_itimerspec(old, &oldts))
                return -EFAULT;
-@@ -725,7 +726,7 @@ long compat_sys_timer_gettime(timer_t timer_id,
+@@ -732,7 +733,7 @@ long compat_sys_timer_gettime(timer_t timer_id,
        oldfs = get_fs();
        set_fs(KERNEL_DS);
        err = sys_timer_gettime(timer_id,
@@ -68876,7 +74346,7 @@ index c28a306..b4d0cf3 100644
        set_fs(oldfs);
        if (!err && put_compat_itimerspec(setting, &ts))
                return -EFAULT;
-@@ -744,7 +745,7 @@ long compat_sys_clock_settime(clockid_t which_clock,
+@@ -751,7 +752,7 @@ long compat_sys_clock_settime(clockid_t which_clock,
        oldfs = get_fs();
        set_fs(KERNEL_DS);
        err = sys_clock_settime(which_clock,
@@ -68885,7 +74355,7 @@ index c28a306..b4d0cf3 100644
        set_fs(oldfs);
        return err;
  }
-@@ -759,7 +760,7 @@ long compat_sys_clock_gettime(clockid_t which_clock,
+@@ -766,7 +767,7 @@ long compat_sys_clock_gettime(clockid_t which_clock,
        oldfs = get_fs();
        set_fs(KERNEL_DS);
        err = sys_clock_gettime(which_clock,
@@ -68894,7 +74364,7 @@ index c28a306..b4d0cf3 100644
        set_fs(oldfs);
        if (!err && put_compat_timespec(&ts, tp))
                return -EFAULT;
-@@ -779,7 +780,7 @@ long compat_sys_clock_adjtime(clockid_t which_clock,
+@@ -786,7 +787,7 @@ long compat_sys_clock_adjtime(clockid_t which_clock,
  
        oldfs = get_fs();
        set_fs(KERNEL_DS);
@@ -68903,7 +74373,7 @@ index c28a306..b4d0cf3 100644
        set_fs(oldfs);
  
        err = compat_put_timex(utp, &txc);
-@@ -799,7 +800,7 @@ long compat_sys_clock_getres(clockid_t which_clock,
+@@ -806,7 +807,7 @@ long compat_sys_clock_getres(clockid_t which_clock,
        oldfs = get_fs();
        set_fs(KERNEL_DS);
        err = sys_clock_getres(which_clock,
@@ -68912,7 +74382,7 @@ index c28a306..b4d0cf3 100644
        set_fs(oldfs);
        if (!err && tp && put_compat_timespec(&ts, tp))
                return -EFAULT;
-@@ -811,9 +812,9 @@ static long compat_clock_nanosleep_restart(struct restart_block *restart)
+@@ -818,9 +819,9 @@ static long compat_clock_nanosleep_restart(struct restart_block *restart)
        long err;
        mm_segment_t oldfs;
        struct timespec tu;
@@ -68924,7 +74394,7 @@ index c28a306..b4d0cf3 100644
        oldfs = get_fs();
        set_fs(KERNEL_DS);
        err = clock_nanosleep_restart(restart);
-@@ -845,8 +846,8 @@ long compat_sys_clock_nanosleep(clockid_t which_clock, int flags,
+@@ -852,8 +853,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,
@@ -68960,10 +74430,10 @@ index 42e8fa0..9e7406b 100644
                return -ENOMEM;
  
 diff --git a/kernel/cred.c b/kernel/cred.c
-index 48cea3d..3476734 100644
+index e0573a4..3874e41 100644
 --- a/kernel/cred.c
 +++ b/kernel/cred.c
-@@ -207,6 +207,16 @@ void exit_creds(struct task_struct *tsk)
+@@ -164,6 +164,16 @@ void exit_creds(struct task_struct *tsk)
        validate_creds(cred);
        alter_cred_subscribers(cred, -1);
        put_cred(cred);
@@ -68980,7 +74450,7 @@ index 48cea3d..3476734 100644
  }
  
  /**
-@@ -469,7 +479,7 @@ error_put:
+@@ -411,7 +421,7 @@ static bool cred_cap_issubset(const struct cred *set, const struct cred *subset)
   * Always returns 0 thus allowing this function to be tail-called at the end
   * of, say, sys_setgid().
   */
@@ -68989,7 +74459,7 @@ index 48cea3d..3476734 100644
  {
        struct task_struct *task = current;
        const struct cred *old = task->real_cred;
-@@ -488,6 +498,8 @@ int commit_creds(struct cred *new)
+@@ -430,6 +440,8 @@ int commit_creds(struct cred *new)
  
        get_cred(new); /* we will require a ref for the subj creds too */
  
@@ -68998,7 +74468,7 @@ index 48cea3d..3476734 100644
        /* dumpability changes */
        if (!uid_eq(old->euid, new->euid) ||
            !gid_eq(old->egid, new->egid) ||
-@@ -537,6 +549,101 @@ int commit_creds(struct cred *new)
+@@ -479,6 +491,102 @@ int commit_creds(struct cred *new)
        put_cred(old);
        return 0;
  }
@@ -69012,7 +74482,7 @@ index 48cea3d..3476734 100644
 +
 +      current->delayed_cred = NULL;
 +
-+      if (current_uid() && new != NULL) {
++      if (!uid_eq(current_uid(), GLOBAL_ROOT_UID) && new != NULL) {
 +              // from doing get_cred on it when queueing this
 +              put_cred(new);
 +              return;
@@ -69073,7 +74543,8 @@ index 48cea3d..3476734 100644
 +         init_cred
 +      */
 +      if (grsec_enable_setxid && !current_is_single_threaded() &&
-+          !current_uid() && new->uid) {
++          uid_eq(current_uid(), GLOBAL_ROOT_UID) &&
++          !uid_eq(new->uid, GLOBAL_ROOT_UID)) {
 +              schedule_it = 1;
 +      }
 +      ret = __commit_creds(new);
@@ -69187,7 +74658,7 @@ index 8875254..7cf4928 100644
  #ifdef CONFIG_MODULE_UNLOAD
                {
 diff --git a/kernel/events/core.c b/kernel/events/core.c
-index dbccf83..8c66482 100644
+index 7b6646a..3cb1135 100644
 --- a/kernel/events/core.c
 +++ b/kernel/events/core.c
 @@ -182,7 +182,7 @@ int perf_proc_update_handler(struct ctl_table *table, int write,
@@ -69199,7 +74670,7 @@ index dbccf83..8c66482 100644
  
  static void cpu_ctx_sched_out(struct perf_cpu_context *cpuctx,
                              enum event_type_t event_type);
-@@ -2668,7 +2668,7 @@ static void __perf_event_read(void *info)
+@@ -2677,7 +2677,7 @@ static void __perf_event_read(void *info)
  
  static inline u64 perf_event_count(struct perf_event *event)
  {
@@ -69208,7 +74679,7 @@ index dbccf83..8c66482 100644
  }
  
  static u64 perf_event_read(struct perf_event *event)
-@@ -2998,9 +2998,9 @@ u64 perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running)
+@@ -3007,9 +3007,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 +
@@ -69220,7 +74691,7 @@ index dbccf83..8c66482 100644
  
        list_for_each_entry(child, &event->child_list, child_list) {
                total += perf_event_read(child);
-@@ -3403,10 +3403,10 @@ void perf_event_update_userpage(struct perf_event *event)
+@@ -3412,10 +3412,10 @@ void perf_event_update_userpage(struct perf_event *event)
                userpg->offset -= local64_read(&event->hw.prev_count);
  
        userpg->time_enabled = enabled +
@@ -69233,7 +74704,7 @@ index dbccf83..8c66482 100644
  
        arch_perf_update_userpage(userpg, now);
  
-@@ -3965,11 +3965,11 @@ static void perf_output_read_one(struct perf_output_handle *handle,
+@@ -3974,11 +3974,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 +
@@ -69247,7 +74718,7 @@ index dbccf83..8c66482 100644
        }
        if (read_format & PERF_FORMAT_ID)
                values[n++] = primary_event_id(event);
-@@ -4712,12 +4712,12 @@ static void perf_event_mmap_event(struct perf_mmap_event *mmap_event)
+@@ -4721,12 +4721,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.
                 */
@@ -69262,16 +74733,16 @@ index dbccf83..8c66482 100644
                if (IS_ERR(name)) {
                        name = strncpy(tmp, "//toolong", sizeof(tmp));
                        goto got_name;
-@@ -6156,7 +6156,7 @@ perf_event_alloc(struct perf_event_attr *attr, int cpu,
+@@ -6165,7 +6165,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->ns               = get_pid_ns(task_active_pid_ns(current));
 -      event->id               = atomic64_inc_return(&perf_event_id);
 +      event->id               = atomic64_inc_return_unchecked(&perf_event_id);
  
        event->state            = PERF_EVENT_STATE_INACTIVE;
  
-@@ -6774,10 +6774,10 @@ static void sync_child_event(struct perf_event *child_event,
+@@ -6790,10 +6790,10 @@ static void sync_child_event(struct perf_event *child_event,
        /*
         * Add back the child's count to the parent's count:
         */
@@ -69286,10 +74757,10 @@ index dbccf83..8c66482 100644
  
        /*
 diff --git a/kernel/exit.c b/kernel/exit.c
-index 346616c..f103b28 100644
+index b4df219..f13c02d 100644
 --- a/kernel/exit.c
 +++ b/kernel/exit.c
-@@ -182,6 +182,10 @@ void release_task(struct task_struct * p)
+@@ -170,6 +170,10 @@ void release_task(struct task_struct * p)
        struct task_struct *leader;
        int zap_leader;
  repeat:
@@ -69300,7 +74771,7 @@ index 346616c..f103b28 100644
        /* 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();
-@@ -394,7 +398,7 @@ int allow_signal(int sig)
+@@ -338,7 +342,7 @@ int allow_signal(int sig)
         * know it'll be handled, so that they don't get converted to
         * SIGKILL or just silently dropped.
         */
@@ -69309,17 +74780,7 @@ index 346616c..f103b28 100644
        recalc_sigpending();
        spin_unlock_irq(&current->sighand->siglock);
        return 0;
-@@ -430,6 +434,9 @@ void daemonize(const char *name, ...)
-       vsnprintf(current->comm, sizeof(current->comm), name, args);
-       va_end(args);
-+      gr_put_exec_file(current);
-+      gr_set_kernel_label(current);
-+
-       /*
-        * 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
-@@ -812,6 +819,8 @@ void do_exit(long code)
+@@ -708,6 +712,8 @@ void do_exit(long code)
        struct task_struct *tsk = current;
        int group_dead;
  
@@ -69328,7 +74789,7 @@ index 346616c..f103b28 100644
        profile_task_exit(tsk);
  
        WARN_ON(blk_needs_flush_plug(tsk));
-@@ -828,7 +837,6 @@ void do_exit(long code)
+@@ -724,7 +730,6 @@ void do_exit(long code)
         * mm_release()->clear_child_tid() from writing to a user-controlled
         * kernel address.
         */
@@ -69336,7 +74797,7 @@ index 346616c..f103b28 100644
  
        ptrace_event(PTRACE_EVENT_EXIT, code);
  
-@@ -887,6 +895,9 @@ void do_exit(long code)
+@@ -783,6 +788,9 @@ void do_exit(long code)
        tsk->exit_code = code;
        taskstats_exit(tsk, group_dead);
  
@@ -69346,7 +74807,7 @@ index 346616c..f103b28 100644
        exit_mm(tsk);
  
        if (group_dead)
-@@ -1007,7 +1018,7 @@ SYSCALL_DEFINE1(exit, int, error_code)
+@@ -903,7 +911,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).
   */
@@ -69356,7 +74817,7 @@ index 346616c..f103b28 100644
  {
        struct signal_struct *sig = current->signal;
 diff --git a/kernel/fork.c b/kernel/fork.c
-index acc4cb6..b524cb5 100644
+index 5630e52..0cee608 100644
 --- a/kernel/fork.c
 +++ b/kernel/fork.c
 @@ -318,7 +318,7 @@ static struct task_struct *dup_task_struct(struct task_struct *orig)
@@ -69450,9 +74911,9 @@ index acc4cb6..b524cb5 100644
 -      unsigned long charge;
 -      struct mempolicy *pol;
  
+       uprobe_start_dup_mmap();
        down_write(&oldmm->mmap_sem);
-       flush_cache_dup_mm(oldmm);
-@@ -363,8 +431,8 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
+@@ -364,8 +432,8 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
        mm->locked_vm = 0;
        mm->mmap = NULL;
        mm->mmap_cache = NULL;
@@ -69463,7 +74924,7 @@ index acc4cb6..b524cb5 100644
        mm->map_count = 0;
        cpumask_clear(mm_cpumask(mm));
        mm->mm_rb = RB_ROOT;
-@@ -380,57 +448,15 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
+@@ -381,57 +449,15 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
  
        prev = NULL;
        for (mpnt = oldmm->mmap; mpnt; mpnt = mpnt->vm_next) {
@@ -69525,7 +74986,7 @@ index acc4cb6..b524cb5 100644
                }
  
                /*
-@@ -462,6 +488,31 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
+@@ -463,6 +489,31 @@ static int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm)
                if (retval)
                        goto out;
        }
@@ -69557,9 +75018,9 @@ index acc4cb6..b524cb5 100644
        /* a new mm has just been created */
        arch_dup_mmap(oldmm, mm);
        retval = 0;
-@@ -470,14 +521,6 @@ out:
-       flush_tlb_mm(oldmm);
+@@ -472,14 +523,6 @@ out:
        up_write(&oldmm->mmap_sem);
+       uprobe_end_dup_mmap();
        return retval;
 -fail_nomem_anon_vma_fork:
 -      mpol_put(pol);
@@ -69572,7 +75033,7 @@ index acc4cb6..b524cb5 100644
  }
  
  static inline int mm_alloc_pgd(struct mm_struct *mm)
-@@ -692,8 +735,8 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
+@@ -694,8 +737,8 @@ struct mm_struct *mm_access(struct task_struct *task, unsigned int mode)
                return ERR_PTR(err);
  
        mm = get_task_mm(task);
@@ -69583,7 +75044,7 @@ index acc4cb6..b524cb5 100644
                mmput(mm);
                mm = ERR_PTR(-EACCES);
        }
-@@ -912,13 +955,20 @@ static int copy_fs(unsigned long clone_flags, struct task_struct *tsk)
+@@ -917,13 +960,20 @@ static int copy_fs(unsigned long clone_flags, struct task_struct *tsk)
                        spin_unlock(&fs->lock);
                        return -EAGAIN;
                }
@@ -69605,7 +75066,7 @@ index acc4cb6..b524cb5 100644
        return 0;
  }
  
-@@ -1183,6 +1233,9 @@ static struct task_struct *copy_process(unsigned long clone_flags,
+@@ -1196,6 +1246,9 @@ static struct task_struct *copy_process(unsigned long clone_flags,
        DEBUG_LOCKS_WARN_ON(!p->softirqs_enabled);
  #endif
        retval = -EAGAIN;
@@ -69615,7 +75076,7 @@ index acc4cb6..b524cb5 100644
        if (atomic_read(&p->real_cred->user->processes) >=
                        task_rlimit(p, RLIMIT_NPROC)) {
                if (!capable(CAP_SYS_ADMIN) && !capable(CAP_SYS_RESOURCE) &&
-@@ -1422,6 +1475,11 @@ static struct task_struct *copy_process(unsigned long clone_flags,
+@@ -1435,6 +1488,11 @@ static struct task_struct *copy_process(unsigned long clone_flags,
                goto bad_fork_free_pid;
        }
  
@@ -69627,7 +75088,7 @@ index acc4cb6..b524cb5 100644
        if (clone_flags & CLONE_THREAD) {
                current->signal->nr_threads++;
                atomic_inc(&current->signal->live);
-@@ -1505,6 +1563,8 @@ bad_fork_cleanup_count:
+@@ -1518,6 +1576,8 @@ bad_fork_cleanup_count:
  bad_fork_free:
        free_task(p);
  fork_out:
@@ -69636,7 +75097,31 @@ index acc4cb6..b524cb5 100644
        return ERR_PTR(retval);
  }
  
-@@ -1605,6 +1665,8 @@ long do_fork(unsigned long clone_flags,
+@@ -1568,6 +1628,23 @@ long do_fork(unsigned long clone_flags,
+                       return -EINVAL;
+       }
++#ifdef CONFIG_GRKERNSEC
++      if (clone_flags & CLONE_NEWUSER) {
++              /* 
++               * This doesn't really inspire confidence:
++               * http://marc.info/?l=linux-kernel&m=135543612731939&w=2
++               * http://marc.info/?l=linux-kernel&m=135545831607095&w=2
++               * Increases kernel attack surface in areas developers
++               * previously cared little about ("low importance due
++               * to requiring "root" capability")
++               * To be removed when this code receives *proper* review
++               */
++              if (!capable(CAP_SYS_ADMIN) || !capable(CAP_SETUID) ||
++                              !capable(CAP_SETGID))
++                      return -EPERM;
++      }
++#endif
++
+       /*
+        * Determine whether and which event to report to ptracer.  When
+        * called from kernel_thread or CLONE_UNTRACED is explicitly
+@@ -1602,6 +1679,8 @@ long do_fork(unsigned long clone_flags,
                if (clone_flags & CLONE_PARENT_SETTID)
                        put_user(nr, parent_tidptr);
  
@@ -69645,7 +75130,7 @@ index acc4cb6..b524cb5 100644
                if (clone_flags & CLONE_VFORK) {
                        p->vfork_done = &vfork;
                        init_completion(&vfork);
-@@ -1714,7 +1776,7 @@ static int unshare_fs(unsigned long unshare_flags, struct fs_struct **new_fsp)
+@@ -1755,7 +1834,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 */
@@ -69654,7 +75139,7 @@ index acc4cb6..b524cb5 100644
                return 0;
  
        *new_fsp = copy_fs_struct(fs);
-@@ -1803,7 +1865,8 @@ SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
+@@ -1869,7 +1948,8 @@ SYSCALL_DEFINE1(unshare, unsigned long, unshare_flags)
                        fs = current->fs;
                        spin_lock(&fs->lock);
                        current->fs = new_fs;
@@ -69665,7 +75150,7 @@ index acc4cb6..b524cb5 100644
                        else
                                new_fs = fs;
 diff --git a/kernel/futex.c b/kernel/futex.c
-index 19eb089..b8c65ea 100644
+index 8879430..31696f1 100644
 --- a/kernel/futex.c
 +++ b/kernel/futex.c
 @@ -54,6 +54,7 @@
@@ -69688,7 +75173,7 @@ index 19eb089..b8c65ea 100644
        /*
         * The futex address must be "naturally" aligned.
         */
-@@ -2733,6 +2739,7 @@ static int __init futex_init(void)
+@@ -2731,6 +2737,7 @@ static int __init futex_init(void)
  {
        u32 curval;
        int i;
@@ -69696,7 +75181,7 @@ index 19eb089..b8c65ea 100644
  
        /*
         * This will fail and we want it. Some arch implementations do
-@@ -2744,8 +2751,11 @@ static int __init futex_init(void)
+@@ -2742,8 +2749,11 @@ static int __init futex_init(void)
         * implementation, the non-functional ones will return
         * -ENOSYS.
         */
@@ -69708,6 +75193,19 @@ index 19eb089..b8c65ea 100644
  
        for (i = 0; i < ARRAY_SIZE(futex_queues); i++) {
                plist_head_init(&futex_queues[i].chain);
+diff --git a/kernel/futex_compat.c b/kernel/futex_compat.c
+index a9642d5..51eb98c 100644
+--- a/kernel/futex_compat.c
++++ b/kernel/futex_compat.c
+@@ -31,7 +31,7 @@ fetch_robust_entry(compat_uptr_t *uentry, struct robust_list __user **entry,
+       return 0;
+ }
+-static void __user *futex_uaddr(struct robust_list __user *entry,
++static void __user __intentional_overflow(-1) *futex_uaddr(struct robust_list __user *entry,
+                               compat_long_t futex_offset)
+ {
+       compat_uptr_t base = ptr_to_compat(entry);
 diff --git a/kernel/gcov/base.c b/kernel/gcov/base.c
 index 9b22d03..6295b62 100644
 --- a/kernel/gcov/base.c
@@ -69734,7 +75232,7 @@ index 9b22d03..6295b62 100644
                                prev->next = info->next;
                        else
 diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
-index 6db7a5e..25b6648 100644
+index cdd5607..c3fc919 100644
 --- a/kernel/hrtimer.c
 +++ b/kernel/hrtimer.c
 @@ -1407,7 +1407,7 @@ void hrtimer_peek_ahead_timers(void)
@@ -69746,6 +75244,15 @@ index 6db7a5e..25b6648 100644
  {
        struct hrtimer_cpu_base *cpu_base = &__get_cpu_var(hrtimer_bases);
  
+@@ -1751,7 +1751,7 @@ static int __cpuinit hrtimer_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata hrtimers_nb = {
++static struct notifier_block hrtimers_nb = {
+       .notifier_call = hrtimer_cpu_notify,
+ };
 diff --git a/kernel/jump_label.c b/kernel/jump_label.c
 index 60f48fa..7f3a770 100644
 --- a/kernel/jump_label.c
@@ -69782,7 +75289,7 @@ index 60f48fa..7f3a770 100644
  
  static int
 diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
-index 2169fee..45c017a 100644
+index 2169fee..706ccca 100644
 --- a/kernel/kallsyms.c
 +++ b/kernel/kallsyms.c
 @@ -11,6 +11,9 @@
@@ -69871,7 +75378,7 @@ index 2169fee..45c017a 100644
        struct kallsym_iter *iter = m->private;
  
 +#ifdef CONFIG_GRKERNSEC_HIDESYM
-+      if (current_uid())
++      if (!uid_eq(current_uid(), GLOBAL_ROOT_UID))
 +              return 0;
 +#endif
 +
@@ -69896,10 +75403,10 @@ index 2169fee..45c017a 100644
                return -ENOMEM;
        reset_iter(iter, 0);
 diff --git a/kernel/kcmp.c b/kernel/kcmp.c
-index 30b7b22..c726387 100644
+index e30ac0f..3528cac 100644
 --- a/kernel/kcmp.c
 +++ b/kernel/kcmp.c
-@@ -98,6 +98,10 @@ SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type,
+@@ -99,6 +99,10 @@ SYSCALL_DEFINE5(kcmp, pid_t, pid1, pid_t, pid2, int, type,
        struct task_struct *task1, *task2;
        int ret;
  
@@ -69925,7 +75432,7 @@ index 5e4bd78..00c5b91 100644
  
        /* Don't allow clients that don't understand the native
 diff --git a/kernel/kmod.c b/kernel/kmod.c
-index 1c317e3..4a92a55 100644
+index 0023a87..9c0c068 100644
 --- a/kernel/kmod.c
 +++ b/kernel/kmod.c
 @@ -74,7 +74,7 @@ static void free_modprobe_argv(struct subprocess_info *info)
@@ -69983,7 +75490,7 @@ index 1c317e3..4a92a55 100644
                return ret;
  
 +#ifdef CONFIG_GRKERNSEC_MODHARDEN
-+      if (!current_uid()) {
++      if (uid_eq(current_uid(), GLOBAL_ROOT_UID)) {
 +              /* hack to workaround consolekit/udisks stupidity */
 +              read_lock(&tasklist_lock);
 +              if (!strcmp(current->comm, "mount") &&
@@ -70028,12 +75535,12 @@ index 1c317e3..4a92a55 100644
 +      int ret;
 +
 +#ifdef CONFIG_GRKERNSEC_MODHARDEN
-+      if (current_uid()) {
++      if (!uid_eq(current_uid(), GLOBAL_ROOT_UID)) {
 +              char module_param[MODULE_NAME_LEN];
 +
 +              memset(module_param, 0, sizeof(module_param));
 +
-+              snprintf(module_param, sizeof(module_param) - 1, "grsec_modharden_normal%u_", current_uid());
++              snprintf(module_param, sizeof(module_param) - 1, "grsec_modharden_normal%u_", GR_GLOBAL_UID(current_uid()));
 +
 +              va_start(args, fmt);
 +              ret = ____request_module(wait, module_param, fmt, args);
@@ -70062,6 +75569,15 @@ index 1c317e3..4a92a55 100644
  
                /*
                 * If ret is 0, either ____call_usermodehelper failed and the
+@@ -635,7 +688,7 @@ EXPORT_SYMBOL(call_usermodehelper_fns);
+ static int proc_cap_handler(struct ctl_table *table, int write,
+                        void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table t;
++      ctl_table_no_const t;
+       unsigned long cap_array[_KERNEL_CAPABILITY_U32S];
+       kernel_cap_t new_cap;
+       int err, i;
 diff --git a/kernel/kprobes.c b/kernel/kprobes.c
 index 098f396..fe85ff1 100644
 --- a/kernel/kprobes.c
@@ -70117,10 +75633,10 @@ index 098f396..fe85ff1 100644
        head = &kprobe_table[i];
        preempt_disable();
 diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c
-index 4e316e1..5501eef 100644
+index 6ada93c..dce7d5d 100644
 --- a/kernel/ksysfs.c
 +++ b/kernel/ksysfs.c
-@@ -47,6 +47,8 @@ static ssize_t uevent_helper_store(struct kobject *kobj,
+@@ -46,6 +46,8 @@ static ssize_t uevent_helper_store(struct kobject *kobj,
  {
        if (count+1 > UEVENT_HELPER_PATH_LEN)
                return -ENOENT;
@@ -70129,6 +75645,15 @@ index 4e316e1..5501eef 100644
        memcpy(uevent_helper, buf, count);
        uevent_helper[count] = '\0';
        if (count && uevent_helper[count-1] == '\n')
+@@ -172,7 +174,7 @@ static ssize_t notes_read(struct file *filp, struct kobject *kobj,
+       return count;
+ }
+-static struct bin_attribute notes_attr = {
++static bin_attribute_no_const notes_attr __read_only = {
+       .attr = {
+               .name = "notes",
+               .mode = S_IRUGO,
 diff --git a/kernel/lockdep.c b/kernel/lockdep.c
 index 7981e5b..7f2105c 100644
 --- a/kernel/lockdep.c
@@ -70162,18 +75687,9 @@ index 7981e5b..7f2105c 100644
                printk("\nacquire class [%p] %s", class->key, class->name);
                if (class->name_version > 1)
 diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c
-index 91c32a0..7b88d63 100644
+index b2c71c5..7b88d63 100644
 --- a/kernel/lockdep_proc.c
 +++ b/kernel/lockdep_proc.c
-@@ -39,7 +39,7 @@ static void l_stop(struct seq_file *m, void *v)
- static void print_name(struct seq_file *m, struct lock_class *class)
- {
--      char str[128];
-+      char str[KSYM_NAME_LEN];
-       const char *name = class->name;
-       if (!name) {
 @@ -65,7 +65,7 @@ static int l_show(struct seq_file *m, void *v)
                return 0;
        }
@@ -70220,18 +75736,18 @@ index 91c32a0..7b88d63 100644
                seq_printf(m, "%40s %14lu %29s %pS\n",
                           name, stats->contending_point[i],
 diff --git a/kernel/module.c b/kernel/module.c
-index 3e544f4..34c3008 100644
+index eab0827..f488603 100644
 --- a/kernel/module.c
 +++ b/kernel/module.c
-@@ -59,6 +59,7 @@
+@@ -61,6 +61,7 @@
  #include <linux/pfn.h>
  #include <linux/bsearch.h>
  #include <linux/fips.h>
 +#include <linux/grsecurity.h>
+ #include <uapi/linux/module.h>
  #include "module-internal.h"
  
- #define CREATE_TRACE_POINTS
-@@ -153,7 +154,8 @@ static BLOCKING_NOTIFIER_HEAD(module_notify_list);
+@@ -156,7 +157,8 @@ static BLOCKING_NOTIFIER_HEAD(module_notify_list);
  
  /* Bounds of module allocation, for speeding __module_address.
   * Protected by module_mutex. */
@@ -70241,7 +75757,7 @@ index 3e544f4..34c3008 100644
  
  int register_module_notifier(struct notifier_block * nb)
  {
-@@ -319,7 +321,7 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
+@@ -322,7 +324,7 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
                return true;
  
        list_for_each_entry_rcu(mod, &modules, list) {
@@ -70250,7 +75766,7 @@ index 3e544f4..34c3008 100644
                        { mod->syms, mod->syms + mod->num_syms, mod->crcs,
                          NOT_GPL_ONLY, false },
                        { mod->gpl_syms, mod->gpl_syms + mod->num_gpl_syms,
-@@ -344,7 +346,7 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
+@@ -347,7 +349,7 @@ bool each_symbol_section(bool (*fn)(const struct symsearch *arr,
                if (mod->state == MODULE_STATE_UNFORMED)
                        continue;
  
@@ -70295,6 +75811,24 @@ index 3e544f4..34c3008 100644
  static inline bool sect_empty(const Elf_Shdr *sect)
  {
        return !(sect->sh_flags & SHF_ALLOC) || sect->sh_size == 0;
+@@ -1451,7 +1453,7 @@ static void add_notes_attrs(struct module *mod, const struct load_info *info)
+ {
+       unsigned int notes, loaded, i;
+       struct module_notes_attrs *notes_attrs;
+-      struct bin_attribute *nattr;
++      bin_attribute_no_const *nattr;
+       /* failed to create section attributes, so can't create notes */
+       if (!mod->sect_attrs)
+@@ -1563,7 +1565,7 @@ static void del_usage_links(struct module *mod)
+ static int module_add_modinfo_attrs(struct module *mod)
+ {
+       struct module_attribute *attr;
+-      struct module_attribute *temp_attr;
++      module_attribute_no_const *temp_attr;
+       int error = 0;
+       int i;
 @@ -1777,21 +1779,21 @@ static void set_section_ro_nx(void *base,
  
  static void unset_module_core_ro_nx(struct module *mod)
@@ -70518,7 +76052,7 @@ index 3e544f4..34c3008 100644
                                         info->index.sym) | INIT_OFFSET_MASK;
        pr_debug("\t%s\n", info->secstrings + symsect->sh_name);
  
-@@ -2326,13 +2344,13 @@ static void layout_symtab(struct module *mod, struct load_info *info)
+@@ -2323,13 +2341,13 @@ static void layout_symtab(struct module *mod, struct load_info *info)
        }
  
        /* Append room for core symbols at end of core part. */
@@ -70536,7 +76070,7 @@ index 3e544f4..34c3008 100644
                                         info->index.str) | INIT_OFFSET_MASK;
        pr_debug("\t%s\n", info->secstrings + strsect->sh_name);
  }
-@@ -2350,12 +2368,14 @@ static void add_kallsyms(struct module *mod, const struct load_info *info)
+@@ -2347,12 +2365,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;
  
@@ -70551,9 +76085,9 @@ index 3e544f4..34c3008 100644
 +      mod->core_symtab = dst = mod->module_core_rx + info->symoffs;
 +      mod->core_strtab = s = mod->module_core_rx + info->stroffs;
        src = mod->symtab;
-       *s++ = 0;
        for (ndst = i = 0; i < mod->num_symtab; i++) {
-@@ -2368,6 +2388,8 @@ static void add_kallsyms(struct module *mod, const struct load_info *info)
+               if (i == 0 ||
+@@ -2364,6 +2384,8 @@ static void add_kallsyms(struct module *mod, const struct load_info *info)
                }
        }
        mod->core_num_syms = ndst;
@@ -70562,8 +76096,8 @@ index 3e544f4..34c3008 100644
  }
  #else
  static inline void layout_symtab(struct module *mod, struct load_info *info)
-@@ -2401,17 +2423,33 @@ void * __weak module_alloc(unsigned long size)
-       return size == 0 ? NULL : vmalloc_exec(size);
+@@ -2397,17 +2419,33 @@ void * __weak module_alloc(unsigned long size)
+       return vmalloc_exec(size);
  }
  
 -static void *module_alloc_update_bounds(unsigned long size)
@@ -70601,8 +76135,8 @@ index 3e544f4..34c3008 100644
                mutex_unlock(&module_mutex);
        }
        return ret;
-@@ -2630,8 +2668,14 @@ static struct module *setup_load_info(struct load_info *info)
- static int check_modinfo(struct module *mod, struct load_info *info)
+@@ -2683,8 +2721,14 @@ static struct module *setup_load_info(struct load_info *info, int flags)
+ static int check_modinfo(struct module *mod, struct load_info *info, int flags)
  {
        const char *modmagic = get_modinfo(info, "vermagic");
 +      const char *license = get_modinfo(info, "license");
@@ -70613,10 +76147,10 @@ index 3e544f4..34c3008 100644
 +              return -ENOEXEC;
 +#endif
 +
-       /* This is allowed: modprobe --force will invalidate it. */
-       if (!modmagic) {
-               err = try_to_force_load(mod, "bad vermagic");
-@@ -2654,7 +2698,7 @@ static int check_modinfo(struct module *mod, struct load_info *info)
+       if (flags & MODULE_INIT_IGNORE_VERMAGIC)
+               modmagic = NULL;
+@@ -2710,7 +2754,7 @@ static int check_modinfo(struct module *mod, struct load_info *info, int flags)
        }
  
        /* Set up license info based on the info section */
@@ -70625,7 +76159,7 @@ index 3e544f4..34c3008 100644
  
        return 0;
  }
-@@ -2748,7 +2792,7 @@ static int move_module(struct module *mod, struct load_info *info)
+@@ -2804,7 +2848,7 @@ static int move_module(struct module *mod, struct load_info *info)
        void *ptr;
  
        /* Do the allocs. */
@@ -70634,7 +76168,7 @@ index 3e544f4..34c3008 100644
        /*
         * The pointer to this block is stored in the module structure
         * which is inside the block. Just mark it as not being a
-@@ -2758,10 +2802,10 @@ static int move_module(struct module *mod, struct load_info *info)
+@@ -2814,11 +2858,11 @@ static int move_module(struct module *mod, struct load_info *info)
        if (!ptr)
                return -ENOMEM;
  
@@ -70643,30 +76177,34 @@ index 3e544f4..34c3008 100644
 +      memset(ptr, 0, mod->core_size_rw);
 +      mod->module_core_rw = ptr;
  
--      ptr = module_alloc_update_bounds(mod->init_size);
-+      ptr = module_alloc_update_bounds_rw(mod->init_size_rw);
-       /*
-        * The pointer to this block is stored in the module structure
-        * which is inside the block. This block doesn't need to be
-@@ -2769,12 +2813,39 @@ static int move_module(struct module *mod, struct load_info *info)
-        * after the module is initialized.
-        */
-       kmemleak_ignore(ptr);
--      if (!ptr && mod->init_size) {
--              module_free(mod, mod->module_core);
-+      if (!ptr && mod->init_size_rw) {
-+              module_free(mod, mod->module_core_rw);
-               return -ENOMEM;
-       }
--      memset(ptr, 0, mod->init_size);
--      mod->module_init = ptr;
-+      memset(ptr, 0, mod->init_size_rw);
-+      mod->module_init_rw = ptr;
+-      if (mod->init_size) {
+-              ptr = module_alloc_update_bounds(mod->init_size);
++      if (mod->init_size_rw) {
++              ptr = module_alloc_update_bounds_rw(mod->init_size_rw);
+               /*
+                * The pointer to this block is stored in the module structure
+                * which is inside the block. This block doesn't need to be
+@@ -2827,13 +2871,45 @@ static int move_module(struct module *mod, struct load_info *info)
+                */
+               kmemleak_ignore(ptr);
+               if (!ptr) {
+-                      module_free(mod, mod->module_core);
++                      module_free(mod, mod->module_core_rw);
+                       return -ENOMEM;
+               }
+-              memset(ptr, 0, mod->init_size);
+-              mod->module_init = ptr;
++              memset(ptr, 0, mod->init_size_rw);
++              mod->module_init_rw = ptr;
+       } else
+-              mod->module_init = NULL;
++              mod->module_init_rw = NULL;
 +
 +      ptr = module_alloc_update_bounds_rx(mod->core_size_rx);
 +      kmemleak_not_leak(ptr);
 +      if (!ptr) {
-+              module_free(mod, mod->module_init_rw);
++              if (mod->module_init_rw)
++                      module_free(mod, mod->module_init_rw);
 +              module_free(mod, mod->module_core_rw);
 +              return -ENOMEM;
 +      }
@@ -70676,23 +76214,27 @@ index 3e544f4..34c3008 100644
 +      pax_close_kernel();
 +      mod->module_core_rx = ptr;
 +
-+      ptr = module_alloc_update_bounds_rx(mod->init_size_rx);
-+      kmemleak_ignore(ptr);
-+      if (!ptr && mod->init_size_rx) {
-+              module_free_exec(mod, mod->module_core_rx);
-+              module_free(mod, mod->module_init_rw);
-+              module_free(mod, mod->module_core_rw);
-+              return -ENOMEM;
-+      }
++      if (mod->init_size_rx) {
++              ptr = module_alloc_update_bounds_rx(mod->init_size_rx);
++              kmemleak_ignore(ptr);
++              if (!ptr && mod->init_size_rx) {
++                      module_free_exec(mod, mod->module_core_rx);
++                      if (mod->module_init_rw)
++                              module_free(mod, mod->module_init_rw);
++                      module_free(mod, mod->module_core_rw);
++                      return -ENOMEM;
++              }
 +
-+      pax_open_kernel();
-+      memset(ptr, 0, mod->init_size_rx);
-+      pax_close_kernel();
-+      mod->module_init_rx = ptr;
++              pax_open_kernel();
++              memset(ptr, 0, mod->init_size_rx);
++              pax_close_kernel();
++              mod->module_init_rx = ptr;
++      } else
++              mod->module_init_rx = NULL;
  
        /* Transfer each section which specifies SHF_ALLOC */
        pr_debug("final section addresses:\n");
-@@ -2785,16 +2856,45 @@ static int move_module(struct module *mod, struct load_info *info)
+@@ -2844,16 +2920,45 @@ static int move_module(struct module *mod, struct load_info *info)
                if (!(shdr->sh_flags & SHF_ALLOC))
                        continue;
  
@@ -70745,7 +76287,7 @@ index 3e544f4..34c3008 100644
                pr_debug("\t0x%lx %s\n",
                         (long)shdr->sh_addr, info->secstrings + shdr->sh_name);
        }
-@@ -2849,12 +2949,12 @@ static void flush_module_icache(const struct module *mod)
+@@ -2908,12 +3013,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.
         */
@@ -70764,7 +76306,7 @@ index 3e544f4..34c3008 100644
  
        set_fs(old_fs);
  }
-@@ -2924,8 +3024,10 @@ out:
+@@ -2983,8 +3088,10 @@ out:
  static void module_deallocate(struct module *mod, struct load_info *info)
  {
        percpu_modfree(mod);
@@ -70777,7 +76319,7 @@ index 3e544f4..34c3008 100644
  }
  
  int __weak module_finalize(const Elf_Ehdr *hdr,
-@@ -2938,7 +3040,9 @@ int __weak module_finalize(const Elf_Ehdr *hdr,
+@@ -2997,7 +3104,9 @@ int __weak module_finalize(const Elf_Ehdr *hdr,
  static int post_relocation(struct module *mod, const struct load_info *info)
  {
        /* Sort exception table now relocations are done. */
@@ -70787,7 +76329,50 @@ index 3e544f4..34c3008 100644
  
        /* Copy relocated percpu area over. */
        percpu_modcopy(mod, (void *)info->sechdrs[info->index.pcpu].sh_addr,
-@@ -3036,9 +3140,38 @@ again:
+@@ -3051,16 +3160,16 @@ static int do_init_module(struct module *mod)
+                       MODULE_STATE_COMING, mod);
+       /* Set RO and NX regions for core */
+-      set_section_ro_nx(mod->module_core,
+-                              mod->core_text_size,
+-                              mod->core_ro_size,
+-                              mod->core_size);
++      set_section_ro_nx(mod->module_core_rx,
++                              mod->core_size_rx,
++                              mod->core_size_rx,
++                              mod->core_size_rx);
+       /* Set RO and NX regions for init */
+-      set_section_ro_nx(mod->module_init,
+-                              mod->init_text_size,
+-                              mod->init_ro_size,
+-                              mod->init_size);
++      set_section_ro_nx(mod->module_init_rx,
++                              mod->init_size_rx,
++                              mod->init_size_rx,
++                              mod->init_size_rx);
+       do_mod_ctors(mod);
+       /* Start the module */
+@@ -3122,11 +3231,12 @@ static int do_init_module(struct module *mod)
+       mod->strtab = mod->core_strtab;
+ #endif
+       unset_module_init_ro_nx(mod);
+-      module_free(mod, mod->module_init);
+-      mod->module_init = NULL;
+-      mod->init_size = 0;
+-      mod->init_ro_size = 0;
+-      mod->init_text_size = 0;
++      module_free(mod, mod->module_init_rw);
++      module_free_exec(mod, mod->module_init_rx);
++      mod->module_init_rw = NULL;
++      mod->module_init_rx = NULL;
++      mod->init_size_rw = 0;
++      mod->init_size_rx = 0;
+       mutex_unlock(&module_mutex);
+       wake_up_all(&module_wq);
+@@ -3209,9 +3319,38 @@ again:
        if (err)
                goto free_unload;
  
@@ -70799,7 +76384,7 @@ index 3e544f4..34c3008 100644
 +      }
 +
        /* Set up MODINFO_ATTR fields */
-       setup_modinfo(mod, &info);
+       setup_modinfo(mod, info);
  
 +#ifdef CONFIG_GRKERNSEC_MODHARDEN
 +      {
@@ -70824,14 +76409,28 @@ index 3e544f4..34c3008 100644
 +#endif
 +
        /* Fix up syms, so that st_value is a pointer to location. */
-       err = simplify_symbols(mod, &info);
+       err = simplify_symbols(mod, info);
        if (err < 0)
-@@ -3104,11 +3237,11 @@ again:
+@@ -3227,13 +3366,6 @@ again:
+       flush_module_icache(mod);
+-      /* Now copy in args */
+-      mod->args = strndup_user(uargs, ~0UL >> 1);
+-      if (IS_ERR(mod->args)) {
+-              err = PTR_ERR(mod->args);
+-              goto free_arch_cleanup;
+-      }
+-
+       dynamic_debug_setup(info->debug, info->num_debug);
+       mutex_lock(&module_mutex);
+@@ -3278,11 +3410,10 @@ again:
        mutex_unlock(&module_mutex);
-       dynamic_debug_remove(info.debug);
+       dynamic_debug_remove(info->debug);
        synchronize_sched();
 -      kfree(mod->args);
-  free_arch_cleanup:
+- free_arch_cleanup:
        module_arch_cleanup(mod);
   free_modinfo:
        free_modinfo(mod);
@@ -70839,50 +76438,7 @@ index 3e544f4..34c3008 100644
   free_unload:
        module_unload_free(mod);
   unlink_mod:
-@@ -3155,16 +3288,16 @@ SYSCALL_DEFINE3(init_module, void __user *, umod,
-                       MODULE_STATE_COMING, mod);
-       /* Set RO and NX regions for core */
--      set_section_ro_nx(mod->module_core,
--                              mod->core_text_size,
--                              mod->core_ro_size,
--                              mod->core_size);
-+      set_section_ro_nx(mod->module_core_rx,
-+                              mod->core_size_rx,
-+                              mod->core_size_rx,
-+                              mod->core_size_rx);
-       /* Set RO and NX regions for init */
--      set_section_ro_nx(mod->module_init,
--                              mod->init_text_size,
--                              mod->init_ro_size,
--                              mod->init_size);
-+      set_section_ro_nx(mod->module_init_rx,
-+                              mod->init_size_rx,
-+                              mod->init_size_rx,
-+                              mod->init_size_rx);
-       do_mod_ctors(mod);
-       /* Start the module */
-@@ -3209,11 +3342,12 @@ SYSCALL_DEFINE3(init_module, void __user *, umod,
-       mod->strtab = mod->core_strtab;
- #endif
-       unset_module_init_ro_nx(mod);
--      module_free(mod, mod->module_init);
--      mod->module_init = NULL;
--      mod->init_size = 0;
--      mod->init_ro_size = 0;
--      mod->init_text_size = 0;
-+      module_free(mod, mod->module_init_rw);
-+      module_free_exec(mod, mod->module_init_rx);
-+      mod->module_init_rw = NULL;
-+      mod->module_init_rx = NULL;
-+      mod->init_size_rw = 0;
-+      mod->init_size_rx = 0;
-       mutex_unlock(&module_mutex);
-       wake_up_all(&module_wq);
-@@ -3245,10 +3379,16 @@ static const char *get_ksymbol(struct module *mod,
+@@ -3365,10 +3496,16 @@ static const char *get_ksymbol(struct module *mod,
        unsigned long nextval;
  
        /* At worse, next value is at end of module */
@@ -70902,7 +76458,7 @@ index 3e544f4..34c3008 100644
  
        /* Scan for closest preceding symbol, and next symbol. (ELF
           starts real symbols at 1). */
-@@ -3501,7 +3641,7 @@ static int m_show(struct seq_file *m, void *p)
+@@ -3621,7 +3758,7 @@ static int m_show(struct seq_file *m, void *p)
                return 0;
  
        seq_printf(m, "%s %u",
@@ -70911,7 +76467,7 @@ index 3e544f4..34c3008 100644
        print_unload_info(m, mod);
  
        /* Informative for users. */
-@@ -3510,7 +3650,7 @@ static int m_show(struct seq_file *m, void *p)
+@@ -3630,7 +3767,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. */
@@ -70920,7 +76476,7 @@ index 3e544f4..34c3008 100644
  
        /* Taints info */
        if (mod->taints)
-@@ -3546,7 +3686,17 @@ static const struct file_operations proc_modules_operations = {
+@@ -3666,7 +3803,17 @@ static const struct file_operations proc_modules_operations = {
  
  static int __init proc_modules_init(void)
  {
@@ -70938,7 +76494,7 @@ index 3e544f4..34c3008 100644
        return 0;
  }
  module_init(proc_modules_init);
-@@ -3607,14 +3757,14 @@ struct module *__module_address(unsigned long addr)
+@@ -3727,14 +3874,14 @@ struct module *__module_address(unsigned long addr)
  {
        struct module *mod;
  
@@ -70956,7 +76512,7 @@ index 3e544f4..34c3008 100644
                        return mod;
        }
        return NULL;
-@@ -3649,11 +3799,20 @@ bool is_module_text_address(unsigned long addr)
+@@ -3769,11 +3916,20 @@ bool is_module_text_address(unsigned long addr)
   */
  struct module *__module_text_address(unsigned long addr)
  {
@@ -71140,7 +76696,7 @@ index e1b2822..5edc1d9 100644
  }
  EXPORT_SYMBOL(__stack_chk_fail);
 diff --git a/kernel/pid.c b/kernel/pid.c
-index aebd4f5..1693c13 100644
+index f2c6a68..4922d97 100644
 --- a/kernel/pid.c
 +++ b/kernel/pid.c
 @@ -33,6 +33,7 @@
@@ -71151,7 +76707,7 @@ index aebd4f5..1693c13 100644
  #include <linux/pid_namespace.h>
  #include <linux/init_task.h>
  #include <linux/syscalls.h>
-@@ -45,7 +46,7 @@ struct pid init_struct_pid = INIT_STRUCT_PID;
+@@ -46,7 +47,7 @@ struct pid init_struct_pid = INIT_STRUCT_PID;
  
  int pid_max = PID_MAX_DEFAULT;
  
@@ -71160,7 +76716,7 @@ index aebd4f5..1693c13 100644
  
  int pid_max_min = RESERVED_PIDS + 1;
  int pid_max_max = PID_MAX_LIMIT;
-@@ -420,10 +421,18 @@ EXPORT_SYMBOL(pid_task);
+@@ -441,10 +442,18 @@ EXPORT_SYMBOL(pid_task);
   */
  struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns)
  {
@@ -71180,8 +76736,8 @@ index aebd4f5..1693c13 100644
  }
  
  struct task_struct *find_task_by_vpid(pid_t vnr)
-@@ -431,6 +440,14 @@ struct task_struct *find_task_by_vpid(pid_t vnr)
-       return find_task_by_pid_ns(vnr, current->nsproxy->pid_ns);
+@@ -452,6 +461,14 @@ struct task_struct *find_task_by_vpid(pid_t vnr)
+       return find_task_by_pid_ns(vnr, task_active_pid_ns(current));
  }
  
 +struct task_struct *find_task_by_vpid_unrestricted(pid_t vnr)
@@ -71189,38 +76745,30 @@ index aebd4f5..1693c13 100644
 +      rcu_lockdep_assert(rcu_read_lock_held(),
 +                         "find_task_by_pid_ns() needs rcu_read_lock()"
 +                         " protection");
-+      return pid_task(find_pid_ns(vnr, current->nsproxy->pid_ns), PIDTYPE_PID);
++      return pid_task(find_pid_ns(vnr, task_active_pid_ns(current)), PIDTYPE_PID);
 +}
 +
  struct pid *get_task_pid(struct task_struct *task, enum pid_type type)
  {
        struct pid *pid;
+diff --git a/kernel/pid_namespace.c b/kernel/pid_namespace.c
+index bea15bd..789f3d0 100644
+--- a/kernel/pid_namespace.c
++++ b/kernel/pid_namespace.c
+@@ -249,7 +249,7 @@ static int pid_ns_ctl_handler(struct ctl_table *table, int write,
+               void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+       struct pid_namespace *pid_ns = task_active_pid_ns(current);
+-      struct ctl_table tmp = *table;
++      ctl_table_no_const tmp = *table;
+       if (write && !ns_capable(pid_ns->user_ns, CAP_SYS_ADMIN))
+               return -EPERM;
 diff --git a/kernel/posix-cpu-timers.c b/kernel/posix-cpu-timers.c
-index 125cb67..2e5c8ad 100644
+index 942ca27..111e609 100644
 --- a/kernel/posix-cpu-timers.c
 +++ b/kernel/posix-cpu-timers.c
-@@ -6,9 +6,11 @@
- #include <linux/posix-timers.h>
- #include <linux/errno.h>
- #include <linux/math64.h>
-+#include <linux/security.h>
- #include <asm/uaccess.h>
- #include <linux/kernel_stat.h>
- #include <trace/events/timer.h>
-+#include <linux/random.h>
- /*
-  * Called after updating RLIMIT_CPU to run cpu timer and update
-@@ -494,6 +496,8 @@ static void cleanup_timers(struct list_head *head,
-  */
- void posix_cpu_timers_exit(struct task_struct *tsk)
- {
-+      add_device_randomness((const void*) &tsk->se.sum_exec_runtime,
-+                                              sizeof(unsigned long long));
-       cleanup_timers(tsk->cpu_timers,
-                      tsk->utime, tsk->stime, tsk->se.sum_exec_runtime);
-@@ -1578,14 +1582,14 @@ struct k_clock clock_posix_cpu = {
+@@ -1576,14 +1576,14 @@ struct k_clock clock_posix_cpu = {
  
  static __init int init_posix_cpu_timers(void)
  {
@@ -71238,7 +76786,7 @@ index 125cb67..2e5c8ad 100644
                .clock_get      = thread_cpu_clock_get,
                .timer_create   = thread_cpu_timer_create,
 diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c
-index 69185ae..cc2847a 100644
+index e885be1..380fe76 100644
 --- a/kernel/posix-timers.c
 +++ b/kernel/posix-timers.c
 @@ -43,6 +43,7 @@
@@ -71321,7 +76869,7 @@ index 69185ae..cc2847a 100644
  }
  
  static int common_timer_create(struct k_itimer *new_timer)
-@@ -959,6 +960,13 @@ SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock,
+@@ -966,6 +967,13 @@ SYSCALL_DEFINE2(clock_settime, const clockid_t, which_clock,
        if (copy_from_user(&new_tp, tp, sizeof (*tp)))
                return -EFAULT;
  
@@ -71336,7 +76884,7 @@ index 69185ae..cc2847a 100644
  }
  
 diff --git a/kernel/power/process.c b/kernel/power/process.c
-index 87da817..30ddd13 100644
+index d5a258b..4271191 100644
 --- a/kernel/power/process.c
 +++ b/kernel/power/process.c
 @@ -33,6 +33,7 @@ static int try_to_freeze_tasks(bool user_only)
@@ -71347,7 +76895,7 @@ index 87da817..30ddd13 100644
  
        do_gettimeofday(&start);
  
-@@ -43,6 +44,8 @@ static int try_to_freeze_tasks(bool user_only)
+@@ -43,13 +44,20 @@ static int try_to_freeze_tasks(bool user_only)
  
        while (true) {
                todo = 0;
@@ -71356,13 +76904,10 @@ index 87da817..30ddd13 100644
                read_lock(&tasklist_lock);
                do_each_thread(g, p) {
                        if (p == current || !freeze_task(p))
-@@ -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))
-+                      if (!task_is_stopped_or_traced(p) && !freezer_should_skip(p)) {
+                               continue;
+-                      if (!freezer_should_skip(p))
++                      if (!freezer_should_skip(p)) {
                                todo++;
 +                              if (timedout) {
 +                                      printk(KERN_ERR "Task refusing to freeze:\n");
@@ -71372,7 +76917,7 @@ index 87da817..30ddd13 100644
                } while_each_thread(g, p);
                read_unlock(&tasklist_lock);
  
-@@ -69,7 +76,7 @@ static int try_to_freeze_tasks(bool user_only)
+@@ -58,7 +66,7 @@ static int try_to_freeze_tasks(bool user_only)
                        todo += wq_busy;
                }
  
@@ -71382,10 +76927,37 @@ index 87da817..30ddd13 100644
  
                if (pm_wakeup_pending()) {
 diff --git a/kernel/printk.c b/kernel/printk.c
-index f8e0b5a..dda2a5c 100644
+index 267ce78..2487112 100644
 --- a/kernel/printk.c
 +++ b/kernel/printk.c
-@@ -817,6 +817,11 @@ static int check_syslog_permissions(int type, bool from_file)
+@@ -609,11 +609,17 @@ static unsigned int devkmsg_poll(struct file *file, poll_table *wait)
+       return ret;
+ }
++static int check_syslog_permissions(int type, bool from_file);
++
+ static int devkmsg_open(struct inode *inode, struct file *file)
+ {
+       struct devkmsg_user *user;
+       int err;
++      err = check_syslog_permissions(SYSLOG_ACTION_OPEN, SYSLOG_FROM_FILE);
++      if (err)
++              return err;
++
+       /* write-only does not need any file context */
+       if ((file->f_flags & O_ACCMODE) == O_WRONLY)
+               return 0;
+@@ -822,7 +828,7 @@ static int syslog_action_restricted(int type)
+       if (dmesg_restrict)
+               return 1;
+       /* Unless restricted, we allow "read all" and "get buffer size" for everybody */
+-      return type != SYSLOG_ACTION_READ_ALL && type != SYSLOG_ACTION_SIZE_BUFFER;
++      return type != SYSLOG_ACTION_OPEN && type != SYSLOG_ACTION_READ_ALL && type != SYSLOG_ACTION_SIZE_BUFFER;
+ }
+ static int check_syslog_permissions(int type, bool from_file)
+@@ -834,6 +840,11 @@ static int check_syslog_permissions(int type, bool from_file)
        if (from_file && type != SYSLOG_ACTION_OPEN)
                return 0;
  
@@ -71398,10 +76970,10 @@ index f8e0b5a..dda2a5c 100644
                if (capable(CAP_SYSLOG))
                        return 0;
 diff --git a/kernel/profile.c b/kernel/profile.c
-index 76b8e77..a2930e8 100644
+index 1f39181..86093471 100644
 --- a/kernel/profile.c
 +++ b/kernel/profile.c
-@@ -39,7 +39,7 @@ struct profile_hit {
+@@ -40,7 +40,7 @@ struct profile_hit {
  /* Oprofile timer tick hook */
  static int (*timer_hook)(struct pt_regs *) __read_mostly;
  
@@ -71410,7 +76982,7 @@ index 76b8e77..a2930e8 100644
  static unsigned long prof_len, prof_shift;
  
  int prof_on __read_mostly;
-@@ -281,7 +281,7 @@ static void profile_flip_buffers(void)
+@@ -282,7 +282,7 @@ static void profile_flip_buffers(void)
                                        hits[i].pc = 0;
                                continue;
                        }
@@ -71419,7 +76991,7 @@ index 76b8e77..a2930e8 100644
                        hits[i].hits = hits[i].pc = 0;
                }
        }
-@@ -342,9 +342,9 @@ static void do_profile_hits(int type, void *__pc, unsigned int nr_hits)
+@@ -343,9 +343,9 @@ static void do_profile_hits(int type, void *__pc, unsigned int nr_hits)
         * Add the current hit(s) and flush the write-queue out
         * to the global buffer:
         */
@@ -71431,7 +77003,7 @@ index 76b8e77..a2930e8 100644
                hits[i].pc = hits[i].hits = 0;
        }
  out:
-@@ -419,7 +419,7 @@ static void do_profile_hits(int type, void *__pc, unsigned int nr_hits)
+@@ -420,7 +420,7 @@ static void do_profile_hits(int type, void *__pc, unsigned int nr_hits)
  {
        unsigned long pc;
        pc = ((unsigned long)__pc - (unsigned long)_stext) >> prof_shift;
@@ -71440,7 +77012,7 @@ index 76b8e77..a2930e8 100644
  }
  #endif /* !CONFIG_SMP */
  
-@@ -517,7 +517,7 @@ read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos)
+@@ -518,7 +518,7 @@ read_profile(struct file *file, char __user *buf, size_t count, loff_t *ppos)
                        return -EFAULT;
                buf++; p++; count--; read++;
        }
@@ -71449,7 +77021,7 @@ index 76b8e77..a2930e8 100644
        if (copy_to_user(buf, (void *)pnt, count))
                return -EFAULT;
        read += count;
-@@ -548,7 +548,7 @@ static ssize_t write_profile(struct file *file, const char __user *buf,
+@@ -549,7 +549,7 @@ static ssize_t write_profile(struct file *file, const char __user *buf,
        }
  #endif
        profile_discard_flip_buffers();
@@ -71459,19 +77031,19 @@ index 76b8e77..a2930e8 100644
  }
  
 diff --git a/kernel/ptrace.c b/kernel/ptrace.c
-index fbea91d..9bf15e8 100644
+index 6cbeaae..cfe7ff0 100644
 --- a/kernel/ptrace.c
 +++ b/kernel/ptrace.c
-@@ -319,7 +319,7 @@ static int ptrace_attach(struct task_struct *task, long request,
+@@ -324,7 +324,7 @@ static int ptrace_attach(struct task_struct *task, long request,
        if (seize)
                flags |= PT_SEIZED;
--      if (ns_capable(task_user_ns(task), CAP_SYS_PTRACE))
-+      if (ns_capable_nolog(task_user_ns(task), CAP_SYS_PTRACE))
+       rcu_read_lock();
+-      if (ns_capable(__task_cred(task)->user_ns, CAP_SYS_PTRACE))
++      if (ns_capable_nolog(__task_cred(task)->user_ns, CAP_SYS_PTRACE))
                flags |= PT_PTRACE_CAP;
+       rcu_read_unlock();
        task->ptrace = flags;
-@@ -526,7 +526,7 @@ int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst
+@@ -535,7 +535,7 @@ int ptrace_readdata(struct task_struct *tsk, unsigned long src, char __user *dst
                                break;
                        return -EIO;
                }
@@ -71480,7 +77052,7 @@ index fbea91d..9bf15e8 100644
                        return -EFAULT;
                copied += retval;
                src += retval;
-@@ -711,7 +711,7 @@ int ptrace_request(struct task_struct *child, long request,
+@@ -720,7 +720,7 @@ int ptrace_request(struct task_struct *child, long request,
        bool seized = child->ptrace & PT_SEIZED;
        int ret = -EIO;
        siginfo_t siginfo, *si;
@@ -71489,7 +77061,7 @@ index fbea91d..9bf15e8 100644
        unsigned long __user *datalp = datavp;
        unsigned long flags;
  
-@@ -913,14 +913,21 @@ SYSCALL_DEFINE4(ptrace, long, request, long, pid, unsigned long, addr,
+@@ -922,14 +922,21 @@ SYSCALL_DEFINE4(ptrace, long, request, long, pid, unsigned long, addr,
                goto out;
        }
  
@@ -71512,7 +77084,7 @@ index fbea91d..9bf15e8 100644
                goto out_put_task_struct;
        }
  
-@@ -948,7 +955,7 @@ int generic_ptrace_peekdata(struct task_struct *tsk, unsigned long addr,
+@@ -957,7 +964,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;
@@ -71521,7 +77093,16 @@ index fbea91d..9bf15e8 100644
  }
  
  int generic_ptrace_pokedata(struct task_struct *tsk, unsigned long addr,
-@@ -1058,14 +1065,21 @@ asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid,
+@@ -1051,7 +1058,7 @@ int compat_ptrace_request(struct task_struct *child, compat_long_t request,
+ }
+ asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid,
+-                                compat_long_t addr, compat_long_t data)
++                                compat_ulong_t addr, compat_ulong_t data)
+ {
+       struct task_struct *child;
+       long ret;
+@@ -1067,14 +1074,21 @@ asmlinkage long compat_sys_ptrace(compat_long_t request, compat_long_t pid,
                goto out;
        }
  
@@ -71545,7 +77126,7 @@ index fbea91d..9bf15e8 100644
        }
  
 diff --git a/kernel/rcutiny.c b/kernel/rcutiny.c
-index e4c6a59..c86621a 100644
+index e7dce58..ad0d7b7 100644
 --- a/kernel/rcutiny.c
 +++ b/kernel/rcutiny.c
 @@ -46,7 +46,7 @@
@@ -71567,10 +77148,10 @@ index e4c6a59..c86621a 100644
        __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 3d01902..afbf46e 100644
+index f85016a..91cb03b 100644
 --- a/kernel/rcutiny_plugin.h
 +++ b/kernel/rcutiny_plugin.h
-@@ -893,7 +893,7 @@ static int rcu_kthread(void *arg)
+@@ -896,7 +896,7 @@ static int rcu_kthread(void *arg)
                have_rcu_kthread_work = morework;
                local_irq_restore(flags);
                if (work)
@@ -71580,7 +77161,7 @@ index 3d01902..afbf46e 100644
        }
  
 diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c
-index aaa7b9f..055ff1e 100644
+index 31dea01..ad91ffb 100644
 --- a/kernel/rcutorture.c
 +++ b/kernel/rcutorture.c
 @@ -163,12 +163,12 @@ static DEFINE_PER_CPU(long [RCU_TORTURE_PIPE_LEN + 1], rcu_torture_count) =
@@ -71625,7 +77206,7 @@ index aaa7b9f..055ff1e 100644
        spin_lock_bh(&rcu_torture_lock);
        list_add_tail(&p->rtort_free, &rcu_torture_freelist);
        spin_unlock_bh(&rcu_torture_lock);
-@@ -410,7 +410,7 @@ rcu_torture_cb(struct rcu_head *p)
+@@ -409,7 +409,7 @@ rcu_torture_cb(struct rcu_head *p)
        i = rp->rtort_pipe_count;
        if (i > RCU_TORTURE_PIPE_LEN)
                i = RCU_TORTURE_PIPE_LEN;
@@ -71634,7 +77215,7 @@ index aaa7b9f..055ff1e 100644
        if (++rp->rtort_pipe_count >= RCU_TORTURE_PIPE_LEN) {
                rp->rtort_mbtest = 0;
                rcu_torture_free(rp);
-@@ -459,7 +459,7 @@ static void rcu_sync_torture_deferred_free(struct rcu_torture *p)
+@@ -457,7 +457,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;
@@ -71643,7 +77224,7 @@ index aaa7b9f..055ff1e 100644
                if (++rp->rtort_pipe_count >= RCU_TORTURE_PIPE_LEN) {
                        rp->rtort_mbtest = 0;
                        list_del(&rp->rtort_free);
-@@ -1002,7 +1002,7 @@ rcu_torture_writer(void *arg)
+@@ -975,7 +975,7 @@ rcu_torture_writer(void *arg)
                        i = old_rp->rtort_pipe_count;
                        if (i > RCU_TORTURE_PIPE_LEN)
                                i = RCU_TORTURE_PIPE_LEN;
@@ -71652,7 +77233,7 @@ index aaa7b9f..055ff1e 100644
                        old_rp->rtort_pipe_count++;
                        cur_ops->deferred_free(old_rp);
                }
-@@ -1087,7 +1087,7 @@ static void rcu_torture_timer(unsigned long unused)
+@@ -1060,7 +1060,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)
@@ -71661,7 +77242,7 @@ index aaa7b9f..055ff1e 100644
        spin_lock(&rand_lock);
        cur_ops->read_delay(&rand);
        n_rcu_torture_timers++;
-@@ -1151,7 +1151,7 @@ rcu_torture_reader(void *arg)
+@@ -1124,7 +1124,7 @@ rcu_torture_reader(void *arg)
                }
                do_trace_rcu_torture_read(cur_ops->name, &p->rtort_rcu);
                if (p->rtort_mbtest == 0)
@@ -71670,7 +77251,7 @@ index aaa7b9f..055ff1e 100644
                cur_ops->read_delay(&rand);
                preempt_disable();
                pipe_count = p->rtort_pipe_count;
-@@ -1210,11 +1210,11 @@ rcu_torture_printk(char *page)
+@@ -1183,11 +1183,11 @@ rcu_torture_printk(char *page)
                       rcu_torture_current,
                       rcu_torture_current_version,
                       list_empty(&rcu_torture_freelist),
@@ -71686,7 +77267,7 @@ index aaa7b9f..055ff1e 100644
                       n_rcu_torture_boost_ktrerror,
                       n_rcu_torture_boost_rterror);
        cnt += sprintf(&page[cnt], "rtbf: %ld rtb: %ld nt: %ld ",
-@@ -1233,14 +1233,14 @@ rcu_torture_printk(char *page)
+@@ -1206,14 +1206,14 @@ rcu_torture_printk(char *page)
                       n_barrier_attempts,
                       n_rcu_torture_barrier_error);
        cnt += sprintf(&page[cnt], "\n%s%s ", torture_type, TORTURE_FLAG);
@@ -71703,7 +77284,7 @@ index aaa7b9f..055ff1e 100644
                WARN_ON_ONCE(1);
        }
        cnt += sprintf(&page[cnt], "Reader Pipe: ");
-@@ -1254,7 +1254,7 @@ rcu_torture_printk(char *page)
+@@ -1227,7 +1227,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",
@@ -71712,16 +77293,16 @@ index aaa7b9f..055ff1e 100644
        }
        cnt += sprintf(&page[cnt], "\n");
        if (cur_ops->stats)
-@@ -1938,7 +1938,7 @@ rcu_torture_cleanup(void)
+@@ -1920,7 +1920,7 @@ rcu_torture_cleanup(void)
+       rcu_torture_stats_print();  /* -After- the stats thread is stopped! */
  
-       if (cur_ops->cleanup)
-               cur_ops->cleanup();
 -      if (atomic_read(&n_rcu_torture_error) || n_rcu_torture_barrier_error)
 +      if (atomic_read_unchecked(&n_rcu_torture_error) || n_rcu_torture_barrier_error)
                rcu_torture_print_module_parms(cur_ops, "End of test: FAILURE");
        else if (n_online_successes != n_online_attempts ||
                 n_offline_successes != n_offline_attempts)
-@@ -2007,18 +2007,18 @@ rcu_torture_init(void)
+@@ -1989,18 +1989,18 @@ rcu_torture_init(void)
  
        rcu_torture_current = NULL;
        rcu_torture_current_version = 0;
@@ -71747,10 +77328,10 @@ index aaa7b9f..055ff1e 100644
                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 2682295..0f2297e 100644
+index e441b77..dd54f17 100644
 --- a/kernel/rcutree.c
 +++ b/kernel/rcutree.c
-@@ -348,9 +348,9 @@ static void rcu_eqs_enter_common(struct rcu_dynticks *rdtp, long long oldval,
+@@ -349,9 +349,9 @@ static void rcu_eqs_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. */
@@ -71762,7 +77343,7 @@ index 2682295..0f2297e 100644
  
        /*
         * It is illegal to enter an extended quiescent state while
-@@ -508,10 +508,10 @@ static void rcu_eqs_exit_common(struct rcu_dynticks *rdtp, long long oldval,
+@@ -487,10 +487,10 @@ static void rcu_eqs_exit_common(struct rcu_dynticks *rdtp, long long oldval,
                               int user)
  {
        smp_mb__before_atomic_inc();  /* Force ordering w/previous sojourn. */
@@ -71775,7 +77356,7 @@ index 2682295..0f2297e 100644
        rcu_cleanup_after_idle(smp_processor_id());
        trace_rcu_dyntick("End", oldval, rdtp->dynticks_nesting);
        if (!user && !is_idle_task(current)) {
-@@ -670,14 +670,14 @@ void rcu_nmi_enter(void)
+@@ -629,14 +629,14 @@ void rcu_nmi_enter(void)
        struct rcu_dynticks *rdtp = &__get_cpu_var(rcu_dynticks);
  
        if (rdtp->dynticks_nmi_nesting == 0 &&
@@ -71793,7 +77374,7 @@ index 2682295..0f2297e 100644
  }
  
  /**
-@@ -696,9 +696,9 @@ void rcu_nmi_exit(void)
+@@ -655,9 +655,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. */
@@ -71805,7 +77386,7 @@ index 2682295..0f2297e 100644
  }
  
  /**
-@@ -712,7 +712,7 @@ int rcu_is_cpu_idle(void)
+@@ -671,7 +671,7 @@ int rcu_is_cpu_idle(void)
        int ret;
  
        preempt_disable();
@@ -71814,7 +77395,7 @@ index 2682295..0f2297e 100644
        preempt_enable();
        return ret;
  }
-@@ -795,7 +795,7 @@ int rcu_is_cpu_rrupt_from_idle(void)
+@@ -739,7 +739,7 @@ int rcu_is_cpu_rrupt_from_idle(void)
   */
  static int dyntick_save_progress_counter(struct rcu_data *rdp)
  {
@@ -71823,7 +77404,7 @@ index 2682295..0f2297e 100644
        return (rdp->dynticks_snap & 0x1) == 0;
  }
  
-@@ -810,7 +810,7 @@ static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
+@@ -754,7 +754,7 @@ static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
        unsigned int curr;
        unsigned int snap;
  
@@ -71832,7 +77413,7 @@ index 2682295..0f2297e 100644
        snap = (unsigned int)rdp->dynticks_snap;
  
        /*
-@@ -858,10 +858,10 @@ static int jiffies_till_stall_check(void)
+@@ -802,10 +802,10 @@ static int jiffies_till_stall_check(void)
         * for CONFIG_RCU_CPU_STALL_TIMEOUT.
         */
        if (till_stall_check < 3) {
@@ -71845,7 +77426,7 @@ index 2682295..0f2297e 100644
                till_stall_check = 300;
        }
        return till_stall_check * HZ + RCU_STALL_DELAY_DELTA;
-@@ -1589,7 +1589,7 @@ rcu_send_cbs_to_orphanage(int cpu, struct rcu_state *rsp,
+@@ -1592,7 +1592,7 @@ rcu_send_cbs_to_orphanage(int cpu, struct rcu_state *rsp,
                rsp->qlen += rdp->qlen;
                rdp->n_cbs_orphaned += rdp->qlen;
                rdp->qlen_lazy = 0;
@@ -71854,7 +77435,7 @@ index 2682295..0f2297e 100644
        }
  
        /*
-@@ -1831,7 +1831,7 @@ static void rcu_do_batch(struct rcu_state *rsp, struct rcu_data *rdp)
+@@ -1838,7 +1838,7 @@ static void rcu_do_batch(struct rcu_state *rsp, struct rcu_data *rdp)
        }
        smp_mb(); /* List handling before counting for rcu_barrier(). */
        rdp->qlen_lazy -= count_lazy;
@@ -71863,7 +77444,7 @@ index 2682295..0f2297e 100644
        rdp->n_cbs_invoked += count;
  
        /* Reinstate batch limit if we have worked down the excess. */
-@@ -2024,7 +2024,7 @@ __rcu_process_callbacks(struct rcu_state *rsp)
+@@ -2031,7 +2031,7 @@ __rcu_process_callbacks(struct rcu_state *rsp)
  /*
   * Do RCU core processing for the current CPU.
   */
@@ -71872,7 +77453,7 @@ index 2682295..0f2297e 100644
  {
        struct rcu_state *rsp;
  
-@@ -2136,7 +2136,7 @@ __call_rcu(struct rcu_head *head, void (*func)(struct rcu_head *rcu),
+@@ -2154,7 +2154,7 @@ __call_rcu(struct rcu_head *head, void (*func)(struct rcu_head *rcu),
                local_irq_restore(flags);
                return;
        }
@@ -71881,60 +77462,98 @@ index 2682295..0f2297e 100644
        if (lazy)
                rdp->qlen_lazy++;
        else
-@@ -2250,8 +2250,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 atomic_unchecked_t sync_sched_expedited_started = ATOMIC_INIT(0);
-+static atomic_unchecked_t sync_sched_expedited_done = ATOMIC_INIT(0);
- static int synchronize_sched_expedited_cpu_stop(void *data)
- {
-@@ -2312,7 +2312,7 @@ void synchronize_sched_expedited(void)
-       int firstsnap, s, snap, trycount = 0;
+@@ -2363,11 +2363,11 @@ void synchronize_sched_expedited(void)
+        * counter wrap on a 32-bit system.  Quite a few more CPUs would of
+        * course be required on a 64-bit system.
+        */
+-      if (ULONG_CMP_GE((ulong)atomic_long_read(&rsp->expedited_start),
++      if (ULONG_CMP_GE((ulong)atomic_long_read_unchecked(&rsp->expedited_start),
+                        (ulong)atomic_long_read(&rsp->expedited_done) +
+                        ULONG_MAX / 8)) {
+               synchronize_sched();
+-              atomic_long_inc(&rsp->expedited_wrap);
++              atomic_long_inc_unchecked(&rsp->expedited_wrap);
+               return;
+       }
  
-       /* 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);
+@@ -2375,7 +2375,7 @@ void synchronize_sched_expedited(void)
+        * Take a ticket.  Note that atomic_inc_return() implies a
+        * full memory barrier.
+        */
+-      snap = atomic_long_inc_return(&rsp->expedited_start);
++      snap = atomic_long_inc_return_unchecked(&rsp->expedited_start);
+       firstsnap = snap;
        get_online_cpus();
        WARN_ON_ONCE(cpu_is_offline(raw_smp_processor_id()));
+@@ -2388,14 +2388,14 @@ void synchronize_sched_expedited(void)
+                            synchronize_sched_expedited_cpu_stop,
+                            NULL) == -EAGAIN) {
+               put_online_cpus();
+-              atomic_long_inc(&rsp->expedited_tryfail);
++              atomic_long_inc_unchecked(&rsp->expedited_tryfail);
  
-@@ -2334,7 +2334,7 @@ void synchronize_sched_expedited(void)
+               /* Check to see if someone else did our work for us. */
+               s = atomic_long_read(&rsp->expedited_done);
+               if (ULONG_CMP_GE((ulong)s, (ulong)firstsnap)) {
+                       /* ensure test happens before caller kfree */
+                       smp_mb__before_atomic_inc(); /* ^^^ */
+-                      atomic_long_inc(&rsp->expedited_workdone1);
++                      atomic_long_inc_unchecked(&rsp->expedited_workdone1);
+                       return;
                }
  
-               /* Check to see if someone else did our work for us. */
--              s = atomic_read(&sync_sched_expedited_done);
-+              s = atomic_read_unchecked(&sync_sched_expedited_done);
-               if (UINT_CMP_GE((unsigned)s, (unsigned)firstsnap)) {
-                       smp_mb(); /* ensure test happens before caller kfree */
+@@ -2404,7 +2404,7 @@ void synchronize_sched_expedited(void)
+                       udelay(trycount * num_online_cpus());
+               } else {
+                       wait_rcu_gp(call_rcu_sched);
+-                      atomic_long_inc(&rsp->expedited_normal);
++                      atomic_long_inc_unchecked(&rsp->expedited_normal);
+                       return;
+               }
+@@ -2413,7 +2413,7 @@ void synchronize_sched_expedited(void)
+               if (ULONG_CMP_GE((ulong)s, (ulong)firstsnap)) {
+                       /* ensure test happens before caller kfree */
+                       smp_mb__before_atomic_inc(); /* ^^^ */
+-                      atomic_long_inc(&rsp->expedited_workdone2);
++                      atomic_long_inc_unchecked(&rsp->expedited_workdone2);
                        return;
-@@ -2349,7 +2349,7 @@ void synchronize_sched_expedited(void)
-                * grace period works for us.
+               }
+@@ -2425,10 +2425,10 @@ void synchronize_sched_expedited(void)
+                * period works for us.
                 */
                get_online_cpus();
--              snap = atomic_read(&sync_sched_expedited_started);
-+              snap = atomic_read_unchecked(&sync_sched_expedited_started);
+-              snap = atomic_long_read(&rsp->expedited_start);
++              snap = atomic_long_read_unchecked(&rsp->expedited_start);
                smp_mb(); /* ensure read is before try_stop_cpus(). */
        }
+-      atomic_long_inc(&rsp->expedited_stoppedcpus);
++      atomic_long_inc_unchecked(&rsp->expedited_stoppedcpus);
  
-@@ -2360,12 +2360,12 @@ void synchronize_sched_expedited(void)
-        * than we did beat us to the punch.
+       /*
+        * Everyone up to our most recent fetch is covered by our grace
+@@ -2437,16 +2437,16 @@ void synchronize_sched_expedited(void)
+        * than we did already did their update.
         */
        do {
--              s = atomic_read(&sync_sched_expedited_done);
-+              s = atomic_read_unchecked(&sync_sched_expedited_done);
-               if (UINT_CMP_GE((unsigned)s, (unsigned)snap)) {
-                       smp_mb(); /* ensure test happens before caller kfree */
+-              atomic_long_inc(&rsp->expedited_done_tries);
++              atomic_long_inc_unchecked(&rsp->expedited_done_tries);
+               s = atomic_long_read(&rsp->expedited_done);
+               if (ULONG_CMP_GE((ulong)s, (ulong)snap)) {
+                       /* ensure test happens before caller kfree */
+                       smp_mb__before_atomic_inc(); /* ^^^ */
+-                      atomic_long_inc(&rsp->expedited_done_lost);
++                      atomic_long_inc_unchecked(&rsp->expedited_done_lost);
                        break;
                }
--      } while (atomic_cmpxchg(&sync_sched_expedited_done, s, snap) != s);
-+      } while (atomic_cmpxchg_unchecked(&sync_sched_expedited_done, s, snap) != s);
+       } while (atomic_long_cmpxchg(&rsp->expedited_done, s, snap) != s);
+-      atomic_long_inc(&rsp->expedited_done_exit);
++      atomic_long_inc_unchecked(&rsp->expedited_done_exit);
  
        put_online_cpus();
  }
-@@ -2539,7 +2539,7 @@ static void _rcu_barrier(struct rcu_state *rsp)
+@@ -2620,7 +2620,7 @@ static void _rcu_barrier(struct rcu_state *rsp)
         * ACCESS_ONCE() to prevent the compiler from speculating
         * the increment to precede the early-exit check.
         */
@@ -71943,7 +77562,7 @@ index 2682295..0f2297e 100644
        WARN_ON_ONCE((rsp->n_barrier_done & 0x1) != 1);
        _rcu_barrier_trace(rsp, "Inc1", -1, rsp->n_barrier_done);
        smp_mb(); /* Order ->n_barrier_done increment with below mechanism. */
-@@ -2581,7 +2581,7 @@ static void _rcu_barrier(struct rcu_state *rsp)
+@@ -2670,7 +2670,7 @@ static void _rcu_barrier(struct rcu_state *rsp)
  
        /* Increment ->n_barrier_done to prevent duplicate work. */
        smp_mb(); /* Keep increment after above mechanism. */
@@ -71952,7 +77571,7 @@ index 2682295..0f2297e 100644
        WARN_ON_ONCE((rsp->n_barrier_done & 0x1) != 0);
        _rcu_barrier_trace(rsp, "Inc2", -1, rsp->n_barrier_done);
        smp_mb(); /* Keep increment before caller's subsequent code. */
-@@ -2626,10 +2626,10 @@ rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp)
+@@ -2715,10 +2715,10 @@ rcu_boot_init_percpu_data(int cpu, struct rcu_state *rsp)
        rdp->grpmask = 1UL << (cpu - rdp->mynode->grplo);
        init_callback_list(rdp);
        rdp->qlen_lazy = 0;
@@ -71965,7 +77584,7 @@ index 2682295..0f2297e 100644
  #ifdef CONFIG_RCU_USER_QS
        WARN_ON_ONCE(rdp->dynticks->in_user);
  #endif
-@@ -2664,8 +2664,8 @@ rcu_init_percpu_data(int cpu, struct rcu_state *rsp, int preemptible)
+@@ -2754,8 +2754,8 @@ rcu_init_percpu_data(int cpu, struct rcu_state *rsp, int preemptible)
        rdp->blimit = blimit;
        init_callback_list(rdp);  /* Re-enable callbacks on this CPU. */
        rdp->dynticks->dynticks_nesting = DYNTICK_TASK_EXIT_IDLE;
@@ -71977,7 +77596,7 @@ index 2682295..0f2297e 100644
        raw_spin_unlock(&rnp->lock);            /* irqs remain disabled. */
  
 diff --git a/kernel/rcutree.h b/kernel/rcutree.h
-index a240f03..d469618 100644
+index 4b69291..704c92e 100644
 --- a/kernel/rcutree.h
 +++ b/kernel/rcutree.h
 @@ -86,7 +86,7 @@ struct rcu_dynticks {
@@ -71989,11 +77608,40 @@ index a240f03..d469618 100644
  #ifdef CONFIG_RCU_FAST_NO_HZ
        int dyntick_drain;          /* Prepare-for-idle state variable. */
        unsigned long dyntick_holdoff;
+@@ -423,17 +423,17 @@ struct rcu_state {
+                                               /*  _rcu_barrier(). */
+       /* End of fields guarded by barrier_mutex. */
+-      atomic_long_t expedited_start;          /* Starting ticket. */
+-      atomic_long_t expedited_done;           /* Done ticket. */
+-      atomic_long_t expedited_wrap;           /* # near-wrap incidents. */
+-      atomic_long_t expedited_tryfail;        /* # acquisition failures. */
+-      atomic_long_t expedited_workdone1;      /* # done by others #1. */
+-      atomic_long_t expedited_workdone2;      /* # done by others #2. */
+-      atomic_long_t expedited_normal;         /* # fallbacks to normal. */
+-      atomic_long_t expedited_stoppedcpus;    /* # successful stop_cpus. */
+-      atomic_long_t expedited_done_tries;     /* # tries to update _done. */
+-      atomic_long_t expedited_done_lost;      /* # times beaten to _done. */
+-      atomic_long_t expedited_done_exit;      /* # times exited _done loop. */
++      atomic_long_unchecked_t expedited_start;        /* Starting ticket. */
++      atomic_long_t expedited_done;                   /* Done ticket. */
++      atomic_long_unchecked_t expedited_wrap;         /* # near-wrap incidents. */
++      atomic_long_unchecked_t expedited_tryfail;      /* # acquisition failures. */
++      atomic_long_unchecked_t expedited_workdone1;    /* # done by others #1. */
++      atomic_long_unchecked_t expedited_workdone2;    /* # done by others #2. */
++      atomic_long_unchecked_t expedited_normal;       /* # fallbacks to normal. */
++      atomic_long_unchecked_t expedited_stoppedcpus;  /* # successful stop_cpus. */
++      atomic_long_unchecked_t expedited_done_tries;   /* # tries to update _done. */
++      atomic_long_unchecked_t expedited_done_lost;    /* # times beaten to _done. */
++      atomic_long_unchecked_t expedited_done_exit;    /* # times exited _done loop. */
+       unsigned long jiffies_force_qs;         /* Time at which to invoke */
+                                               /*  force_quiescent_state(). */
 diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
-index f921154..34c4873 100644
+index c1cc7e1..f62e436 100644
 --- a/kernel/rcutree_plugin.h
 +++ b/kernel/rcutree_plugin.h
-@@ -865,7 +865,7 @@ void synchronize_rcu_expedited(void)
+@@ -892,7 +892,7 @@ void synchronize_rcu_expedited(void)
  
        /* Clean up and exit. */
        smp_mb(); /* ensure expedited GP seen before counter increment. */
@@ -72002,7 +77650,16 @@ index f921154..34c4873 100644
  unlock_mb_ret:
        mutex_unlock(&sync_rcu_preempt_exp_mutex);
  mb_ret:
-@@ -2040,7 +2040,7 @@ static void print_cpu_stall_info(struct rcu_state *rsp, int cpu)
+@@ -1440,7 +1440,7 @@ static void rcu_boost_kthread_setaffinity(struct rcu_node *rnp, int outgoingcpu)
+       free_cpumask_var(cm);
+ }
+-static struct smp_hotplug_thread rcu_cpu_thread_spec = {
++static struct smp_hotplug_thread rcu_cpu_thread_spec __read_only = {
+       .store                  = &rcu_cpu_kthread_task,
+       .thread_should_run      = rcu_cpu_kthread_should_run,
+       .thread_fn              = rcu_cpu_kthread,
+@@ -2072,7 +2072,7 @@ static void print_cpu_stall_info(struct rcu_state *rsp, int cpu)
        print_cpu_stall_fast_no_hz(fast_no_hz, cpu);
        printk(KERN_ERR "\t%d: (%lu %s) idle=%03x/%llx/%d %s\n",
               cpu, ticks_value, ticks_title,
@@ -72011,12 +77668,57 @@ index f921154..34c4873 100644
               rdtp->dynticks_nesting, rdtp->dynticks_nmi_nesting,
               fast_no_hz);
  }
+@@ -2192,7 +2192,7 @@ static void __call_rcu_nocb_enqueue(struct rcu_data *rdp,
+       /* Enqueue the callback on the nocb list and update counts. */
+       old_rhpp = xchg(&rdp->nocb_tail, rhtp);
+-      ACCESS_ONCE(*old_rhpp) = rhp;
++      ACCESS_ONCE_RW(*old_rhpp) = rhp;
+       atomic_long_add(rhcount, &rdp->nocb_q_count);
+       atomic_long_add(rhcount_lazy, &rdp->nocb_q_count_lazy);
+@@ -2384,12 +2384,12 @@ static int rcu_nocb_kthread(void *arg)
+                * Extract queued callbacks, update counts, and wait
+                * for a grace period to elapse.
+                */
+-              ACCESS_ONCE(rdp->nocb_head) = NULL;
++              ACCESS_ONCE_RW(rdp->nocb_head) = NULL;
+               tail = xchg(&rdp->nocb_tail, &rdp->nocb_head);
+               c = atomic_long_xchg(&rdp->nocb_q_count, 0);
+               cl = atomic_long_xchg(&rdp->nocb_q_count_lazy, 0);
+-              ACCESS_ONCE(rdp->nocb_p_count) += c;
+-              ACCESS_ONCE(rdp->nocb_p_count_lazy) += cl;
++              ACCESS_ONCE_RW(rdp->nocb_p_count) += c;
++              ACCESS_ONCE_RW(rdp->nocb_p_count_lazy) += cl;
+               wait_rcu_gp(rdp->rsp->call_remote);
+               /* Each pass through the following loop invokes a callback. */
+@@ -2411,8 +2411,8 @@ static int rcu_nocb_kthread(void *arg)
+                       list = next;
+               }
+               trace_rcu_batch_end(rdp->rsp->name, c, !!list, 0, 0, 1);
+-              ACCESS_ONCE(rdp->nocb_p_count) -= c;
+-              ACCESS_ONCE(rdp->nocb_p_count_lazy) -= cl;
++              ACCESS_ONCE_RW(rdp->nocb_p_count) -= c;
++              ACCESS_ONCE_RW(rdp->nocb_p_count_lazy) -= cl;
+               rdp->n_nocbs_invoked += c;
+       }
+       return 0;
+@@ -2438,7 +2438,7 @@ static void __init rcu_spawn_nocb_kthreads(struct rcu_state *rsp)
+               rdp = per_cpu_ptr(rsp->rda, cpu);
+               t = kthread_run(rcu_nocb_kthread, rdp, "rcuo%d", cpu);
+               BUG_ON(IS_ERR(t));
+-              ACCESS_ONCE(rdp->nocb_kthread) = t;
++              ACCESS_ONCE_RW(rdp->nocb_kthread) = t;
+       }
+ }
 diff --git a/kernel/rcutree_trace.c b/kernel/rcutree_trace.c
-index 693513b..b9f1d63 100644
+index 0d095dc..1985b19 100644
 --- a/kernel/rcutree_trace.c
 +++ b/kernel/rcutree_trace.c
-@@ -92,7 +92,7 @@ static void print_one_rcu_data(struct seq_file *m, struct rcu_data *rdp)
-                  rdp->completed, rdp->gpnum,
+@@ -123,7 +123,7 @@ static void print_one_rcu_data(struct seq_file *m, struct rcu_data *rdp)
+                  ulong2long(rdp->completed), ulong2long(rdp->gpnum),
                   rdp->passed_quiesce, rdp->qs_pending);
        seq_printf(m, " dt=%d/%llx/%d df=%lu",
 -                 atomic_read(&rdp->dynticks->dynticks),
@@ -72024,15 +77726,34 @@ index 693513b..b9f1d63 100644
                   rdp->dynticks->dynticks_nesting,
                   rdp->dynticks->dynticks_nmi_nesting,
                   rdp->dynticks_fqs);
-@@ -154,7 +154,7 @@ static void print_one_rcu_data_csv(struct seq_file *m, struct rcu_data *rdp)
-                  rdp->completed, rdp->gpnum,
-                  rdp->passed_quiesce, rdp->qs_pending);
-       seq_printf(m, ",%d,%llx,%d,%lu",
--                 atomic_read(&rdp->dynticks->dynticks),
-+                 atomic_read_unchecked(&rdp->dynticks->dynticks),
-                  rdp->dynticks->dynticks_nesting,
-                  rdp->dynticks->dynticks_nmi_nesting,
-                  rdp->dynticks_fqs);
+@@ -184,17 +184,17 @@ static int show_rcuexp(struct seq_file *m, void *v)
+       struct rcu_state *rsp = (struct rcu_state *)m->private;
+       seq_printf(m, "s=%lu d=%lu w=%lu tf=%lu wd1=%lu wd2=%lu n=%lu sc=%lu dt=%lu dl=%lu dx=%lu\n",
+-                 atomic_long_read(&rsp->expedited_start),
++                 atomic_long_read_unchecked(&rsp->expedited_start),
+                  atomic_long_read(&rsp->expedited_done),
+-                 atomic_long_read(&rsp->expedited_wrap),
+-                 atomic_long_read(&rsp->expedited_tryfail),
+-                 atomic_long_read(&rsp->expedited_workdone1),
+-                 atomic_long_read(&rsp->expedited_workdone2),
+-                 atomic_long_read(&rsp->expedited_normal),
+-                 atomic_long_read(&rsp->expedited_stoppedcpus),
+-                 atomic_long_read(&rsp->expedited_done_tries),
+-                 atomic_long_read(&rsp->expedited_done_lost),
+-                 atomic_long_read(&rsp->expedited_done_exit));
++                 atomic_long_read_unchecked(&rsp->expedited_wrap),
++                 atomic_long_read_unchecked(&rsp->expedited_tryfail),
++                 atomic_long_read_unchecked(&rsp->expedited_workdone1),
++                 atomic_long_read_unchecked(&rsp->expedited_workdone2),
++                 atomic_long_read_unchecked(&rsp->expedited_normal),
++                 atomic_long_read_unchecked(&rsp->expedited_stoppedcpus),
++                 atomic_long_read_unchecked(&rsp->expedited_done_tries),
++                 atomic_long_read_unchecked(&rsp->expedited_done_lost),
++                 atomic_long_read_unchecked(&rsp->expedited_done_exit));
+       return 0;
+ }
 diff --git a/kernel/resource.c b/kernel/resource.c
 index 73f35d4..4684fc4 100644
 --- a/kernel/resource.c
@@ -72151,7 +77872,7 @@ index 98ec494..4241d6d 100644
  
        default:
 diff --git a/kernel/sched/auto_group.c b/kernel/sched/auto_group.c
-index 15f60d0..7e50319 100644
+index 0984a21..939f183 100644
 --- a/kernel/sched/auto_group.c
 +++ b/kernel/sched/auto_group.c
 @@ -11,7 +11,7 @@
@@ -72173,10 +77894,37 @@ index 15f60d0..7e50319 100644
  #ifdef CONFIG_RT_GROUP_SCHED
        /*
 diff --git a/kernel/sched/core.c b/kernel/sched/core.c
-index c529d00..d00b4f3 100644
+index 26058d0..e315889 100644
 --- a/kernel/sched/core.c
 +++ b/kernel/sched/core.c
-@@ -3563,6 +3563,8 @@ int can_nice(const struct task_struct *p, const int nice)
+@@ -3367,7 +3367,7 @@ EXPORT_SYMBOL(wait_for_completion_interruptible);
+  * The return value is -ERESTARTSYS if interrupted, 0 if timed out,
+  * positive (at least 1, or number of jiffies left till timeout) if completed.
+  */
+-long __sched
++long __sched __intentional_overflow(-1)
+ wait_for_completion_interruptible_timeout(struct completion *x,
+                                         unsigned long timeout)
+ {
+@@ -3384,7 +3384,7 @@ EXPORT_SYMBOL(wait_for_completion_interruptible_timeout);
+  *
+  * The return value is -ERESTARTSYS if interrupted, 0 if completed.
+  */
+-int __sched wait_for_completion_killable(struct completion *x)
++int __sched __intentional_overflow(-1) wait_for_completion_killable(struct completion *x)
+ {
+       long t = wait_for_common(x, MAX_SCHEDULE_TIMEOUT, TASK_KILLABLE);
+       if (t == -ERESTARTSYS)
+@@ -3405,7 +3405,7 @@ EXPORT_SYMBOL(wait_for_completion_killable);
+  * The return value is -ERESTARTSYS if interrupted, 0 if timed out,
+  * positive (at least 1, or number of jiffies left till timeout) if completed.
+  */
+-long __sched
++long __sched __intentional_overflow(-1)
+ wait_for_completion_killable_timeout(struct completion *x,
+                                    unsigned long timeout)
+ {
+@@ -3631,6 +3631,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;
  
@@ -72185,7 +77933,7 @@ index c529d00..d00b4f3 100644
        return (nice_rlim <= task_rlimit(p, RLIMIT_NICE) ||
                capable(CAP_SYS_NICE));
  }
-@@ -3596,7 +3598,8 @@ SYSCALL_DEFINE1(nice, int, increment)
+@@ -3664,7 +3666,8 @@ SYSCALL_DEFINE1(nice, int, increment)
        if (nice > 19)
                nice = 19;
  
@@ -72195,7 +77943,7 @@ index c529d00..d00b4f3 100644
                return -EPERM;
  
        retval = security_task_setnice(current, nice);
-@@ -3750,6 +3753,7 @@ recheck:
+@@ -3818,6 +3821,7 @@ recheck:
                        unsigned long rlim_rtprio =
                                        task_rlimit(p, RLIMIT_RTPRIO);
  
@@ -72203,11 +77951,184 @@ index c529d00..d00b4f3 100644
                        /* can't set/change the rt policy */
                        if (policy != p->policy && !rlim_rtprio)
                                return -EPERM;
+@@ -4901,7 +4905,7 @@ static void migrate_tasks(unsigned int dead_cpu)
+ #if defined(CONFIG_SCHED_DEBUG) && defined(CONFIG_SYSCTL)
+-static struct ctl_table sd_ctl_dir[] = {
++static ctl_table_no_const sd_ctl_dir[] __read_only = {
+       {
+               .procname       = "sched_domain",
+               .mode           = 0555,
+@@ -4918,17 +4922,17 @@ static struct ctl_table sd_ctl_root[] = {
+       {}
+ };
+-static struct ctl_table *sd_alloc_ctl_entry(int n)
++static ctl_table_no_const *sd_alloc_ctl_entry(int n)
+ {
+-      struct ctl_table *entry =
++      ctl_table_no_const *entry =
+               kcalloc(n, sizeof(struct ctl_table), GFP_KERNEL);
+       return entry;
+ }
+-static void sd_free_ctl_entry(struct ctl_table **tablep)
++static void sd_free_ctl_entry(ctl_table_no_const *tablep)
+ {
+-      struct ctl_table *entry;
++      ctl_table_no_const *entry;
+       /*
+        * In the intermediate directories, both the child directory and
+@@ -4936,22 +4940,25 @@ static void sd_free_ctl_entry(struct ctl_table **tablep)
+        * will always be set. In the lowest directory the names are
+        * static strings and all have proc handlers.
+        */
+-      for (entry = *tablep; entry->mode; entry++) {
+-              if (entry->child)
+-                      sd_free_ctl_entry(&entry->child);
++      for (entry = tablep; entry->mode; entry++) {
++              if (entry->child) {
++                      sd_free_ctl_entry(entry->child);
++                      pax_open_kernel();
++                      entry->child = NULL;
++                      pax_close_kernel();
++              }
+               if (entry->proc_handler == NULL)
+                       kfree(entry->procname);
+       }
+-      kfree(*tablep);
+-      *tablep = NULL;
++      kfree(tablep);
+ }
+ static int min_load_idx = 0;
+ static int max_load_idx = CPU_LOAD_IDX_MAX;
+ static void
+-set_table_entry(struct ctl_table *entry,
++set_table_entry(ctl_table_no_const *entry,
+               const char *procname, void *data, int maxlen,
+               umode_t mode, proc_handler *proc_handler,
+               bool load_idx)
+@@ -4971,7 +4978,7 @@ set_table_entry(struct ctl_table *entry,
+ static struct ctl_table *
+ sd_alloc_ctl_domain_table(struct sched_domain *sd)
+ {
+-      struct ctl_table *table = sd_alloc_ctl_entry(13);
++      ctl_table_no_const *table = sd_alloc_ctl_entry(13);
+       if (table == NULL)
+               return NULL;
+@@ -5006,9 +5013,9 @@ sd_alloc_ctl_domain_table(struct sched_domain *sd)
+       return table;
+ }
+-static ctl_table *sd_alloc_ctl_cpu_table(int cpu)
++static ctl_table_no_const *sd_alloc_ctl_cpu_table(int cpu)
+ {
+-      struct ctl_table *entry, *table;
++      ctl_table_no_const *entry, *table;
+       struct sched_domain *sd;
+       int domain_num = 0, i;
+       char buf[32];
+@@ -5035,11 +5042,13 @@ static struct ctl_table_header *sd_sysctl_header;
+ static void register_sched_domain_sysctl(void)
+ {
+       int i, cpu_num = num_possible_cpus();
+-      struct ctl_table *entry = sd_alloc_ctl_entry(cpu_num + 1);
++      ctl_table_no_const *entry = sd_alloc_ctl_entry(cpu_num + 1);
+       char buf[32];
+       WARN_ON(sd_ctl_dir[0].child);
++      pax_open_kernel();
+       sd_ctl_dir[0].child = entry;
++      pax_close_kernel();
+       if (entry == NULL)
+               return;
+@@ -5062,8 +5071,12 @@ static void unregister_sched_domain_sysctl(void)
+       if (sd_sysctl_header)
+               unregister_sysctl_table(sd_sysctl_header);
+       sd_sysctl_header = NULL;
+-      if (sd_ctl_dir[0].child)
+-              sd_free_ctl_entry(&sd_ctl_dir[0].child);
++      if (sd_ctl_dir[0].child) {
++              sd_free_ctl_entry(sd_ctl_dir[0].child);
++              pax_open_kernel();
++              sd_ctl_dir[0].child = NULL;
++              pax_close_kernel();
++      }
+ }
+ #else
+ static void register_sched_domain_sysctl(void)
+@@ -5162,7 +5175,7 @@ migration_call(struct notifier_block *nfb, unsigned long action, void *hcpu)
+  * happens before everything else.  This has to be lower priority than
+  * the notifier in the perf_event subsystem, though.
+  */
+-static struct notifier_block __cpuinitdata migration_notifier = {
++static struct notifier_block migration_notifier = {
+       .notifier_call = migration_call,
+       .priority = CPU_PRI_MIGRATION,
+ };
 diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
-index 6b800a1..0c36227 100644
+index 81fa536..6ccf96a 100644
 --- a/kernel/sched/fair.c
 +++ b/kernel/sched/fair.c
-@@ -4890,7 +4890,7 @@ static void nohz_idle_balance(int this_cpu, enum cpu_idle_type idle) { }
+@@ -830,7 +830,7 @@ void task_numa_fault(int node, int pages, bool migrated)
+ static void reset_ptenuma_scan(struct task_struct *p)
+ {
+-      ACCESS_ONCE(p->mm->numa_scan_seq)++;
++      ACCESS_ONCE_RW(p->mm->numa_scan_seq)++;
+       p->mm->numa_scan_offset = 0;
+ }
+@@ -3254,25 +3254,18 @@ find_idlest_cpu(struct sched_group *group, struct task_struct *p, int this_cpu)
+  */
+ static int select_idle_sibling(struct task_struct *p, int target)
+ {
+-      int cpu = smp_processor_id();
+-      int prev_cpu = task_cpu(p);
+       struct sched_domain *sd;
+       struct sched_group *sg;
+-      int i;
++      int i = task_cpu(p);
+-      /*
+-       * If the task is going to be woken-up on this cpu and if it is
+-       * already idle, then it is the right target.
+-       */
+-      if (target == cpu && idle_cpu(cpu))
+-              return cpu;
++      if (idle_cpu(target))
++              return target;
+       /*
+-       * If the task is going to be woken-up on the cpu where it previously
+-       * ran and if it is currently idle, then it the right target.
++       * If the prevous cpu is cache affine and idle, don't be stupid.
+        */
+-      if (target == prev_cpu && idle_cpu(prev_cpu))
+-              return prev_cpu;
++      if (i != target && cpus_share_cache(i, target) && idle_cpu(i))
++              return i;
+       /*
+        * Otherwise, iterate the domains and find an elegible idle cpu.
+@@ -3286,7 +3279,7 @@ static int select_idle_sibling(struct task_struct *p, int target)
+                               goto next;
+                       for_each_cpu(i, sched_group_cpus(sg)) {
+-                              if (!idle_cpu(i))
++                              if (i == target || !idle_cpu(i))
+                                       goto next;
+                       }
+@@ -5663,7 +5656,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).
   */
@@ -72217,10 +78138,10 @@ index 6b800a1..0c36227 100644
        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 57dde52..2c561f0 100644
+index dec9c30..d1da15b 100644
 --- a/kernel/signal.c
 +++ b/kernel/signal.c
-@@ -49,12 +49,12 @@ static struct kmem_cache *sigqueue_cachep;
+@@ -50,12 +50,12 @@ static struct kmem_cache *sigqueue_cachep;
  
  int print_fatal_signals __read_mostly;
  
@@ -72235,7 +78156,7 @@ index 57dde52..2c561f0 100644
  {
        /* Is it explicitly or implicitly ignored? */
        return handler == SIG_IGN ||
-@@ -63,7 +63,7 @@ static int sig_handler_ignored(void __user *handler, int sig)
+@@ -64,7 +64,7 @@ static int sig_handler_ignored(void __user *handler, int sig)
  
  static int sig_task_ignored(struct task_struct *t, int sig, bool force)
  {
@@ -72244,7 +78165,7 @@ index 57dde52..2c561f0 100644
  
        handler = sig_handler(t, sig);
  
-@@ -367,6 +367,9 @@ __sigqueue_alloc(int sig, struct task_struct *t, gfp_t flags, int override_rlimi
+@@ -368,6 +368,9 @@ __sigqueue_alloc(int sig, struct task_struct *t, gfp_t flags, int override_rlimi
        atomic_inc(&user->sigpending);
        rcu_read_unlock();
  
@@ -72254,7 +78175,7 @@ index 57dde52..2c561f0 100644
        if (override_rlimit ||
            atomic_read(&user->sigpending) <=
                        task_rlimit(t, RLIMIT_SIGPENDING)) {
-@@ -491,7 +494,7 @@ flush_signal_handlers(struct task_struct *t, int force_default)
+@@ -495,7 +498,7 @@ flush_signal_handlers(struct task_struct *t, int force_default)
  
  int unhandled_signal(struct task_struct *tsk, int sig)
  {
@@ -72263,7 +78184,7 @@ index 57dde52..2c561f0 100644
        if (is_global_init(tsk))
                return 1;
        if (handler != SIG_IGN && handler != SIG_DFL)
-@@ -811,6 +814,13 @@ static int check_kill_permission(int sig, struct siginfo *info,
+@@ -815,6 +818,13 @@ static int check_kill_permission(int sig, struct siginfo *info,
                }
        }
  
@@ -72277,7 +78198,7 @@ index 57dde52..2c561f0 100644
        return security_task_kill(t, info, sig, 0);
  }
  
-@@ -1192,7 +1202,7 @@ __group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
+@@ -1197,7 +1207,7 @@ __group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
        return send_signal(sig, info, p, 1);
  }
  
@@ -72286,7 +78207,7 @@ index 57dde52..2c561f0 100644
  specific_send_sig_info(int sig, struct siginfo *info, struct task_struct *t)
  {
        return send_signal(sig, info, t, 0);
-@@ -1229,6 +1239,7 @@ force_sig_info(int sig, struct siginfo *info, struct task_struct *t)
+@@ -1234,6 +1244,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;
@@ -72294,7 +78215,7 @@ index 57dde52..2c561f0 100644
  
        spin_lock_irqsave(&t->sighand->siglock, flags);
        action = &t->sighand->action[sig-1];
-@@ -1243,9 +1254,18 @@ force_sig_info(int sig, struct siginfo *info, struct task_struct *t)
+@@ -1248,9 +1259,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;
@@ -72313,7 +78234,7 @@ index 57dde52..2c561f0 100644
        return ret;
  }
  
-@@ -1312,8 +1332,11 @@ int group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
+@@ -1317,8 +1337,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();
  
@@ -72326,7 +78247,7 @@ index 57dde52..2c561f0 100644
  
        return ret;
  }
-@@ -2863,7 +2886,15 @@ do_send_specific(pid_t tgid, pid_t pid, int sig, struct siginfo *info)
+@@ -2855,7 +2878,15 @@ do_send_specific(pid_t tgid, pid_t pid, int sig, struct siginfo *info)
        int error = -ESRCH;
  
        rcu_read_lock();
@@ -72343,11 +78264,62 @@ index 57dde52..2c561f0 100644
        if (p && (tgid <= 0 || task_tgid_vnr(p) == tgid)) {
                error = check_kill_permission(sig, info, p);
                /*
+@@ -3138,8 +3169,8 @@ COMPAT_SYSCALL_DEFINE2(sigaltstack,
+       }
+       seg = get_fs();
+       set_fs(KERNEL_DS);
+-      ret = do_sigaltstack((stack_t __force __user *) (uss_ptr ? &uss : NULL),
+-                           (stack_t __force __user *) &uoss,
++      ret = do_sigaltstack((stack_t __force_user *) (uss_ptr ? &uss : NULL),
++                           (stack_t __force_user *) &uoss,
+                            compat_user_stack_pointer());
+       set_fs(seg);
+       if (ret >= 0 && uoss_ptr)  {
+diff --git a/kernel/smp.c b/kernel/smp.c
+index 69f38bd..77bbf12 100644
+--- a/kernel/smp.c
++++ b/kernel/smp.c
+@@ -77,7 +77,7 @@ hotplug_cfd(struct notifier_block *nfb, unsigned long action, void *hcpu)
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata hotplug_cfd_notifier = {
++static struct notifier_block hotplug_cfd_notifier = {
+       .notifier_call          = hotplug_cfd,
+ };
+diff --git a/kernel/smpboot.c b/kernel/smpboot.c
+index d6c5fc0..530560c 100644
+--- a/kernel/smpboot.c
++++ b/kernel/smpboot.c
+@@ -275,7 +275,7 @@ int smpboot_register_percpu_thread(struct smp_hotplug_thread *plug_thread)
+               }
+               smpboot_unpark_thread(plug_thread, cpu);
+       }
+-      list_add(&plug_thread->list, &hotplug_threads);
++      pax_list_add(&plug_thread->list, &hotplug_threads);
+ out:
+       mutex_unlock(&smpboot_threads_lock);
+       return ret;
+@@ -292,7 +292,7 @@ void smpboot_unregister_percpu_thread(struct smp_hotplug_thread *plug_thread)
+ {
+       get_online_cpus();
+       mutex_lock(&smpboot_threads_lock);
+-      list_del(&plug_thread->list);
++      pax_list_del(&plug_thread->list);
+       smpboot_destroy_threads(plug_thread);
+       mutex_unlock(&smpboot_threads_lock);
+       put_online_cpus();
 diff --git a/kernel/softirq.c b/kernel/softirq.c
-index cc96bdc..8bb9750 100644
+index ed567ba..e71dabf 100644
 --- a/kernel/softirq.c
 +++ b/kernel/softirq.c
-@@ -57,7 +57,7 @@ static struct softirq_action softirq_vec[NR_SOFTIRQS] __cacheline_aligned_in_smp
+@@ -53,11 +53,11 @@ irq_cpustat_t irq_stat[NR_CPUS] ____cacheline_aligned;
+ EXPORT_SYMBOL(irq_stat);
+ #endif
+-static struct softirq_action softirq_vec[NR_SOFTIRQS] __cacheline_aligned_in_smp;
++static struct softirq_action softirq_vec[NR_SOFTIRQS] __read_only __aligned(PAGE_SIZE);
  
  DEFINE_PER_CPU(struct task_struct *, ksoftirqd);
  
@@ -72365,21 +78337,16 @@ index cc96bdc..8bb9750 100644
                        trace_softirq_exit(vec_nr);
                        if (unlikely(prev_count != preempt_count())) {
                                printk(KERN_ERR "huh, entered softirq %u %s %p"
-@@ -391,9 +391,11 @@ void __raise_softirq_irqoff(unsigned int nr)
+@@ -391,7 +391,7 @@ void __raise_softirq_irqoff(unsigned int nr)
        or_softirq_pending(1UL << nr);
  }
  
 -void open_softirq(int nr, void (*action)(struct softirq_action *))
-+void open_softirq(int nr, void (*action)(void))
++void __init open_softirq(int nr, void (*action)(void))
  {
--      softirq_vec[nr].action = action;
-+      pax_open_kernel();
-+      *(void **)&softirq_vec[nr].action = action;
-+      pax_close_kernel();
+       softirq_vec[nr].action = action;
  }
- /*
-@@ -447,7 +449,7 @@ void __tasklet_hi_schedule_first(struct tasklet_struct *t)
+@@ -447,7 +447,7 @@ void __tasklet_hi_schedule_first(struct tasklet_struct *t)
  
  EXPORT_SYMBOL(__tasklet_hi_schedule_first);
  
@@ -72388,7 +78355,7 @@ index cc96bdc..8bb9750 100644
  {
        struct tasklet_struct *list;
  
-@@ -482,7 +484,7 @@ static void tasklet_action(struct softirq_action *a)
+@@ -482,7 +482,7 @@ static void tasklet_action(struct softirq_action *a)
        }
  }
  
@@ -72397,11 +78364,34 @@ index cc96bdc..8bb9750 100644
  {
        struct tasklet_struct *list;
  
+@@ -718,7 +718,7 @@ static int __cpuinit remote_softirq_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata remote_softirq_cpu_notifier = {
++static struct notifier_block remote_softirq_cpu_notifier = {
+       .notifier_call  = remote_softirq_cpu_notify,
+ };
+@@ -835,11 +835,11 @@ static int __cpuinit cpu_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata cpu_nfb = {
++static struct notifier_block cpu_nfb = {
+       .notifier_call = cpu_callback
+ };
+-static struct smp_hotplug_thread softirq_threads = {
++static struct smp_hotplug_thread softirq_threads __read_only = {
+       .store                  = &ksoftirqd,
+       .thread_should_run      = ksoftirqd_should_run,
+       .thread_fn              = run_ksoftirqd,
 diff --git a/kernel/srcu.c b/kernel/srcu.c
-index 97c465e..d83f3bb 100644
+index 2b85982..d52ab26 100644
 --- a/kernel/srcu.c
 +++ b/kernel/srcu.c
-@@ -302,9 +302,9 @@ int __srcu_read_lock(struct srcu_struct *sp)
+@@ -305,9 +305,9 @@ int __srcu_read_lock(struct srcu_struct *sp)
        preempt_disable();
        idx = rcu_dereference_index_check(sp->completed,
                                          rcu_read_lock_sched_held()) & 0x1;
@@ -72413,7 +78403,7 @@ index 97c465e..d83f3bb 100644
        preempt_enable();
        return idx;
  }
-@@ -320,7 +320,7 @@ void __srcu_read_unlock(struct srcu_struct *sp, int idx)
+@@ -323,7 +323,7 @@ void __srcu_read_unlock(struct srcu_struct *sp, int idx)
  {
        preempt_disable();
        smp_mb(); /* C */  /* Avoid leaking the critical section. */
@@ -72422,8 +78412,21 @@ index 97c465e..d83f3bb 100644
        preempt_enable();
  }
  EXPORT_SYMBOL_GPL(__srcu_read_unlock);
+diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c
+index 2f194e9..2c05ea9 100644
+--- a/kernel/stop_machine.c
++++ b/kernel/stop_machine.c
+@@ -362,7 +362,7 @@ static int __cpuinit cpu_stop_cpu_callback(struct notifier_block *nfb,
+  * cpu notifiers.  It currently shares the same priority as sched
+  * migration_notifier.
+  */
+-static struct notifier_block __cpuinitdata cpu_stop_cpu_notifier = {
++static struct notifier_block cpu_stop_cpu_notifier = {
+       .notifier_call  = cpu_stop_cpu_callback,
+       .priority       = 10,
+ };
 diff --git a/kernel/sys.c b/kernel/sys.c
-index e6e0ece..1f2e413 100644
+index 265b376..4e42ef5 100644
 --- a/kernel/sys.c
 +++ b/kernel/sys.c
 @@ -157,6 +157,12 @@ static int set_one_prio(struct task_struct *p, int niceval, int error)
@@ -72443,7 +78446,7 @@ index e6e0ece..1f2e413 100644
                        goto error;
        }
  
-+      if (gr_check_group_change(new->gid, new->egid, -1))
++      if (gr_check_group_change(new->gid, new->egid, INVALID_GID))
 +              goto error;
 +
        if (rgid != (gid_t) -1 ||
@@ -72473,7 +78476,7 @@ index e6e0ece..1f2e413 100644
                        goto error;
        }
  
-+      if (gr_check_user_change(new->uid, new->euid, -1))
++      if (gr_check_user_change(new->uid, new->euid, INVALID_UID))
 +              goto error;
 +
        if (!uid_eq(new->uid, old->uid)) {
@@ -72496,7 +78499,7 @@ index e6e0ece..1f2e413 100644
                        goto error;
        }
  
-+      if (gr_check_user_change(kruid, keuid, -1))
++      if (gr_check_user_change(kruid, keuid, INVALID_UID))
 +              goto error;
 +
        if (ruid != (uid_t) -1) {
@@ -72506,7 +78509,7 @@ index e6e0ece..1f2e413 100644
                        goto error;
        }
  
-+      if (gr_check_group_change(krgid, kegid, -1))
++      if (gr_check_group_change(krgid, kegid, INVALID_GID))
 +              goto error;
 +
        if (rgid != (gid_t) -1)
@@ -72516,7 +78519,7 @@ index e6e0ece..1f2e413 100644
        if (!uid_valid(kuid))
                return old_fsuid;
  
-+      if (gr_check_user_change(-1, -1, kuid))
++      if (gr_check_user_change(INVALID_UID, INVALID_UID, kuid))
 +              goto error;
 +
        new = prepare_creds();
@@ -72534,7 +78537,7 @@ index e6e0ece..1f2e413 100644
        if (gid_eq(kgid, old->gid)  || gid_eq(kgid, old->egid)  ||
            gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) ||
            nsown_capable(CAP_SETGID)) {
-+              if (gr_check_group_change(-1, -1, kgid))
++              if (gr_check_group_change(INVALID_GID, INVALID_GID, kgid))
 +                      goto error;
 +
                if (!gid_eq(kgid, old->fsgid)) {
@@ -72582,7 +78585,7 @@ index e6e0ece..1f2e413 100644
                                break;
                        }
 diff --git a/kernel/sysctl.c b/kernel/sysctl.c
-index 26f65ea..df8e5ad 100644
+index c88878d..e4fa5d1 100644
 --- a/kernel/sysctl.c
 +++ b/kernel/sysctl.c
 @@ -92,7 +92,6 @@
@@ -72634,7 +78637,7 @@ index 26f65ea..df8e5ad 100644
  /* The default sysctl tables: */
  
  static struct ctl_table sysctl_base_table[] = {
-@@ -266,6 +279,22 @@ static int max_extfrag_threshold = 1000;
+@@ -268,6 +281,22 @@ static int max_extfrag_threshold = 1000;
  #endif
  
  static struct ctl_table kern_table[] = {
@@ -72657,7 +78660,7 @@ index 26f65ea..df8e5ad 100644
        {
                .procname       = "sched_child_runs_first",
                .data           = &sysctl_sched_child_runs_first,
-@@ -552,7 +581,7 @@ static struct ctl_table kern_table[] = {
+@@ -593,7 +622,7 @@ static struct ctl_table kern_table[] = {
                .data           = &modprobe_path,
                .maxlen         = KMOD_PATH_LEN,
                .mode           = 0644,
@@ -72666,7 +78669,7 @@ index 26f65ea..df8e5ad 100644
        },
        {
                .procname       = "modules_disabled",
-@@ -719,16 +748,20 @@ static struct ctl_table kern_table[] = {
+@@ -760,16 +789,20 @@ static struct ctl_table kern_table[] = {
                .extra1         = &zero,
                .extra2         = &one,
        },
@@ -72688,7 +78691,7 @@ index 26f65ea..df8e5ad 100644
        {
                .procname       = "ngroups_max",
                .data           = &ngroups_max,
-@@ -1225,6 +1258,13 @@ static struct ctl_table vm_table[] = {
+@@ -1266,6 +1299,13 @@ static struct ctl_table vm_table[] = {
                .proc_handler   = proc_dointvec_minmax,
                .extra1         = &zero,
        },
@@ -72702,7 +78705,7 @@ index 26f65ea..df8e5ad 100644
  #else
        {
                .procname       = "nr_trim_pages",
-@@ -1675,6 +1715,16 @@ int proc_dostring(struct ctl_table *table, int write,
+@@ -1716,6 +1756,16 @@ int proc_dostring(struct ctl_table *table, int write,
                               buffer, lenp, ppos);
  }
  
@@ -72719,7 +78722,7 @@ index 26f65ea..df8e5ad 100644
  static size_t proc_skip_spaces(char **buf)
  {
        size_t ret;
-@@ -1780,6 +1830,8 @@ static int proc_put_long(void __user **buf, size_t *size, unsigned long val,
+@@ -1821,6 +1871,8 @@ static int proc_put_long(void __user **buf, size_t *size, unsigned long val,
        len = strlen(tmp);
        if (len > *size)
                len = *size;
@@ -72728,7 +78731,16 @@ index 26f65ea..df8e5ad 100644
        if (copy_to_user(*buf, tmp, len))
                return -EFAULT;
        *size -= len;
-@@ -1972,7 +2024,6 @@ static int proc_taint(struct ctl_table *table, int write,
+@@ -1985,7 +2037,7 @@ int proc_dointvec(struct ctl_table *table, int write,
+ static int proc_taint(struct ctl_table *table, int write,
+                              void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table t;
++      ctl_table_no_const t;
+       unsigned long tmptaint = get_taint();
+       int err;
+@@ -2013,7 +2065,6 @@ static int proc_taint(struct ctl_table *table, int write,
        return err;
  }
  
@@ -72736,7 +78748,7 @@ index 26f65ea..df8e5ad 100644
  static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
                                void __user *buffer, size_t *lenp, loff_t *ppos)
  {
-@@ -1981,7 +2032,6 @@ static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
+@@ -2022,7 +2073,6 @@ static int proc_dointvec_minmax_sysadmin(struct ctl_table *table, int write,
  
        return proc_dointvec_minmax(table, write, buffer, lenp, ppos);
  }
@@ -72744,7 +78756,7 @@ index 26f65ea..df8e5ad 100644
  
  struct do_proc_dointvec_minmax_conv_param {
        int *min;
-@@ -2128,8 +2178,11 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, int
+@@ -2169,8 +2219,11 @@ static int __do_proc_doulongvec_minmax(void *data, struct ctl_table *table, int
                        *i = val;
                } else {
                        val = convdiv * (*i) / convmul;
@@ -72757,7 +78769,7 @@ index 26f65ea..df8e5ad 100644
                        err = proc_put_long(&buffer, &left, val, false);
                        if (err)
                                break;
-@@ -2521,6 +2574,12 @@ int proc_dostring(struct ctl_table *table, int write,
+@@ -2562,6 +2615,12 @@ int proc_dostring(struct ctl_table *table, int write,
        return -ENOSYS;
  }
  
@@ -72770,7 +78782,7 @@ index 26f65ea..df8e5ad 100644
  int proc_dointvec(struct ctl_table *table, int write,
                  void __user *buffer, size_t *lenp, loff_t *ppos)
  {
-@@ -2577,5 +2636,6 @@ EXPORT_SYMBOL(proc_dointvec_minmax);
+@@ -2618,5 +2677,6 @@ EXPORT_SYMBOL(proc_dointvec_minmax);
  EXPORT_SYMBOL(proc_dointvec_userhz_jiffies);
  EXPORT_SYMBOL(proc_dointvec_ms_jiffies);
  EXPORT_SYMBOL(proc_dostring);
@@ -72778,7 +78790,7 @@ index 26f65ea..df8e5ad 100644
  EXPORT_SYMBOL(proc_doulongvec_minmax);
  EXPORT_SYMBOL(proc_doulongvec_ms_jiffies_minmax);
 diff --git a/kernel/sysctl_binary.c b/kernel/sysctl_binary.c
-index 65bdcf1..21eb831 100644
+index 0ddf3a0..a199f50 100644
 --- a/kernel/sysctl_binary.c
 +++ b/kernel/sysctl_binary.c
 @@ -989,7 +989,7 @@ static ssize_t bin_intvec(struct file *file,
@@ -72835,7 +78847,7 @@ index 65bdcf1..21eb831 100644
                set_fs(old_fs);
                if (result < 0)
                        goto out;
-@@ -1233,7 +1233,7 @@ static ssize_t bin_dn_node_address(struct file *file,
+@@ -1234,7 +1234,7 @@ static ssize_t bin_dn_node_address(struct file *file,
                                le16_to_cpu(dnaddr) & 0x3ff);
  
                set_fs(KERNEL_DS);
@@ -72872,7 +78884,7 @@ index 145bb4d..b2aa969 100644
                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 d226c6a..c7c0960 100644
+index d226c6a..2f0d217 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)
@@ -72887,6 +78899,15 @@ index d226c6a..c7c0960 100644
                sys_tz = *tz;
                update_vsyscall_tz();
                if (firsttime) {
+@@ -493,7 +498,7 @@ EXPORT_SYMBOL(usecs_to_jiffies);
+  * The >> (NSEC_JIFFIE_SC - SEC_JIFFIE_SC) converts the scaled nsec
+  * value to a scaled second value.
+  */
+-unsigned long
++unsigned long __intentional_overflow(-1)
+ timespec_to_jiffies(const struct timespec *value)
+ {
+       unsigned long sec = value->tv_sec;
 diff --git a/kernel/time/alarmtimer.c b/kernel/time/alarmtimer.c
 index f11d83b..d016d91 100644
 --- a/kernel/time/alarmtimer.c
@@ -72901,10 +78922,10 @@ index f11d83b..d016d91 100644
                .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 f113755..ec24223 100644
+index a13987a..36cd791 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)
+@@ -116,7 +116,7 @@ int tick_device_uses_broadcast(struct clock_event_device *dev, int cpu)
                 * then clear the broadcast bit.
                 */
                if (!(dev->features & CLOCK_EVT_FEAT_C3STOP)) {
@@ -72914,7 +78935,7 @@ index f113755..ec24223 100644
                        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 e424970..4c7962b 100644
+index cbc6acb..3a77191 100644
 --- a/kernel/time/timekeeping.c
 +++ b/kernel/time/timekeeping.c
 @@ -15,6 +15,7 @@
@@ -72925,7 +78946,7 @@ index e424970..4c7962b 100644
  #include <linux/syscore_ops.h>
  #include <linux/clocksource.h>
  #include <linux/jiffies.h>
-@@ -368,6 +369,8 @@ int do_settimeofday(const struct timespec *tv)
+@@ -412,6 +413,8 @@ int do_settimeofday(const struct timespec *tv)
        if (!timespec_valid_strict(tv))
                return -EINVAL;
  
@@ -73053,7 +79074,7 @@ index 0b537f2..40d6c20 100644
                return -ENOMEM;
        return 0;
 diff --git a/kernel/timer.c b/kernel/timer.c
-index 367d008..46857a0 100644
+index 367d008..5dee98f 100644
 --- a/kernel/timer.c
 +++ b/kernel/timer.c
 @@ -1363,7 +1363,7 @@ void update_process_times(int user_tick)
@@ -73065,12 +79086,21 @@ index 367d008..46857a0 100644
  {
        struct tvec_base *base = __this_cpu_read(tvec_bases);
  
+@@ -1481,7 +1481,7 @@ static void process_timeout(unsigned long __data)
+  *
+  * In all cases the return value is guaranteed to be non-negative.
+  */
+-signed long __sched schedule_timeout(signed long timeout)
++signed long __sched __intentional_overflow(-1) schedule_timeout(signed long timeout)
+ {
+       struct timer_list timer;
+       unsigned long expire;
 @@ -1772,7 +1772,7 @@ static int __cpuinit timer_cpu_notify(struct notifier_block *self,
        return NOTIFY_OK;
  }
  
 -static struct notifier_block __cpuinitdata timers_nb = {
-+static struct notifier_block __cpuinitconst timers_nb = {
++static struct notifier_block timers_nb = {
        .notifier_call  = timer_cpu_notify,
  };
  
@@ -73106,7 +79136,7 @@ index c0bd030..62a1927 100644
        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 356bc2f..7c94fc0 100644
+index b27052c..0e1af95 100644
 --- a/kernel/trace/ftrace.c
 +++ b/kernel/trace/ftrace.c
 @@ -1874,12 +1874,17 @@ ftrace_code_disable(struct module *mod, struct dyn_ftrace *rec)
@@ -73149,7 +79179,7 @@ index 356bc2f..7c94fc0 100644
  
        start_pg = ftrace_allocate_pages(count);
        if (!start_pg)
-@@ -4541,8 +4548,6 @@ ftrace_enable_sysctl(struct ctl_table *table, int write,
+@@ -4559,8 +4566,6 @@ ftrace_enable_sysctl(struct ctl_table *table, int write,
  #ifdef CONFIG_FUNCTION_GRAPH_TRACER
  
  static int ftrace_graph_active;
@@ -73158,7 +79188,7 @@ index 356bc2f..7c94fc0 100644
  int ftrace_graph_entry_stub(struct ftrace_graph_ent *trace)
  {
        return 0;
-@@ -4686,6 +4691,10 @@ ftrace_suspend_notifier_call(struct notifier_block *bl, unsigned long state,
+@@ -4704,6 +4709,10 @@ ftrace_suspend_notifier_call(struct notifier_block *bl, unsigned long state,
        return NOTIFY_DONE;
  }
  
@@ -73169,7 +79199,7 @@ index 356bc2f..7c94fc0 100644
  int register_ftrace_graph(trace_func_graph_ret_t retfunc,
                        trace_func_graph_ent_t entryfunc)
  {
-@@ -4699,7 +4708,6 @@ int register_ftrace_graph(trace_func_graph_ret_t retfunc,
+@@ -4717,7 +4726,6 @@ int register_ftrace_graph(trace_func_graph_ret_t retfunc,
                goto out;
        }
  
@@ -73178,7 +79208,7 @@ index 356bc2f..7c94fc0 100644
  
        ftrace_graph_active++;
 diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
-index 4cb5e51..e7e05d9 100644
+index ce8514f..8233573 100644
 --- a/kernel/trace/ring_buffer.c
 +++ b/kernel/trace/ring_buffer.c
 @@ -346,9 +346,9 @@ struct buffer_data_page {
@@ -73193,18 +79223,18 @@ index 4cb5e51..e7e05d9 100644
        unsigned long    real_end;      /* real end of data */
        struct buffer_data_page *page;  /* Actual data page */
  };
-@@ -460,8 +460,8 @@ struct ring_buffer_per_cpu {
-       unsigned long                   lost_events;
+@@ -461,8 +461,8 @@ struct ring_buffer_per_cpu {
        unsigned long                   last_overrun;
        local_t                         entries_bytes;
--      local_t                         commit_overrun;
+       local_t                         entries;
 -      local_t                         overrun;
-+      local_unchecked_t               commit_overrun;
+-      local_t                         commit_overrun;
 +      local_unchecked_t               overrun;
-       local_t                         entries;
++      local_unchecked_t               commit_overrun;
+       local_t                         dropped_events;
        local_t                         committing;
        local_t                         commits;
-@@ -860,8 +860,8 @@ static int rb_tail_page_update(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -861,8 +861,8 @@ static int rb_tail_page_update(struct ring_buffer_per_cpu *cpu_buffer,
         *
         * We add a counter to the write field to denote this.
         */
@@ -73215,7 +79245,7 @@ index 4cb5e51..e7e05d9 100644
  
        /*
         * Just make sure we have seen our old_write and synchronize
-@@ -889,8 +889,8 @@ static int rb_tail_page_update(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -890,8 +890,8 @@ static int rb_tail_page_update(struct ring_buffer_per_cpu *cpu_buffer,
                 * cmpxchg to only update if an interrupt did not already
                 * do it for us. If the cmpxchg fails, we don't care.
                 */
@@ -73226,7 +79256,7 @@ index 4cb5e51..e7e05d9 100644
  
                /*
                 * No need to worry about races with clearing out the commit.
-@@ -1249,12 +1249,12 @@ static void rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer);
+@@ -1250,12 +1250,12 @@ static void rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer);
  
  static inline unsigned long rb_page_entries(struct buffer_page *bpage)
  {
@@ -73241,7 +79271,7 @@ index 4cb5e51..e7e05d9 100644
  }
  
  static int
-@@ -1349,7 +1349,7 @@ rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned int nr_pages)
+@@ -1350,7 +1350,7 @@ rb_remove_pages(struct ring_buffer_per_cpu *cpu_buffer, unsigned int nr_pages)
                         * bytes consumed in ring buffer from here.
                         * Increment overrun to account for the lost events.
                         */
@@ -73250,7 +79280,7 @@ index 4cb5e51..e7e05d9 100644
                        local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes);
                }
  
-@@ -1905,7 +1905,7 @@ rb_handle_head_page(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -1906,7 +1906,7 @@ rb_handle_head_page(struct ring_buffer_per_cpu *cpu_buffer,
                 * it is our responsibility to update
                 * the counters.
                 */
@@ -73259,7 +79289,7 @@ index 4cb5e51..e7e05d9 100644
                local_sub(BUF_PAGE_SIZE, &cpu_buffer->entries_bytes);
  
                /*
-@@ -2055,7 +2055,7 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2056,7 +2056,7 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer,
                if (tail == BUF_PAGE_SIZE)
                        tail_page->real_end = 0;
  
@@ -73268,7 +79298,7 @@ index 4cb5e51..e7e05d9 100644
                return;
        }
  
-@@ -2090,7 +2090,7 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2091,7 +2091,7 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer,
                rb_event_set_padding(event);
  
                /* Set the write back to the previous setting */
@@ -73277,7 +79307,7 @@ index 4cb5e51..e7e05d9 100644
                return;
        }
  
-@@ -2102,7 +2102,7 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2103,7 +2103,7 @@ rb_reset_tail(struct ring_buffer_per_cpu *cpu_buffer,
  
        /* Set write to end of buffer */
        length = (tail + length) - BUF_PAGE_SIZE;
@@ -73286,7 +79316,7 @@ index 4cb5e51..e7e05d9 100644
  }
  
  /*
-@@ -2128,7 +2128,7 @@ rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2129,7 +2129,7 @@ rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer,
         * about it.
         */
        if (unlikely(next_page == commit_page)) {
@@ -73295,7 +79325,7 @@ index 4cb5e51..e7e05d9 100644
                goto out_reset;
        }
  
-@@ -2182,7 +2182,7 @@ rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2185,7 +2185,7 @@ rb_move_tail(struct ring_buffer_per_cpu *cpu_buffer,
                                      cpu_buffer->tail_page) &&
                                     (cpu_buffer->commit_page ==
                                      cpu_buffer->reader_page))) {
@@ -73304,7 +79334,7 @@ index 4cb5e51..e7e05d9 100644
                                goto out_reset;
                        }
                }
-@@ -2230,7 +2230,7 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2233,7 +2233,7 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer,
                length += RB_LEN_TIME_EXTEND;
  
        tail_page = cpu_buffer->tail_page;
@@ -73313,7 +79343,7 @@ index 4cb5e51..e7e05d9 100644
  
        /* set write to only the index of the write */
        write &= RB_WRITE_MASK;
-@@ -2247,7 +2247,7 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2250,7 +2250,7 @@ __rb_reserve_next(struct ring_buffer_per_cpu *cpu_buffer,
        kmemcheck_annotate_bitfield(event, bitfield);
        rb_update_event(cpu_buffer, event, length, add_timestamp, delta);
  
@@ -73322,7 +79352,7 @@ index 4cb5e51..e7e05d9 100644
  
        /*
         * If this is the first commit on the page, then update
-@@ -2280,7 +2280,7 @@ rb_try_to_discard(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2283,7 +2283,7 @@ rb_try_to_discard(struct ring_buffer_per_cpu *cpu_buffer,
  
        if (bpage->page == (void *)addr && rb_page_write(bpage) == old_index) {
                unsigned long write_mask =
@@ -73331,7 +79361,7 @@ index 4cb5e51..e7e05d9 100644
                unsigned long event_length = rb_event_length(event);
                /*
                 * This is on the tail page. It is possible that
-@@ -2290,7 +2290,7 @@ rb_try_to_discard(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2293,7 +2293,7 @@ rb_try_to_discard(struct ring_buffer_per_cpu *cpu_buffer,
                 */
                old_index += write_mask;
                new_index += write_mask;
@@ -73340,7 +79370,7 @@ index 4cb5e51..e7e05d9 100644
                if (index == old_index) {
                        /* update counters */
                        local_sub(event_length, &cpu_buffer->entries_bytes);
-@@ -2629,7 +2629,7 @@ rb_decrement_entry(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2632,7 +2632,7 @@ rb_decrement_entry(struct ring_buffer_per_cpu *cpu_buffer,
  
        /* Do the likely case first */
        if (likely(bpage->page == (void *)addr)) {
@@ -73349,7 +79379,7 @@ index 4cb5e51..e7e05d9 100644
                return;
        }
  
-@@ -2641,7 +2641,7 @@ rb_decrement_entry(struct ring_buffer_per_cpu *cpu_buffer,
+@@ -2644,7 +2644,7 @@ rb_decrement_entry(struct ring_buffer_per_cpu *cpu_buffer,
        start = bpage;
        do {
                if (bpage->page == (void *)addr) {
@@ -73358,7 +79388,7 @@ index 4cb5e51..e7e05d9 100644
                        return;
                }
                rb_inc_page(cpu_buffer, &bpage);
-@@ -2923,7 +2923,7 @@ static inline unsigned long
+@@ -2926,7 +2926,7 @@ static inline unsigned long
  rb_num_of_entries(struct ring_buffer_per_cpu *cpu_buffer)
  {
        return local_read(&cpu_buffer->entries) -
@@ -73367,7 +79397,7 @@ index 4cb5e51..e7e05d9 100644
  }
  
  /**
-@@ -3011,7 +3011,7 @@ unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu)
+@@ -3015,7 +3015,7 @@ unsigned long ring_buffer_overrun_cpu(struct ring_buffer *buffer, int cpu)
                return 0;
  
        cpu_buffer = buffer->buffers[cpu];
@@ -73376,7 +79406,7 @@ index 4cb5e51..e7e05d9 100644
  
        return ret;
  }
-@@ -3032,7 +3032,7 @@ ring_buffer_commit_overrun_cpu(struct ring_buffer *buffer, int cpu)
+@@ -3038,7 +3038,7 @@ ring_buffer_commit_overrun_cpu(struct ring_buffer *buffer, int cpu)
                return 0;
  
        cpu_buffer = buffer->buffers[cpu];
@@ -73385,7 +79415,7 @@ index 4cb5e51..e7e05d9 100644
  
        return ret;
  }
-@@ -3077,7 +3077,7 @@ unsigned long ring_buffer_overruns(struct ring_buffer *buffer)
+@@ -3105,7 +3105,7 @@ unsigned long ring_buffer_overruns(struct ring_buffer *buffer)
        /* if you care about this being correct, lock the buffer */
        for_each_buffer_cpu(buffer, cpu) {
                cpu_buffer = buffer->buffers[cpu];
@@ -73394,7 +79424,7 @@ index 4cb5e51..e7e05d9 100644
        }
  
        return overruns;
-@@ -3253,8 +3253,8 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer)
+@@ -3281,8 +3281,8 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer)
        /*
         * Reset the reader page to size zero.
         */
@@ -73405,7 +79435,7 @@ index 4cb5e51..e7e05d9 100644
        local_set(&cpu_buffer->reader_page->page->commit, 0);
        cpu_buffer->reader_page->real_end = 0;
  
-@@ -3288,7 +3288,7 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer)
+@@ -3316,7 +3316,7 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer)
         * want to compare with the last_overrun.
         */
        smp_mb();
@@ -73414,7 +79444,7 @@ index 4cb5e51..e7e05d9 100644
  
        /*
         * Here's the tricky part.
-@@ -3858,8 +3858,8 @@ rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer)
+@@ -3886,8 +3886,8 @@ rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer)
  
        cpu_buffer->head_page
                = list_entry(cpu_buffer->pages, struct buffer_page, list);
@@ -73425,7 +79455,7 @@ index 4cb5e51..e7e05d9 100644
        local_set(&cpu_buffer->head_page->page->commit, 0);
  
        cpu_buffer->head_page->read = 0;
-@@ -3869,14 +3869,14 @@ rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer)
+@@ -3897,14 +3897,14 @@ rb_reset_cpu(struct ring_buffer_per_cpu *cpu_buffer)
  
        INIT_LIST_HEAD(&cpu_buffer->reader_page->list);
        INIT_LIST_HEAD(&cpu_buffer->new_pages);
@@ -73436,15 +79466,15 @@ index 4cb5e51..e7e05d9 100644
        local_set(&cpu_buffer->reader_page->page->commit, 0);
        cpu_buffer->reader_page->read = 0;
  
--      local_set(&cpu_buffer->commit_overrun, 0);
-+      local_set_unchecked(&cpu_buffer->commit_overrun, 0);
        local_set(&cpu_buffer->entries_bytes, 0);
 -      local_set(&cpu_buffer->overrun, 0);
+-      local_set(&cpu_buffer->commit_overrun, 0);
 +      local_set_unchecked(&cpu_buffer->overrun, 0);
++      local_set_unchecked(&cpu_buffer->commit_overrun, 0);
+       local_set(&cpu_buffer->dropped_events, 0);
        local_set(&cpu_buffer->entries, 0);
        local_set(&cpu_buffer->committing, 0);
-       local_set(&cpu_buffer->commits, 0);
-@@ -4279,8 +4279,8 @@ int ring_buffer_read_page(struct ring_buffer *buffer,
+@@ -4308,8 +4308,8 @@ int ring_buffer_read_page(struct ring_buffer *buffer,
                rb_init_page(bpage);
                bpage = reader->page;
                reader->page = *data_page;
@@ -73456,10 +79486,10 @@ index 4cb5e51..e7e05d9 100644
                *data_page = bpage;
  
 diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
-index 31e4f55..62da00f 100644
+index fe1d581..43a0f38 100644
 --- a/kernel/trace/trace.c
 +++ b/kernel/trace/trace.c
-@@ -4436,10 +4436,9 @@ static const struct file_operations tracing_dyn_info_fops = {
+@@ -4494,10 +4494,9 @@ static const struct file_operations tracing_dyn_info_fops = {
  };
  #endif
  
@@ -73471,7 +79501,7 @@ index 31e4f55..62da00f 100644
        static int once;
  
        if (d_tracer)
-@@ -4459,10 +4458,9 @@ struct dentry *tracing_init_dentry(void)
+@@ -4517,10 +4516,9 @@ struct dentry *tracing_init_dentry(void)
        return d_tracer;
  }
  
@@ -73484,10 +79514,10 @@ index 31e4f55..62da00f 100644
        struct dentry *d_tracer;
  
 diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c
-index d608d09..7eddcb1 100644
+index 880073d..42db7c3 100644
 --- a/kernel/trace/trace_events.c
 +++ b/kernel/trace/trace_events.c
-@@ -1320,10 +1320,6 @@ static LIST_HEAD(ftrace_module_file_list);
+@@ -1330,10 +1330,6 @@ static LIST_HEAD(ftrace_module_file_list);
  struct ftrace_module_file_ops {
        struct list_head                list;
        struct module                   *mod;
@@ -73498,7 +79528,7 @@ index d608d09..7eddcb1 100644
  };
  
  static struct ftrace_module_file_ops *
-@@ -1344,17 +1340,12 @@ trace_create_file_ops(struct module *mod)
+@@ -1354,17 +1350,12 @@ trace_create_file_ops(struct module *mod)
  
        file_ops->mod = mod;
  
@@ -73514,15 +79544,15 @@ index d608d09..7eddcb1 100644
 -      file_ops->format = ftrace_event_format_fops;
 -      file_ops->format.owner = mod;
 +      pax_open_kernel();
-+      *(void **)&mod->trace_id.owner = mod;
-+      *(void **)&mod->trace_enable.owner = mod;
-+      *(void **)&mod->trace_filter.owner = mod;
-+      *(void **)&mod->trace_format.owner = mod;
++      mod->trace_id.owner = mod;
++      mod->trace_enable.owner = mod;
++      mod->trace_filter.owner = mod;
++      mod->trace_format.owner = mod;
 +      pax_close_kernel();
  
        list_add(&file_ops->list, &ftrace_module_file_list);
  
-@@ -1378,8 +1369,8 @@ static void trace_module_add_events(struct module *mod)
+@@ -1388,8 +1379,8 @@ static void trace_module_add_events(struct module *mod)
  
        for_each_event(call, start, end) {
                __trace_add_event_call(*call, mod,
@@ -73574,7 +79604,7 @@ index fd3c8aa..5f324a6 100644
        }
        entry   = ring_buffer_event_data(event);
 diff --git a/kernel/trace/trace_output.c b/kernel/trace/trace_output.c
-index 123b189..1e9e2a6 100644
+index 194d796..76edb8f 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, const struct path *path)
@@ -73586,7 +79616,7 @@ index 123b189..1e9e2a6 100644
                if (p) {
                        s->len = p - s->buffer;
                        return 1;
-@@ -824,14 +824,16 @@ int register_ftrace_event(struct trace_event *event)
+@@ -852,14 +852,16 @@ int register_ftrace_event(struct trace_event *event)
                        goto out;
        }
  
@@ -73608,10 +79638,10 @@ index 123b189..1e9e2a6 100644
        key = event->type & (EVENT_HASHSIZE - 1);
  
 diff --git a/kernel/trace/trace_stack.c b/kernel/trace/trace_stack.c
-index 0c1b1657..95337e9 100644
+index 42ca822..cdcacc6 100644
 --- a/kernel/trace/trace_stack.c
 +++ b/kernel/trace/trace_stack.c
-@@ -53,7 +53,7 @@ static inline void check_stack(void)
+@@ -52,7 +52,7 @@ static inline void check_stack(void)
                return;
  
        /* we do not handle interrupt stacks yet */
@@ -73620,10 +79650,124 @@ index 0c1b1657..95337e9 100644
                return;
  
        local_irq_save(flags);
+diff --git a/kernel/user.c b/kernel/user.c
+index 7f6ff2b..1ac8f18 100644
+--- a/kernel/user.c
++++ b/kernel/user.c
+@@ -47,9 +47,7 @@ struct user_namespace init_user_ns = {
+                       .count = 4294967295U,
+               },
+       },
+-      .kref = {
+-              .refcount       = ATOMIC_INIT(3),
+-      },
++      .count = ATOMIC_INIT(3),
+       .owner = GLOBAL_ROOT_UID,
+       .group = GLOBAL_ROOT_GID,
+       .proc_inum = PROC_USER_INIT_INO,
+diff --git a/kernel/user_namespace.c b/kernel/user_namespace.c
+index f45e128..a5a5fb6 100644
+--- a/kernel/user_namespace.c
++++ b/kernel/user_namespace.c
+@@ -88,7 +88,7 @@ int create_user_ns(struct cred *new)
+               return ret;
+       }
+-      kref_init(&ns->kref);
++      atomic_set(&ns->count, 1);
+       /* Leave the new->user_ns reference with the new user namespace. */
+       ns->parent = parent_ns;
+       ns->owner = owner;
+@@ -116,15 +116,16 @@ int unshare_userns(unsigned long unshare_flags, struct cred **new_cred)
+       return create_user_ns(cred);
+ }
+-void free_user_ns(struct kref *kref)
++void free_user_ns(struct user_namespace *ns)
+ {
+-      struct user_namespace *parent, *ns =
+-              container_of(kref, struct user_namespace, kref);
++      struct user_namespace *parent;
+-      parent = ns->parent;
+-      proc_free_inum(ns->proc_inum);
+-      kmem_cache_free(user_ns_cachep, ns);
+-      put_user_ns(parent);
++      do {
++              parent = ns->parent;
++              proc_free_inum(ns->proc_inum);
++              kmem_cache_free(user_ns_cachep, ns);
++              ns = parent;
++      } while (atomic_dec_and_test(&parent->count));
+ }
+ EXPORT_SYMBOL(free_user_ns);
+@@ -815,7 +816,7 @@ static int userns_install(struct nsproxy *nsproxy, void *ns)
+       if (atomic_read(&current->mm->mm_users) > 1)
+               return -EINVAL;
+-      if (current->fs->users != 1)
++      if (atomic_read(&current->fs->users) != 1)
+               return -EINVAL;
+       if (!ns_capable(user_ns, CAP_SYS_ADMIN))
+diff --git a/kernel/utsname_sysctl.c b/kernel/utsname_sysctl.c
+index 63da38c..639904e 100644
+--- a/kernel/utsname_sysctl.c
++++ b/kernel/utsname_sysctl.c
+@@ -46,7 +46,7 @@ static void put_uts(ctl_table *table, int write, void *which)
+ static int proc_do_uts_string(ctl_table *table, int write,
+                 void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      struct ctl_table uts_table;
++      ctl_table_no_const uts_table;
+       int r;
+       memcpy(&uts_table, table, sizeof(uts_table));
+       uts_table.data = get_uts(table, write);
+diff --git a/kernel/watchdog.c b/kernel/watchdog.c
+index 75a2ab3..5961da7 100644
+--- a/kernel/watchdog.c
++++ b/kernel/watchdog.c
+@@ -527,7 +527,7 @@ int proc_dowatchdog(struct ctl_table *table, int write,
+ }
+ #endif /* CONFIG_SYSCTL */
+-static struct smp_hotplug_thread watchdog_threads = {
++static struct smp_hotplug_thread watchdog_threads __read_only = {
+       .store                  = &softlockup_watchdog,
+       .thread_should_run      = watchdog_should_run,
+       .thread_fn              = watchdog,
 diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug
-index 28e9d6c9..50381bd 100644
+index 67604e5..fe94fb1 100644
 --- a/lib/Kconfig.debug
 +++ b/lib/Kconfig.debug
+@@ -550,7 +550,7 @@ config DEBUG_MUTEXES
+ config DEBUG_LOCK_ALLOC
+       bool "Lock debugging: detect incorrect freeing of live locks"
+-      depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
++      depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT && !PAX_CONSTIFY_PLUGIN
+       select DEBUG_SPINLOCK
+       select DEBUG_MUTEXES
+       select LOCKDEP
+@@ -564,7 +564,7 @@ config DEBUG_LOCK_ALLOC
+ config PROVE_LOCKING
+       bool "Lock debugging: prove locking correctness"
+-      depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
++      depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT && !PAX_CONSTIFY_PLUGIN
+       select LOCKDEP
+       select DEBUG_SPINLOCK
+       select DEBUG_MUTEXES
+@@ -670,7 +670,7 @@ config LOCKDEP
+ config LOCK_STAT
+       bool "Lock usage statistics"
+-      depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT
++      depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT && !PAX_CONSTIFY_PLUGIN
+       select LOCKDEP
+       select DEBUG_SPINLOCK
+       select DEBUG_MUTEXES
 @@ -1278,6 +1278,7 @@ config LATENCYTOP
        depends on DEBUG_KERNEL
        depends on STACKTRACE_SUPPORT
@@ -73651,10 +79795,10 @@ index 28e9d6c9..50381bd 100644
          This option lets you use the FireWire bus for remote debugging
          with help of the firewire-ohci driver. It enables unfiltered
 diff --git a/lib/Makefile b/lib/Makefile
-index a08b791..a3ff1eb 100644
+index 02ed6c0..bd243da 100644
 --- a/lib/Makefile
 +++ b/lib/Makefile
-@@ -46,7 +46,7 @@ obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
+@@ -47,7 +47,7 @@ obj-$(CONFIG_GENERIC_HWEIGHT) += hweight.o
  
  obj-$(CONFIG_BTREE) += btree.o
  obj-$(CONFIG_DEBUG_PREEMPT) += smp_processor_id.o
@@ -73664,7 +79808,7 @@ index a08b791..a3ff1eb 100644
  
  ifneq ($(CONFIG_HAVE_DEC_LOCK),y)
 diff --git a/lib/bitmap.c b/lib/bitmap.c
-index 06fdfa1..97c5c7d 100644
+index 06f7e4f..f3cf2b0 100644
 --- a/lib/bitmap.c
 +++ b/lib/bitmap.c
 @@ -422,7 +422,7 @@ int __bitmap_parse(const char *buf, unsigned int buflen,
@@ -73751,11 +79895,33 @@ index 80b9c76..9e32279 100644
  }
  EXPORT_SYMBOL(devm_ioport_unmap);
  
+diff --git a/lib/div64.c b/lib/div64.c
+index a163b6c..9618fa5 100644
+--- a/lib/div64.c
++++ b/lib/div64.c
+@@ -59,7 +59,7 @@ uint32_t __attribute__((weak)) __div64_32(uint64_t *n, uint32_t base)
+ EXPORT_SYMBOL(__div64_32);
+ #ifndef div_s64_rem
+-s64 div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)
++s64 __intentional_overflow(-1) div_s64_rem(s64 dividend, s32 divisor, s32 *remainder)
+ {
+       u64 quotient;
+@@ -90,7 +90,7 @@ EXPORT_SYMBOL(div_s64_rem);
+  * 'http://www.hackersdelight.org/HDcode/newCode/divDouble.c.txt'
+  */
+ #ifndef div64_u64
+-u64 div64_u64(u64 dividend, u64 divisor)
++u64 __intentional_overflow(-1) div64_u64(u64 dividend, u64 divisor)
+ {
+       u32 high = divisor >> 32;
+       u64 quot;
 diff --git a/lib/dma-debug.c b/lib/dma-debug.c
-index d84beb9..da44791 100644
+index 5e396ac..58d5de1 100644
 --- a/lib/dma-debug.c
 +++ b/lib/dma-debug.c
-@@ -754,7 +754,7 @@ static int dma_debug_device_change(struct notifier_block *nb, unsigned long acti
+@@ -768,7 +768,7 @@ static int dma_debug_device_change(struct notifier_block *nb, unsigned long acti
  
  void dma_debug_add_bus(struct bus_type *bus)
  {
@@ -73764,7 +79930,7 @@ index d84beb9..da44791 100644
  
        if (global_disable)
                return;
-@@ -919,7 +919,7 @@ out:
+@@ -942,7 +942,7 @@ out:
  
  static void check_for_stack(struct device *dev, void *addr)
  {
@@ -73822,8 +79988,24 @@ index bd2bea9..6b3c95e 100644
        if (atomic_read(&task->signal->live) != 1)
                return false;
  
+diff --git a/lib/kobject.c b/lib/kobject.c
+index e07ee1f..998489d 100644
+--- a/lib/kobject.c
++++ b/lib/kobject.c
+@@ -852,9 +852,9 @@ EXPORT_SYMBOL_GPL(kset_create_and_add);
+ static DEFINE_SPINLOCK(kobj_ns_type_lock);
+-static const struct kobj_ns_type_operations *kobj_ns_ops_tbl[KOBJ_NS_TYPES];
++static const struct kobj_ns_type_operations *kobj_ns_ops_tbl[KOBJ_NS_TYPES] __read_only;
+-int kobj_ns_type_register(const struct kobj_ns_type_operations *ops)
++int __init kobj_ns_type_register(const struct kobj_ns_type_operations *ops)
+ {
+       enum kobj_ns_type type = ops->type;
+       int error;
 diff --git a/lib/list_debug.c b/lib/list_debug.c
-index c24c2f7..3fc5da0 100644
+index c24c2f7..06e070b 100644
 --- a/lib/list_debug.c
 +++ b/lib/list_debug.c
 @@ -11,7 +11,9 @@
@@ -73859,11 +80041,12 @@ index c24c2f7..3fc5da0 100644
                "next (%p), but was %p. (prev=%p).\n",
 -              next, prev->next, prev);
 -      WARN(new == prev || new == next,
+-           "list_add double add: new=%p, prev=%p, next=%p.\n",
+-           new, prev, next);
 +              next, prev->next, prev) ||
 +          WARN(new == prev || new == next,
-            "list_add double add: new=%p, prev=%p, next=%p.\n",
--           new, prev, next);
-+           new, prev, next))
++              "list_add double add: new=%p, prev=%p, next=%p.\n",
++              new, prev, next))
 +              return false;
 +      return true;
 +}
@@ -73905,20 +80088,17 @@ index c24c2f7..3fc5da0 100644
  }
  EXPORT_SYMBOL(__list_del_entry);
  
-@@ -86,15 +106,54 @@ EXPORT_SYMBOL(list_del);
+@@ -86,15 +106,85 @@ EXPORT_SYMBOL(list_del);
  void __list_add_rcu(struct list_head *new,
                    struct list_head *prev, struct list_head *next)
  {
 -      WARN(next->prev != prev,
-+      if (WARN(next->prev != prev,
-               "list_add_rcu corruption. next->prev should be prev (%p), but was %p. (next=%p).\n",
+-              "list_add_rcu corruption. next->prev should be prev (%p), but was %p. (next=%p).\n",
 -              prev, next->prev, next);
 -      WARN(prev->next != next,
-+              prev, next->prev, next) ||
-+          WARN(prev->next != next,
-               "list_add_rcu corruption. prev->next should be next (%p), but was %p. (prev=%p).\n",
+-              "list_add_rcu corruption. prev->next should be next (%p), but was %p. (prev=%p).\n",
 -              next, prev->next, prev);
-+              next, prev->next, prev))
++      if (!__list_add_debug(new, prev, next))
 +              return;
 +
        new->next = next;
@@ -73929,13 +80109,8 @@ index c24c2f7..3fc5da0 100644
  EXPORT_SYMBOL(__list_add_rcu);
 +#endif
 +
-+void pax_list_add_tail(struct list_head *new, struct list_head *head)
++void __pax_list_add(struct list_head *new, struct list_head *prev, struct list_head *next)
 +{
-+      struct list_head *prev, *next;
-+
-+      prev = head->prev;
-+      next = head;
-+
 +#ifdef CONFIG_DEBUG_LIST
 +      if (!__list_add_debug(new, prev, next))
 +              return;
@@ -73948,7 +80123,7 @@ index c24c2f7..3fc5da0 100644
 +      prev->next = new;
 +      pax_close_kernel();
 +}
-+EXPORT_SYMBOL(pax_list_add_tail);
++EXPORT_SYMBOL(__pax_list_add);
 +
 +void pax_list_del(struct list_head *entry)
 +{
@@ -73964,6 +80139,47 @@ index c24c2f7..3fc5da0 100644
 +      pax_close_kernel();
 +}
 +EXPORT_SYMBOL(pax_list_del);
++
++void pax_list_del_init(struct list_head *entry)
++{
++      pax_open_kernel();
++      __list_del(entry->prev, entry->next);
++      INIT_LIST_HEAD(entry);
++      pax_close_kernel();
++}
++EXPORT_SYMBOL(pax_list_del_init);
++
++void __pax_list_add_rcu(struct list_head *new,
++                      struct list_head *prev, struct list_head *next)
++{
++#ifdef CONFIG_DEBUG_LIST
++      if (!__list_add_debug(new, prev, next))
++              return;
++#endif
++
++      pax_open_kernel();
++      new->next = next;
++      new->prev = prev;
++      rcu_assign_pointer(list_next_rcu(prev), new);
++      next->prev = new;
++      pax_close_kernel();
++}
++EXPORT_SYMBOL(__pax_list_add_rcu);
++
++void pax_list_del_rcu(struct list_head *entry)
++{
++#ifdef CONFIG_DEBUG_LIST
++      if (!__list_del_entry_debug(entry))
++              return;
++#endif
++
++      pax_open_kernel();
++      __list_del(entry->prev, entry->next);
++      entry->next = LIST_POISON1;
++      entry->prev = LIST_POISON2;
++      pax_close_kernel();
++}
++EXPORT_SYMBOL(pax_list_del_rcu);
 diff --git a/lib/radix-tree.c b/lib/radix-tree.c
 index e796429..6e38f9f 100644
 --- a/lib/radix-tree.c
@@ -74003,8 +80219,21 @@ index a28df52..3d55877 100644
        long align, res = 0;
        unsigned long c;
  
+diff --git a/lib/swiotlb.c b/lib/swiotlb.c
+index 196b069..358f342 100644
+--- a/lib/swiotlb.c
++++ b/lib/swiotlb.c
+@@ -642,7 +642,7 @@ EXPORT_SYMBOL(swiotlb_alloc_coherent);
+ void
+ swiotlb_free_coherent(struct device *hwdev, size_t size, void *vaddr,
+-                    dma_addr_t dev_addr)
++                    dma_addr_t dev_addr, struct dma_attrs *attrs)
+ {
+       phys_addr_t paddr = dma_to_phys(hwdev, dev_addr);
 diff --git a/lib/vsprintf.c b/lib/vsprintf.c
-index 39c99fe..18f060b 100644
+index fab33a9..3b5fe68 100644
 --- a/lib/vsprintf.c
 +++ b/lib/vsprintf.c
 @@ -16,6 +16,9 @@
@@ -74017,7 +80246,7 @@ index 39c99fe..18f060b 100644
  #include <stdarg.h>
  #include <linux/module.h>     /* for KSYM_SYMBOL_LEN */
  #include <linux/types.h>
-@@ -533,7 +536,7 @@ char *symbol_string(char *buf, char *end, void *ptr,
+@@ -541,7 +544,7 @@ char *symbol_string(char *buf, char *end, void *ptr,
        char sym[KSYM_SYMBOL_LEN];
        if (ext == 'B')
                sprint_backtrace(sym, value);
@@ -74026,7 +80255,7 @@ index 39c99fe..18f060b 100644
                sprint_symbol(sym, value);
        else
                sprint_symbol_no_offset(sym, value);
-@@ -966,7 +969,11 @@ char *netdev_feature_string(char *buf, char *end, const u8 *addr,
+@@ -974,7 +977,11 @@ char *netdev_feature_string(char *buf, char *end, const u8 *addr,
        return number(buf, end, *(const netdev_features_t *)addr, spec);
  }
  
@@ -74038,7 +80267,7 @@ index 39c99fe..18f060b 100644
  
  /*
   * Show a '%p' thing.  A kernel extension is that the '%p' is followed
-@@ -980,6 +987,8 @@ int kptr_restrict __read_mostly;
+@@ -988,6 +995,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
@@ -74047,7 +80276,7 @@ index 39c99fe..18f060b 100644
   * - '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
-@@ -1035,12 +1044,12 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
+@@ -1043,12 +1052,12 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
  
        if (!ptr && *fmt != 'K') {
                /*
@@ -74062,7 +80291,7 @@ index 39c99fe..18f060b 100644
        }
  
        switch (*fmt) {
-@@ -1050,6 +1059,13 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
+@@ -1058,6 +1067,13 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
                /* Fallthrough */
        case 'S':
        case 's':
@@ -74076,7 +80305,7 @@ index 39c99fe..18f060b 100644
        case 'B':
                return symbol_string(buf, end, ptr, spec, *fmt);
        case 'R':
-@@ -1090,6 +1106,8 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
+@@ -1098,6 +1114,8 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
                        va_end(va);
                        return buf;
                }
@@ -74085,7 +80314,7 @@ index 39c99fe..18f060b 100644
        case 'K':
                /*
                 * %pK cannot be used in IRQ context because its test
-@@ -1113,6 +1131,21 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
+@@ -1121,6 +1139,21 @@ char *pointer(const char *fmt, char *buf, char *end, void *ptr,
                }
                break;
        }
@@ -74107,7 +80336,7 @@ index 39c99fe..18f060b 100644
        spec.flags |= SMALL;
        if (spec.field_width == -1) {
                spec.field_width = default_width;
-@@ -1831,11 +1864,11 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
+@@ -1842,11 +1875,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));                    \
@@ -74122,7 +80351,7 @@ index 39c99fe..18f060b 100644
        }                                                               \
        args += sizeof(type);                                           \
        value;                                                          \
-@@ -1898,7 +1931,7 @@ int bstr_printf(char *buf, size_t size, const char *fmt, const u32 *bin_buf)
+@@ -1909,7 +1942,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;
@@ -74139,10 +80368,10 @@ index 0000000..7cd6065
 @@ -0,0 +1 @@
 +-grsec
 diff --git a/mm/Kconfig b/mm/Kconfig
-index a3f8ddd..f31e92e 100644
+index 278e3ab..87c384d 100644
 --- a/mm/Kconfig
 +++ b/mm/Kconfig
-@@ -252,10 +252,10 @@ config KSM
+@@ -286,10 +286,10 @@ config KSM
          root has set /sys/kernel/mm/ksm/run to 1 (if CONFIG_SYSFS is set).
  
  config DEFAULT_MMAP_MIN_ADDR
@@ -74156,7 +80385,7 @@ index a3f8ddd..f31e92e 100644
          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.
-@@ -286,7 +286,7 @@ config MEMORY_FAILURE
+@@ -320,7 +320,7 @@ config MEMORY_FAILURE
  
  config HWPOISON_INJECT
        tristate "HWPoison pages injector"
@@ -74203,22 +80432,21 @@ index a0aaf0e..20325c3 100644
         * Make sure the vma is shared, that it supports prefaulting,
         * and that the remapped range is valid and fully within
 diff --git a/mm/highmem.c b/mm/highmem.c
-index 09fc744..3936897 100644
+index b32b70c..e512eb0 100644
 --- a/mm/highmem.c
 +++ b/mm/highmem.c
-@@ -138,9 +138,10 @@ static void flush_all_zero_pkmaps(void)
+@@ -138,8 +138,9 @@ static void flush_all_zero_pkmaps(void)
                 * So no dangers, even with speculative execution.
                 */
                page = pte_page(pkmap_page_table[i]);
 +              pax_open_kernel();
-               pte_clear(&init_mm, (unsigned long)page_address(page),
-                         &pkmap_page_table[i]);
+               pte_clear(&init_mm, PKMAP_ADDR(i), &pkmap_page_table[i]);
 -
 +              pax_close_kernel();
                set_page_address(page, NULL);
                need_flush = 1;
        }
-@@ -199,9 +200,11 @@ start:
+@@ -198,9 +199,11 @@ start:
                }
        }
        vaddr = PKMAP_ADDR(last_pkmap_nr);
@@ -74231,24 +80459,53 @@ index 09fc744..3936897 100644
        pkmap_count[last_pkmap_nr] = 1;
        set_page_address(page, (void *)vaddr);
  
-diff --git a/mm/huge_memory.c b/mm/huge_memory.c
-index 40f17c3..c1cc011 100644
---- a/mm/huge_memory.c
-+++ b/mm/huge_memory.c
-@@ -710,7 +710,7 @@ out:
-        * run pte_offset_map on the pmd, if an huge pmd could
-        * materialize from under us from a different thread.
-        */
--      if (unlikely(__pte_alloc(mm, vma, pmd, address)))
-+      if (unlikely(pmd_none(*pmd) && __pte_alloc(mm, vma, pmd, address)))
-               return VM_FAULT_OOM;
-       /* 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 b969ed4..10e3e37 100644
+index d7cec92..b05cc33 100644
 --- a/mm/hugetlb.c
 +++ b/mm/hugetlb.c
-@@ -2509,6 +2509,27 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2008,15 +2008,17 @@ static int hugetlb_sysctl_handler_common(bool obey_mempolicy,
+       struct hstate *h = &default_hstate;
+       unsigned long tmp;
+       int ret;
++      ctl_table_no_const hugetlb_table;
+       tmp = h->max_huge_pages;
+       if (write && h->order >= MAX_ORDER)
+               return -EINVAL;
+-      table->data = &tmp;
+-      table->maxlen = sizeof(unsigned long);
+-      ret = proc_doulongvec_minmax(table, write, buffer, length, ppos);
++      hugetlb_table = *table;
++      hugetlb_table.data = &tmp;
++      hugetlb_table.maxlen = sizeof(unsigned long);
++      ret = proc_doulongvec_minmax(&hugetlb_table, write, buffer, length, ppos);
+       if (ret)
+               goto out;
+@@ -2073,15 +2075,17 @@ int hugetlb_overcommit_handler(struct ctl_table *table, int write,
+       struct hstate *h = &default_hstate;
+       unsigned long tmp;
+       int ret;
++      ctl_table_no_const hugetlb_table;
+       tmp = h->nr_overcommit_huge_pages;
+       if (write && h->order >= MAX_ORDER)
+               return -EINVAL;
+-      table->data = &tmp;
+-      table->maxlen = sizeof(unsigned long);
+-      ret = proc_doulongvec_minmax(table, write, buffer, length, ppos);
++      hugetlb_table = *table;
++      hugetlb_table.data = &tmp;
++      hugetlb_table.maxlen = sizeof(unsigned long);
++      ret = proc_doulongvec_minmax(&hugetlb_table, write, buffer, length, ppos);
+       if (ret)
+               goto out;
+@@ -2515,6 +2519,27 @@ static int unmap_ref_private(struct mm_struct *mm, struct vm_area_struct *vma,
        return 1;
  }
  
@@ -74276,7 +80533,7 @@ index b969ed4..10e3e37 100644
  /*
   * 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
-@@ -2627,6 +2648,11 @@ retry_avoidcopy:
+@@ -2633,6 +2658,11 @@ retry_avoidcopy:
                                make_huge_pte(vma, new_page, 1));
                page_remove_rmap(old_page);
                hugepage_add_new_anon_rmap(new_page, vma, address);
@@ -74288,7 +80545,7 @@ index b969ed4..10e3e37 100644
                /* Make the old page be freed below */
                new_page = old_page;
        }
-@@ -2786,6 +2812,10 @@ retry:
+@@ -2792,6 +2822,10 @@ retry:
                                && (vma->vm_flags & VM_SHARED)));
        set_huge_pte_at(mm, address, ptep, new_pte);
  
@@ -74299,7 +80556,7 @@ index b969ed4..10e3e37 100644
        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);
-@@ -2815,6 +2845,10 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2821,6 +2855,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);
  
@@ -74310,7 +80567,7 @@ index b969ed4..10e3e37 100644
        address &= huge_page_mask(h);
  
        ptep = huge_pte_offset(mm, address);
-@@ -2828,6 +2862,26 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2834,6 +2872,26 @@ int hugetlb_fault(struct mm_struct *mm, struct vm_area_struct *vma,
                                VM_FAULT_SET_HINDEX(hstate_index(h));
        }
  
@@ -74338,10 +80595,10 @@ index b969ed4..10e3e37 100644
        if (!ptep)
                return VM_FAULT_OOM;
 diff --git a/mm/internal.h b/mm/internal.h
-index 3c5197d..08d0065 100644
+index 9ba2110..eaf0674 100644
 --- a/mm/internal.h
 +++ b/mm/internal.h
-@@ -95,6 +95,7 @@ extern void putback_lru_page(struct page *page);
+@@ -100,6 +100,7 @@ extern pmd_t *mm_find_pmd(struct mm_struct *mm, unsigned long address);
   * in mm/page_alloc.c
   */
  extern void __free_pages_bootmem(struct page *page, unsigned int order);
@@ -74350,7 +80607,7 @@ index 3c5197d..08d0065 100644
  #ifdef CONFIG_MEMORY_FAILURE
  extern bool is_free_buddy_page(struct page *page);
 diff --git a/mm/kmemleak.c b/mm/kmemleak.c
-index a217cc5..44b2b35 100644
+index 752a705..6c3102e 100644
 --- a/mm/kmemleak.c
 +++ b/mm/kmemleak.c
 @@ -363,7 +363,7 @@ static void print_unreferenced(struct seq_file *seq,
@@ -74362,7 +80619,7 @@ index a217cc5..44b2b35 100644
        }
  }
  
-@@ -1852,7 +1852,7 @@ static int __init kmemleak_late_init(void)
+@@ -1853,7 +1853,7 @@ static int __init kmemleak_late_init(void)
                return -ENOMEM;
        }
  
@@ -74474,7 +80731,7 @@ index 03dfa5c..b032917 100644
        if (end == start)
                goto out;
 diff --git a/mm/memory-failure.c b/mm/memory-failure.c
-index 8b20278..05dac18 100644
+index c6e4dd3..1f41988 100644
 --- a/mm/memory-failure.c
 +++ b/mm/memory-failure.c
 @@ -61,7 +61,7 @@ int sysctl_memory_failure_early_kill __read_mostly = 0;
@@ -74495,6 +80752,15 @@ index 8b20278..05dac18 100644
  #ifdef __ARCH_SI_TRAPNO
        si.si_trapno = trapno;
  #endif
+@@ -760,7 +760,7 @@ static struct page_state {
+       unsigned long res;
+       char *msg;
+       int (*action)(struct page *p, unsigned long pfn);
+-} error_states[] = {
++} __do_const error_states[] = {
+       { reserved,     reserved,       "reserved kernel",      me_kernel },
+       /*
+        * free pages are specially detected outside this table:
 @@ -1040,7 +1040,7 @@ int memory_failure(unsigned long pfn, int trapno, int flags)
        }
  
@@ -74549,7 +80815,7 @@ index 8b20278..05dac18 100644
                                &mce_bad_pages);
        set_page_hwpoison_huge_page(hpage);
        dequeue_hwpoisoned_huge_page(hpage);
-@@ -1582,7 +1582,7 @@ int soft_offline_page(struct page *page, int flags)
+@@ -1583,7 +1583,7 @@ int soft_offline_page(struct page *page, int flags)
                return ret;
  
  done:
@@ -74559,10 +80825,10 @@ index 8b20278..05dac18 100644
        /* keep elevated page count for bad page */
        return ret;
 diff --git a/mm/memory.c b/mm/memory.c
-index f2973b2..fd020a7 100644
+index bb1369f..b9631d2 100644
 --- a/mm/memory.c
 +++ b/mm/memory.c
-@@ -431,6 +431,7 @@ static inline void free_pmd_range(struct mmu_gather *tlb, pud_t *pud,
+@@ -433,6 +433,7 @@ static inline void free_pmd_range(struct mmu_gather *tlb, pud_t *pud,
                free_pte_range(tlb, pmd, addr);
        } while (pmd++, addr = next, addr != end);
  
@@ -74570,7 +80836,7 @@ index f2973b2..fd020a7 100644
        start &= PUD_MASK;
        if (start < floor)
                return;
-@@ -445,6 +446,8 @@ static inline void free_pmd_range(struct mmu_gather *tlb, pud_t *pud,
+@@ -447,6 +448,8 @@ static inline void free_pmd_range(struct mmu_gather *tlb, pud_t *pud,
        pmd = pmd_offset(pud, start);
        pud_clear(pud);
        pmd_free_tlb(tlb, pmd, start);
@@ -74579,7 +80845,7 @@ index f2973b2..fd020a7 100644
  }
  
  static inline void free_pud_range(struct mmu_gather *tlb, pgd_t *pgd,
-@@ -464,6 +467,7 @@ static inline void free_pud_range(struct mmu_gather *tlb, pgd_t *pgd,
+@@ -466,6 +469,7 @@ static inline void free_pud_range(struct mmu_gather *tlb, pgd_t *pgd,
                free_pmd_range(tlb, pud, addr, next, floor, ceiling);
        } while (pud++, addr = next, addr != end);
  
@@ -74587,7 +80853,7 @@ index f2973b2..fd020a7 100644
        start &= PGDIR_MASK;
        if (start < floor)
                return;
-@@ -478,6 +482,8 @@ static inline void free_pud_range(struct mmu_gather *tlb, pgd_t *pgd,
+@@ -480,6 +484,8 @@ static inline void free_pud_range(struct mmu_gather *tlb, pgd_t *pgd,
        pud = pud_offset(pgd, start);
        pgd_clear(pgd);
        pud_free_tlb(tlb, pud, start);
@@ -74596,7 +80862,7 @@ index f2973b2..fd020a7 100644
  }
  
  /*
-@@ -1626,12 +1632,6 @@ no_page_table:
+@@ -1618,12 +1624,6 @@ no_page_table:
        return page;
  }
  
@@ -74609,8 +80875,8 @@ index f2973b2..fd020a7 100644
  /**
   * __get_user_pages() - pin user pages in memory
   * @tsk:      task_struct of target task
-@@ -1704,10 +1704,10 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
-                       (VM_MAYREAD | VM_MAYWRITE) : (VM_READ | VM_WRITE);
+@@ -1709,10 +1709,10 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
        i = 0;
  
 -      do {
@@ -74622,7 +80888,7 @@ index f2973b2..fd020a7 100644
                if (!vma && in_gate_area(mm, start)) {
                        unsigned long pg = start & PAGE_MASK;
                        pgd_t *pgd;
-@@ -1755,7 +1755,7 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
+@@ -1760,7 +1760,7 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
                        goto next_page;
                }
  
@@ -74631,7 +80897,7 @@ index f2973b2..fd020a7 100644
                    (vma->vm_flags & (VM_IO | VM_PFNMAP)) ||
                    !(vm_flags & vma->vm_flags))
                        return i ? : -EFAULT;
-@@ -1782,11 +1782,6 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
+@@ -1787,11 +1787,6 @@ int __get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
                                int ret;
                                unsigned int fault_flags = 0;
  
@@ -74643,7 +80909,7 @@ index f2973b2..fd020a7 100644
                                if (foll_flags & FOLL_WRITE)
                                        fault_flags |= FAULT_FLAG_WRITE;
                                if (nonblocking)
-@@ -1860,7 +1855,7 @@ next_page:
+@@ -1865,7 +1860,7 @@ next_page:
                        start += PAGE_SIZE;
                        nr_pages--;
                } while (nr_pages && start < vma->vm_end);
@@ -74652,7 +80918,7 @@ index f2973b2..fd020a7 100644
        return i;
  }
  EXPORT_SYMBOL(__get_user_pages);
-@@ -2067,6 +2062,10 @@ static int insert_page(struct vm_area_struct *vma, unsigned long addr,
+@@ -2072,6 +2067,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));
  
@@ -74663,7 +80929,7 @@ index f2973b2..fd020a7 100644
        retval = 0;
        pte_unmap_unlock(pte, ptl);
        return retval;
-@@ -2111,9 +2110,21 @@ int vm_insert_page(struct vm_area_struct *vma, unsigned long addr,
+@@ -2116,9 +2115,21 @@ int vm_insert_page(struct vm_area_struct *vma, unsigned long addr,
        if (!page_count(page))
                return -EINVAL;
        if (!(vma->vm_flags & VM_MIXEDMAP)) {
@@ -74685,7 +80951,7 @@ index f2973b2..fd020a7 100644
        }
        return insert_page(vma, addr, page, vma->vm_page_prot);
  }
-@@ -2196,6 +2207,7 @@ int vm_insert_mixed(struct vm_area_struct *vma, unsigned long addr,
+@@ -2201,6 +2212,7 @@ int vm_insert_mixed(struct vm_area_struct *vma, unsigned long addr,
                        unsigned long pfn)
  {
        BUG_ON(!(vma->vm_flags & VM_MIXEDMAP));
@@ -74693,7 +80959,7 @@ index f2973b2..fd020a7 100644
  
        if (addr < vma->vm_start || addr >= vma->vm_end)
                return -EFAULT;
-@@ -2396,7 +2408,9 @@ static int apply_to_pmd_range(struct mm_struct *mm, pud_t *pud,
+@@ -2401,7 +2413,9 @@ static int apply_to_pmd_range(struct mm_struct *mm, pud_t *pud,
  
        BUG_ON(pud_huge(*pud));
  
@@ -74704,7 +80970,7 @@ index f2973b2..fd020a7 100644
        if (!pmd)
                return -ENOMEM;
        do {
-@@ -2416,7 +2430,9 @@ static int apply_to_pud_range(struct mm_struct *mm, pgd_t *pgd,
+@@ -2421,7 +2435,9 @@ static int apply_to_pud_range(struct mm_struct *mm, pgd_t *pgd,
        unsigned long next;
        int err;
  
@@ -74715,7 +80981,7 @@ index f2973b2..fd020a7 100644
        if (!pud)
                return -ENOMEM;
        do {
-@@ -2504,6 +2520,186 @@ static inline void cow_user_page(struct page *dst, struct page *src, unsigned lo
+@@ -2509,6 +2525,186 @@ static inline void cow_user_page(struct page *dst, struct page *src, unsigned lo
                copy_user_highpage(dst, src, va, vma);
  }
  
@@ -74902,7 +81168,7 @@ index f2973b2..fd020a7 100644
  /*
   * 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
-@@ -2720,6 +2916,12 @@ gotten:
+@@ -2725,6 +2921,12 @@ gotten:
         */
        page_table = pte_offset_map_lock(mm, pmd, address, &ptl);
        if (likely(pte_same(*page_table, orig_pte))) {
@@ -74915,7 +81181,7 @@ index f2973b2..fd020a7 100644
                if (old_page) {
                        if (!PageAnon(old_page)) {
                                dec_mm_counter_fast(mm, MM_FILEPAGES);
-@@ -2771,6 +2973,10 @@ gotten:
+@@ -2776,6 +2978,10 @@ gotten:
                        page_remove_rmap(old_page);
                }
  
@@ -75077,7 +81343,7 @@ index f2973b2..fd020a7 100644
        } else {
                if (cow_page)
                        mem_cgroup_uncharge_page(cow_page);
-@@ -3497,6 +3700,12 @@ int handle_pte_fault(struct mm_struct *mm,
+@@ -3664,6 +3867,12 @@ int handle_pte_fault(struct mm_struct *mm,
                if (flags & FAULT_FLAG_WRITE)
                        flush_tlb_fix_spurious_fault(vma, address);
        }
@@ -75090,7 +81356,7 @@ index f2973b2..fd020a7 100644
  unlock:
        pte_unmap_unlock(pte, ptl);
        return 0;
-@@ -3513,6 +3722,10 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3680,6 +3889,10 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
        pmd_t *pmd;
        pte_t *pte;
  
@@ -75101,7 +81367,7 @@ index f2973b2..fd020a7 100644
        __set_current_state(TASK_RUNNING);
  
        count_vm_event(PGFAULT);
-@@ -3524,6 +3737,34 @@ int handle_mm_fault(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -3691,6 +3904,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);
  
@@ -75136,16 +81402,7 @@ index f2973b2..fd020a7 100644
  retry:
        pgd = pgd_offset(mm, address);
        pud = pud_alloc(mm, pgd, address);
-@@ -3565,7 +3806,7 @@ retry:
-        * run pte_offset_map on the pmd, if an huge pmd could
-        * materialize from under us from a different thread.
-        */
--      if (unlikely(pmd_none(*pmd)) && __pte_alloc(mm, vma, pmd, address))
-+      if (unlikely(pmd_none(*pmd) && __pte_alloc(mm, vma, pmd, address)))
-               return VM_FAULT_OOM;
-       /* if an huge pmd materialized from under us just retry later */
-       if (unlikely(pmd_trans_huge(*pmd)))
-@@ -3602,6 +3843,23 @@ int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address)
+@@ -3789,6 +4030,23 @@ int __pud_alloc(struct mm_struct *mm, pgd_t *pgd, unsigned long address)
        spin_unlock(&mm->page_table_lock);
        return 0;
  }
@@ -75169,7 +81426,7 @@ index f2973b2..fd020a7 100644
  #endif /* __PAGETABLE_PUD_FOLDED */
  
  #ifndef __PAGETABLE_PMD_FOLDED
-@@ -3632,6 +3890,30 @@ int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address)
+@@ -3819,11 +4077,35 @@ int __pmd_alloc(struct mm_struct *mm, pud_t *pud, unsigned long address)
        spin_unlock(&mm->page_table_lock);
        return 0;
  }
@@ -75199,8 +81456,15 @@ index f2973b2..fd020a7 100644
 +}
  #endif /* __PAGETABLE_PMD_FOLDED */
  
- int make_pages_present(unsigned long addr, unsigned long end)
-@@ -3669,7 +3951,7 @@ static int __init gate_vma_init(void)
+-int make_pages_present(unsigned long addr, unsigned long end)
++ssize_t make_pages_present(unsigned long addr, unsigned long end)
+ {
+-      int ret, len, write;
++      ssize_t ret, len, write;
+       struct vm_area_struct * vma;
+       vma = find_vma(current->mm, addr);
+@@ -3856,7 +4138,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;
@@ -75209,11 +81473,68 @@ index f2973b2..fd020a7 100644
  
        return 0;
  }
+@@ -3990,8 +4272,8 @@ out:
+       return ret;
+ }
+-int generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
+-                      void *buf, int len, int write)
++ssize_t generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
++                      void *buf, size_t len, int write)
+ {
+       resource_size_t phys_addr;
+       unsigned long prot = 0;
+@@ -4016,8 +4298,8 @@ int generic_access_phys(struct vm_area_struct *vma, unsigned long addr,
+  * Access another process' address space as given in mm.  If non-NULL, use the
+  * given task for page fault accounting.
+  */
+-static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
+-              unsigned long addr, void *buf, int len, int write)
++static ssize_t __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
++              unsigned long addr, void *buf, size_t len, int write)
+ {
+       struct vm_area_struct *vma;
+       void *old_buf = buf;
+@@ -4025,7 +4307,7 @@ static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
+       down_read(&mm->mmap_sem);
+       /* ignore errors, just check how much was successfully transferred */
+       while (len) {
+-              int bytes, ret, offset;
++              ssize_t bytes, ret, offset;
+               void *maddr;
+               struct page *page = NULL;
+@@ -4084,8 +4366,8 @@ static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
+  *
+  * The caller must hold a reference on @mm.
+  */
+-int access_remote_vm(struct mm_struct *mm, unsigned long addr,
+-              void *buf, int len, int write)
++ssize_t access_remote_vm(struct mm_struct *mm, unsigned long addr,
++              void *buf, size_t len, int write)
+ {
+       return __access_remote_vm(NULL, mm, addr, buf, len, write);
+ }
+@@ -4095,11 +4377,11 @@ int access_remote_vm(struct mm_struct *mm, unsigned long addr,
+  * Source/target buffer must be kernel space,
+  * Do not walk the page table directly, use get_user_pages
+  */
+-int access_process_vm(struct task_struct *tsk, unsigned long addr,
+-              void *buf, int len, int write)
++ssize_t access_process_vm(struct task_struct *tsk, unsigned long addr,
++              void *buf, size_t len, int write)
+ {
+       struct mm_struct *mm;
+-      int ret;
++      ssize_t ret;
+       mm = get_task_mm(tsk);
+       if (!mm)
 diff --git a/mm/mempolicy.c b/mm/mempolicy.c
-index 002c281..9429765 100644
+index 3df6d12..a11056a 100644
 --- a/mm/mempolicy.c
 +++ b/mm/mempolicy.c
-@@ -655,6 +655,10 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
+@@ -721,6 +721,10 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
        unsigned long vmstart;
        unsigned long vmend;
  
@@ -75224,7 +81545,7 @@ index 002c281..9429765 100644
        vma = find_vma(mm, start);
        if (!vma || vma->vm_start > start)
                return -EFAULT;
-@@ -691,9 +695,20 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
+@@ -757,9 +761,20 @@ static int mbind_range(struct mm_struct *mm, unsigned long start,
                        if (err)
                                goto out;
                }
@@ -75245,7 +81566,7 @@ index 002c281..9429765 100644
        }
  
   out:
-@@ -1150,6 +1165,17 @@ static long do_mbind(unsigned long start, unsigned long len,
+@@ -1216,6 +1231,17 @@ static long do_mbind(unsigned long start, unsigned long len,
  
        if (end < start)
                return -EINVAL;
@@ -75263,7 +81584,7 @@ index 002c281..9429765 100644
        if (end == start)
                return 0;
  
-@@ -1373,8 +1399,7 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
+@@ -1445,8 +1471,7 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
         */
        tcred = __task_cred(task);
        if (!uid_eq(cred->euid, tcred->suid) && !uid_eq(cred->euid, tcred->uid) &&
@@ -75273,7 +81594,7 @@ index 002c281..9429765 100644
                rcu_read_unlock();
                err = -EPERM;
                goto out_put;
-@@ -1405,6 +1430,15 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
+@@ -1477,6 +1502,15 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,
                goto out;
        }
  
@@ -75290,10 +81611,10 @@ index 002c281..9429765 100644
                capable(CAP_SYS_NICE) ? MPOL_MF_MOVE_ALL : MPOL_MF_MOVE);
  
 diff --git a/mm/migrate.c b/mm/migrate.c
-index 346d32d..d7adff2 100644
+index 2fd8b4a..d70358f 100644
 --- a/mm/migrate.c
 +++ b/mm/migrate.c
-@@ -1352,8 +1352,7 @@ SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages,
+@@ -1401,8 +1401,7 @@ SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages,
         */
        tcred = __task_cred(task);
        if (!uid_eq(cred->euid, tcred->suid) && !uid_eq(cred->euid, tcred->uid) &&
@@ -75304,7 +81625,7 @@ index 346d32d..d7adff2 100644
                err = -EPERM;
                goto out;
 diff --git a/mm/mlock.c b/mm/mlock.c
-index f0b9ce5..da8d069 100644
+index c9bd528..da8d069 100644
 --- a/mm/mlock.c
 +++ b/mm/mlock.c
 @@ -13,6 +13,7 @@
@@ -75354,21 +81675,7 @@ index f0b9ce5..da8d069 100644
        if ((locked <= lock_limit) || capable(CAP_IPC_LOCK))
                error = do_mlock(start, len, 1);
        up_write(&current->mm->mmap_sem);
-@@ -517,17 +527,23 @@ SYSCALL_DEFINE2(munlock, unsigned long, start, size_t, len)
- static int do_mlockall(int flags)
- {
-       struct vm_area_struct * vma, * prev = NULL;
--      unsigned int def_flags = 0;
-       if (flags & MCL_FUTURE)
--              def_flags = VM_LOCKED;
--      current->mm->def_flags = def_flags;
-+              current->mm->def_flags |= VM_LOCKED;
-+      else
-+              current->mm->def_flags &= ~VM_LOCKED;
-       if (flags == MCL_FUTURE)
-               goto out;
+@@ -528,6 +538,12 @@ static int do_mlockall(int flags)
        for (vma = current->mm->mmap; vma ; vma = prev->vm_next) {
                vm_flags_t newflags;
  
@@ -75390,18 +81697,18 @@ index f0b9ce5..da8d069 100644
            capable(CAP_IPC_LOCK))
                ret = do_mlockall(flags);
 diff --git a/mm/mmap.c b/mm/mmap.c
-index 9a796c4..e2c9724 100644
+index 8832b87..04240d1 100644
 --- a/mm/mmap.c
 +++ b/mm/mmap.c
-@@ -31,6 +31,7 @@
- #include <linux/audit.h>
+@@ -32,6 +32,7 @@
  #include <linux/khugepaged.h>
  #include <linux/uprobes.h>
+ #include <linux/rbtree_augmented.h>
 +#include <linux/random.h>
  
  #include <asm/uaccess.h>
  #include <asm/cacheflush.h>
-@@ -47,6 +48,16 @@
+@@ -48,6 +49,16 @@
  #define arch_rebalance_pgtables(addr, len)            (addr)
  #endif
  
@@ -75418,7 +81725,7 @@ index 9a796c4..e2c9724 100644
  static void unmap_region(struct mm_struct *mm,
                struct vm_area_struct *vma, struct vm_area_struct *prev,
                unsigned long start, unsigned long end);
-@@ -66,22 +77,32 @@ static void unmap_region(struct mm_struct *mm,
+@@ -67,22 +78,32 @@ static void unmap_region(struct mm_struct *mm,
   *            x: (no) no      x: (no) yes     x: (no) yes     x: (yes) yes
   *
   */
@@ -75454,7 +81761,7 @@ index 9a796c4..e2c9724 100644
  /*
   * Make sure vm_committed_as in one cacheline and not cacheline shared with
   * other variables. It can be updated by several CPUs frequently.
-@@ -223,6 +244,7 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)
+@@ -238,6 +259,7 @@ static struct vm_area_struct *remove_vma(struct vm_area_struct *vma)
        struct vm_area_struct *next = vma->vm_next;
  
        might_sleep();
@@ -75462,7 +81769,7 @@ index 9a796c4..e2c9724 100644
        if (vma->vm_ops && vma->vm_ops->close)
                vma->vm_ops->close(vma);
        if (vma->vm_file)
-@@ -266,6 +288,7 @@ SYSCALL_DEFINE1(brk, unsigned long, brk)
+@@ -281,6 +303,7 @@ SYSCALL_DEFINE1(brk, unsigned long, brk)
         * not page aligned -Ram Gupta
         */
        rlim = rlimit(RLIMIT_DATA);
@@ -75470,7 +81777,7 @@ index 9a796c4..e2c9724 100644
        if (rlim < RLIM_INFINITY && (brk - mm->start_brk) +
                        (mm->end_data - mm->start_data) > rlim)
                goto out;
-@@ -736,6 +759,12 @@ static int
+@@ -888,6 +911,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)
  {
@@ -75483,7 +81790,7 @@ index 9a796c4..e2c9724 100644
        if (is_mergeable_vma(vma, file, vm_flags) &&
            is_mergeable_anon_vma(anon_vma, vma->anon_vma, vma)) {
                if (vma->vm_pgoff == vm_pgoff)
-@@ -755,6 +784,12 @@ static int
+@@ -907,6 +936,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)
  {
@@ -75496,7 +81803,7 @@ index 9a796c4..e2c9724 100644
        if (is_mergeable_vma(vma, file, vm_flags) &&
            is_mergeable_anon_vma(anon_vma, vma->anon_vma, vma)) {
                pgoff_t vm_pglen;
-@@ -797,13 +832,20 @@ can_vma_merge_after(struct vm_area_struct *vma, unsigned long vm_flags,
+@@ -949,13 +984,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,
@@ -75518,7 +81825,7 @@ index 9a796c4..e2c9724 100644
        /*
         * We later require that vma->vm_flags == vm_flags,
         * so this tests vma->vm_flags & VM_SPECIAL, too.
-@@ -819,6 +861,15 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
+@@ -971,6 +1013,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;
  
@@ -75534,7 +81841,7 @@ index 9a796c4..e2c9724 100644
        /*
         * Can it merge with the predecessor?
         */
-@@ -838,9 +889,24 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
+@@ -990,9 +1041,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);
@@ -75560,7 +81867,7 @@ index 9a796c4..e2c9724 100644
                if (err)
                        return NULL;
                khugepaged_enter_vma_merge(prev);
-@@ -854,12 +920,27 @@ struct vm_area_struct *vma_merge(struct mm_struct *mm,
+@@ -1006,12 +1072,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)) {
@@ -75590,16 +81897,20 @@ index 9a796c4..e2c9724 100644
                if (err)
                        return NULL;
                khugepaged_enter_vma_merge(area);
-@@ -968,16 +1049,13 @@ none:
+@@ -1120,8 +1201,10 @@ none:
  void vm_stat_account(struct mm_struct *mm, unsigned long flags,
                                                struct file *file, long pages)
  {
 -      const unsigned long stack_flags
 -              = VM_STACK_FLAGS & (VM_GROWSUP|VM_GROWSDOWN);
--
++
++#ifdef CONFIG_PAX_RANDMMAP
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP) || (flags & (VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)))
++#endif
        mm->total_vm += pages;
  
-       if (file) {
+@@ -1129,7 +1212,7 @@ void vm_stat_account(struct mm_struct *mm, unsigned long flags,
                mm->shared_vm += pages;
                if ((flags & (VM_EXEC|VM_WRITE)) == VM_EXEC)
                        mm->exec_vm += pages;
@@ -75608,7 +81919,7 @@ index 9a796c4..e2c9724 100644
                mm->stack_vm += pages;
  }
  #endif /* CONFIG_PROC_FS */
-@@ -1013,7 +1091,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -1165,7 +1248,7 @@ 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.)
         */
@@ -75617,7 +81928,7 @@ index 9a796c4..e2c9724 100644
                if (!(file && (file->f_path.mnt->mnt_flags & MNT_NOEXEC)))
                        prot |= PROT_EXEC;
  
-@@ -1039,7 +1117,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -1191,7 +1274,7 @@ 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.
         */
@@ -75626,7 +81937,7 @@ index 9a796c4..e2c9724 100644
        if (addr & ~PAGE_MASK)
                return addr;
  
-@@ -1050,6 +1128,36 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -1202,6 +1285,36 @@ 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;
  
@@ -75663,7 +81974,7 @@ index 9a796c4..e2c9724 100644
        if (flags & MAP_LOCKED)
                if (!can_do_mlock())
                        return -EPERM;
-@@ -1061,6 +1169,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -1213,6 +1326,7 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
                locked += mm->locked_vm;
                lock_limit = rlimit(RLIMIT_MEMLOCK);
                lock_limit >>= PAGE_SHIFT;
@@ -75671,7 +81982,7 @@ index 9a796c4..e2c9724 100644
                if (locked > lock_limit && !capable(CAP_IPC_LOCK))
                        return -EAGAIN;
        }
-@@ -1127,6 +1236,9 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
+@@ -1279,6 +1393,9 @@ unsigned long do_mmap_pgoff(struct file *file, unsigned long addr,
                }
        }
  
@@ -75681,7 +81992,7 @@ index 9a796c4..e2c9724 100644
        return mmap_region(file, addr, len, flags, vm_flags, pgoff);
  }
  
-@@ -1203,7 +1315,7 @@ int vma_wants_writenotify(struct vm_area_struct *vma)
+@@ -1356,7 +1473,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 */
@@ -75690,7 +82001,7 @@ index 9a796c4..e2c9724 100644
                return 0;
  
        /* The backer wishes to know when pages are first written to? */
-@@ -1252,13 +1364,22 @@ unsigned long mmap_region(struct file *file, unsigned long addr,
+@@ -1405,16 +1522,30 @@ 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;
  
@@ -75715,7 +82026,15 @@ index 9a796c4..e2c9724 100644
        }
  
        /* Check against address space limit. */
-@@ -1307,6 +1428,16 @@ munmap_back:
++
++#ifdef CONFIG_PAX_RANDMMAP
++      if (!(mm->pax_flags & MF_PAX_RANDMMAP) || (vm_flags & (VM_MAYREAD | VM_MAYWRITE | VM_MAYEXEC)))
++#endif
++
+       if (!may_expand_vm(mm, len >> PAGE_SHIFT))
+               return -ENOMEM;
+@@ -1460,6 +1591,16 @@ munmap_back:
                goto unacct_error;
        }
  
@@ -75732,7 +82051,7 @@ index 9a796c4..e2c9724 100644
        vma->vm_mm = mm;
        vma->vm_start = addr;
        vma->vm_end = addr + len;
-@@ -1331,6 +1462,13 @@ munmap_back:
+@@ -1484,6 +1625,13 @@ munmap_back:
                if (error)
                        goto unmap_and_free_vma;
  
@@ -75746,7 +82065,7 @@ index 9a796c4..e2c9724 100644
                /* Can addr have changed??
                 *
                 * Answer: Yes, several device drivers can do it in their
-@@ -1365,6 +1503,11 @@ munmap_back:
+@@ -1522,6 +1670,11 @@ munmap_back:
        vma_link(mm, vma, prev, rb_link, rb_parent);
        file = vma->vm_file;
  
@@ -75758,7 +82077,7 @@ index 9a796c4..e2c9724 100644
        /* Once vma denies write, undo our temporary denial count */
        if (correct_wcount)
                atomic_inc(&inode->i_writecount);
-@@ -1372,6 +1515,7 @@ out:
+@@ -1529,6 +1682,7 @@ out:
        perf_event_mmap(vma);
  
        vm_stat_account(mm, vm_flags, file, len >> PAGE_SHIFT);
@@ -75766,7 +82085,7 @@ index 9a796c4..e2c9724 100644
        if (vm_flags & VM_LOCKED) {
                if (!mlock_vma_pages_range(vma, addr, addr + len))
                        mm->locked_vm += (len >> PAGE_SHIFT);
-@@ -1393,6 +1537,12 @@ unmap_and_free_vma:
+@@ -1550,6 +1704,12 @@ unmap_and_free_vma:
        unmap_region(mm, vma, prev, vma->vm_start, vma->vm_end);
        charged = 0;
  free_vma:
@@ -75779,7 +82098,7 @@ index 9a796c4..e2c9724 100644
        kmem_cache_free(vm_area_cachep, vma);
  unacct_error:
        if (charged)
-@@ -1400,6 +1550,62 @@ unacct_error:
+@@ -1557,6 +1717,62 @@ unacct_error:
        return error;
  }
  
@@ -75839,18 +82158,18 @@ index 9a796c4..e2c9724 100644
 +      return -ENOMEM;
 +}
 +
- /* Get an address range which is currently unmapped.
-  * For shmat() with addr=0.
-  *
-@@ -1419,6 +1625,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+ unsigned long unmapped_area(struct vm_unmapped_area_info *info)
+ {
+       /*
+@@ -1776,6 +1992,7 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
        struct mm_struct *mm = current->mm;
        struct vm_area_struct *vma;
-       unsigned long start_addr;
+       struct vm_unmapped_area_info info;
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
  
        if (len > TASK_SIZE)
                return -ENOMEM;
-@@ -1426,18 +1633,23 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
+@@ -1783,17 +2000,26 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
        if (flags & MAP_FIXED)
                return addr;
  
@@ -75860,62 +82179,26 @@ index 9a796c4..e2c9724 100644
 +
        if (addr) {
                addr = PAGE_ALIGN(addr);
--              vma = find_vma(mm, addr);
+               vma = find_vma(mm, addr);
 -              if (TASK_SIZE - len >= addr &&
 -                  (!vma || addr + len <= vma->vm_start))
--                      return addr;
-+              if (TASK_SIZE - len >= addr) {
-+                      vma = find_vma(mm, addr);
-+                      if (check_heap_stack_gap(vma, addr, len, offset))
-+                              return addr;
-+              }
-       }
-       if (len > mm->cached_hole_size) {
--              start_addr = addr = mm->free_area_cache;
-+              start_addr = addr = mm->free_area_cache;
-       } else {
--              start_addr = addr = TASK_UNMAPPED_BASE;
--              mm->cached_hole_size = 0;
-+              start_addr = addr = mm->mmap_base;
-+              mm->cached_hole_size = 0;
++              if (TASK_SIZE - len >= addr && check_heap_stack_gap(vma, addr, len, offset))
+                       return addr;
        }
  
- full_search:
-@@ -1448,34 +1660,40 @@ full_search:
-                        * Start a new search - just in case we missed
-                        * some holes.
-                        */
--                      if (start_addr != TASK_UNMAPPED_BASE) {
--                              addr = TASK_UNMAPPED_BASE;
--                              start_addr = addr;
-+                      if (start_addr != mm->mmap_base) {
-+                              start_addr = addr = mm->mmap_base;
-                               mm->cached_hole_size = 0;
-                               goto full_search;
-                       }
-                       return -ENOMEM;
-               }
--              if (!vma || addr + len <= vma->vm_start) {
--                      /*
--                       * Remember the place where we stopped the search:
--                       */
--                      mm->free_area_cache = addr + len;
--                      return addr;
--              }
-+              if (check_heap_stack_gap(vma, addr, len, offset))
-+                      break;
-               if (addr + mm->cached_hole_size < vma->vm_start)
-                       mm->cached_hole_size = vma->vm_start - addr;
-               addr = vma->vm_end;
-       }
+       info.flags = 0;
+       info.length = len;
+       info.low_limit = TASK_UNMAPPED_BASE;
 +
-+      /*
-+       * Remember the place where we stopped the search:
-+       */
-+      mm->free_area_cache = addr + len;
-+      return addr;
- }
- #endif        
++#ifdef CONFIG_PAX_RANDMMAP
++      if (mm->pax_flags & MF_PAX_RANDMMAP)
++              info.low_limit += mm->delta_mmap;
++#endif
++
+       info.high_limit = TASK_SIZE;
+       info.align_mask = 0;
+       return vm_unmapped_area(&info);
+@@ -1802,10 +2028,16 @@ arch_get_unmapped_area(struct file *filp, unsigned long addr,
  
  void arch_unmap_area(struct mm_struct *mm, unsigned long addr)
  {
@@ -75933,17 +82216,15 @@ index 9a796c4..e2c9724 100644
                mm->free_area_cache = addr;
  }
  
-@@ -1491,7 +1709,8 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
- {
-       struct vm_area_struct *vma;
+@@ -1823,6 +2055,7 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
        struct mm_struct *mm = current->mm;
--      unsigned long addr = addr0, start_addr;
-+      unsigned long base = mm->mmap_base, addr = addr0, start_addr;
+       unsigned long addr = addr0;
+       struct vm_unmapped_area_info info;
 +      unsigned long offset = gr_rand_threadstack_offset(mm, filp, flags);
  
        /* requested length too big for entire address space */
        if (len > TASK_SIZE)
-@@ -1500,13 +1719,18 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+@@ -1831,12 +2064,15 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
        if (flags & MAP_FIXED)
                return addr;
  
@@ -75954,63 +82235,27 @@ index 9a796c4..e2c9724 100644
        /* requesting a specific address */
        if (addr) {
                addr = PAGE_ALIGN(addr);
--              vma = find_vma(mm, addr);
+               vma = find_vma(mm, addr);
 -              if (TASK_SIZE - len >= addr &&
 -                              (!vma || addr + len <= vma->vm_start))
--                      return addr;
-+              if (TASK_SIZE - len >= addr) {
-+                      vma = find_vma(mm, addr);
-+                      if (check_heap_stack_gap(vma, addr, len, offset))
-+                              return addr;
-+              }
++              if (TASK_SIZE - len >= addr && check_heap_stack_gap(vma, addr, len, offset))
+                       return addr;
        }
  
-       /* check if free_area_cache is useful for us */
-@@ -1530,7 +1754,7 @@ try_again:
-                * return with success:
-                */
-               vma = find_vma(mm, addr);
--              if (!vma || addr+len <= vma->vm_start)
-+              if (check_heap_stack_gap(vma, addr, len, offset))
-                       /* remember the address as a hint for next time */
-                       return (mm->free_area_cache = addr);
-@@ -1539,8 +1763,8 @@ try_again:
-                       mm->cached_hole_size = vma->vm_start - addr;
-               /* try just below the current vma->vm_start */
--              addr = vma->vm_start-len;
--      } while (len < vma->vm_start);
-+              addr = skip_heap_stack_gap(vma, len, offset);
-+      } while (!IS_ERR_VALUE(addr));
- fail:
-       /*
-@@ -1563,13 +1787,21 @@ fail:
-        * can happen with large stack limits and large mmap()
-        * allocations.
-        */
-+      mm->mmap_base = TASK_UNMAPPED_BASE;
+@@ -1857,6 +2093,12 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
+               VM_BUG_ON(addr != -ENOMEM);
+               info.flags = 0;
+               info.low_limit = TASK_UNMAPPED_BASE;
 +
 +#ifdef CONFIG_PAX_RANDMMAP
-+      if (mm->pax_flags & MF_PAX_RANDMMAP)
-+              mm->mmap_base += mm->delta_mmap;
++              if (mm->pax_flags & MF_PAX_RANDMMAP)
++                      info.low_limit += mm->delta_mmap;
 +#endif
 +
-+      mm->free_area_cache = mm->mmap_base;
-       mm->cached_hole_size = ~0UL;
--      mm->free_area_cache = TASK_UNMAPPED_BASE;
-       addr = arch_get_unmapped_area(filp, addr0, len, pgoff, flags);
-       /*
-        * Restore the topdown base:
-        */
--      mm->free_area_cache = mm->mmap_base;
-+      mm->mmap_base = base;
-+      mm->free_area_cache = base;
-       mm->cached_hole_size = ~0UL;
-       return addr;
-@@ -1578,6 +1810,12 @@ fail:
+               info.high_limit = TASK_SIZE;
+               addr = vm_unmapped_area(&info);
+       }
+@@ -1867,6 +2109,12 @@ arch_get_unmapped_area_topdown(struct file *filp, const unsigned long addr0,
  
  void arch_unmap_area_topdown(struct mm_struct *mm, unsigned long addr)
  {
@@ -76023,7 +82268,7 @@ index 9a796c4..e2c9724 100644
        /*
         * Is this a new hole at the highest possible address?
         */
-@@ -1585,8 +1823,10 @@ void arch_unmap_area_topdown(struct mm_struct *mm, unsigned long addr)
+@@ -1874,8 +2122,10 @@ void arch_unmap_area_topdown(struct mm_struct *mm, unsigned long addr)
                mm->free_area_cache = addr;
  
        /* dont allow allocations above current base */
@@ -76035,7 +82280,16 @@ index 9a796c4..e2c9724 100644
  }
  
  unsigned long
-@@ -1685,6 +1925,28 @@ find_vma_prev(struct mm_struct *mm, unsigned long addr,
+@@ -1922,7 +2172,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
+       /* Check the cache first. */
+       /* (Cache hit rate is typically around 35%.) */
+-      vma = mm->mmap_cache;
++      vma = ACCESS_ONCE(mm->mmap_cache);
+       if (!(vma && vma->vm_end > addr && vma->vm_start <= addr)) {
+               struct rb_node *rb_node;
+@@ -1974,6 +2224,28 @@ find_vma_prev(struct mm_struct *mm, unsigned long addr,
        return vma;
  }
  
@@ -76064,7 +82318,7 @@ index 9a796c4..e2c9724 100644
  /*
   * Verify that the stack growth is acceptable and
   * update accounting. This is shared with both the
-@@ -1701,6 +1963,7 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
+@@ -1990,6 +2262,7 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
                return -ENOMEM;
  
        /* Stack limit test */
@@ -76072,7 +82326,7 @@ index 9a796c4..e2c9724 100644
        if (size > ACCESS_ONCE(rlim[RLIMIT_STACK].rlim_cur))
                return -ENOMEM;
  
-@@ -1711,6 +1974,7 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
+@@ -2000,6 +2273,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;
@@ -76080,7 +82334,7 @@ index 9a796c4..e2c9724 100644
                if (locked > limit && !capable(CAP_IPC_LOCK))
                        return -ENOMEM;
        }
-@@ -1740,37 +2004,48 @@ static int acct_stack_growth(struct vm_area_struct *vma, unsigned long size, uns
+@@ -2029,37 +2303,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.
   */
@@ -76138,7 +82392,7 @@ index 9a796c4..e2c9724 100644
                unsigned long size, grow;
  
                size = address - vma->vm_start;
-@@ -1787,6 +2062,8 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
+@@ -2094,6 +2379,8 @@ int expand_upwards(struct vm_area_struct *vma, unsigned long address)
                        }
                }
        }
@@ -76147,7 +82401,7 @@ index 9a796c4..e2c9724 100644
        vma_unlock_anon_vma(vma);
        khugepaged_enter_vma_merge(vma);
        validate_mm(vma->vm_mm);
-@@ -1801,6 +2078,8 @@ int expand_downwards(struct vm_area_struct *vma,
+@@ -2108,6 +2395,8 @@ int expand_downwards(struct vm_area_struct *vma,
                                   unsigned long address)
  {
        int error;
@@ -76156,7 +82410,7 @@ index 9a796c4..e2c9724 100644
  
        /*
         * We must make sure the anon_vma is allocated
-@@ -1814,6 +2093,15 @@ int expand_downwards(struct vm_area_struct *vma,
+@@ -2121,6 +2410,15 @@ int expand_downwards(struct vm_area_struct *vma,
        if (error)
                return error;
  
@@ -76172,7 +82426,7 @@ index 9a796c4..e2c9724 100644
        vma_lock_anon_vma(vma);
  
        /*
-@@ -1823,9 +2111,17 @@ int expand_downwards(struct vm_area_struct *vma,
+@@ -2130,9 +2428,17 @@ int expand_downwards(struct vm_area_struct *vma,
         */
  
        /* Somebody else might have raced and expanded it already */
@@ -76191,10 +82445,10 @@ index 9a796c4..e2c9724 100644
                size = vma->vm_end - address;
                grow = (vma->vm_start - address) >> PAGE_SHIFT;
  
-@@ -1837,6 +2133,17 @@ int expand_downwards(struct vm_area_struct *vma,
-                               vma->vm_start = address;
+@@ -2157,6 +2463,18 @@ int expand_downwards(struct vm_area_struct *vma,
                                vma->vm_pgoff -= grow;
                                anon_vma_interval_tree_post_update_vma(vma);
+                               vma_gap_update(vma);
 +                              track_exec_limit(vma->vm_mm, vma->vm_start, vma->vm_end, vma->vm_flags);
 +
 +#ifdef CONFIG_PAX_SEGMEXEC
@@ -76203,13 +82457,14 @@ index 9a796c4..e2c9724 100644
 +                                      vma_m->vm_start -= grow << PAGE_SHIFT;
 +                                      vma_m->vm_pgoff -= grow;
 +                                      anon_vma_interval_tree_post_update_vma(vma_m);
++                                      vma_gap_update(vma_m);
 +                              }
 +#endif
 +
+                               spin_unlock(&vma->vm_mm->page_table_lock);
                                perf_event_mmap(vma);
-                       }
-               }
-@@ -1914,6 +2221,13 @@ static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma)
+@@ -2263,6 +2581,13 @@ static void remove_vma_list(struct mm_struct *mm, struct vm_area_struct *vma)
        do {
                long nrpages = vma_pages(vma);
  
@@ -76223,7 +82478,7 @@ index 9a796c4..e2c9724 100644
                if (vma->vm_flags & VM_ACCOUNT)
                        nr_accounted += nrpages;
                vm_stat_account(mm, vma->vm_flags, vma->vm_file, -nrpages);
-@@ -1959,6 +2273,16 @@ detach_vmas_to_be_unmapped(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2308,6 +2633,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 {
@@ -76237,10 +82492,10 @@ index 9a796c4..e2c9724 100644
 +              }
 +#endif
 +
-               rb_erase(&vma->vm_rb, &mm->mm_rb);
+               vma_rb_erase(vma, &mm->mm_rb);
                mm->map_count--;
                tail_vma = vma;
-@@ -1987,14 +2311,33 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -2339,14 +2674,33 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
        struct vm_area_struct *new;
        int err = -ENOMEM;
  
@@ -76274,7 +82529,7 @@ index 9a796c4..e2c9724 100644
        /* most fields are the same, copy all, and then fixup */
        *new = *vma;
  
-@@ -2007,6 +2350,22 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -2359,6 +2713,22 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
                new->vm_pgoff += ((addr - vma->vm_start) >> PAGE_SHIFT);
        }
  
@@ -76297,7 +82552,7 @@ index 9a796c4..e2c9724 100644
        pol = mpol_dup(vma_policy(vma));
        if (IS_ERR(pol)) {
                err = PTR_ERR(pol);
-@@ -2029,6 +2388,36 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -2381,6 +2751,36 @@ 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);
  
@@ -76334,7 +82589,7 @@ index 9a796c4..e2c9724 100644
        /* Success. */
        if (!err)
                return 0;
-@@ -2038,10 +2427,18 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -2390,10 +2790,18 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
                new->vm_ops->close(new);
        if (new->vm_file)
                fput(new->vm_file);
@@ -76354,7 +82609,7 @@ index 9a796c4..e2c9724 100644
        kmem_cache_free(vm_area_cachep, new);
   out_err:
        return err;
-@@ -2054,6 +2451,15 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,
+@@ -2406,6 +2814,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)
  {
@@ -76370,7 +82625,7 @@ index 9a796c4..e2c9724 100644
        if (mm->map_count >= sysctl_max_map_count)
                return -ENOMEM;
  
-@@ -2065,11 +2471,30 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -2417,11 +2834,30 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
   * work.  This now handles partial unmappings.
   * Jeremy Fitzhardinge <jeremy@goop.org>
   */
@@ -76401,7 +82656,7 @@ index 9a796c4..e2c9724 100644
        if ((start & ~PAGE_MASK) || start > TASK_SIZE || len > TASK_SIZE-start)
                return -EINVAL;
  
-@@ -2144,6 +2569,8 @@ int do_munmap(struct mm_struct *mm, unsigned long start, size_t len)
+@@ -2496,6 +2932,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);
  
@@ -76410,7 +82665,7 @@ index 9a796c4..e2c9724 100644
        return 0;
  }
  
-@@ -2152,6 +2579,13 @@ int vm_munmap(unsigned long start, size_t len)
+@@ -2504,6 +2942,13 @@ int vm_munmap(unsigned long start, size_t len)
        int ret;
        struct mm_struct *mm = current->mm;
  
@@ -76424,7 +82679,7 @@ index 9a796c4..e2c9724 100644
        down_write(&mm->mmap_sem);
        ret = do_munmap(mm, start, len);
        up_write(&mm->mmap_sem);
-@@ -2165,16 +2599,6 @@ SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
+@@ -2517,16 +2962,6 @@ SYSCALL_DEFINE2(munmap, unsigned long, addr, size_t, len)
        return vm_munmap(addr, len);
  }
  
@@ -76441,7 +82696,7 @@ index 9a796c4..e2c9724 100644
  /*
   *  this is really a simplified "do_mmap".  it only handles
   *  anonymous maps.  eventually we may be able to do some
-@@ -2188,6 +2612,7 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2540,6 +2975,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;
@@ -76449,7 +82704,7 @@ index 9a796c4..e2c9724 100644
  
        len = PAGE_ALIGN(len);
        if (!len)
-@@ -2195,16 +2620,30 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2547,16 +2983,30 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
  
        flags = VM_DATA_DEFAULT_FLAGS | VM_ACCOUNT | mm->def_flags;
  
@@ -76481,7 +82736,7 @@ index 9a796c4..e2c9724 100644
                locked += mm->locked_vm;
                lock_limit = rlimit(RLIMIT_MEMLOCK);
                lock_limit >>= PAGE_SHIFT;
-@@ -2221,21 +2660,20 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2573,21 +3023,20 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
        /*
         * Clear old maps.  this also does some error checking for us
         */
@@ -76506,7 +82761,7 @@ index 9a796c4..e2c9724 100644
                return -ENOMEM;
  
        /* Can we just expand an old private anonymous mapping? */
-@@ -2249,7 +2687,7 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2601,7 +3050,7 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
         */
        vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL);
        if (!vma) {
@@ -76515,7 +82770,7 @@ index 9a796c4..e2c9724 100644
                return -ENOMEM;
        }
  
-@@ -2263,11 +2701,12 @@ static unsigned long do_brk(unsigned long addr, unsigned long len)
+@@ -2615,11 +3064,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);
@@ -76530,7 +82785,7 @@ index 9a796c4..e2c9724 100644
        return addr;
  }
  
-@@ -2325,6 +2764,7 @@ void exit_mmap(struct mm_struct *mm)
+@@ -2677,6 +3127,7 @@ void exit_mmap(struct mm_struct *mm)
        while (vma) {
                if (vma->vm_flags & VM_ACCOUNT)
                        nr_accounted += vma_pages(vma);
@@ -76538,7 +82793,7 @@ index 9a796c4..e2c9724 100644
                vma = remove_vma(vma);
        }
        vm_unacct_memory(nr_accounted);
-@@ -2341,6 +2781,13 @@ int insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)
+@@ -2693,6 +3144,13 @@ int insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)
        struct vm_area_struct *prev;
        struct rb_node **rb_link, *rb_parent;
  
@@ -76552,7 +82807,7 @@ index 9a796c4..e2c9724 100644
        /*
         * The vm_pgoff of a purely anonymous vma should be irrelevant
         * until its first write fault, when page's anon_vma and index
-@@ -2364,7 +2811,21 @@ int insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)
+@@ -2716,7 +3174,21 @@ int insert_vm_struct(struct mm_struct *mm, struct vm_area_struct *vma)
             security_vm_enough_memory_mm(mm, vma_pages(vma)))
                return -ENOMEM;
  
@@ -76574,7 +82829,7 @@ index 9a796c4..e2c9724 100644
        return 0;
  }
  
-@@ -2384,6 +2845,8 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
+@@ -2736,6 +3208,8 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
        struct mempolicy *pol;
        bool faulted_in_anon_vma = true;
  
@@ -76583,7 +82838,7 @@ index 9a796c4..e2c9724 100644
        /*
         * If anonymous vma has not yet been faulted, update new pgoff
         * to match new location, to increase its chance of merging.
-@@ -2450,6 +2913,39 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
+@@ -2802,6 +3276,39 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap,
        return NULL;
  }
  
@@ -76623,20 +82878,15 @@ index 9a796c4..e2c9724 100644
  /*
   * Return true if the calling process may expand its vm space by the passed
   * number of pages
-@@ -2461,6 +2957,12 @@ int may_expand_vm(struct mm_struct *mm, unsigned long npages)
+@@ -2813,6 +3320,7 @@ int may_expand_vm(struct mm_struct *mm, unsigned long npages)
  
        lim = rlimit(RLIMIT_AS) >> PAGE_SHIFT;
  
-+#ifdef CONFIG_PAX_RANDMMAP
-+      if (mm->pax_flags & MF_PAX_RANDMMAP)
-+              cur -= mm->brk_gap;
-+#endif
-+
 +      gr_learn_resource(current, RLIMIT_AS, (cur + npages) << PAGE_SHIFT, 1);
        if (cur + npages > lim)
                return 0;
        return 1;
-@@ -2531,6 +3033,22 @@ int install_special_mapping(struct mm_struct *mm,
+@@ -2883,6 +3391,22 @@ int install_special_mapping(struct mm_struct *mm,
        vma->vm_start = addr;
        vma->vm_end = addr + len;
  
@@ -76660,7 +82910,7 @@ index 9a796c4..e2c9724 100644
        vma->vm_page_prot = vm_get_page_prot(vma->vm_flags);
  
 diff --git a/mm/mprotect.c b/mm/mprotect.c
-index a409926..8b32e6d 100644
+index 94722a4..9837984 100644
 --- a/mm/mprotect.c
 +++ b/mm/mprotect.c
 @@ -23,10 +23,17 @@
@@ -76681,8 +82931,8 @@ index a409926..8b32e6d 100644
  
  #ifndef pgprot_modify
  static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
-@@ -141,6 +148,48 @@ static void change_protection(struct vm_area_struct *vma,
-       flush_tlb_range(vma, start, end);
+@@ -233,6 +240,48 @@ unsigned long change_protection(struct vm_area_struct *vma, unsigned long start,
+       return pages;
  }
  
 +#ifdef CONFIG_ARCH_TRACK_EXEC_LIMIT
@@ -76722,7 +82972,7 @@ index a409926..8b32e6d 100644
 +                      if (is_vm_hugetlb_page(vma))
 +                              hugetlb_change_protection(vma, vma->vm_start, vma->vm_end, vma->vm_page_prot);
 +                      else
-+                              change_protection(vma, vma->vm_start, vma->vm_end, vma->vm_page_prot, vma_wants_writenotify(vma));
++                              change_protection(vma, vma->vm_start, vma->vm_end, vma->vm_page_prot, vma_wants_writenotify(vma), 0);
 +      }
 +}
 +#endif
@@ -76730,7 +82980,7 @@ index a409926..8b32e6d 100644
  int
  mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
        unsigned long start, unsigned long end, unsigned long newflags)
-@@ -153,11 +202,29 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
+@@ -245,11 +294,29 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
        int error;
        int dirty_accountable = 0;
  
@@ -76760,7 +83010,7 @@ index a409926..8b32e6d 100644
        /*
         * If we make a private mapping writable we increase our commit;
         * but (without finer accounting) cannot reduce our commit if we
-@@ -174,6 +241,42 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
+@@ -266,6 +333,42 @@ mprotect_fixup(struct vm_area_struct *vma, struct vm_area_struct **pprev,
                }
        }
  
@@ -76803,7 +83053,7 @@ index a409926..8b32e6d 100644
        /*
         * First try to merge with previous and/or next vma.
         */
-@@ -204,9 +307,21 @@ success:
+@@ -296,9 +399,21 @@ success:
         * vm_flags and vm_page_prot are protected by the mmap_sem
         * held in write mode.
         */
@@ -76826,7 +83076,7 @@ index a409926..8b32e6d 100644
  
        if (vma_wants_writenotify(vma)) {
                vma->vm_page_prot = vm_get_page_prot(newflags & ~VM_SHARED);
-@@ -248,6 +363,17 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -337,6 +452,17 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
        end = start + len;
        if (end <= start)
                return -ENOMEM;
@@ -76844,7 +83094,7 @@ index a409926..8b32e6d 100644
        if (!arch_validate_prot(prot))
                return -EINVAL;
  
-@@ -255,7 +381,7 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -344,7 +470,7 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
        /*
         * Does the application expect PROT_READ to imply PROT_EXEC:
         */
@@ -76853,7 +83103,7 @@ index a409926..8b32e6d 100644
                prot |= PROT_EXEC;
  
        vm_flags = calc_vm_prot_bits(prot);
-@@ -288,6 +414,11 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -376,6 +502,11 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
        if (start > vma->vm_start)
                prev = vma;
  
@@ -76865,7 +83115,7 @@ index a409926..8b32e6d 100644
        for (nstart = start ; ; ) {
                unsigned long newflags;
  
-@@ -297,6 +428,14 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -386,6 +517,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)) {
@@ -76880,7 +83130,7 @@ index a409926..8b32e6d 100644
                        error = -EACCES;
                        goto out;
                }
-@@ -311,6 +450,9 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
+@@ -400,6 +539,9 @@ SYSCALL_DEFINE3(mprotect, unsigned long, start, size_t, len,
                error = mprotect_fixup(vma, &prev, nstart, tmp, newflags);
                if (error)
                        goto out;
@@ -76891,7 +83141,7 @@ index a409926..8b32e6d 100644
  
                if (nstart < prev->vm_end)
 diff --git a/mm/mremap.c b/mm/mremap.c
-index 1b61c2d..1cc0e3c 100644
+index e1031e1..1f2a0a1 100644
 --- a/mm/mremap.c
 +++ b/mm/mremap.c
 @@ -125,6 +125,12 @@ static void move_ptes(struct vm_area_struct *vma, pmd_t *old_pmd,
@@ -76998,7 +83248,7 @@ index 1b61c2d..1cc0e3c 100644
  out:
        if (ret & ~PAGE_MASK)
 diff --git a/mm/nommu.c b/mm/nommu.c
-index 45131b4..c521665 100644
+index 79c3cac..b2601ea 100644
 --- a/mm/nommu.c
 +++ b/mm/nommu.c
 @@ -62,7 +62,6 @@ int sysctl_overcommit_memory = OVERCOMMIT_GUESS; /* heuristic overcommit */
@@ -77009,7 +83259,16 @@ index 45131b4..c521665 100644
  
  atomic_long_t mmap_pages_allocated;
  
-@@ -824,15 +823,6 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
+@@ -819,7 +818,7 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
+       struct vm_area_struct *vma;
+       /* check the cache first */
+-      vma = mm->mmap_cache;
++      vma = ACCESS_ONCE(mm->mmap_cache);
+       if (vma && vma->vm_start <= addr && vma->vm_end > addr)
+               return vma;
+@@ -839,15 +838,6 @@ struct vm_area_struct *find_vma(struct mm_struct *mm, unsigned long addr)
  EXPORT_SYMBOL(find_vma);
  
  /*
@@ -77025,7 +83284,7 @@ index 45131b4..c521665 100644
   * expand a stack to a given address
   * - not supported under NOMMU conditions
   */
-@@ -1540,6 +1530,7 @@ int split_vma(struct mm_struct *mm, struct vm_area_struct *vma,
+@@ -1555,6 +1545,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;
@@ -77033,11 +83292,72 @@ index 45131b4..c521665 100644
        *region = *vma->vm_region;
        new->vm_region = region;
  
+@@ -1975,8 +1966,8 @@ int generic_file_remap_pages(struct vm_area_struct *vma, unsigned long addr,
+ }
+ EXPORT_SYMBOL(generic_file_remap_pages);
+-static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
+-              unsigned long addr, void *buf, int len, int write)
++static ssize_t __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
++              unsigned long addr, void *buf, size_t len, int write)
+ {
+       struct vm_area_struct *vma;
+@@ -2017,8 +2008,8 @@ static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
+  *
+  * The caller must hold a reference on @mm.
+  */
+-int access_remote_vm(struct mm_struct *mm, unsigned long addr,
+-              void *buf, int len, int write)
++ssize_t access_remote_vm(struct mm_struct *mm, unsigned long addr,
++              void *buf, size_t len, int write)
+ {
+       return __access_remote_vm(NULL, mm, addr, buf, len, write);
+ }
+@@ -2027,7 +2018,7 @@ int access_remote_vm(struct mm_struct *mm, unsigned long addr,
+  * Access another process' address space.
+  * - source/target buffer must be kernel space
+  */
+-int access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, int len, int write)
++ssize_t access_process_vm(struct task_struct *tsk, unsigned long addr, void *buf, size_t len, int write)
+ {
+       struct mm_struct *mm;
+diff --git a/mm/page-writeback.c b/mm/page-writeback.c
+index 0713bfb..b95bb87 100644
+--- a/mm/page-writeback.c
++++ b/mm/page-writeback.c
+@@ -655,7 +655,7 @@ unsigned long bdi_dirty_limit(struct backing_dev_info *bdi, unsigned long dirty)
+  *   card's bdi_dirty may rush to many times higher than bdi_setpoint.
+  * - the bdi dirty thresh drops quickly due to change of JBOD workload
+  */
+-static unsigned long bdi_position_ratio(struct backing_dev_info *bdi,
++static unsigned long __intentional_overflow(-1) bdi_position_ratio(struct backing_dev_info *bdi,
+                                       unsigned long thresh,
+                                       unsigned long bg_thresh,
+                                       unsigned long dirty,
+@@ -1630,7 +1630,7 @@ ratelimit_handler(struct notifier_block *self, unsigned long action,
+       }
+ }
+-static struct notifier_block __cpuinitdata ratelimit_nb = {
++static struct notifier_block ratelimit_nb = {
+       .notifier_call  = ratelimit_handler,
+       .next           = NULL,
+ };
 diff --git a/mm/page_alloc.c b/mm/page_alloc.c
-index ceb4168..d7774f2 100644
+index 6a83cd3..3ab04ef 100644
 --- a/mm/page_alloc.c
 +++ b/mm/page_alloc.c
-@@ -340,7 +340,7 @@ out:
+@@ -58,6 +58,7 @@
+ #include <linux/prefetch.h>
+ #include <linux/migrate.h>
+ #include <linux/page-debug-flags.h>
++#include <linux/random.h>
+ #include <asm/tlbflush.h>
+ #include <asm/div64.h>
+@@ -338,7 +339,7 @@ out:
   * This usage means that zero-order pages may not be compound.
   */
  
@@ -77046,7 +83366,7 @@ index ceb4168..d7774f2 100644
  {
        __free_pages_ok(page, compound_order(page));
  }
-@@ -693,6 +693,10 @@ static bool free_pages_prepare(struct page *page, unsigned int order)
+@@ -693,6 +694,10 @@ static bool free_pages_prepare(struct page *page, unsigned int order)
        int i;
        int bad = 0;
  
@@ -77057,7 +83377,7 @@ index ceb4168..d7774f2 100644
        trace_mm_page_free(page, order);
        kmemcheck_free_shadow(page, order);
  
-@@ -708,6 +712,12 @@ static bool free_pages_prepare(struct page *page, unsigned int order)
+@@ -708,6 +713,12 @@ static bool free_pages_prepare(struct page *page, unsigned int order)
                debug_check_no_obj_freed(page_address(page),
                                           PAGE_SIZE << order);
        }
@@ -77070,7 +83390,47 @@ index ceb4168..d7774f2 100644
        arch_free_page(page, order);
        kernel_map_pages(page, 1 << order, 0);
  
-@@ -849,8 +859,10 @@ static int prep_new_page(struct page *page, int order, gfp_t gfp_flags)
+@@ -730,6 +741,19 @@ static void __free_pages_ok(struct page *page, unsigned int order)
+       local_irq_restore(flags);
+ }
++#ifdef CONFIG_PAX_LATENT_ENTROPY
++bool __meminitdata extra_latent_entropy;
++
++static int __init setup_pax_extra_latent_entropy(char *str)
++{
++      extra_latent_entropy = true;
++      return 0;
++}
++early_param("pax_extra_latent_entropy", setup_pax_extra_latent_entropy);
++
++volatile u64 latent_entropy;
++#endif
++
+ /*
+  * Read access to zone->managed_pages is safe because it's unsigned long,
+  * but we still need to serialize writers. Currently all callers of
+@@ -752,6 +776,19 @@ void __meminit __free_pages_bootmem(struct page *page, unsigned int order)
+               set_page_count(p, 0);
+       }
++#ifdef CONFIG_PAX_LATENT_ENTROPY
++      if (extra_latent_entropy && !PageHighMem(page) && page_to_pfn(page) < 0x100000) {
++              u64 hash = 0;
++              size_t index, end = PAGE_SIZE * nr_pages / sizeof hash;
++              const u64 *data = lowmem_page_address(page);
++
++              for (index = 0; index < end; index++)
++                      hash ^= hash + data[index];
++              latent_entropy ^= hash;
++              add_device_randomness((const void *)&latent_entropy, sizeof(latent_entropy));
++      }
++#endif
++
+       page_zone(page)->managed_pages += 1 << order;
+       set_page_refcounted(page);
+       __free_pages(page, order);
+@@ -861,8 +898,10 @@ static int prep_new_page(struct page *page, int order, gfp_t gfp_flags)
        arch_alloc_page(page, order);
        kernel_map_pages(page, 1 << order, 1);
  
@@ -77081,7 +83441,7 @@ index ceb4168..d7774f2 100644
  
        if (order && (gfp_flags & __GFP_COMP))
                prep_compound_page(page, order);
-@@ -3684,7 +3696,13 @@ static int pageblock_is_reserved(unsigned long start_pfn, unsigned long end_pfn)
+@@ -3752,7 +3791,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++) {
@@ -77096,7 +83456,7 @@ index ceb4168..d7774f2 100644
        }
        return 0;
 diff --git a/mm/percpu.c b/mm/percpu.c
-index ddc5efb..f632d2c 100644
+index 8c8e08f..73a5cda 100644
 --- a/mm/percpu.c
 +++ b/mm/percpu.c
 @@ -122,7 +122,7 @@ static unsigned int pcpu_low_unit_cpu __read_mostly;
@@ -77109,7 +83469,7 @@ index ddc5efb..f632d2c 100644
  
  static const int *pcpu_unit_map __read_mostly;                /* cpu -> unit */
 diff --git a/mm/process_vm_access.c b/mm/process_vm_access.c
-index 926b466..b23df53 100644
+index fd26d04..0cea1b0 100644
 --- a/mm/process_vm_access.c
 +++ b/mm/process_vm_access.c
 @@ -13,6 +13,7 @@
@@ -77160,7 +83520,7 @@ index 926b466..b23df53 100644
        if (!mm || IS_ERR(mm)) {
                rc = IS_ERR(mm) ? PTR_ERR(mm) : -ESRCH;
 diff --git a/mm/rmap.c b/mm/rmap.c
-index 2ee1ef0..2e175ba 100644
+index 2c78f8c..9e9c624 100644
 --- a/mm/rmap.c
 +++ b/mm/rmap.c
 @@ -163,6 +163,10 @@ int anon_vma_prepare(struct vm_area_struct *vma)
@@ -77250,7 +83610,7 @@ index 2ee1ef0..2e175ba 100644
        struct anon_vma_chain *avc;
        struct anon_vma *anon_vma;
 diff --git a/mm/shmem.c b/mm/shmem.c
-index 50c5b8f..0bc87f7 100644
+index efd0b3a..994b702 100644
 --- a/mm/shmem.c
 +++ b/mm/shmem.c
 @@ -31,7 +31,7 @@
@@ -77271,7 +83631,7 @@ index 50c5b8f..0bc87f7 100644
  
  /*
   * shmem_fallocate and shmem_writepage communicate via inode->i_private
-@@ -2112,6 +2112,11 @@ static const struct xattr_handler *shmem_xattr_handlers[] = {
+@@ -2202,6 +2202,11 @@ static const struct xattr_handler *shmem_xattr_handlers[] = {
  static int shmem_xattr_validate(const char *name)
  {
        struct { const char *prefix; size_t len; } arr[] = {
@@ -77283,7 +83643,7 @@ index 50c5b8f..0bc87f7 100644
                { XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN },
                { XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN }
        };
-@@ -2167,6 +2172,15 @@ static int shmem_setxattr(struct dentry *dentry, const char *name,
+@@ -2257,6 +2262,15 @@ static int shmem_setxattr(struct dentry *dentry, const char *name,
        if (err)
                return err;
  
@@ -77299,7 +83659,7 @@ index 50c5b8f..0bc87f7 100644
        return simple_xattr_set(&info->xattrs, name, value, size, flags);
  }
  
-@@ -2466,8 +2480,7 @@ int shmem_fill_super(struct super_block *sb, void *data, int silent)
+@@ -2562,8 +2576,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 */
@@ -77310,28 +83670,10 @@ index 50c5b8f..0bc87f7 100644
                return -ENOMEM;
  
 diff --git a/mm/slab.c b/mm/slab.c
-index 33d3363..3851c61 100644
+index e7667a3..a48e73b 100644
 --- a/mm/slab.c
 +++ b/mm/slab.c
-@@ -164,7 +164,7 @@ static bool pfmemalloc_active __read_mostly;
- /* Legal flag mask for kmem_cache_create(). */
- #if DEBUG
--# define CREATE_MASK  (SLAB_RED_ZONE | \
-+# define CREATE_MASK  (SLAB_USERCOPY | SLAB_RED_ZONE | \
-                        SLAB_POISON | SLAB_HWCACHE_ALIGN | \
-                        SLAB_CACHE_DMA | \
-                        SLAB_STORE_USER | \
-@@ -172,7 +172,7 @@ static bool pfmemalloc_active __read_mostly;
-                        SLAB_DESTROY_BY_RCU | SLAB_MEM_SPREAD | \
-                        SLAB_DEBUG_OBJECTS | SLAB_NOLEAKTRACE | SLAB_NOTRACK)
- #else
--# define CREATE_MASK  (SLAB_HWCACHE_ALIGN | \
-+# define CREATE_MASK  (SLAB_USERCOPY | SLAB_HWCACHE_ALIGN | \
-                        SLAB_CACHE_DMA | \
-                        SLAB_RECLAIM_ACCOUNT | SLAB_PANIC | \
-                        SLAB_DESTROY_BY_RCU | SLAB_MEM_SPREAD | \
-@@ -322,7 +322,7 @@ struct kmem_list3 {
+@@ -306,7 +306,7 @@ struct kmem_list3 {
   * Need this for bootstrapping a per node allocator.
   */
  #define NUM_INIT_LISTS (3 * MAX_NUMNODES)
@@ -77340,7 +83682,7 @@ index 33d3363..3851c61 100644
  #define       CACHE_CACHE 0
  #define       SIZE_AC MAX_NUMNODES
  #define       SIZE_L3 (2 * MAX_NUMNODES)
-@@ -423,10 +423,10 @@ static void kmem_list3_init(struct kmem_list3 *parent)
+@@ -407,10 +407,10 @@ static void kmem_list3_init(struct kmem_list3 *parent)
                if ((x)->max_freeable < i)                              \
                        (x)->max_freeable = i;                          \
        } while (0)
@@ -77355,7 +83697,7 @@ index 33d3363..3851c61 100644
  #else
  #define       STATS_INC_ACTIVE(x)     do { } while (0)
  #define       STATS_DEC_ACTIVE(x)     do { } while (0)
-@@ -534,7 +534,7 @@ static inline void *index_to_obj(struct kmem_cache *cache, struct slab *slab,
+@@ -518,7 +518,7 @@ static inline void *index_to_obj(struct kmem_cache *cache, struct slab *slab,
   *   reciprocal_divide(offset, cache->reciprocal_buffer_size)
   */
  static inline unsigned int obj_to_index(const struct kmem_cache *cache,
@@ -77364,7 +83706,7 @@ index 33d3363..3851c61 100644
  {
        u32 offset = (obj - slab->s_mem);
        return reciprocal_divide(offset, cache->reciprocal_buffer_size);
-@@ -555,12 +555,13 @@ EXPORT_SYMBOL(malloc_sizes);
+@@ -539,12 +539,13 @@ EXPORT_SYMBOL(malloc_sizes);
  struct cache_names {
        char *name;
        char *name_dma;
@@ -77380,7 +83722,7 @@ index 33d3363..3851c61 100644
  #undef CACHE
  };
  
-@@ -721,6 +722,12 @@ static inline struct kmem_cache *__find_general_cachep(size_t size,
+@@ -729,6 +730,12 @@ static inline struct kmem_cache *__find_general_cachep(size_t size,
        if (unlikely(gfpflags & GFP_DMA))
                return csizep->cs_dmacachep;
  #endif
@@ -77393,52 +83735,61 @@ index 33d3363..3851c61 100644
        return csizep->cs_cachep;
  }
  
-@@ -1676,7 +1683,7 @@ void __init kmem_cache_init(void)
-       sizes[INDEX_AC].cs_cachep->size = sizes[INDEX_AC].cs_size;
-       sizes[INDEX_AC].cs_cachep->object_size = sizes[INDEX_AC].cs_size;
-       sizes[INDEX_AC].cs_cachep->align = ARCH_KMALLOC_MINALIGN;
--      __kmem_cache_create(sizes[INDEX_AC].cs_cachep, ARCH_KMALLOC_FLAGS|SLAB_PANIC);
-+      __kmem_cache_create(sizes[INDEX_AC].cs_cachep, ARCH_KMALLOC_FLAGS|SLAB_PANIC|SLAB_USERCOPY);
-       list_add(&sizes[INDEX_AC].cs_cachep->list, &slab_caches);
-       if (INDEX_AC != INDEX_L3) {
-@@ -1685,7 +1692,7 @@ void __init kmem_cache_init(void)
-               sizes[INDEX_L3].cs_cachep->size = sizes[INDEX_L3].cs_size;
-               sizes[INDEX_L3].cs_cachep->object_size = sizes[INDEX_L3].cs_size;
-               sizes[INDEX_L3].cs_cachep->align = ARCH_KMALLOC_MINALIGN;
--              __kmem_cache_create(sizes[INDEX_L3].cs_cachep, ARCH_KMALLOC_FLAGS|SLAB_PANIC);
-+              __kmem_cache_create(sizes[INDEX_L3].cs_cachep, ARCH_KMALLOC_FLAGS|SLAB_PANIC|SLAB_USERCOPY);
-               list_add(&sizes[INDEX_L3].cs_cachep->list, &slab_caches);
-       }
-@@ -1705,7 +1712,7 @@ void __init kmem_cache_init(void)
-                       sizes->cs_cachep->size = sizes->cs_size;
-                       sizes->cs_cachep->object_size = sizes->cs_size;
-                       sizes->cs_cachep->align = ARCH_KMALLOC_MINALIGN;
--                      __kmem_cache_create(sizes->cs_cachep, ARCH_KMALLOC_FLAGS|SLAB_PANIC);
-+                      __kmem_cache_create(sizes->cs_cachep, ARCH_KMALLOC_FLAGS|SLAB_PANIC|SLAB_USERCOPY);
-                       list_add(&sizes->cs_cachep->list, &slab_caches);
-               }
+@@ -1482,7 +1489,7 @@ static int __cpuinit cpuup_callback(struct notifier_block *nfb,
+       return notifier_from_errno(err);
+ }
+-static struct notifier_block __cpuinitdata cpucache_notifier = {
++static struct notifier_block cpucache_notifier = {
+       &cpuup_callback, NULL, 0
+ };
+@@ -1667,12 +1674,12 @@ void __init kmem_cache_init(void)
+        */
+       sizes[INDEX_AC].cs_cachep = create_kmalloc_cache(names[INDEX_AC].name,
+-                                      sizes[INDEX_AC].cs_size, ARCH_KMALLOC_FLAGS);
++                                      sizes[INDEX_AC].cs_size, ARCH_KMALLOC_FLAGS|SLAB_USERCOPY);
+       if (INDEX_AC != INDEX_L3)
+               sizes[INDEX_L3].cs_cachep =
+                       create_kmalloc_cache(names[INDEX_L3].name,
+-                              sizes[INDEX_L3].cs_size, ARCH_KMALLOC_FLAGS);
++                              sizes[INDEX_L3].cs_size, ARCH_KMALLOC_FLAGS|SLAB_USERCOPY);
+       slab_early_init = 0;
+@@ -1686,13 +1693,20 @@ void __init kmem_cache_init(void)
+                */
+               if (!sizes->cs_cachep)
+                       sizes->cs_cachep = create_kmalloc_cache(names->name,
+-                                      sizes->cs_size, ARCH_KMALLOC_FLAGS);
++                                      sizes->cs_size, ARCH_KMALLOC_FLAGS|SLAB_USERCOPY);
  #ifdef CONFIG_ZONE_DMA
-@@ -1718,6 +1725,17 @@ void __init kmem_cache_init(void)
-                              ARCH_KMALLOC_FLAGS|SLAB_CACHE_DMA| SLAB_PANIC);
-               list_add(&sizes->cs_dmacachep->list, &slab_caches);
+               sizes->cs_dmacachep = create_kmalloc_cache(
+                       names->name_dma, sizes->cs_size,
+                       SLAB_CACHE_DMA|ARCH_KMALLOC_FLAGS);
  #endif
 +
 +#ifdef CONFIG_PAX_USERCOPY_SLABS
-+              sizes->cs_usercopycachep = kmem_cache_zalloc(kmem_cache, GFP_NOWAIT);
-+              sizes->cs_usercopycachep->name = names->name_usercopy;
-+              sizes->cs_usercopycachep->size = sizes->cs_size;
-+              sizes->cs_usercopycachep->object_size = sizes->cs_size;
-+              sizes->cs_usercopycachep->align = ARCH_KMALLOC_MINALIGN;
-+              __kmem_cache_create(sizes->cs_usercopycachep, ARCH_KMALLOC_FLAGS| SLAB_PANIC|SLAB_USERCOPY);
-+              list_add(&sizes->cs_usercopycachep->list, &slab_caches);
++              sizes->cs_usercopycachep = create_kmalloc_cache(
++                      names->name_usercopy, sizes->cs_size,
++                      ARCH_KMALLOC_FLAGS|SLAB_USERCOPY);
 +#endif
 +
                sizes++;
                names++;
        }
-@@ -4405,10 +4423,10 @@ static int s_show(struct seq_file *m, void *p)
+@@ -3924,6 +3938,7 @@ void kfree(const void *objp)
+       if (unlikely(ZERO_OR_NULL_PTR(objp)))
+               return;
++      VM_BUG_ON(!virt_addr_valid(objp));
+       local_irq_save(flags);
+       kfree_debugcheck(objp);
+       c = virt_to_cache(objp);
+@@ -4365,10 +4380,10 @@ void slabinfo_show_stats(struct seq_file *m, struct kmem_cache *cachep)
        }
        /* cpu stats */
        {
@@ -77453,9 +83804,9 @@ index 33d3363..3851c61 100644
  
                seq_printf(m, " : cpustat %6lu %6lu %6lu %6lu",
                           allochit, allocmiss, freehit, freemiss);
-@@ -4667,13 +4685,71 @@ static int __init slab_proc_init(void)
+@@ -4600,13 +4615,71 @@ static const struct file_operations proc_slabstats_operations = {
+ static int __init slab_proc_init(void)
  {
-       proc_create("slabinfo",S_IWUSR|S_IRUSR,NULL,&proc_slabinfo_operations);
  #ifdef CONFIG_DEBUG_SLAB_LEAK
 -      proc_create("slab_allocators", 0, NULL, &proc_slabstats_operations);
 +      proc_create("slab_allocators", S_IRUSR, NULL, &proc_slabstats_operations);
@@ -77526,21 +83877,53 @@ index 33d3363..3851c61 100644
  /**
   * ksize - get the actual amount of memory allocated for a given object
   * @objp: Pointer to the object
+diff --git a/mm/slab.h b/mm/slab.h
+index 34a98d6..73633d1 100644
+--- a/mm/slab.h
++++ b/mm/slab.h
+@@ -58,7 +58,7 @@ __kmem_cache_alias(struct mem_cgroup *memcg, const char *name, size_t size,
+ /* Legal flag mask for kmem_cache_create(), for various configurations */
+ #define SLAB_CORE_FLAGS (SLAB_HWCACHE_ALIGN | SLAB_CACHE_DMA | SLAB_PANIC | \
+-                       SLAB_DESTROY_BY_RCU | SLAB_DEBUG_OBJECTS )
++                       SLAB_DESTROY_BY_RCU | SLAB_DEBUG_OBJECTS | SLAB_USERCOPY)
+ #if defined(CONFIG_DEBUG_SLAB)
+ #define SLAB_DEBUG_FLAGS (SLAB_RED_ZONE | SLAB_POISON | SLAB_STORE_USER)
+@@ -220,6 +220,9 @@ static inline struct kmem_cache *cache_from_obj(struct kmem_cache *s, void *x)
+               return s;
+       page = virt_to_head_page(x);
++
++      BUG_ON(!PageSlab(page));
++
+       cachep = page->slab_cache;
+       if (slab_equal_or_root(cachep, s))
+               return cachep;
 diff --git a/mm/slab_common.c b/mm/slab_common.c
-index 069a24e6..226a310 100644
+index 3f3cd97..93b0236 100644
 --- a/mm/slab_common.c
 +++ b/mm/slab_common.c
-@@ -127,7 +127,7 @@ struct kmem_cache *kmem_cache_create(const char *name, size_t size, size_t align
+@@ -22,7 +22,7 @@
+ #include "slab.h"
+-enum slab_state slab_state;
++enum slab_state slab_state __read_only;
+ LIST_HEAD(slab_caches);
+ DEFINE_MUTEX(slab_mutex);
+ struct kmem_cache *kmem_cache;
+@@ -209,7 +209,7 @@ kmem_cache_create_memcg(struct mem_cgroup *memcg, const char *name, size_t size,
                err = __kmem_cache_create(s, flags);
                if (!err) {
 -                      s->refcount = 1;
 +                      atomic_set(&s->refcount, 1);
                        list_add(&s->list, &slab_caches);
+                       memcg_cache_list_add(memcg, s);
                } else {
-@@ -163,8 +163,7 @@ void kmem_cache_destroy(struct kmem_cache *s)
- {
+@@ -255,8 +255,7 @@ void kmem_cache_destroy(struct kmem_cache *s)
        get_online_cpus();
        mutex_lock(&slab_mutex);
 -      s->refcount--;
@@ -77549,11 +83932,29 @@ index 069a24e6..226a310 100644
                list_del(&s->list);
  
                if (!__kmem_cache_shutdown(s)) {
+@@ -302,7 +301,7 @@ void __init create_boot_cache(struct kmem_cache *s, const char *name, size_t siz
+               panic("Creation of kmalloc slab %s size=%zd failed. Reason %d\n",
+                                       name, size, err);
+-      s->refcount = -1;       /* Exempt from merging for now */
++      atomic_set(&s->refcount, -1);   /* Exempt from merging for now */
+ }
+ struct kmem_cache *__init create_kmalloc_cache(const char *name, size_t size,
+@@ -315,7 +314,7 @@ struct kmem_cache *__init create_kmalloc_cache(const char *name, size_t size,
+       create_boot_cache(s, name, size, flags);
+       list_add(&s->list, &slab_caches);
+-      s->refcount = 1;
++      atomic_set(&s->refcount, 1);
+       return s;
+ }
 diff --git a/mm/slob.c b/mm/slob.c
-index 1e921c5..1ce12c2 100644
+index a99fdf7..6ee34ec 100644
 --- a/mm/slob.c
 +++ b/mm/slob.c
-@@ -159,7 +159,7 @@ static void set_slob(slob_t *s, slobidx_t size, slob_t *next)
+@@ -157,7 +157,7 @@ static void set_slob(slob_t *s, slobidx_t size, slob_t *next)
  /*
   * Return the size of a slob block.
   */
@@ -77562,7 +83963,7 @@ index 1e921c5..1ce12c2 100644
  {
        if (s->units > 0)
                return s->units;
-@@ -169,7 +169,7 @@ static slobidx_t slob_units(slob_t *s)
+@@ -167,7 +167,7 @@ static slobidx_t slob_units(slob_t *s)
  /*
   * Return the next free slob block pointer after this one.
   */
@@ -77571,7 +83972,7 @@ index 1e921c5..1ce12c2 100644
  {
        slob_t *base = (slob_t *)((unsigned long)s & PAGE_MASK);
        slobidx_t next;
-@@ -184,14 +184,14 @@ static slob_t *slob_next(slob_t *s)
+@@ -182,14 +182,14 @@ static slob_t *slob_next(slob_t *s)
  /*
   * Returns true if s is the last free block in its page.
   */
@@ -77589,7 +83990,7 @@ index 1e921c5..1ce12c2 100644
  
  #ifdef CONFIG_NUMA
        if (node != NUMA_NO_NODE)
-@@ -203,14 +203,18 @@ static void *slob_new_pages(gfp_t gfp, int order, int node)
+@@ -201,14 +201,18 @@ static void *slob_new_pages(gfp_t gfp, int order, int node)
        if (!page)
                return NULL;
  
@@ -77611,7 +84012,7 @@ index 1e921c5..1ce12c2 100644
  }
  
  /*
-@@ -315,15 +319,15 @@ static void *slob_alloc(size_t size, gfp_t gfp, int align, int node)
+@@ -313,15 +317,15 @@ static void *slob_alloc(size_t size, gfp_t gfp, int align, int node)
  
        /* Not enough space: must allocate a new page */
        if (!b) {
@@ -77631,7 +84032,7 @@ index 1e921c5..1ce12c2 100644
                INIT_LIST_HEAD(&sp->list);
                set_slob(b, SLOB_UNITS(PAGE_SIZE), b + SLOB_UNITS(PAGE_SIZE));
                set_slob_page_free(sp, slob_list);
-@@ -361,9 +365,7 @@ static void slob_free(void *block, int size)
+@@ -359,9 +363,7 @@ static void slob_free(void *block, int size)
                if (slob_page_free(sp))
                        clear_slob_page_free(sp);
                spin_unlock_irqrestore(&slob_lock, flags);
@@ -77642,7 +84043,7 @@ index 1e921c5..1ce12c2 100644
                return;
        }
  
-@@ -426,11 +428,10 @@ out:
+@@ -424,11 +426,10 @@ out:
   */
  
  static __always_inline void *
@@ -77657,7 +84058,7 @@ index 1e921c5..1ce12c2 100644
  
        gfp &= gfp_allowed_mask;
  
-@@ -444,20 +445,23 @@ __do_kmalloc_node(size_t size, gfp_t gfp, int node, unsigned long caller)
+@@ -442,23 +443,41 @@ __do_kmalloc_node(size_t size, gfp_t gfp, int node, unsigned long caller)
  
                if (!m)
                        return NULL;
@@ -77677,16 +84078,13 @@ index 1e921c5..1ce12c2 100644
                if (likely(order))
                        gfp |= __GFP_COMP;
 -              ret = slob_new_pages(gfp, order, node);
--              if (ret) {
--                      struct page *page;
--                      page = virt_to_page(ret);
 +              page = slob_new_pages(gfp, order, node);
 +              if (page) {
 +                      ret = page_address(page);
-                       page->private = size;
-               }
++                      page->private = size;
++              }
  
-@@ -465,7 +469,17 @@ __do_kmalloc_node(size_t size, gfp_t gfp, int node, unsigned long caller)
+               trace_kmalloc_node(caller, ret,
                                   size, PAGE_SIZE << order, gfp, node);
        }
  
@@ -77705,9 +84103,11 @@ index 1e921c5..1ce12c2 100644
        return ret;
  }
  
-@@ -501,15 +515,91 @@ void kfree(const void *block)
+@@ -493,34 +512,112 @@ void kfree(const void *block)
+               return;
        kmemleak_free(block);
  
++      VM_BUG_ON(!virt_addr_valid(block));
        sp = virt_to_page(block);
 -      if (PageSlab(sp)) {
 +      VM_BUG_ON(!PageSlab(sp));
@@ -77722,7 +84122,7 @@ index 1e921c5..1ce12c2 100644
 +              __ClearPageSlab(sp);
 +              reset_page_mapcount(sp);
 +              sp->private = 0;
-               put_page(sp);
+               __free_pages(sp, compound_order(sp));
 +      }
  }
  EXPORT_SYMBOL(kfree);
@@ -77801,22 +84201,31 @@ index 1e921c5..1ce12c2 100644
  /* can't use ksize for kmem_cache_alloc memory, only kmalloc */
  size_t ksize(const void *block)
  {
-@@ -520,10 +610,11 @@ size_t ksize(const void *block)
+       struct page *sp;
+       int align;
+-      unsigned int *m;
++      slob_t *m;
+       BUG_ON(!block);
+       if (unlikely(block == ZERO_SIZE_PTR))
                return 0;
  
        sp = virt_to_page(block);
--      if (PageSlab(sp)) {
+-      if (unlikely(!PageSlab(sp)))
+-              return PAGE_SIZE << compound_order(sp);
 +      VM_BUG_ON(!PageSlab(sp));
-+      if (!sp->private) {
-               int align = max_t(size_t, ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
--              unsigned int *m = (unsigned int *)(block - align);
--              return SLOB_UNITS(*m) * SLOB_UNIT;
-+              slob_t *m = (slob_t *)(block - align);
-+              return SLOB_UNITS(m[0].units) * SLOB_UNIT;
-       } else
-               return sp->private;
++      if (sp->private)
++              return sp->private;
+       align = max_t(size_t, ARCH_KMALLOC_MINALIGN, ARCH_SLAB_MINALIGN);
+-      m = (unsigned int *)(block - align);
+-      return SLOB_UNITS(*m) * SLOB_UNIT;
++      m = (slob_t *)(block - align);
++      return SLOB_UNITS(m[0].units) * SLOB_UNIT;
  }
-@@ -550,23 +641,33 @@ int __kmem_cache_create(struct kmem_cache *c, unsigned long flags)
+ EXPORT_SYMBOL(ksize);
+@@ -536,23 +633,33 @@ int __kmem_cache_create(struct kmem_cache *c, unsigned long flags)
  
  void *kmem_cache_alloc_node(struct kmem_cache *c, gfp_t flags, int node)
  {
@@ -77832,7 +84241,7 @@ index 1e921c5..1ce12c2 100644
 +#else
        if (c->size < PAGE_SIZE) {
                b = slob_alloc(c->size, flags, c->align, node);
-               trace_kmem_cache_alloc_node(_RET_IP_, b, c->size,
+               trace_kmem_cache_alloc_node(_RET_IP_, b, c->object_size,
                                            SLOB_UNITS(c->size) * SLOB_UNIT,
                                            flags, node);
        } else {
@@ -77844,7 +84253,7 @@ index 1e921c5..1ce12c2 100644
 +                      b = page_address(sp);
 +                      sp->private = c->size;
 +              }
-               trace_kmem_cache_alloc_node(_RET_IP_, b, c->size,
+               trace_kmem_cache_alloc_node(_RET_IP_, b, c->object_size,
                                            PAGE_SIZE << get_order(c->size),
                                            flags, node);
        }
@@ -77852,7 +84261,7 @@ index 1e921c5..1ce12c2 100644
  
        if (c->ctor)
                c->ctor(b);
-@@ -578,10 +679,14 @@ EXPORT_SYMBOL(kmem_cache_alloc_node);
+@@ -564,10 +671,14 @@ EXPORT_SYMBOL(kmem_cache_alloc_node);
  
  static void __kmem_cache_free(void *b, int size)
  {
@@ -77869,7 +84278,7 @@ index 1e921c5..1ce12c2 100644
  }
  
  static void kmem_rcu_free(struct rcu_head *head)
-@@ -594,17 +699,31 @@ static void kmem_rcu_free(struct rcu_head *head)
+@@ -580,17 +691,31 @@ static void kmem_rcu_free(struct rcu_head *head)
  
  void kmem_cache_free(struct kmem_cache *c, void *b)
  {
@@ -77905,10 +84314,10 @@ index 1e921c5..1ce12c2 100644
  EXPORT_SYMBOL(kmem_cache_free);
  
 diff --git a/mm/slub.c b/mm/slub.c
-index 321afab..9595170 100644
+index ba2ca53..991c4f7 100644
 --- a/mm/slub.c
 +++ b/mm/slub.c
-@@ -201,7 +201,7 @@ struct track {
+@@ -197,7 +197,7 @@ struct track {
  
  enum track_item { TRACK_ALLOC, TRACK_FREE };
  
@@ -77917,7 +84326,7 @@ index 321afab..9595170 100644
  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 *);
-@@ -521,7 +521,7 @@ static void print_track(const char *s, struct track *t)
+@@ -518,7 +518,7 @@ static void print_track(const char *s, struct track *t)
        if (!t->addr)
                return;
  
@@ -77926,16 +84335,7 @@ index 321afab..9595170 100644
                s, (void *)t->addr, jiffies - t->when, t->cpu, t->pid);
  #ifdef CONFIG_STACKTRACE
        {
-@@ -2623,6 +2623,8 @@ void kmem_cache_free(struct kmem_cache *s, void *x)
-       page = virt_to_head_page(x);
-+      BUG_ON(!PageSlab(page));
-+
-       if (kmem_cache_debug(s) && page->slab != s) {
-               pr_err("kmem_cache_free: Wrong slab cache. %s but object"
-                       " is from  %s\n", page->slab->name, s->name);
-@@ -2663,7 +2665,7 @@ static int slub_min_objects;
+@@ -2653,7 +2653,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.)
   */
@@ -77944,7 +84344,7 @@ index 321afab..9595170 100644
  
  /*
   * Calculate the order of allocation given an slab object size.
-@@ -3225,6 +3227,10 @@ EXPORT_SYMBOL(kmalloc_caches);
+@@ -3181,6 +3181,10 @@ EXPORT_SYMBOL(kmalloc_caches);
  static struct kmem_cache *kmalloc_dma_caches[SLUB_PAGE_SHIFT];
  #endif
  
@@ -77955,16 +84355,7 @@ index 321afab..9595170 100644
  static int __init setup_slub_min_order(char *str)
  {
        get_option(&str, &slub_min_order);
-@@ -3279,7 +3285,7 @@ static struct kmem_cache *__init create_kmalloc_cache(const char *name,
-       if (kmem_cache_open(s, flags))
-               goto panic;
--      s->refcount = 1;
-+      atomic_set(&s->refcount, 1);
-       list_add(&s->list, &slab_caches);
-       return s;
-@@ -3343,6 +3349,13 @@ static struct kmem_cache *get_slab(size_t size, gfp_t flags)
+@@ -3272,6 +3276,13 @@ static struct kmem_cache *get_slab(size_t size, gfp_t flags)
                return kmalloc_dma_caches[index];
  
  #endif
@@ -77978,7 +84369,7 @@ index 321afab..9595170 100644
        return kmalloc_caches[index];
  }
  
-@@ -3411,6 +3424,59 @@ void *__kmalloc_node(size_t size, gfp_t flags, int node)
+@@ -3340,6 +3351,59 @@ void *__kmalloc_node(size_t size, gfp_t flags, int node)
  EXPORT_SYMBOL(__kmalloc_node);
  #endif
  
@@ -78001,7 +84392,7 @@ index 321afab..9595170 100644
 +      if (!PageSlab(page))
 +              return false;
 +
-+      s = page->slab;
++      s = page->slab_cache;
 +      return s->flags & SLAB_USERCOPY;
 +}
 +
@@ -78023,7 +84414,7 @@ index 321afab..9595170 100644
 +      if (!PageSlab(page))
 +              return NULL;
 +
-+      s = page->slab;
++      s = page->slab_cache;
 +      if (!(s->flags & SLAB_USERCOPY))
 +              return s->name;
 +
@@ -78038,16 +84429,15 @@ index 321afab..9595170 100644
  size_t ksize(const void *object)
  {
        struct page *page;
-@@ -3685,7 +3751,7 @@ static void __init kmem_cache_bootstrap_fixup(struct kmem_cache *s)
-       int node;
-       list_add(&s->list, &slab_caches);
--      s->refcount = -1;
-+      atomic_set(&s->refcount, -1);
+@@ -3404,6 +3468,7 @@ void kfree(const void *x)
+       if (unlikely(ZERO_OR_NULL_PTR(x)))
+               return;
  
-       for_each_node_state(node, N_NORMAL_MEMORY) {
-               struct kmem_cache_node *n = get_node(s, node);
-@@ -3808,17 +3874,17 @@ void __init kmem_cache_init(void)
++      VM_BUG_ON(!virt_addr_valid(x));
+       page = virt_to_head_page(x);
+       if (unlikely(!PageSlab(page))) {
+               BUG_ON(!PageCompound(page));
+@@ -3712,17 +3777,17 @@ void __init kmem_cache_init(void)
  
        /* Caches that are not of the two-to-the-power-of size */
        if (KMALLOC_MIN_SIZE <= 32) {
@@ -78068,7 +84458,7 @@ index 321afab..9595170 100644
                caches++;
        }
  
-@@ -3860,6 +3926,22 @@ void __init kmem_cache_init(void)
+@@ -3764,6 +3829,22 @@ void __init kmem_cache_init(void)
                }
        }
  #endif
@@ -78091,7 +84481,7 @@ index 321afab..9595170 100644
        printk(KERN_INFO
                "SLUB: Genslabs=%d, HWalign=%d, Order=%d-%d, MinObjects=%d,"
                " CPUs=%d, Nodes=%d\n",
-@@ -3886,7 +3968,7 @@ static int slab_unmergeable(struct kmem_cache *s)
+@@ -3790,7 +3871,7 @@ static int slab_unmergeable(struct kmem_cache *s)
        /*
         * We may have set a slab to be unmergeable during bootstrap.
         */
@@ -78100,16 +84490,16 @@ index 321afab..9595170 100644
                return 1;
  
        return 0;
-@@ -3940,7 +4022,7 @@ struct kmem_cache *__kmem_cache_alias(const char *name, size_t size,
+@@ -3848,7 +3929,7 @@ __kmem_cache_alias(struct mem_cgroup *memcg, const char *name, size_t size,
  
-       s = find_mergeable(size, align, flags, name, ctor);
+       s = find_mergeable(memcg, size, align, flags, name, ctor);
        if (s) {
 -              s->refcount++;
 +              atomic_inc(&s->refcount);
                /*
                 * Adjust the object sizes so that we clear
                 * the complete object on kzalloc.
-@@ -3949,7 +4031,7 @@ struct kmem_cache *__kmem_cache_alias(const char *name, size_t size,
+@@ -3857,7 +3938,7 @@ __kmem_cache_alias(struct mem_cgroup *memcg, const char *name, size_t size,
                s->inuse = max_t(int, s->inuse, ALIGN(size, sizeof(void *)));
  
                if (sysfs_slab_alias(s, name)) {
@@ -78118,7 +84508,16 @@ index 321afab..9595170 100644
                        s = NULL;
                }
        }
-@@ -4064,7 +4146,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
+@@ -3919,7 +4000,7 @@ static int __cpuinit slab_cpuup_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata slab_notifier = {
++static struct notifier_block slab_notifier = {
+       .notifier_call = slab_cpuup_callback
+ };
+@@ -3977,7 +4058,7 @@ void *__kmalloc_node_track_caller(size_t size, gfp_t gfpflags,
  }
  #endif
  
@@ -78127,7 +84526,7 @@ index 321afab..9595170 100644
  static int count_inuse(struct page *page)
  {
        return page->inuse;
-@@ -4451,12 +4533,12 @@ static void resiliency_test(void)
+@@ -4364,12 +4445,12 @@ static void resiliency_test(void)
        validate_slab_cache(kmalloc_caches[9]);
  }
  #else
@@ -78142,7 +84541,7 @@ index 321afab..9595170 100644
  enum slab_stat_type {
        SL_ALL,                 /* All slabs */
        SL_PARTIAL,             /* Only partially allocated slabs */
-@@ -4700,7 +4782,7 @@ SLAB_ATTR_RO(ctor);
+@@ -4613,7 +4694,7 @@ SLAB_ATTR_RO(ctor);
  
  static ssize_t aliases_show(struct kmem_cache *s, char *buf)
  {
@@ -78151,7 +84550,7 @@ index 321afab..9595170 100644
  }
  SLAB_ATTR_RO(aliases);
  
-@@ -5262,6 +5344,7 @@ static char *create_unique_id(struct kmem_cache *s)
+@@ -5266,6 +5347,7 @@ static char *create_unique_id(struct kmem_cache *s)
        return name;
  }
  
@@ -78159,7 +84558,7 @@ index 321afab..9595170 100644
  static int sysfs_slab_add(struct kmem_cache *s)
  {
        int err;
-@@ -5324,6 +5407,7 @@ static void sysfs_slab_remove(struct kmem_cache *s)
+@@ -5323,6 +5405,7 @@ static void sysfs_slab_remove(struct kmem_cache *s)
        kobject_del(&s->kobj);
        kobject_put(&s->kobj);
  }
@@ -78167,7 +84566,7 @@ index 321afab..9595170 100644
  
  /*
   * Need to buffer aliases during bootup until sysfs becomes
-@@ -5337,6 +5421,7 @@ struct saved_alias {
+@@ -5336,6 +5419,7 @@ struct saved_alias {
  
  static struct saved_alias *alias_list;
  
@@ -78175,7 +84574,7 @@ index 321afab..9595170 100644
  static int sysfs_slab_alias(struct kmem_cache *s, const char *name)
  {
        struct saved_alias *al;
-@@ -5359,6 +5444,7 @@ static int sysfs_slab_alias(struct kmem_cache *s, const char *name)
+@@ -5358,6 +5442,7 @@ static int sysfs_slab_alias(struct kmem_cache *s, const char *name)
        alias_list = al;
        return 0;
  }
@@ -78205,6 +84604,19 @@ index 1b7e22a..3fcd4f3 100644
        }
        return pgd;
  }
+diff --git a/mm/sparse.c b/mm/sparse.c
+index 6b5fb76..db0c190 100644
+--- a/mm/sparse.c
++++ b/mm/sparse.c
+@@ -782,7 +782,7 @@ static void clear_hwpoisoned_pages(struct page *memmap, int nr_pages)
+       for (i = 0; i < PAGES_PER_SECTION; i++) {
+               if (PageHWPoison(&memmap[i])) {
+-                      atomic_long_sub(1, &mce_bad_pages);
++                      atomic_long_sub_unchecked(1, &mce_bad_pages);
+                       ClearPageHWPoison(&memmap[i]);
+               }
+       }
 diff --git a/mm/swap.c b/mm/swap.c
 index 6310dc2..3662b3f 100644
 --- a/mm/swap.c
@@ -78227,7 +84639,7 @@ index 6310dc2..3662b3f 100644
  }
  
 diff --git a/mm/swapfile.c b/mm/swapfile.c
-index f91a255..9dcac21 100644
+index e97a0e5..b50e796 100644
 --- a/mm/swapfile.c
 +++ b/mm/swapfile.c
 @@ -64,7 +64,7 @@ static DEFINE_MUTEX(swapon_mutex);
@@ -78239,7 +84651,7 @@ index f91a255..9dcac21 100644
  
  static inline unsigned char swap_count(unsigned char ent)
  {
-@@ -1601,7 +1601,7 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
+@@ -1608,7 +1608,7 @@ SYSCALL_DEFINE1(swapoff, const char __user *, specialfile)
        }
        filp_close(swap_file, NULL);
        err = 0;
@@ -78248,7 +84660,7 @@ index f91a255..9dcac21 100644
        wake_up_interruptible(&proc_poll_wait);
  
  out_dput:
-@@ -1618,8 +1618,8 @@ static unsigned swaps_poll(struct file *file, poll_table *wait)
+@@ -1625,8 +1625,8 @@ static unsigned swaps_poll(struct file *file, poll_table *wait)
  
        poll_wait(file, &proc_poll_wait, wait);
  
@@ -78259,7 +84671,7 @@ index f91a255..9dcac21 100644
                return POLLIN | POLLRDNORM | POLLERR | POLLPRI;
        }
  
-@@ -1717,7 +1717,7 @@ static int swaps_open(struct inode *inode, struct file *file)
+@@ -1724,7 +1724,7 @@ static int swaps_open(struct inode *inode, struct file *file)
                return ret;
  
        seq = file->private_data;
@@ -78268,7 +84680,7 @@ index f91a255..9dcac21 100644
        return 0;
  }
  
-@@ -2059,7 +2059,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
+@@ -2066,7 +2066,7 @@ SYSCALL_DEFINE2(swapon, const char __user *, specialfile, int, swap_flags)
                (frontswap_map) ? "FS" : "");
  
        mutex_unlock(&swapon_mutex);
@@ -78278,7 +84690,7 @@ index f91a255..9dcac21 100644
  
        if (S_ISREG(inode->i_mode))
 diff --git a/mm/util.c b/mm/util.c
-index dc3036c..b6c7c9d 100644
+index c55e26b..3f913a9 100644
 --- a/mm/util.c
 +++ b/mm/util.c
 @@ -292,6 +292,12 @@ done:
@@ -78295,7 +84707,7 @@ index dc3036c..b6c7c9d 100644
        mm->unmap_area = arch_unmap_area;
  }
 diff --git a/mm/vmalloc.c b/mm/vmalloc.c
-index 78e0830..bc6bbd8 100644
+index 5123a16..f234a48 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)
@@ -78493,7 +84905,7 @@ index 78e0830..bc6bbd8 100644
        if (v->nr_pages)
                seq_printf(m, " pages=%d", v->nr_pages);
 diff --git a/mm/vmstat.c b/mm/vmstat.c
-index c737057..a49753a 100644
+index 9800306..76b4b27 100644
 --- a/mm/vmstat.c
 +++ b/mm/vmstat.c
 @@ -78,7 +78,7 @@ void vm_events_fold_cpu(int cpu)
@@ -78534,7 +84946,16 @@ index c737057..a49753a 100644
                }
  }
  #endif
-@@ -1224,10 +1224,20 @@ static int __init setup_vmstat(void)
+@@ -1223,7 +1223,7 @@ static int __cpuinit vmstat_cpuup_callback(struct notifier_block *nfb,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __cpuinitdata vmstat_notifier =
++static struct notifier_block vmstat_notifier =
+       { &vmstat_cpuup_callback, NULL, 0 };
+ #endif
+@@ -1238,10 +1238,20 @@ static int __init setup_vmstat(void)
                start_cpu_timer(cpu);
  #endif
  #ifdef CONFIG_PROC_FS
@@ -78560,10 +84981,24 @@ index c737057..a49753a 100644
        return 0;
  }
 diff --git a/net/8021q/vlan.c b/net/8021q/vlan.c
-index ee07072..593e3fd 100644
+index acc74ad..be02639 100644
 --- a/net/8021q/vlan.c
 +++ b/net/8021q/vlan.c
-@@ -484,7 +484,7 @@ out:
+@@ -108,6 +108,13 @@ void unregister_vlan_dev(struct net_device *dev, struct list_head *head)
+       if (vlan_id)
+               vlan_vid_del(real_dev, vlan_id);
++      /* Take it out of our own structures, but be sure to interlock with
++       * HW accelerating devices or SW vlan input packet processing if
++       * VLAN is not 0 (leave it there for 802.1p).
++       */
++      if (vlan_id)
++              vlan_vid_del(real_dev, vlan_id);
++
+       /* Get rid of the vlan's reference to real_dev */
+       dev_put(real_dev);
+ }
+@@ -485,7 +492,7 @@ out:
        return NOTIFY_DONE;
  }
  
@@ -78572,9 +85007,9 @@ index ee07072..593e3fd 100644
        .notifier_call = vlan_device_event,
  };
  
-@@ -559,8 +559,7 @@ static int vlan_ioctl_handler(struct net *net, void __user *arg)
+@@ -560,8 +567,7 @@ static int vlan_ioctl_handler(struct net *net, void __user *arg)
                err = -EPERM;
-               if (!capable(CAP_NET_ADMIN))
+               if (!ns_capable(net->user_ns, CAP_NET_ADMIN))
                        break;
 -              if ((args.u.name_type >= 0) &&
 -                  (args.u.name_type < VLAN_NAME_TYPE_HIGHEST)) {
@@ -78582,6 +85017,28 @@ index ee07072..593e3fd 100644
                        struct vlan_net *vn;
  
                        vn = net_generic(net, vlan_net_id);
+diff --git a/net/9p/mod.c b/net/9p/mod.c
+index 6ab36ae..6f1841b 100644
+--- a/net/9p/mod.c
++++ b/net/9p/mod.c
+@@ -84,7 +84,7 @@ static LIST_HEAD(v9fs_trans_list);
+ void v9fs_register_trans(struct p9_trans_module *m)
+ {
+       spin_lock(&v9fs_trans_lock);
+-      list_add_tail(&m->list, &v9fs_trans_list);
++      pax_list_add_tail((struct list_head *)&m->list, &v9fs_trans_list);
+       spin_unlock(&v9fs_trans_lock);
+ }
+ EXPORT_SYMBOL(v9fs_register_trans);
+@@ -97,7 +97,7 @@ EXPORT_SYMBOL(v9fs_register_trans);
+ void v9fs_unregister_trans(struct p9_trans_module *m)
+ {
+       spin_lock(&v9fs_trans_lock);
+-      list_del_init(&m->list);
++      pax_list_del_init((struct list_head *)&m->list);
+       spin_unlock(&v9fs_trans_lock);
+ }
+ EXPORT_SYMBOL(v9fs_unregister_trans);
 diff --git a/net/9p/trans_fd.c b/net/9p/trans_fd.c
 index 02efb25..41541a9 100644
 --- a/net/9p/trans_fd.c
@@ -78687,45 +85144,58 @@ index 0447d5d..3cf4728 100644
        __AAL_STAT_ITEMS
  #undef __HANDLE_ITEM
  }
+diff --git a/net/ax25/sysctl_net_ax25.c b/net/ax25/sysctl_net_ax25.c
+index d5744b7..506bae3 100644
+--- a/net/ax25/sysctl_net_ax25.c
++++ b/net/ax25/sysctl_net_ax25.c
+@@ -152,7 +152,7 @@ int ax25_register_dev_sysctl(ax25_dev *ax25_dev)
+ {
+       char path[sizeof("net/ax25/") + IFNAMSIZ];
+       int k;
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       table = kmemdup(ax25_param_table, sizeof(ax25_param_table), GFP_KERNEL);
+       if (!table)
 diff --git a/net/batman-adv/bat_iv_ogm.c b/net/batman-adv/bat_iv_ogm.c
-index c6fcc76..1270d14 100644
+index 1ee94d0..14beea2 100644
 --- a/net/batman-adv/bat_iv_ogm.c
 +++ b/net/batman-adv/bat_iv_ogm.c
-@@ -62,7 +62,7 @@ static int batadv_iv_ogm_iface_enable(struct batadv_hard_iface *hard_iface)
+@@ -63,7 +63,7 @@ static int batadv_iv_ogm_iface_enable(struct batadv_hard_iface *hard_iface)
  
        /* randomize initial seqno to avoid collision */
        get_random_bytes(&random_seqno, sizeof(random_seqno));
--      atomic_set(&hard_iface->seqno, random_seqno);
-+      atomic_set_unchecked(&hard_iface->seqno, random_seqno);
+-      atomic_set(&hard_iface->bat_iv.ogm_seqno, random_seqno);
++      atomic_set_unchecked(&hard_iface->bat_iv.ogm_seqno, random_seqno);
  
-       hard_iface->packet_len = BATADV_OGM_HLEN;
-       hard_iface->packet_buff = kmalloc(hard_iface->packet_len, GFP_ATOMIC);
-@@ -608,9 +608,9 @@ static void batadv_iv_ogm_schedule(struct batadv_hard_iface *hard_iface)
-       batadv_ogm_packet = (struct batadv_ogm_packet *)hard_iface->packet_buff;
+       hard_iface->bat_iv.ogm_buff_len = BATADV_OGM_HLEN;
+       ogm_buff = kmalloc(hard_iface->bat_iv.ogm_buff_len, GFP_ATOMIC);
+@@ -615,9 +615,9 @@ static void batadv_iv_ogm_schedule(struct batadv_hard_iface *hard_iface)
+       batadv_ogm_packet = (struct batadv_ogm_packet *)(*ogm_buff);
  
        /* change sequence number to network order */
--      seqno = (uint32_t)atomic_read(&hard_iface->seqno);
-+      seqno = (uint32_t)atomic_read_unchecked(&hard_iface->seqno);
+-      seqno = (uint32_t)atomic_read(&hard_iface->bat_iv.ogm_seqno);
++      seqno = (uint32_t)atomic_read_unchecked(&hard_iface->bat_iv.ogm_seqno);
        batadv_ogm_packet->seqno = htonl(seqno);
--      atomic_inc(&hard_iface->seqno);
-+      atomic_inc_unchecked(&hard_iface->seqno);
+-      atomic_inc(&hard_iface->bat_iv.ogm_seqno);
++      atomic_inc_unchecked(&hard_iface->bat_iv.ogm_seqno);
  
        batadv_ogm_packet->ttvn = atomic_read(&bat_priv->tt.vn);
        batadv_ogm_packet->tt_crc = htons(bat_priv->tt.local_crc);
-@@ -1015,7 +1015,7 @@ static void batadv_iv_ogm_process(const struct ethhdr *ethhdr,
+@@ -1022,7 +1022,7 @@ static void batadv_iv_ogm_process(const struct ethhdr *ethhdr,
                return;
  
        /* could be changed by schedule_own_packet() */
--      if_incoming_seqno = atomic_read(&if_incoming->seqno);
-+      if_incoming_seqno = atomic_read_unchecked(&if_incoming->seqno);
+-      if_incoming_seqno = atomic_read(&if_incoming->bat_iv.ogm_seqno);
++      if_incoming_seqno = atomic_read_unchecked(&if_incoming->bat_iv.ogm_seqno);
  
        if (batadv_ogm_packet->flags & BATADV_DIRECTLINK)
                has_directlink_flag = 1;
 diff --git a/net/batman-adv/hard-interface.c b/net/batman-adv/hard-interface.c
-index d112fd6..686a447 100644
+index f1d37cd..4190879 100644
 --- a/net/batman-adv/hard-interface.c
 +++ b/net/batman-adv/hard-interface.c
-@@ -327,7 +327,7 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
+@@ -370,7 +370,7 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
        hard_iface->batman_adv_ptype.dev = hard_iface->net_dev;
        dev_add_pack(&hard_iface->batman_adv_ptype);
  
@@ -78734,20 +85204,20 @@ index d112fd6..686a447 100644
        batadv_info(hard_iface->soft_iface, "Adding interface: %s\n",
                    hard_iface->net_dev->name);
  
-@@ -450,7 +450,7 @@ batadv_hardif_add_interface(struct net_device *net_dev)
+@@ -493,7 +493,7 @@ batadv_hardif_add_interface(struct net_device *net_dev)
        /* This can't be called via a bat_priv callback because
         * we have no bat_priv yet.
         */
--      atomic_set(&hard_iface->seqno, 1);
-+      atomic_set_unchecked(&hard_iface->seqno, 1);
-       hard_iface->packet_buff = NULL;
+-      atomic_set(&hard_iface->bat_iv.ogm_seqno, 1);
++      atomic_set_unchecked(&hard_iface->bat_iv.ogm_seqno, 1);
+       hard_iface->bat_iv.ogm_buff = NULL;
  
        return hard_iface;
 diff --git a/net/batman-adv/soft-interface.c b/net/batman-adv/soft-interface.c
-index ce0684a..4a0cbf1 100644
+index 6b548fd..fc32c8d 100644
 --- a/net/batman-adv/soft-interface.c
 +++ b/net/batman-adv/soft-interface.c
-@@ -234,7 +234,7 @@ static int batadv_interface_tx(struct sk_buff *skb,
+@@ -252,7 +252,7 @@ static int batadv_interface_tx(struct sk_buff *skb,
                       primary_if->net_dev->dev_addr, ETH_ALEN);
  
                /* set broadcast sequence number */
@@ -78755,8 +85225,8 @@ index ce0684a..4a0cbf1 100644
 +              seqno = atomic_inc_return_unchecked(&bat_priv->bcast_seqno);
                bcast_packet->seqno = htonl(seqno);
  
-               batadv_add_bcast_packet_to_list(bat_priv, skb, 1);
-@@ -427,7 +427,7 @@ struct net_device *batadv_softif_create(const char *name)
+               batadv_add_bcast_packet_to_list(bat_priv, skb, brd_delay);
+@@ -497,7 +497,7 @@ struct net_device *batadv_softif_create(const char *name)
        atomic_set(&bat_priv->batman_queue_left, BATADV_BATMAN_QUEUE_LEN);
  
        atomic_set(&bat_priv->mesh_state, BATADV_MESH_INACTIVE);
@@ -78766,21 +85236,28 @@ index ce0684a..4a0cbf1 100644
        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 ac1e07a..4c846e2 100644
+index ae9ac9a..11e0fe7 100644
 --- a/net/batman-adv/types.h
 +++ b/net/batman-adv/types.h
-@@ -33,8 +33,8 @@ struct batadv_hard_iface {
+@@ -48,7 +48,7 @@
+ struct batadv_hard_iface_bat_iv {
+       unsigned char *ogm_buff;
+       int ogm_buff_len;
+-      atomic_t ogm_seqno;
++      atomic_unchecked_t ogm_seqno;
+ };
+ struct batadv_hard_iface {
+@@ -56,7 +56,7 @@ struct batadv_hard_iface {
        int16_t if_num;
        char if_status;
        struct net_device *net_dev;
--      atomic_t seqno;
 -      atomic_t frag_seqno;
-+      atomic_unchecked_t seqno;
 +      atomic_unchecked_t frag_seqno;
-       unsigned char *packet_buff;
-       int packet_len;
        struct kobject *hardif_obj;
-@@ -244,7 +244,7 @@ struct batadv_priv {
+       atomic_t refcount;
+       struct packet_type batman_adv_ptype;
+@@ -284,7 +284,7 @@ struct batadv_priv {
        atomic_t orig_interval;         /* uint */
        atomic_t hop_penalty;           /* uint */
        atomic_t log_level;             /* uint */
@@ -78790,7 +85267,7 @@ index ac1e07a..4c846e2 100644
        atomic_t batman_queue_left;
        char num_ifaces;
 diff --git a/net/batman-adv/unicast.c b/net/batman-adv/unicast.c
-index f397232..3206a33 100644
+index 10aff49..ea8e021 100644
 --- a/net/batman-adv/unicast.c
 +++ b/net/batman-adv/unicast.c
 @@ -272,7 +272,7 @@ int batadv_frag_send_skb(struct sk_buff *skb, struct batadv_priv *bat_priv,
@@ -78816,10 +85293,10 @@ index 07f0739..3c42e34 100644
                        err = -EFAULT;
                        break;
 diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
-index a91239d..d7ed533 100644
+index 22e6583..426e2f3 100644
 --- a/net/bluetooth/l2cap_core.c
 +++ b/net/bluetooth/l2cap_core.c
-@@ -3183,8 +3183,10 @@ static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len, voi
+@@ -3400,8 +3400,10 @@ static int l2cap_parse_conf_rsp(struct l2cap_chan *chan, void *rsp, int len,
                        break;
  
                case L2CAP_CONF_RFC:
@@ -78831,12 +85308,12 @@ index a91239d..d7ed533 100644
 +                      memcpy(&rfc, (void *)val, olen);
  
                        if (test_bit(CONF_STATE2_DEVICE, &chan->conf_state) &&
-                                                       rfc.mode != chan->mode)
+                           rfc.mode != chan->mode)
 diff --git a/net/bluetooth/l2cap_sock.c b/net/bluetooth/l2cap_sock.c
-index 083f2bf..799f9448 100644
+index 1bcfb84..dad9f98 100644
 --- a/net/bluetooth/l2cap_sock.c
 +++ b/net/bluetooth/l2cap_sock.c
-@@ -471,7 +471,8 @@ static int l2cap_sock_setsockopt_old(struct socket *sock, int optname, char __us
+@@ -479,7 +479,8 @@ static int l2cap_sock_setsockopt_old(struct socket *sock, int optname,
        struct sock *sk = sock->sk;
        struct l2cap_chan *chan = l2cap_pi(sk)->chan;
        struct l2cap_options opts;
@@ -78846,7 +85323,7 @@ index 083f2bf..799f9448 100644
        u32 opt;
  
        BT_DBG("sk %p", sk);
-@@ -493,7 +494,7 @@ static int l2cap_sock_setsockopt_old(struct socket *sock, int optname, char __us
+@@ -501,7 +502,7 @@ static int l2cap_sock_setsockopt_old(struct socket *sock, int optname,
                opts.max_tx   = chan->max_tx;
                opts.txwin_size = chan->tx_win;
  
@@ -78855,7 +85332,7 @@ index 083f2bf..799f9448 100644
                if (copy_from_user((char *) &opts, optval, len)) {
                        err = -EFAULT;
                        break;
-@@ -571,7 +572,8 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, ch
+@@ -581,7 +582,8 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
        struct bt_security sec;
        struct bt_power pwr;
        struct l2cap_conn *conn;
@@ -78865,7 +85342,7 @@ index 083f2bf..799f9448 100644
        u32 opt;
  
        BT_DBG("sk %p", sk);
-@@ -594,7 +596,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, ch
+@@ -604,7 +606,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
  
                sec.level = BT_SECURITY_LOW;
  
@@ -78874,7 +85351,7 @@ index 083f2bf..799f9448 100644
                if (copy_from_user((char *) &sec, optval, len)) {
                        err = -EFAULT;
                        break;
-@@ -691,7 +693,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname, ch
+@@ -701,7 +703,7 @@ static int l2cap_sock_setsockopt(struct socket *sock, int level, int optname,
  
                pwr.force_active = BT_POWER_FORCE_ACTIVE_ON;
  
@@ -78884,7 +85361,7 @@ index 083f2bf..799f9448 100644
                        err = -EFAULT;
                        break;
 diff --git a/net/bluetooth/rfcomm/sock.c b/net/bluetooth/rfcomm/sock.c
-index 868a909..d044bc3 100644
+index ce3f665..2c7d08f 100644
 --- a/net/bluetooth/rfcomm/sock.c
 +++ b/net/bluetooth/rfcomm/sock.c
 @@ -667,7 +667,7 @@ static int rfcomm_sock_setsockopt(struct socket *sock, int level, int optname, c
@@ -78906,7 +85383,7 @@ index 868a909..d044bc3 100644
                        err = -EFAULT;
                        break;
 diff --git a/net/bluetooth/rfcomm/tty.c b/net/bluetooth/rfcomm/tty.c
-index ccc2487..921073d 100644
+index bd6fd0f..6492cba 100644
 --- a/net/bluetooth/rfcomm/tty.c
 +++ b/net/bluetooth/rfcomm/tty.c
 @@ -309,7 +309,7 @@ static void rfcomm_dev_del(struct rfcomm_dev *dev)
@@ -78921,9 +85398,9 @@ index ccc2487..921073d 100644
 @@ -664,10 +664,10 @@ static int rfcomm_tty_open(struct tty_struct *tty, struct file *filp)
                return -ENODEV;
  
-       BT_DBG("dev %p dst %s channel %d opened %d", dev, batostr(&dev->dst),
--                              dev->channel, dev->port.count);
-+                              dev->channel, atomic_read(&dev->port.count));
+       BT_DBG("dev %p dst %pMR channel %d opened %d", dev, &dev->dst,
+-             dev->channel, dev->port.count);
++             dev->channel, atomic_read(&dev->port.count));
  
        spin_lock_irqsave(&dev->port.lock, flags);
 -      if (++dev->port.count > 1) {
@@ -78944,6 +85421,19 @@ index ccc2487..921073d 100644
                spin_unlock_irqrestore(&dev->port.lock, flags);
                if (dev->tty_dev->parent)
                        device_move(dev->tty_dev, NULL, DPM_ORDER_DEV_LAST);
+diff --git a/net/bridge/br_fdb.c b/net/bridge/br_fdb.c
+index d9576e6..85f4f4e 100644
+--- a/net/bridge/br_fdb.c
++++ b/net/bridge/br_fdb.c
+@@ -386,7 +386,7 @@ static int fdb_insert(struct net_bridge *br, struct net_bridge_port *source,
+                       return 0;
+               br_warn(br, "adding interface %s with same address "
+                      "as a received packet\n",
+-                     source->dev->name);
++                     source ? source->dev->name : br->dev->name);
+               fdb_delete(br, fdb);
+       }
 diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
 index 5fe2ff3..121d696 100644
 --- a/net/bridge/netfilter/ebtables.c
@@ -78976,7 +85466,7 @@ index 5fe2ff3..121d696 100644
                        break;
                }
 diff --git a/net/caif/cfctrl.c b/net/caif/cfctrl.c
-index 44f270f..1f5602d 100644
+index a376ec1..1fbd6be 100644
 --- a/net/caif/cfctrl.c
 +++ b/net/caif/cfctrl.c
 @@ -10,6 +10,7 @@
@@ -79032,7 +85522,7 @@ index ddac1ee..3ee0a78 100644
  };
  
 diff --git a/net/can/gw.c b/net/can/gw.c
-index 1f5c978..ef714c7 100644
+index 574dda78e..3d2b3da 100644
 --- a/net/can/gw.c
 +++ b/net/can/gw.c
 @@ -67,7 +67,6 @@ MODULE_AUTHOR("Oliver Hartkopp <oliver.hartkopp@volkswagen.de>");
@@ -79043,7 +85533,7 @@ index 1f5c978..ef714c7 100644
  
  static struct kmem_cache *cgw_cache __read_mostly;
  
-@@ -887,6 +886,10 @@ static int cgw_remove_job(struct sk_buff *skb,  struct nlmsghdr *nlh, void *arg)
+@@ -893,6 +892,10 @@ static int cgw_remove_job(struct sk_buff *skb,  struct nlmsghdr *nlh, void *arg)
        return err;
  }
  
@@ -79054,7 +85544,7 @@ index 1f5c978..ef714c7 100644
  static __init int cgw_module_init(void)
  {
        printk(banner);
-@@ -898,7 +901,6 @@ static __init int cgw_module_init(void)
+@@ -904,7 +907,6 @@ static __init int cgw_module_init(void)
                return -ENOMEM;
  
        /* set notifier */
@@ -79203,7 +85693,7 @@ index 79ae884..17c5c09 100644
        a0 = a[0];
        a1 = a[1];
 diff --git a/net/core/datagram.c b/net/core/datagram.c
-index 0337e2b..47914a0 100644
+index 368f9c3..f82d4a3 100644
 --- a/net/core/datagram.c
 +++ b/net/core/datagram.c
 @@ -289,7 +289,7 @@ int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags)
@@ -79216,10 +85706,10 @@ index 0337e2b..47914a0 100644
  
        return err;
 diff --git a/net/core/dev.c b/net/core/dev.c
-index e5942bf..25998c3 100644
+index 5d9c43d..b471558 100644
 --- a/net/core/dev.c
 +++ b/net/core/dev.c
-@@ -1162,9 +1162,13 @@ void dev_load(struct net *net, const char *name)
+@@ -1250,9 +1250,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)) {
@@ -79233,7 +85723,7 @@ index e5942bf..25998c3 100644
        }
  }
  EXPORT_SYMBOL(dev_load);
-@@ -1627,7 +1631,7 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
+@@ -1714,7 +1718,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)) {
@@ -79242,7 +85732,7 @@ index e5942bf..25998c3 100644
                        kfree_skb(skb);
                        return NET_RX_DROP;
                }
-@@ -1637,7 +1641,7 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
+@@ -1724,7 +1728,7 @@ int dev_forward_skb(struct net_device *dev, struct sk_buff *skb)
        nf_reset(skb);
  
        if (unlikely(!is_skb_forwardable(dev, skb))) {
@@ -79251,7 +85741,7 @@ index e5942bf..25998c3 100644
                kfree_skb(skb);
                return NET_RX_DROP;
        }
-@@ -2093,7 +2097,7 @@ static int illegal_highdma(struct net_device *dev, struct sk_buff *skb)
+@@ -2179,7 +2183,7 @@ static int illegal_highdma(struct net_device *dev, struct sk_buff *skb)
  
  struct dev_gso_cb {
        void (*destructor)(struct sk_buff *skb);
@@ -79260,7 +85750,7 @@ index e5942bf..25998c3 100644
  
  #define DEV_GSO_CB(skb) ((struct dev_gso_cb *)(skb)->cb)
  
-@@ -2955,7 +2959,7 @@ enqueue:
+@@ -3052,7 +3056,7 @@ enqueue:
  
        local_irq_restore(flags);
  
@@ -79269,7 +85759,7 @@ index e5942bf..25998c3 100644
        kfree_skb(skb);
        return NET_RX_DROP;
  }
-@@ -3027,7 +3031,7 @@ int netif_rx_ni(struct sk_buff *skb)
+@@ -3124,7 +3128,7 @@ int netif_rx_ni(struct sk_buff *skb)
  }
  EXPORT_SYMBOL(netif_rx_ni);
  
@@ -79278,7 +85768,7 @@ index e5942bf..25998c3 100644
  {
        struct softnet_data *sd = &__get_cpu_var(softnet_data);
  
-@@ -3358,7 +3362,7 @@ ncls:
+@@ -3462,7 +3466,7 @@ ncls:
                        ret = pt_prev->func(skb, skb->dev, pt_prev, orig_dev);
        } else {
  drop:
@@ -79287,7 +85777,7 @@ index e5942bf..25998c3 100644
                kfree_skb(skb);
                /* Jamal, now you will not able to escape explaining
                 * me how you were going to use this. :-)
-@@ -3944,7 +3948,7 @@ void netif_napi_del(struct napi_struct *napi)
+@@ -4045,7 +4049,7 @@ void netif_napi_del(struct napi_struct *napi)
  }
  EXPORT_SYMBOL(netif_napi_del);
  
@@ -79296,7 +85786,7 @@ index e5942bf..25998c3 100644
  {
        struct softnet_data *sd = &__get_cpu_var(softnet_data);
        unsigned long time_limit = jiffies + 2;
-@@ -4423,8 +4427,13 @@ static int ptype_seq_show(struct seq_file *seq, void *v)
+@@ -4529,8 +4533,13 @@ static int ptype_seq_show(struct seq_file *seq, void *v)
                else
                        seq_printf(seq, "%04x", ntohs(pt->type));
  
@@ -79310,7 +85800,7 @@ index e5942bf..25998c3 100644
        }
  
        return 0;
-@@ -5987,7 +5996,7 @@ struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
+@@ -6102,7 +6111,7 @@ struct rtnl_link_stats64 *dev_get_stats(struct net_device *dev,
        } else {
                netdev_stats_to_stats64(storage, &dev->stats);
        }
@@ -79320,7 +85810,7 @@ index e5942bf..25998c3 100644
  }
  EXPORT_SYMBOL(dev_get_stats);
 diff --git a/net/core/flow.c b/net/core/flow.c
-index e318c7e..168b1d0 100644
+index 3bad824..2071a55 100644
 --- a/net/core/flow.c
 +++ b/net/core/flow.c
 @@ -61,7 +61,7 @@ struct flow_cache {
@@ -79381,48 +85871,116 @@ index 7e7aeb0..2a998cb 100644
                return -EFAULT;
  
        m->msg_iov = iov;
+diff --git a/net/core/neighbour.c b/net/core/neighbour.c
+index c815f28..e6403f2 100644
+--- a/net/core/neighbour.c
++++ b/net/core/neighbour.c
+@@ -2776,7 +2776,7 @@ static int proc_unres_qlen(ctl_table *ctl, int write, void __user *buffer,
+                          size_t *lenp, loff_t *ppos)
+ {
+       int size, ret;
+-      ctl_table tmp = *ctl;
++      ctl_table_no_const tmp = *ctl;
+       tmp.extra1 = &zero;
+       tmp.extra2 = &unres_qlen_max;
+diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
+index 28c5f5a..7edf2e2 100644
+--- a/net/core/net-sysfs.c
++++ b/net/core/net-sysfs.c
+@@ -1455,7 +1455,7 @@ void netdev_class_remove_file(struct class_attribute *class_attr)
+ }
+ EXPORT_SYMBOL(netdev_class_remove_file);
+-int netdev_kobject_init(void)
++int __init netdev_kobject_init(void)
+ {
+       kobj_ns_type_register(&net_ns_type_operations);
+       return class_register(&net_class);
+diff --git a/net/core/net_namespace.c b/net/core/net_namespace.c
+index 8acce01..2e306bb 100644
+--- a/net/core/net_namespace.c
++++ b/net/core/net_namespace.c
+@@ -442,7 +442,7 @@ static int __register_pernet_operations(struct list_head *list,
+       int error;
+       LIST_HEAD(net_exit_list);
+-      list_add_tail(&ops->list, list);
++      pax_list_add_tail((struct list_head *)&ops->list, list);
+       if (ops->init || (ops->id && ops->size)) {
+               for_each_net(net) {
+                       error = ops_init(ops, net);
+@@ -455,7 +455,7 @@ static int __register_pernet_operations(struct list_head *list,
+ out_undo:
+       /* If I have an error cleanup all namespaces I initialized */
+-      list_del(&ops->list);
++      pax_list_del((struct list_head *)&ops->list);
+       ops_exit_list(ops, &net_exit_list);
+       ops_free_list(ops, &net_exit_list);
+       return error;
+@@ -466,7 +466,7 @@ static void __unregister_pernet_operations(struct pernet_operations *ops)
+       struct net *net;
+       LIST_HEAD(net_exit_list);
+-      list_del(&ops->list);
++      pax_list_del((struct list_head *)&ops->list);
+       for_each_net(net)
+               list_add_tail(&net->exit_list, &net_exit_list);
+       ops_exit_list(ops, &net_exit_list);
+@@ -600,7 +600,7 @@ int register_pernet_device(struct pernet_operations *ops)
+       mutex_lock(&net_mutex);
+       error = register_pernet_operations(&pernet_list, ops);
+       if (!error && (first_device == &pernet_list))
+-              first_device = &ops->list;
++              first_device = (struct list_head *)&ops->list;
+       mutex_unlock(&net_mutex);
+       return error;
+ }
 diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
-index fad649a..f2fdac4 100644
+index 6212ec9..dd4ad3b 100644
 --- a/net/core/rtnetlink.c
 +++ b/net/core/rtnetlink.c
-@@ -198,14 +198,16 @@ int __rtnl_register(int protocol, int msgtype,
-               rtnl_msg_handlers[protocol] = tab;
-       }
+@@ -58,7 +58,7 @@ struct rtnl_link {
+       rtnl_doit_func          doit;
+       rtnl_dumpit_func        dumpit;
+       rtnl_calcit_func        calcit;
+-};
++} __no_const;
  
-+      pax_open_kernel();
-       if (doit)
--              tab[msgindex].doit = doit;
-+              *(void **)&tab[msgindex].doit = doit;
+ static DEFINE_MUTEX(rtnl_mutex);
  
-       if (dumpit)
--              tab[msgindex].dumpit = dumpit;
-+              *(void **)&tab[msgindex].dumpit = dumpit;
+@@ -299,10 +299,13 @@ int __rtnl_link_register(struct rtnl_link_ops *ops)
+       if (rtnl_link_ops_get(ops->kind))
+               return -EEXIST;
  
-       if (calcit)
--              tab[msgindex].calcit = calcit;
-+              *(void **)&tab[msgindex].calcit = calcit;
-+      pax_close_kernel();
+-      if (!ops->dellink)
+-              ops->dellink = unregister_netdevice_queue;
++      if (!ops->dellink) {
++              pax_open_kernel();
++              *(void **)&ops->dellink = unregister_netdevice_queue;
++              pax_close_kernel();
++      }
  
+-      list_add_tail(&ops->list, &link_ops);
++      pax_list_add_tail((struct list_head *)&ops->list, &link_ops);
        return 0;
  }
-@@ -248,8 +250,10 @@ int rtnl_unregister(int protocol, int msgtype)
-       if (rtnl_msg_handlers[protocol] == NULL)
-               return -ENOENT;
--      rtnl_msg_handlers[protocol][msgindex].doit = NULL;
--      rtnl_msg_handlers[protocol][msgindex].dumpit = NULL;
-+      pax_open_kernel();
-+      *(void **)&rtnl_msg_handlers[protocol][msgindex].doit = NULL;
-+      *(void **)&rtnl_msg_handlers[protocol][msgindex].dumpit = NULL;
-+      pax_close_kernel();
-       return 0;
+ EXPORT_SYMBOL_GPL(__rtnl_link_register);
+@@ -349,7 +352,7 @@ void __rtnl_link_unregister(struct rtnl_link_ops *ops)
+       for_each_net(net) {
+               __rtnl_kill_links(net, ops);
+       }
+-      list_del(&ops->list);
++      pax_list_del((struct list_head *)&ops->list);
  }
+ EXPORT_SYMBOL_GPL(__rtnl_link_unregister);
 diff --git a/net/core/scm.c b/net/core/scm.c
-index ab57084..0190c8f 100644
+index 2dc6cda..2159524 100644
 --- a/net/core/scm.c
 +++ b/net/core/scm.c
-@@ -223,7 +223,7 @@ EXPORT_SYMBOL(__scm_send);
+@@ -226,7 +226,7 @@ EXPORT_SYMBOL(__scm_send);
  int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data)
  {
        struct cmsghdr __user *cm
@@ -79431,7 +85989,7 @@ index ab57084..0190c8f 100644
        struct cmsghdr cmhdr;
        int cmlen = CMSG_LEN(len);
        int err;
-@@ -246,7 +246,7 @@ int put_cmsg(struct msghdr * msg, int level, int type, int len, void *data)
+@@ -249,7 +249,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;
@@ -79440,7 +85998,7 @@ index ab57084..0190c8f 100644
                goto out;
        cmlen = CMSG_SPACE(len);
        if (msg->msg_controllen < cmlen)
-@@ -262,7 +262,7 @@ EXPORT_SYMBOL(put_cmsg);
+@@ -265,7 +265,7 @@ EXPORT_SYMBOL(put_cmsg);
  void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
  {
        struct cmsghdr __user *cm
@@ -79449,7 +86007,7 @@ index ab57084..0190c8f 100644
  
        int fdmax = 0;
        int fdnum = scm->fp->count;
-@@ -282,7 +282,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
+@@ -285,7 +285,7 @@ void scm_detach_fds(struct msghdr *msg, struct scm_cookie *scm)
        if (fdnum < fdmax)
                fdmax = fdnum;
  
@@ -79459,7 +86017,7 @@ index ab57084..0190c8f 100644
        {
                struct socket *sock;
 diff --git a/net/core/sock.c b/net/core/sock.c
-index 8a146cf..ee08914d 100644
+index bc131d4..029e378 100644
 --- a/net/core/sock.c
 +++ b/net/core/sock.c
 @@ -388,7 +388,7 @@ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
@@ -79507,7 +86065,7 @@ index 8a146cf..ee08914d 100644
                goto discard_and_relse;
        }
  
-@@ -875,12 +875,12 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
+@@ -930,12 +930,12 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
                struct timeval tm;
        } v;
  
@@ -79523,7 +86081,7 @@ index 8a146cf..ee08914d 100644
                return -EINVAL;
  
        memset(&v, 0, sizeof(v));
-@@ -1028,11 +1028,11 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
+@@ -1083,11 +1083,11 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
  
        case SO_PEERNAME:
        {
@@ -79537,7 +86095,7 @@ index 8a146cf..ee08914d 100644
                        return -EINVAL;
                if (copy_to_user(optval, address, len))
                        return -EFAULT;
-@@ -1080,7 +1080,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
+@@ -1146,7 +1146,7 @@ int sock_getsockopt(struct socket *sock, int level, int optname,
  
        if (len > lv)
                len = lv;
@@ -79546,7 +86104,7 @@ index 8a146cf..ee08914d 100644
                return -EFAULT;
  lenout:
        if (put_user(len, optlen))
-@@ -2212,7 +2212,7 @@ void sock_init_data(struct socket *sock, struct sock *sk)
+@@ -2276,7 +2276,7 @@ void sock_init_data(struct socket *sock, struct sock *sk)
         */
        smp_wmb();
        atomic_set(&sk->sk_refcnt, 1);
@@ -79556,10 +86114,17 @@ index 8a146cf..ee08914d 100644
  EXPORT_SYMBOL(sock_init_data);
  
 diff --git a/net/core/sock_diag.c b/net/core/sock_diag.c
-index 602cd63..05c6c60 100644
+index 750f44f..922399c 100644
 --- a/net/core/sock_diag.c
 +++ b/net/core/sock_diag.c
-@@ -15,20 +15,27 @@ static DEFINE_MUTEX(sock_diag_table_mutex);
+@@ -9,26 +9,33 @@
+ #include <linux/inet_diag.h>
+ #include <linux/sock_diag.h>
+-static const struct sock_diag_handler *sock_diag_handlers[AF_MAX];
++static const struct sock_diag_handler *sock_diag_handlers[AF_MAX] __read_only;
+ static int (*inet_rcv_compat)(struct sk_buff *skb, struct nlmsghdr *nlh);
+ static DEFINE_MUTEX(sock_diag_table_mutex);
  
  int sock_diag_check_cookie(void *sk, __u32 *cookie)
  {
@@ -79587,6 +86152,140 @@ index 602cd63..05c6c60 100644
  }
  EXPORT_SYMBOL_GPL(sock_diag_save_cookie);
  
+@@ -75,8 +82,11 @@ int sock_diag_register(const struct sock_diag_handler *hndl)
+       mutex_lock(&sock_diag_table_mutex);
+       if (sock_diag_handlers[hndl->family])
+               err = -EBUSY;
+-      else
++      else {
++              pax_open_kernel();
+               sock_diag_handlers[hndl->family] = hndl;
++              pax_close_kernel();
++      }
+       mutex_unlock(&sock_diag_table_mutex);
+       return err;
+@@ -92,26 +102,13 @@ void sock_diag_unregister(const struct sock_diag_handler *hnld)
+       mutex_lock(&sock_diag_table_mutex);
+       BUG_ON(sock_diag_handlers[family] != hnld);
++      pax_open_kernel();
+       sock_diag_handlers[family] = NULL;
++      pax_close_kernel();
+       mutex_unlock(&sock_diag_table_mutex);
+ }
+ EXPORT_SYMBOL_GPL(sock_diag_unregister);
+-static const inline struct sock_diag_handler *sock_diag_lock_handler(int family)
+-{
+-      if (sock_diag_handlers[family] == NULL)
+-              request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
+-                              NETLINK_SOCK_DIAG, family);
+-
+-      mutex_lock(&sock_diag_table_mutex);
+-      return sock_diag_handlers[family];
+-}
+-
+-static inline void sock_diag_unlock_handler(const struct sock_diag_handler *h)
+-{
+-      mutex_unlock(&sock_diag_table_mutex);
+-}
+-
+ static int __sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
+ {
+       int err;
+@@ -124,12 +121,17 @@ static int __sock_diag_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
+       if (req->sdiag_family >= AF_MAX)
+               return -EINVAL;
+-      hndl = sock_diag_lock_handler(req->sdiag_family);
++      if (sock_diag_handlers[req->sdiag_family] == NULL)
++              request_module("net-pf-%d-proto-%d-type-%d", PF_NETLINK,
++                              NETLINK_SOCK_DIAG, req->sdiag_family);
++
++      mutex_lock(&sock_diag_table_mutex);
++      hndl = sock_diag_handlers[req->sdiag_family];
+       if (hndl == NULL)
+               err = -ENOENT;
+       else
+               err = hndl->dump(skb, nlh);
+-      sock_diag_unlock_handler(hndl);
++      mutex_unlock(&sock_diag_table_mutex);
+       return err;
+ }
+diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
+index d1b0804..98cf5f7 100644
+--- a/net/core/sysctl_net_core.c
++++ b/net/core/sysctl_net_core.c
+@@ -26,7 +26,7 @@ static int rps_sock_flow_sysctl(ctl_table *table, int write,
+ {
+       unsigned int orig_size, size;
+       int ret, i;
+-      ctl_table tmp = {
++      ctl_table_no_const tmp = {
+               .data = &size,
+               .maxlen = sizeof(size),
+               .mode = table->mode
+@@ -205,13 +205,12 @@ static struct ctl_table netns_core_table[] = {
+ static __net_init int sysctl_core_net_init(struct net *net)
+ {
+-      struct ctl_table *tbl;
++      ctl_table_no_const *tbl = NULL;
+       net->core.sysctl_somaxconn = SOMAXCONN;
+-      tbl = netns_core_table;
+       if (!net_eq(net, &init_net)) {
+-              tbl = kmemdup(tbl, sizeof(netns_core_table), GFP_KERNEL);
++              tbl = kmemdup(netns_core_table, sizeof(netns_core_table), GFP_KERNEL);
+               if (tbl == NULL)
+                       goto err_dup;
+@@ -221,17 +220,16 @@ static __net_init int sysctl_core_net_init(struct net *net)
+               if (net->user_ns != &init_user_ns) {
+                       tbl[0].procname = NULL;
+               }
+-      }
+-
+-      net->core.sysctl_hdr = register_net_sysctl(net, "net/core", tbl);
++              net->core.sysctl_hdr = register_net_sysctl(net, "net/core", tbl);
++      } else
++              net->core.sysctl_hdr = register_net_sysctl(net, "net/core", netns_core_table);
+       if (net->core.sysctl_hdr == NULL)
+               goto err_reg;
+       return 0;
+ err_reg:
+-      if (tbl != netns_core_table)
+-              kfree(tbl);
++      kfree(tbl);
+ err_dup:
+       return -ENOMEM;
+ }
+@@ -246,7 +244,7 @@ static __net_exit void sysctl_core_net_exit(struct net *net)
+       kfree(tbl);
+ }
+-static __net_initdata struct pernet_operations sysctl_core_ops = {
++static __net_initconst struct pernet_operations sysctl_core_ops = {
+       .init = sysctl_core_net_init,
+       .exit = sysctl_core_net_exit,
+ };
+diff --git a/net/decnet/af_decnet.c b/net/decnet/af_decnet.c
+index 307c322..78a4c6f 100644
+--- a/net/decnet/af_decnet.c
++++ b/net/decnet/af_decnet.c
+@@ -468,6 +468,7 @@ static struct proto dn_proto = {
+       .sysctl_rmem            = sysctl_decnet_rmem,
+       .max_header             = DN_MAX_NSP_DATA_HEADER + 64,
+       .obj_size               = sizeof(struct dn_sock),
++      .slab_flags             = SLAB_USERCOPY,
+ };
+ static struct sock *dn_alloc_sock(struct net *net, struct socket *sock, gfp_t gfp)
 diff --git a/net/decnet/sysctl_net_decnet.c b/net/decnet/sysctl_net_decnet.c
 index a55eecc..dd8428c 100644
 --- a/net/decnet/sysctl_net_decnet.c
@@ -79609,24 +86308,115 @@ index a55eecc..dd8428c 100644
                return -EFAULT;
  
        *lenp = len;
+diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
+index fcf104e..95552d4 100644
+--- a/net/ipv4/af_inet.c
++++ b/net/ipv4/af_inet.c
+@@ -1717,13 +1717,9 @@ static int __init inet_init(void)
+       BUILD_BUG_ON(sizeof(struct inet_skb_parm) > sizeof(dummy_skb->cb));
+-      sysctl_local_reserved_ports = kzalloc(65536 / 8, GFP_KERNEL);
+-      if (!sysctl_local_reserved_ports)
+-              goto out;
+-
+       rc = proto_register(&tcp_prot, 1);
+       if (rc)
+-              goto out_free_reserved_ports;
++              goto out;
+       rc = proto_register(&udp_prot, 1);
+       if (rc)
+@@ -1832,8 +1828,6 @@ out_unregister_udp_proto:
+       proto_unregister(&udp_prot);
+ out_unregister_tcp_proto:
+       proto_unregister(&tcp_prot);
+-out_free_reserved_ports:
+-      kfree(sysctl_local_reserved_ports);
+       goto out;
+ }
+diff --git a/net/ipv4/ah4.c b/net/ipv4/ah4.c
+index a69b4e4..dbccba5 100644
+--- a/net/ipv4/ah4.c
++++ b/net/ipv4/ah4.c
+@@ -421,7 +421,7 @@ static void ah4_err(struct sk_buff *skb, u32 info)
+               return;
+       if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) {
+-              atomic_inc(&flow_cache_genid);
++              atomic_inc_unchecked(&flow_cache_genid);
+               rt_genid_bump(net);
+               ipv4_update_pmtu(skb, net, info, 0, 0, IPPROTO_AH, 0);
 diff --git a/net/ipv4/devinet.c b/net/ipv4/devinet.c
-index 2a6abc1..c379ba7 100644
+index a8e4f26..25e5f40 100644
 --- a/net/ipv4/devinet.c
 +++ b/net/ipv4/devinet.c
-@@ -822,9 +822,9 @@ int devinet_ioctl(struct net *net, unsigned int cmd, void __user *arg)
-               if (!ifa) {
-                       ret = -ENOBUFS;
-                       ifa = inet_alloc_ifa();
-+                      if (!ifa)
-+                              break;
-                       INIT_HLIST_NODE(&ifa->hash);
--                      if (!ifa)
--                              break;
-                       if (colon)
-                               memcpy(ifa->ifa_label, ifr.ifr_name, IFNAMSIZ);
-                       else
+@@ -1763,7 +1763,7 @@ static int ipv4_doint_and_flush(ctl_table *ctl, int write,
+ #define DEVINET_SYSCTL_FLUSHING_ENTRY(attr, name) \
+       DEVINET_SYSCTL_COMPLEX_ENTRY(attr, name, ipv4_doint_and_flush)
+-static struct devinet_sysctl_table {
++static const struct devinet_sysctl_table {
+       struct ctl_table_header *sysctl_header;
+       struct ctl_table devinet_vars[__IPV4_DEVCONF_MAX];
+ } devinet_sysctl = {
+@@ -1881,7 +1881,7 @@ static __net_init int devinet_init_net(struct net *net)
+       int err;
+       struct ipv4_devconf *all, *dflt;
+ #ifdef CONFIG_SYSCTL
+-      struct ctl_table *tbl = ctl_forward_entry;
++      ctl_table_no_const *tbl = NULL;
+       struct ctl_table_header *forw_hdr;
+ #endif
+@@ -1899,7 +1899,7 @@ static __net_init int devinet_init_net(struct net *net)
+                       goto err_alloc_dflt;
+ #ifdef CONFIG_SYSCTL
+-              tbl = kmemdup(tbl, sizeof(ctl_forward_entry), GFP_KERNEL);
++              tbl = kmemdup(ctl_forward_entry, sizeof(ctl_forward_entry), GFP_KERNEL);
+               if (tbl == NULL)
+                       goto err_alloc_ctl;
+@@ -1919,7 +1919,10 @@ static __net_init int devinet_init_net(struct net *net)
+               goto err_reg_dflt;
+       err = -ENOMEM;
+-      forw_hdr = register_net_sysctl(net, "net/ipv4", tbl);
++      if (!net_eq(net, &init_net))
++              forw_hdr = register_net_sysctl(net, "net/ipv4", tbl);
++      else
++              forw_hdr = register_net_sysctl(net, "net/ipv4", ctl_forward_entry);
+       if (forw_hdr == NULL)
+               goto err_reg_ctl;
+       net->ipv4.forw_hdr = forw_hdr;
+@@ -1935,8 +1938,7 @@ err_reg_ctl:
+ err_reg_dflt:
+       __devinet_sysctl_unregister(all);
+ err_reg_all:
+-      if (tbl != ctl_forward_entry)
+-              kfree(tbl);
++      kfree(tbl);
+ err_alloc_ctl:
+ #endif
+       if (dflt != &ipv4_devconf_dflt)
+diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c
+index 3b4f0cd..8cb864c 100644
+--- a/net/ipv4/esp4.c
++++ b/net/ipv4/esp4.c
+@@ -503,7 +503,7 @@ static void esp4_err(struct sk_buff *skb, u32 info)
+               return;
+       if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) {
+-              atomic_inc(&flow_cache_genid);
++              atomic_inc_unchecked(&flow_cache_genid);
+               rt_genid_bump(net);
+               ipv4_update_pmtu(skb, net, info, 0, 0, IPPROTO_ESP, 0);
 diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c
-index 825c608..750ff29 100644
+index 5cd75e2..f57ef39 100644
 --- a/net/ipv4/fib_frontend.c
 +++ b/net/ipv4/fib_frontend.c
 @@ -1020,12 +1020,12 @@ static int fib_inetaddr_event(struct notifier_block *this, unsigned long event,
@@ -79654,7 +86444,7 @@ index 825c608..750ff29 100644
                break;
        case NETDEV_DOWN:
 diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
-index 71b125c..f4c70b0 100644
+index 4797a80..2bd54e9 100644
 --- a/net/ipv4/fib_semantics.c
 +++ b/net/ipv4/fib_semantics.c
 @@ -767,7 +767,7 @@ __be32 fib_info_update_nh_saddr(struct net *net, struct fib_nh *nh)
@@ -79666,8 +86456,21 @@ index 71b125c..f4c70b0 100644
  
        return nh->nh_saddr;
  }
+diff --git a/net/ipv4/inet_connection_sock.c b/net/ipv4/inet_connection_sock.c
+index d0670f0..744ac80 100644
+--- a/net/ipv4/inet_connection_sock.c
++++ b/net/ipv4/inet_connection_sock.c
+@@ -37,7 +37,7 @@ struct local_ports sysctl_local_ports __read_mostly = {
+       .range = { 32768, 61000 },
+ };
+-unsigned long *sysctl_local_reserved_ports;
++unsigned long sysctl_local_reserved_ports[65536 / 8 / sizeof(unsigned long)];
+ EXPORT_SYMBOL(sysctl_local_reserved_ports);
+ void inet_get_local_port_range(int *low, int *high)
 diff --git a/net/ipv4/inet_hashtables.c b/net/ipv4/inet_hashtables.c
-index 7880af9..70f92a3 100644
+index fa3ae81..0dbe6b8 100644
 --- a/net/ipv4/inet_hashtables.c
 +++ b/net/ipv4/inet_hashtables.c
 @@ -18,12 +18,15 @@
@@ -79686,7 +86489,7 @@ index 7880af9..70f92a3 100644
  /*
   * Allocate and initialize a new local port bind bucket.
   * The bindhash mutex for snum's hash chain must be held here.
-@@ -530,6 +533,8 @@ ok:
+@@ -540,6 +543,8 @@ ok:
                        twrefcnt += inet_twsk_bind_unhash(tw, hinfo);
                spin_unlock(&head->lock);
  
@@ -79711,10 +86514,10 @@ index 000e3d2..5472da3 100644
                                        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 8d5cc75..821fd11 100644
+index a8fc332..4ca4ca65 100644
 --- a/net/ipv4/ip_fragment.c
 +++ b/net/ipv4/ip_fragment.c
-@@ -322,7 +322,7 @@ static inline int ip_frag_too_far(struct ipq *qp)
+@@ -319,7 +319,7 @@ static inline int ip_frag_too_far(struct ipq *qp)
                return 0;
  
        start = qp->rid;
@@ -79723,11 +86526,80 @@ index 8d5cc75..821fd11 100644
        qp->rid = end;
  
        rc = qp->q.fragments && (end - start) > max;
+@@ -786,12 +786,11 @@ static struct ctl_table ip4_frags_ctl_table[] = {
+ static int __net_init ip4_frags_ns_ctl_register(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table = NULL;
+       struct ctl_table_header *hdr;
+-      table = ip4_frags_ns_ctl_table;
+       if (!net_eq(net, &init_net)) {
+-              table = kmemdup(table, sizeof(ip4_frags_ns_ctl_table), GFP_KERNEL);
++              table = kmemdup(ip4_frags_ns_ctl_table, sizeof(ip4_frags_ns_ctl_table), GFP_KERNEL);
+               if (table == NULL)
+                       goto err_alloc;
+@@ -802,9 +801,10 @@ static int __net_init ip4_frags_ns_ctl_register(struct net *net)
+               /* Don't export sysctls to unprivileged users */
+               if (net->user_ns != &init_user_ns)
+                       table[0].procname = NULL;
+-      }
++              hdr = register_net_sysctl(net, "net/ipv4", table);
++      } else
++              hdr = register_net_sysctl(net, "net/ipv4", ip4_frags_ns_ctl_table);
+-      hdr = register_net_sysctl(net, "net/ipv4", table);
+       if (hdr == NULL)
+               goto err_reg;
+@@ -812,8 +812,7 @@ static int __net_init ip4_frags_ns_ctl_register(struct net *net)
+       return 0;
+ err_reg:
+-      if (!net_eq(net, &init_net))
+-              kfree(table);
++      kfree(table);
+ err_alloc:
+       return -ENOMEM;
+ }
+diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
+index a85062b..2958a9b 100644
+--- a/net/ipv4/ip_gre.c
++++ b/net/ipv4/ip_gre.c
+@@ -124,7 +124,7 @@ static bool log_ecn_error = true;
+ module_param(log_ecn_error, bool, 0644);
+ MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN");
+-static struct rtnl_link_ops ipgre_link_ops __read_mostly;
++static struct rtnl_link_ops ipgre_link_ops;
+ static int ipgre_tunnel_init(struct net_device *dev);
+ static void ipgre_tunnel_setup(struct net_device *dev);
+ static int ipgre_tunnel_bind_dev(struct net_device *dev);
+@@ -1753,7 +1753,7 @@ static const struct nla_policy ipgre_policy[IFLA_GRE_MAX + 1] = {
+       [IFLA_GRE_PMTUDISC]     = { .type = NLA_U8 },
+ };
+-static struct rtnl_link_ops ipgre_link_ops __read_mostly = {
++static struct rtnl_link_ops ipgre_link_ops = {
+       .kind           = "gre",
+       .maxtype        = IFLA_GRE_MAX,
+       .policy         = ipgre_policy,
+@@ -1766,7 +1766,7 @@ static struct rtnl_link_ops ipgre_link_ops __read_mostly = {
+       .fill_info      = ipgre_fill_info,
+ };
+-static struct rtnl_link_ops ipgre_tap_ops __read_mostly = {
++static struct rtnl_link_ops ipgre_tap_ops = {
+       .kind           = "gretap",
+       .maxtype        = IFLA_GRE_MAX,
+       .policy         = ipgre_policy,
 diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c
-index 14bbfcf..644f472 100644
+index d9c4f11..02b82dbc 100644
 --- a/net/ipv4/ip_sockglue.c
 +++ b/net/ipv4/ip_sockglue.c
-@@ -1151,7 +1151,8 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
+@@ -1152,7 +1152,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;
@@ -79737,7 +86609,7 @@ index 14bbfcf..644f472 100644
                        return -EFAULT;
                return 0;
        }
-@@ -1282,7 +1283,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
+@@ -1283,7 +1284,7 @@ static int do_ip_getsockopt(struct sock *sk, int level, int optname,
                if (sk->sk_type != SOCK_STREAM)
                        return -ENOPROTOOPT;
  
@@ -79746,11 +86618,46 @@ index 14bbfcf..644f472 100644
                msg.msg_controllen = len;
                msg.msg_flags = flags;
  
+diff --git a/net/ipv4/ip_vti.c b/net/ipv4/ip_vti.c
+index c3a4233..1412161 100644
+--- a/net/ipv4/ip_vti.c
++++ b/net/ipv4/ip_vti.c
+@@ -47,7 +47,7 @@
+ #define HASH_SIZE  16
+ #define HASH(addr) (((__force u32)addr^((__force u32)addr>>4))&(HASH_SIZE-1))
+-static struct rtnl_link_ops vti_link_ops __read_mostly;
++static struct rtnl_link_ops vti_link_ops;
+ static int vti_net_id __read_mostly;
+ struct vti_net {
+@@ -886,7 +886,7 @@ static const struct nla_policy vti_policy[IFLA_VTI_MAX + 1] = {
+       [IFLA_VTI_REMOTE]       = { .len = FIELD_SIZEOF(struct iphdr, daddr) },
+ };
+-static struct rtnl_link_ops vti_link_ops __read_mostly = {
++static struct rtnl_link_ops vti_link_ops = {
+       .kind           = "vti",
+       .maxtype        = IFLA_VTI_MAX,
+       .policy         = vti_policy,
+diff --git a/net/ipv4/ipcomp.c b/net/ipv4/ipcomp.c
+index 9a46dae..5f793a0 100644
+--- a/net/ipv4/ipcomp.c
++++ b/net/ipv4/ipcomp.c
+@@ -48,7 +48,7 @@ static void ipcomp4_err(struct sk_buff *skb, u32 info)
+               return;
+       if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) {
+-              atomic_inc(&flow_cache_genid);
++              atomic_inc_unchecked(&flow_cache_genid);
+               rt_genid_bump(net);
+               ipv4_update_pmtu(skb, net, info, 0, 0, IPPROTO_COMP, 0);
 diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c
-index 798358b..73570b7 100644
+index a2e50ae..e152b7c 100644
 --- a/net/ipv4/ipconfig.c
 +++ b/net/ipv4/ipconfig.c
-@@ -321,7 +321,7 @@ static int __init ic_devinet_ioctl(unsigned int cmd, struct ifreq *arg)
+@@ -323,7 +323,7 @@ static int __init ic_devinet_ioctl(unsigned int cmd, struct ifreq *arg)
  
        mm_segment_t oldfs = get_fs();
        set_fs(get_ds());
@@ -79759,7 +86666,7 @@ index 798358b..73570b7 100644
        set_fs(oldfs);
        return res;
  }
-@@ -332,7 +332,7 @@ static int __init ic_dev_ioctl(unsigned int cmd, struct ifreq *arg)
+@@ -334,7 +334,7 @@ static int __init ic_dev_ioctl(unsigned int cmd, struct ifreq *arg)
  
        mm_segment_t oldfs = get_fs();
        set_fs(get_ds());
@@ -79768,7 +86675,7 @@ index 798358b..73570b7 100644
        set_fs(oldfs);
        return res;
  }
-@@ -343,7 +343,7 @@ static int __init ic_route_ioctl(unsigned int cmd, struct rtentry *arg)
+@@ -345,7 +345,7 @@ static int __init ic_route_ioctl(unsigned int cmd, struct rtentry *arg)
  
        mm_segment_t oldfs = get_fs();
        set_fs(get_ds());
@@ -79777,8 +86684,30 @@ index 798358b..73570b7 100644
        set_fs(oldfs);
        return res;
  }
+diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
+index 191fc24..1b3b804 100644
+--- a/net/ipv4/ipip.c
++++ b/net/ipv4/ipip.c
+@@ -138,7 +138,7 @@ struct ipip_net {
+ static int ipip_tunnel_init(struct net_device *dev);
+ static void ipip_tunnel_setup(struct net_device *dev);
+ static void ipip_dev_free(struct net_device *dev);
+-static struct rtnl_link_ops ipip_link_ops __read_mostly;
++static struct rtnl_link_ops ipip_link_ops;
+ static struct rtnl_link_stats64 *ipip_get_stats64(struct net_device *dev,
+                                                 struct rtnl_link_stats64 *tot)
+@@ -972,7 +972,7 @@ static const struct nla_policy ipip_policy[IFLA_IPTUN_MAX + 1] = {
+       [IFLA_IPTUN_PMTUDISC]           = { .type = NLA_U8 },
+ };
+-static struct rtnl_link_ops ipip_link_ops __read_mostly = {
++static struct rtnl_link_ops ipip_link_ops = {
+       .kind           = "ipip",
+       .maxtype        = IFLA_IPTUN_MAX,
+       .policy         = ipip_policy,
 diff --git a/net/ipv4/netfilter/arp_tables.c b/net/ipv4/netfilter/arp_tables.c
-index 97e61ea..cac1bbb 100644
+index 3ea4127..849297b 100644
 --- a/net/ipv4/netfilter/arp_tables.c
 +++ b/net/ipv4/netfilter/arp_tables.c
 @@ -879,14 +879,14 @@ static int compat_table_info(const struct xt_table_info *info,
@@ -79827,7 +86756,7 @@ index 97e61ea..cac1bbb 100644
  
        case ARPT_SO_GET_ENTRIES:
 diff --git a/net/ipv4/netfilter/ip_tables.c b/net/ipv4/netfilter/ip_tables.c
-index 170b1fd..6105b91 100644
+index 17c5e06..1b91206 100644
 --- a/net/ipv4/netfilter/ip_tables.c
 +++ b/net/ipv4/netfilter/ip_tables.c
 @@ -1068,14 +1068,14 @@ static int compat_table_info(const struct xt_table_info *info,
@@ -79876,10 +86805,10 @@ index 170b1fd..6105b91 100644
  
        case IPT_SO_GET_ENTRIES:
 diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
-index 8f3d054..c58d05d 100644
+index dc454cc..5bb917f 100644
 --- a/net/ipv4/ping.c
 +++ b/net/ipv4/ping.c
-@@ -843,7 +843,7 @@ static void ping_format_sock(struct sock *sp, struct seq_file *f,
+@@ -844,7 +844,7 @@ static void ping_format_sock(struct sock *sp, struct seq_file *f,
                from_kuid_munged(seq_user_ns(f), sock_i_uid(sp)),
                0, sock_i_ino(sp),
                atomic_read(&sp->sk_refcnt), sp,
@@ -79889,7 +86818,7 @@ index 8f3d054..c58d05d 100644
  
  static int ping_seq_show(struct seq_file *seq, void *v)
 diff --git a/net/ipv4/raw.c b/net/ipv4/raw.c
-index 73d1e4d..3af0e8f 100644
+index 6f08991..55867ad 100644
 --- a/net/ipv4/raw.c
 +++ b/net/ipv4/raw.c
 @@ -311,7 +311,7 @@ static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb)
@@ -79934,7 +86863,7 @@ index 73d1e4d..3af0e8f 100644
                goto out;
        ret = 0;
  out:  return ret;
-@@ -997,7 +1001,7 @@ static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
+@@ -998,7 +1002,7 @@ static void raw_sock_seq_show(struct seq_file *seq, struct sock *sp, int i)
                0, 0L, 0,
                from_kuid_munged(seq_user_ns(seq), sock_i_uid(sp)),
                0, sock_i_ino(sp),
@@ -79944,10 +86873,53 @@ index 73d1e4d..3af0e8f 100644
  
  static int raw_seq_show(struct seq_file *seq, void *v)
 diff --git a/net/ipv4/route.c b/net/ipv4/route.c
-index df25142..e92a82a 100644
+index a0fcc47..32e2c89 100644
 --- a/net/ipv4/route.c
 +++ b/net/ipv4/route.c
-@@ -2529,7 +2529,7 @@ static __net_initdata struct pernet_operations sysctl_route_ops = {
+@@ -2552,34 +2552,34 @@ static struct ctl_table ipv4_route_flush_table[] = {
+               .maxlen         = sizeof(int),
+               .mode           = 0200,
+               .proc_handler   = ipv4_sysctl_rtcache_flush,
++              .extra1         = &init_net,
+       },
+       { },
+ };
+ static __net_init int sysctl_route_net_init(struct net *net)
+ {
+-      struct ctl_table *tbl;
++      ctl_table_no_const *tbl = NULL;
+-      tbl = ipv4_route_flush_table;
+       if (!net_eq(net, &init_net)) {
+-              tbl = kmemdup(tbl, sizeof(ipv4_route_flush_table), GFP_KERNEL);
++              tbl = kmemdup(ipv4_route_flush_table, sizeof(ipv4_route_flush_table), GFP_KERNEL);
+               if (tbl == NULL)
+                       goto err_dup;
+               /* Don't export sysctls to unprivileged users */
+               if (net->user_ns != &init_user_ns)
+                       tbl[0].procname = NULL;
+-      }
+-      tbl[0].extra1 = net;
++              tbl[0].extra1 = net;
++              net->ipv4.route_hdr = register_net_sysctl(net, "net/ipv4/route", tbl);
++      } else
++              net->ipv4.route_hdr = register_net_sysctl(net, "net/ipv4/route", ipv4_route_flush_table);
+-      net->ipv4.route_hdr = register_net_sysctl(net, "net/ipv4/route", tbl);
+       if (net->ipv4.route_hdr == NULL)
+               goto err_reg;
+       return 0;
+ err_reg:
+-      if (tbl != ipv4_route_flush_table)
+-              kfree(tbl);
++      kfree(tbl);
+ err_dup:
+       return -ENOMEM;
+ }
+@@ -2602,7 +2602,7 @@ static __net_initdata struct pernet_operations sysctl_route_ops = {
  
  static __net_init int rt_genid_init(struct net *net)
  {
@@ -79956,52 +86928,151 @@ index df25142..e92a82a 100644
        get_random_bytes(&net->ipv4.dev_addr_genid,
                         sizeof(net->ipv4.dev_addr_genid));
        return 0;
-diff --git a/net/ipv4/tcp_cong.c b/net/ipv4/tcp_cong.c
-index 1432cdb..fc582a7 100644
---- a/net/ipv4/tcp_cong.c
-+++ b/net/ipv4/tcp_cong.c
-@@ -309,6 +309,12 @@ void tcp_slow_start(struct tcp_sock *tp)
- {
-       int cnt; /* increase in packets */
-       unsigned int delta = 0;
-+      u32 snd_cwnd = tp->snd_cwnd;
-+
-+      if (unlikely(!snd_cwnd)) {
-+              pr_err_once("snd_cwnd is nul, please report this bug.\n");
-+              snd_cwnd = 1U;
-+      }
-       /* RFC3465: ABC Slow start
-        * Increase only after a full MSS of bytes is acked
-@@ -323,7 +329,7 @@ void tcp_slow_start(struct tcp_sock *tp)
-       if (sysctl_tcp_max_ssthresh > 0 && tp->snd_cwnd > sysctl_tcp_max_ssthresh)
-               cnt = sysctl_tcp_max_ssthresh >> 1;     /* limited slow start */
-       else
--              cnt = tp->snd_cwnd;                     /* exponential increase */
-+              cnt = snd_cwnd;                         /* exponential increase */
+diff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c
+index d84400b..62e066e 100644
+--- a/net/ipv4/sysctl_net_ipv4.c
++++ b/net/ipv4/sysctl_net_ipv4.c
+@@ -54,7 +54,7 @@ static int ipv4_local_port_range(ctl_table *table, int write,
+ {
+       int ret;
+       int range[2];
+-      ctl_table tmp = {
++      ctl_table_no_const tmp = {
+               .data = &range,
+               .maxlen = sizeof(range),
+               .mode = table->mode,
+@@ -107,7 +107,7 @@ static int ipv4_ping_group_range(ctl_table *table, int write,
+       int ret;
+       gid_t urange[2];
+       kgid_t low, high;
+-      ctl_table tmp = {
++      ctl_table_no_const tmp = {
+               .data = &urange,
+               .maxlen = sizeof(urange),
+               .mode = table->mode,
+@@ -138,7 +138,7 @@ static int proc_tcp_congestion_control(ctl_table *ctl, int write,
+                                      void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+       char val[TCP_CA_NAME_MAX];
+-      ctl_table tbl = {
++      ctl_table_no_const tbl = {
+               .data = val,
+               .maxlen = TCP_CA_NAME_MAX,
+       };
+@@ -157,7 +157,7 @@ static int proc_tcp_available_congestion_control(ctl_table *ctl,
+                                                void __user *buffer, size_t *lenp,
+                                                loff_t *ppos)
+ {
+-      ctl_table tbl = { .maxlen = TCP_CA_BUF_MAX, };
++      ctl_table_no_const tbl = { .maxlen = TCP_CA_BUF_MAX, };
+       int ret;
+       tbl.data = kmalloc(tbl.maxlen, GFP_USER);
+@@ -174,7 +174,7 @@ static int proc_allowed_congestion_control(ctl_table *ctl,
+                                          void __user *buffer, size_t *lenp,
+                                          loff_t *ppos)
+ {
+-      ctl_table tbl = { .maxlen = TCP_CA_BUF_MAX };
++      ctl_table_no_const tbl = { .maxlen = TCP_CA_BUF_MAX };
+       int ret;
+       tbl.data = kmalloc(tbl.maxlen, GFP_USER);
+@@ -200,15 +200,17 @@ static int ipv4_tcp_mem(ctl_table *ctl, int write,
+       struct mem_cgroup *memcg;
+ #endif
  
-       /* RFC3465: ABC
-        * We MAY increase by 2 if discovered delayed ack
-@@ -333,11 +339,11 @@ void tcp_slow_start(struct tcp_sock *tp)
-       tp->bytes_acked = 0;
+-      ctl_table tmp = {
++      ctl_table_no_const tmp = {
+               .data = &vec,
+               .maxlen = sizeof(vec),
+               .mode = ctl->mode,
+       };
  
-       tp->snd_cwnd_cnt += cnt;
--      while (tp->snd_cwnd_cnt >= tp->snd_cwnd) {
--              tp->snd_cwnd_cnt -= tp->snd_cwnd;
-+      while (tp->snd_cwnd_cnt >= snd_cwnd) {
-+              tp->snd_cwnd_cnt -= snd_cwnd;
-               delta++;
+       if (!write) {
+-              ctl->data = &net->ipv4.sysctl_tcp_mem;
+-              return proc_doulongvec_minmax(ctl, write, buffer, lenp, ppos);
++              ctl_table_no_const tcp_mem = *ctl;
++
++              tcp_mem.data = &net->ipv4.sysctl_tcp_mem;
++              return proc_doulongvec_minmax(&tcp_mem, write, buffer, lenp, ppos);
        }
--      tp->snd_cwnd = min(tp->snd_cwnd + delta, tp->snd_cwnd_clamp);
-+      tp->snd_cwnd = min(snd_cwnd + delta, tp->snd_cwnd_clamp);
+       ret = proc_doulongvec_minmax(&tmp, write, buffer, lenp, ppos);
+@@ -235,7 +237,7 @@ static int ipv4_tcp_mem(ctl_table *ctl, int write,
+ int proc_tcp_fastopen_key(ctl_table *ctl, int write, void __user *buffer,
+                         size_t *lenp, loff_t *ppos)
+ {
+-      ctl_table tbl = { .maxlen = (TCP_FASTOPEN_KEY_LENGTH * 2 + 10) };
++      ctl_table_no_const tbl = { .maxlen = (TCP_FASTOPEN_KEY_LENGTH * 2 + 10) };
+       struct tcp_fastopen_context *ctxt;
+       int ret;
+       u32  user_key[4]; /* 16 bytes, matching TCP_FASTOPEN_KEY_LENGTH */
+@@ -476,7 +478,7 @@ static struct ctl_table ipv4_table[] = {
+       },
+       {
+               .procname       = "ip_local_reserved_ports",
+-              .data           = NULL, /* initialized in sysctl_ipv4_init */
++              .data           = sysctl_local_reserved_ports,
+               .maxlen         = 65536,
+               .mode           = 0644,
+               .proc_handler   = proc_do_large_bitmap,
+@@ -860,11 +862,10 @@ static struct ctl_table ipv4_net_table[] = {
+ static __net_init int ipv4_sysctl_init_net(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table = NULL;
+-      table = ipv4_net_table;
+       if (!net_eq(net, &init_net)) {
+-              table = kmemdup(table, sizeof(ipv4_net_table), GFP_KERNEL);
++              table = kmemdup(ipv4_net_table, sizeof(ipv4_net_table), GFP_KERNEL);
+               if (table == NULL)
+                       goto err_alloc;
+@@ -897,15 +898,17 @@ static __net_init int ipv4_sysctl_init_net(struct net *net)
+       tcp_init_mem(net);
+-      net->ipv4.ipv4_hdr = register_net_sysctl(net, "net/ipv4", table);
++      if (!net_eq(net, &init_net))
++              net->ipv4.ipv4_hdr = register_net_sysctl(net, "net/ipv4", table);
++      else
++              net->ipv4.ipv4_hdr = register_net_sysctl(net, "net/ipv4", ipv4_net_table);
+       if (net->ipv4.ipv4_hdr == NULL)
+               goto err_reg;
+       return 0;
+ err_reg:
+-      if (!net_eq(net, &init_net))
+-              kfree(table);
++      kfree(table);
+ err_alloc:
+       return -ENOMEM;
  }
- EXPORT_SYMBOL_GPL(tcp_slow_start);
+@@ -927,16 +930,6 @@ static __net_initdata struct pernet_operations ipv4_sysctl_ops = {
+ static __init int sysctl_ipv4_init(void)
+ {
+       struct ctl_table_header *hdr;
+-      struct ctl_table *i;
+-
+-      for (i = ipv4_table; i->procname; i++) {
+-              if (strcmp(i->procname, "ip_local_reserved_ports") == 0) {
+-                      i->data = sysctl_local_reserved_ports;
+-                      break;
+-              }
+-      }
+-      if (!i->procname)
+-              return -EINVAL;
  
+       hdr = register_net_sysctl(&init_net, "net/ipv4", ipv4_table);
+       if (hdr == NULL)
 diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c
-index 181fc82..cc95f8c 100644
+index 9841a71..ef60409 100644
 --- a/net/ipv4/tcp_input.c
 +++ b/net/ipv4/tcp_input.c
-@@ -4704,7 +4704,7 @@ static struct sk_buff *tcp_collapse_one(struct sock *sk, struct sk_buff *skb,
+@@ -4730,7 +4730,7 @@ static struct sk_buff *tcp_collapse_one(struct sock *sk, struct sk_buff *skb,
   * simplifies code)
   */
  static void
@@ -80010,26 +87081,7 @@ index 181fc82..cc95f8c 100644
             struct sk_buff *head, struct sk_buff *tail,
             u32 start, u32 end)
  {
-@@ -5536,6 +5536,9 @@ slow_path:
-       if (len < (th->doff << 2) || tcp_checksum_complete_user(sk, skb))
-               goto csum_error;
-+      if (!th->ack)
-+              goto discard;
-+
-       /*
-        *      Standard slow path.
-        */
-@@ -5544,7 +5547,7 @@ slow_path:
-               return 0;
- step5:
--      if (th->ack && tcp_ack(sk, skb, FLAG_SLOWPATH) < 0)
-+      if (tcp_ack(sk, skb, FLAG_SLOWPATH) < 0)
-               goto discard;
-       /* ts_recent update must be made after we are sure that the packet
-@@ -5836,6 +5839,7 @@ discard:
+@@ -5847,6 +5847,7 @@ discard:
            tcp_paws_reject(&tp->rx_opt, 0))
                goto discard_and_undo;
  
@@ -80037,7 +87089,7 @@ index 181fc82..cc95f8c 100644
        if (th->syn) {
                /* We see SYN without ACK. It is attempt of
                 * simultaneous connect with crossed SYNs.
-@@ -5886,6 +5890,7 @@ discard:
+@@ -5897,6 +5898,7 @@ discard:
                goto discard;
  #endif
        }
@@ -80045,7 +87097,7 @@ index 181fc82..cc95f8c 100644
        /* "fifth, if neither of the SYN or RST bits is set then
         * drop the segment and return."
         */
-@@ -5930,7 +5935,7 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
+@@ -5941,7 +5943,7 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
                        goto discard;
  
                if (th->syn) {
@@ -80054,35 +87106,8 @@ index 181fc82..cc95f8c 100644
                                goto discard;
                        if (icsk->icsk_af_ops->conn_request(sk, skb) < 0)
                                return 1;
-@@ -5977,11 +5982,15 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
-               if (tcp_check_req(sk, skb, req, NULL, true) == NULL)
-                       goto discard;
-       }
-+
-+      if (!th->ack)
-+              goto discard;
-+
-       if (!tcp_validate_incoming(sk, skb, th, 0))
-               return 0;
-       /* step 5: check the ACK field */
--      if (th->ack) {
-+      if (true) {
-               int acceptable = tcp_ack(sk, skb, FLAG_SLOWPATH) > 0;
-               switch (sk->sk_state) {
-@@ -6131,8 +6140,7 @@ int tcp_rcv_state_process(struct sock *sk, struct sk_buff *skb,
-                       }
-                       break;
-               }
--      } else
--              goto discard;
-+      }
-       /* ts_recent update must be made after we are sure that the packet
-        * is in window.
 diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c
-index bc3cb46..815ccd6 100644
+index d9130a9..00328ff 100644
 --- a/net/ipv4/tcp_ipv4.c
 +++ b/net/ipv4/tcp_ipv4.c
 @@ -90,6 +90,10 @@ int sysctl_tcp_low_latency __read_mostly;
@@ -80096,7 +87121,7 @@ index bc3cb46..815ccd6 100644
  #ifdef CONFIG_TCP_MD5SIG
  static int tcp_v4_md5_hash_hdr(char *md5_hash, const struct tcp_md5sig_key *key,
                               __be32 daddr, __be32 saddr, const struct tcphdr *th);
-@@ -1899,6 +1903,9 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
+@@ -1895,6 +1899,9 @@ int tcp_v4_do_rcv(struct sock *sk, struct sk_buff *skb)
        return 0;
  
  reset:
@@ -80106,7 +87131,7 @@ index bc3cb46..815ccd6 100644
        tcp_v4_send_reset(rsk, skb);
  discard:
        kfree_skb(skb);
-@@ -1999,12 +2006,19 @@ int tcp_v4_rcv(struct sk_buff *skb)
+@@ -1994,12 +2001,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);
@@ -80129,7 +87154,7 @@ index bc3cb46..815ccd6 100644
  
        if (unlikely(iph->ttl < inet_sk(sk)->min_ttl)) {
                NET_INC_STATS_BH(net, LINUX_MIB_TCPMINTTLDROP);
-@@ -2055,6 +2069,10 @@ no_tcp_socket:
+@@ -2050,6 +2064,10 @@ no_tcp_socket:
  bad_packet:
                TCP_INC_STATS_BH(net, TCP_MIB_INERRS);
        } else {
@@ -80141,7 +87166,7 @@ index bc3cb46..815ccd6 100644
        }
  
 diff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c
-index a7302d9..e3ec754 100644
+index f35f2df..ccb5ca6 100644
 --- a/net/ipv4/tcp_minisocks.c
 +++ b/net/ipv4/tcp_minisocks.c
 @@ -27,6 +27,10 @@
@@ -80181,7 +87206,7 @@ index 4526fe6..1a34e43 100644
                cnt += width;
        }
 diff --git a/net/ipv4/tcp_timer.c b/net/ipv4/tcp_timer.c
-index d47c1b4..b0584de 100644
+index b78aac3..e18230b 100644
 --- a/net/ipv4/tcp_timer.c
 +++ b/net/ipv4/tcp_timer.c
 @@ -22,6 +22,10 @@
@@ -80210,7 +87235,7 @@ index d47c1b4..b0584de 100644
                                  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 79c8dbe..aceb1b6 100644
+index 1f4d405..3524677 100644
 --- a/net/ipv4/udp.c
 +++ b/net/ipv4/udp.c
 @@ -87,6 +87,7 @@
@@ -80318,7 +87343,7 @@ index 79c8dbe..aceb1b6 100644
        icmp_send(skb, ICMP_DEST_UNREACH, ICMP_PORT_UNREACH, 0);
  
        /*
-@@ -2119,7 +2143,7 @@ static void udp4_format_sock(struct sock *sp, struct seq_file *f,
+@@ -2120,7 +2144,7 @@ static void udp4_format_sock(struct sock *sp, struct seq_file *f,
                from_kuid_munged(seq_user_ns(f), sock_i_uid(sp)),
                0, sock_i_ino(sp),
                atomic_read(&sp->sk_refcnt), sp,
@@ -80328,10 +87353,10 @@ index 79c8dbe..aceb1b6 100644
  
  int udp4_seq_show(struct seq_file *seq, void *v)
 diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
-index 0424e4e..308dd43 100644
+index a36d17e..96d099f 100644
 --- a/net/ipv6/addrconf.c
 +++ b/net/ipv6/addrconf.c
-@@ -2121,7 +2121,7 @@ int addrconf_set_dstaddr(struct net *net, void __user *arg)
+@@ -2272,7 +2272,7 @@ int addrconf_set_dstaddr(struct net *net, void __user *arg)
                p.iph.ihl = 5;
                p.iph.protocol = IPPROTO_IPV6;
                p.iph.ttl = 64;
@@ -80340,11 +87365,51 @@ index 0424e4e..308dd43 100644
  
                if (ops->ndo_do_ioctl) {
                        mm_segment_t oldfs = get_fs();
+@@ -4388,7 +4388,7 @@ int addrconf_sysctl_forward(ctl_table *ctl, int write,
+       int *valp = ctl->data;
+       int val = *valp;
+       loff_t pos = *ppos;
+-      ctl_table lctl;
++      ctl_table_no_const lctl;
+       int ret;
+       /*
+@@ -4470,7 +4470,7 @@ int addrconf_sysctl_disable(ctl_table *ctl, int write,
+       int *valp = ctl->data;
+       int val = *valp;
+       loff_t pos = *ppos;
+-      ctl_table lctl;
++      ctl_table_no_const lctl;
+       int ret;
+       /*
+diff --git a/net/ipv6/icmp.c b/net/ipv6/icmp.c
+index fff5bdd..15194fb 100644
+--- a/net/ipv6/icmp.c
++++ b/net/ipv6/icmp.c
+@@ -973,7 +973,7 @@ ctl_table ipv6_icmp_table_template[] = {
+ struct ctl_table * __net_init ipv6_icmp_sysctl_init(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       table = kmemdup(ipv6_icmp_table_template,
+                       sizeof(ipv6_icmp_table_template),
 diff --git a/net/ipv6/ip6_gre.c b/net/ipv6/ip6_gre.c
-index d5cb3c4..b3e38d0 100644
+index 131dd09..f7ed64f 100644
 --- a/net/ipv6/ip6_gre.c
 +++ b/net/ipv6/ip6_gre.c
-@@ -1353,7 +1353,7 @@ static void ip6gre_fb_tunnel_init(struct net_device *dev)
+@@ -73,7 +73,7 @@ struct ip6gre_net {
+       struct net_device *fb_tunnel_dev;
+ };
+-static struct rtnl_link_ops ip6gre_link_ops __read_mostly;
++static struct rtnl_link_ops ip6gre_link_ops;
+ static int ip6gre_tunnel_init(struct net_device *dev);
+ static void ip6gre_tunnel_setup(struct net_device *dev);
+ static void ip6gre_tunnel_link(struct ip6gre_net *ign, struct ip6_tnl *t);
+@@ -1337,7 +1337,7 @@ static void ip6gre_fb_tunnel_init(struct net_device *dev)
  }
  
  
@@ -80353,11 +87418,51 @@ index d5cb3c4..b3e38d0 100644
        .handler     = ip6gre_rcv,
        .err_handler = ip6gre_err,
        .flags       = INET6_PROTO_NOPOLICY|INET6_PROTO_FINAL,
+@@ -1671,7 +1671,7 @@ static const struct nla_policy ip6gre_policy[IFLA_GRE_MAX + 1] = {
+       [IFLA_GRE_FLAGS]       = { .type = NLA_U32 },
+ };
+-static struct rtnl_link_ops ip6gre_link_ops __read_mostly = {
++static struct rtnl_link_ops ip6gre_link_ops = {
+       .kind           = "ip6gre",
+       .maxtype        = IFLA_GRE_MAX,
+       .policy         = ip6gre_policy,
+@@ -1684,7 +1684,7 @@ static struct rtnl_link_ops ip6gre_link_ops __read_mostly = {
+       .fill_info      = ip6gre_fill_info,
+ };
+-static struct rtnl_link_ops ip6gre_tap_ops __read_mostly = {
++static struct rtnl_link_ops ip6gre_tap_ops = {
+       .kind           = "ip6gretap",
+       .maxtype        = IFLA_GRE_MAX,
+       .policy         = ip6gre_policy,
+diff --git a/net/ipv6/ip6_tunnel.c b/net/ipv6/ip6_tunnel.c
+index a14f28b..b4b8956 100644
+--- a/net/ipv6/ip6_tunnel.c
++++ b/net/ipv6/ip6_tunnel.c
+@@ -87,7 +87,7 @@ static u32 HASH(const struct in6_addr *addr1, const struct in6_addr *addr2)
+ static int ip6_tnl_dev_init(struct net_device *dev);
+ static void ip6_tnl_dev_setup(struct net_device *dev);
+-static struct rtnl_link_ops ip6_link_ops __read_mostly;
++static struct rtnl_link_ops ip6_link_ops;
+ static int ip6_tnl_net_id __read_mostly;
+ struct ip6_tnl_net {
+@@ -1686,7 +1686,7 @@ static const struct nla_policy ip6_tnl_policy[IFLA_IPTUN_MAX + 1] = {
+       [IFLA_IPTUN_PROTO]              = { .type = NLA_U8 },
+ };
+-static struct rtnl_link_ops ip6_link_ops __read_mostly = {
++static struct rtnl_link_ops ip6_link_ops = {
+       .kind           = "ip6tnl",
+       .maxtype        = IFLA_IPTUN_MAX,
+       .policy         = ip6_tnl_policy,
 diff --git a/net/ipv6/ipv6_sockglue.c b/net/ipv6/ipv6_sockglue.c
-index e02faed..9780f28 100644
+index d1e2e8e..51c19ae 100644
 --- a/net/ipv6/ipv6_sockglue.c
 +++ b/net/ipv6/ipv6_sockglue.c
-@@ -990,7 +990,7 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
+@@ -991,7 +991,7 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
                if (sk->sk_type != SOCK_STREAM)
                        return -ENOPROTOOPT;
  
@@ -80367,10 +87472,10 @@ index e02faed..9780f28 100644
                msg.msg_flags = flags;
  
 diff --git a/net/ipv6/netfilter/ip6_tables.c b/net/ipv6/netfilter/ip6_tables.c
-index d7cb045..8c0ded6 100644
+index 125a90d..2a11f36 100644
 --- a/net/ipv6/netfilter/ip6_tables.c
 +++ b/net/ipv6/netfilter/ip6_tables.c
-@@ -1078,14 +1078,14 @@ static int compat_table_info(const struct xt_table_info *info,
+@@ -1076,14 +1076,14 @@ static int compat_table_info(const struct xt_table_info *info,
  #endif
  
  static int get_info(struct net *net, void __user *user,
@@ -80388,7 +87493,7 @@ index d7cb045..8c0ded6 100644
                         sizeof(struct ip6t_getinfo));
                return -EINVAL;
        }
-@@ -1122,7 +1122,7 @@ static int get_info(struct net *net, void __user *user,
+@@ -1120,7 +1120,7 @@ static int get_info(struct net *net, void __user *user,
                info.size = private->size;
                strcpy(info.name, name);
  
@@ -80397,7 +87502,7 @@ index d7cb045..8c0ded6 100644
                        ret = -EFAULT;
                else
                        ret = 0;
-@@ -1976,7 +1976,7 @@ compat_do_ip6t_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
+@@ -1974,7 +1974,7 @@ compat_do_ip6t_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
  
        switch (cmd) {
        case IP6T_SO_GET_INFO:
@@ -80406,7 +87511,7 @@ index d7cb045..8c0ded6 100644
                break;
        case IP6T_SO_GET_ENTRIES:
                ret = compat_get_entries(sock_net(sk), user, len);
-@@ -2023,7 +2023,7 @@ do_ip6t_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
+@@ -2021,7 +2021,7 @@ do_ip6t_get_ctl(struct sock *sk, int cmd, void __user *user, int *len)
  
        switch (cmd) {
        case IP6T_SO_GET_INFO:
@@ -80415,8 +87520,63 @@ index d7cb045..8c0ded6 100644
                break;
  
        case IP6T_SO_GET_ENTRIES:
+diff --git a/net/ipv6/netfilter/ip6t_NPT.c b/net/ipv6/netfilter/ip6t_NPT.c
+index 83acc14..0ea43c7 100644
+--- a/net/ipv6/netfilter/ip6t_NPT.c
++++ b/net/ipv6/netfilter/ip6t_NPT.c
+@@ -57,7 +57,7 @@ static bool ip6t_npt_map_pfx(const struct ip6t_npt_tginfo *npt,
+               if (pfx_len - i >= 32)
+                       mask = 0;
+               else
+-                      mask = htonl(~((1 << (pfx_len - i)) - 1));
++                      mask = htonl((1 << (i - pfx_len + 32)) - 1);
+               idx = i / 32;
+               addr->s6_addr32[idx] &= mask;
+diff --git a/net/ipv6/netfilter/nf_conntrack_reasm.c b/net/ipv6/netfilter/nf_conntrack_reasm.c
+index 2f3a018..8bca195 100644
+--- a/net/ipv6/netfilter/nf_conntrack_reasm.c
++++ b/net/ipv6/netfilter/nf_conntrack_reasm.c
+@@ -89,12 +89,11 @@ static struct ctl_table nf_ct_frag6_sysctl_table[] = {
+ static int nf_ct_frag6_sysctl_register(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table = NULL;
+       struct ctl_table_header *hdr;
+-      table = nf_ct_frag6_sysctl_table;
+       if (!net_eq(net, &init_net)) {
+-              table = kmemdup(table, sizeof(nf_ct_frag6_sysctl_table),
++              table = kmemdup(nf_ct_frag6_sysctl_table, sizeof(nf_ct_frag6_sysctl_table),
+                               GFP_KERNEL);
+               if (table == NULL)
+                       goto err_alloc;
+@@ -102,9 +101,9 @@ static int nf_ct_frag6_sysctl_register(struct net *net)
+               table[0].data = &net->ipv6.frags.high_thresh;
+               table[1].data = &net->ipv6.frags.low_thresh;
+               table[2].data = &net->ipv6.frags.timeout;
+-      }
+-
+-      hdr = register_net_sysctl(net, "net/netfilter", table);
++              hdr = register_net_sysctl(net, "net/netfilter", table);
++      } else
++              hdr = register_net_sysctl(net, "net/netfilter", nf_ct_frag6_sysctl_table);
+       if (hdr == NULL)
+               goto err_reg;
+@@ -112,8 +111,7 @@ static int nf_ct_frag6_sysctl_register(struct net *net)
+       return 0;
+ err_reg:
+-      if (!net_eq(net, &init_net))
+-              kfree(table);
++      kfree(table);
+ err_alloc:
+       return -ENOMEM;
+ }
 diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
-index d8e95c7..81422bc 100644
+index 70fa814..d70c28c 100644
 --- a/net/ipv6/raw.c
 +++ b/net/ipv6/raw.c
 @@ -379,7 +379,7 @@ static inline int rawv6_rcv_skb(struct sock *sk, struct sk_buff *skb)
@@ -80499,24 +87659,101 @@ index d8e95c7..81422bc 100644
  }
  
  static int raw6_seq_show(struct seq_file *seq, void *v)
+diff --git a/net/ipv6/reassembly.c b/net/ipv6/reassembly.c
+index d9ba8a2..f3f9e14 100644
+--- a/net/ipv6/reassembly.c
++++ b/net/ipv6/reassembly.c
+@@ -608,12 +608,11 @@ static struct ctl_table ip6_frags_ctl_table[] = {
+ static int __net_init ip6_frags_ns_sysctl_register(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table = NULL;
+       struct ctl_table_header *hdr;
+-      table = ip6_frags_ns_ctl_table;
+       if (!net_eq(net, &init_net)) {
+-              table = kmemdup(table, sizeof(ip6_frags_ns_ctl_table), GFP_KERNEL);
++              table = kmemdup(ip6_frags_ns_ctl_table, sizeof(ip6_frags_ns_ctl_table), GFP_KERNEL);
+               if (table == NULL)
+                       goto err_alloc;
+@@ -624,9 +623,10 @@ static int __net_init ip6_frags_ns_sysctl_register(struct net *net)
+               /* Don't export sysctls to unprivileged users */
+               if (net->user_ns != &init_user_ns)
+                       table[0].procname = NULL;
+-      }
++              hdr = register_net_sysctl(net, "net/ipv6", table);
++      } else
++              hdr = register_net_sysctl(net, "net/ipv6", ip6_frags_ns_ctl_table);
+-      hdr = register_net_sysctl(net, "net/ipv6", table);
+       if (hdr == NULL)
+               goto err_reg;
+@@ -634,8 +634,7 @@ static int __net_init ip6_frags_ns_sysctl_register(struct net *net)
+       return 0;
+ err_reg:
+-      if (!net_eq(net, &init_net))
+-              kfree(table);
++      kfree(table);
+ err_alloc:
+       return -ENOMEM;
+ }
 diff --git a/net/ipv6/route.c b/net/ipv6/route.c
-index b1e6cf0..b140ef2 100644
+index 5845613..3af8fc7 100644
 --- a/net/ipv6/route.c
 +++ b/net/ipv6/route.c
-@@ -872,7 +872,7 @@ restart:
-       dst_hold(&rt->dst);
-       read_unlock_bh(&table->tb6_lock);
--      if (!rt->n && !(rt->rt6i_flags & RTF_NONEXTHOP))
-+      if (!rt->n && !(rt->rt6i_flags & (RTF_NONEXTHOP | RTF_LOCAL)))
-               nrt = rt6_alloc_cow(rt, &fl6->daddr, &fl6->saddr);
-       else if (!(rt->dst.flags & DST_HOST))
-               nrt = rt6_alloc_clone(rt, &fl6->daddr);
+@@ -2966,7 +2966,7 @@ ctl_table ipv6_route_table_template[] = {
+ struct ctl_table * __net_init ipv6_route_sysctl_init(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       table = kmemdup(ipv6_route_table_template,
+                       sizeof(ipv6_route_table_template),
+diff --git a/net/ipv6/sit.c b/net/ipv6/sit.c
+index cfba99b..20ca511 100644
+--- a/net/ipv6/sit.c
++++ b/net/ipv6/sit.c
+@@ -72,7 +72,7 @@ MODULE_PARM_DESC(log_ecn_error, "Log packets received with corrupted ECN");
+ static int ipip6_tunnel_init(struct net_device *dev);
+ static void ipip6_tunnel_setup(struct net_device *dev);
+ static void ipip6_dev_free(struct net_device *dev);
+-static struct rtnl_link_ops sit_link_ops __read_mostly;
++static struct rtnl_link_ops sit_link_ops;
+ static int sit_net_id __read_mostly;
+ struct sit_net {
+@@ -1463,7 +1463,7 @@ static const struct nla_policy ipip6_policy[IFLA_IPTUN_MAX + 1] = {
+ #endif
+ };
+-static struct rtnl_link_ops sit_link_ops __read_mostly = {
++static struct rtnl_link_ops sit_link_ops = {
+       .kind           = "sit",
+       .maxtype        = IFLA_IPTUN_MAX,
+       .policy         = ipip6_policy,
+diff --git a/net/ipv6/sysctl_net_ipv6.c b/net/ipv6/sysctl_net_ipv6.c
+index e85c48b..b8268d3 100644
+--- a/net/ipv6/sysctl_net_ipv6.c
++++ b/net/ipv6/sysctl_net_ipv6.c
+@@ -40,7 +40,7 @@ static ctl_table ipv6_rotable[] = {
+ static int __net_init ipv6_sysctl_net_init(struct net *net)
+ {
+-      struct ctl_table *ipv6_table;
++      ctl_table_no_const *ipv6_table;
+       struct ctl_table *ipv6_route_table;
+       struct ctl_table *ipv6_icmp_table;
+       int err;
 diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c
-index 73f2a6b..f8049a1 100644
+index 8d19346..e47216f 100644
 --- a/net/ipv6/tcp_ipv6.c
 +++ b/net/ipv6/tcp_ipv6.c
-@@ -106,6 +106,10 @@ static void inet6_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb)
+@@ -103,6 +103,10 @@ static void inet6_sk_rx_dst_set(struct sock *sk, const struct sk_buff *skb)
                inet6_sk(sk)->rx_dst_cookie = rt->rt6i_node->fn_sernum;
  }
  
@@ -80527,7 +87764,7 @@ index 73f2a6b..f8049a1 100644
  static void tcp_v6_hash(struct sock *sk)
  {
        if (sk->sk_state != TCP_CLOSE) {
-@@ -1525,6 +1529,9 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
+@@ -1440,6 +1444,9 @@ static int tcp_v6_do_rcv(struct sock *sk, struct sk_buff *skb)
        return 0;
  
  reset:
@@ -80537,7 +87774,7 @@ index 73f2a6b..f8049a1 100644
        tcp_v6_send_reset(sk, skb);
  discard:
        if (opt_skb)
-@@ -1606,12 +1613,20 @@ static int tcp_v6_rcv(struct sk_buff *skb)
+@@ -1521,12 +1528,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);
@@ -80560,7 +87797,7 @@ index 73f2a6b..f8049a1 100644
  
        if (hdr->hop_limit < inet6_sk(sk)->min_hopcount) {
                NET_INC_STATS_BH(net, LINUX_MIB_TCPMINTTLDROP);
-@@ -1660,6 +1675,10 @@ no_tcp_socket:
+@@ -1575,6 +1590,10 @@ no_tcp_socket:
  bad_packet:
                TCP_INC_STATS_BH(net, TCP_MIB_INERRS);
        } else {
@@ -80572,7 +87809,7 @@ index 73f2a6b..f8049a1 100644
        }
  
 diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
-index fc99972..69397e8 100644
+index fb08329..2d6919e 100644
 --- a/net/ipv6/udp.c
 +++ b/net/ipv6/udp.c
 @@ -51,6 +51,10 @@
@@ -80623,7 +87860,7 @@ index fc99972..69397e8 100644
        icmpv6_send(skb, ICMPV6_DEST_UNREACH, ICMPV6_PORT_UNREACH, 0);
  
        kfree_skb(skb);
-@@ -1473,7 +1480,7 @@ static void udp6_sock_seq_show(struct seq_file *seq, struct sock *sp, int bucket
+@@ -1379,7 +1386,7 @@ static void udp6_sock_seq_show(struct seq_file *seq, struct sock *sp, int bucket
                   0,
                   sock_i_ino(sp),
                   atomic_read(&sp->sk_refcnt), sp,
@@ -80633,10 +87870,10 @@ index fc99972..69397e8 100644
  
  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 496ce2c..f79fac8 100644
+index a68c88c..d55b0c5 100644
 --- a/net/irda/ircomm/ircomm_tty.c
 +++ b/net/irda/ircomm/ircomm_tty.c
-@@ -311,12 +311,12 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
+@@ -312,12 +312,12 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
        add_wait_queue(&port->open_wait, &wait);
  
        IRDA_DEBUG(2, "%s(%d):block_til_ready before block on %s open_count=%d\n",
@@ -80651,7 +87888,7 @@ index 496ce2c..f79fac8 100644
        }
        spin_unlock_irqrestore(&port->lock, flags);
        port->blocked_open++;
-@@ -352,7 +352,7 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
+@@ -353,7 +353,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",
@@ -80660,7 +87897,7 @@ index 496ce2c..f79fac8 100644
  
                schedule();
        }
-@@ -363,13 +363,13 @@ static int ircomm_tty_block_til_ready(struct ircomm_tty_cb *self,
+@@ -364,13 +364,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(&port->lock, flags);
@@ -80676,7 +87913,7 @@ index 496ce2c..f79fac8 100644
  
        if (!retval)
                port->flags |= ASYNC_NORMAL_ACTIVE;
-@@ -443,12 +443,12 @@ static int ircomm_tty_open(struct tty_struct *tty, struct file *filp)
+@@ -444,12 +444,12 @@ 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->port.lock, flags);
@@ -80691,7 +87928,7 @@ index 496ce2c..f79fac8 100644
  
        /* Not really used by us, but lets do it anyway */
        tty->low_latency = (self->port.flags & ASYNC_LOW_LATENCY) ? 1 : 0;
-@@ -985,7 +985,7 @@ static void ircomm_tty_hangup(struct tty_struct *tty)
+@@ -986,7 +986,7 @@ static void ircomm_tty_hangup(struct tty_struct *tty)
                tty_kref_put(port->tty);
        }
        port->tty = NULL;
@@ -80700,7 +87937,7 @@ index 496ce2c..f79fac8 100644
        spin_unlock_irqrestore(&port->lock, flags);
  
        wake_up_interruptible(&port->open_wait);
-@@ -1342,7 +1342,7 @@ static void ircomm_tty_line_info(struct ircomm_tty_cb *self, struct seq_file *m)
+@@ -1343,7 +1343,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");
@@ -80709,6 +87946,24 @@ index 496ce2c..f79fac8 100644
        seq_printf(m, "Max data size: %d\n", self->max_data_size);
        seq_printf(m, "Max header size: %d\n", self->max_header_size);
  
+diff --git a/net/irda/iriap.c b/net/irda/iriap.c
+index e71e85b..29340a9 100644
+--- a/net/irda/iriap.c
++++ b/net/irda/iriap.c
+@@ -495,8 +495,11 @@ static void iriap_getvaluebyclass_confirm(struct iriap_cb *self,
+ /*            case CS_ISO_8859_9: */
+ /*            case CS_UNICODE: */
+               default:
+-                      IRDA_DEBUG(0, "%s(), charset %s, not supported\n",
+-                                 __func__, ias_charset_types[charset]);
++                      IRDA_DEBUG(0, "%s(), charset [%d] %s, not supported\n",
++                                 __func__, charset,
++                                 charset < ARRAY_SIZE(ias_charset_types) ?
++                                      ias_charset_types[charset] :
++                                      "(unknown)");
+                       /* Aborting, close connection! */
+                       iriap_disconnect_request(self);
 diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
 index cd6f7a9..e63fe89 100644
 --- a/net/iucv/af_iucv.c
@@ -80726,8 +87981,21 @@ index cd6f7a9..e63fe89 100644
        }
  
        write_unlock_bh(&iucv_sk_list.lock);
+diff --git a/net/iucv/iucv.c b/net/iucv/iucv.c
+index df08250..02021fe 100644
+--- a/net/iucv/iucv.c
++++ b/net/iucv/iucv.c
+@@ -690,7 +690,7 @@ static int __cpuinit iucv_cpu_notify(struct notifier_block *self,
+       return NOTIFY_OK;
+ }
+-static struct notifier_block __refdata iucv_cpu_notifier = {
++static struct notifier_block iucv_cpu_notifier = {
+       .notifier_call = iucv_cpu_notify,
+ };
 diff --git a/net/key/af_key.c b/net/key/af_key.c
-index 08897a3..0b812ab 100644
+index 5b426a6..970032b 100644
 --- a/net/key/af_key.c
 +++ b/net/key/af_key.c
 @@ -3019,10 +3019,10 @@ static int pfkey_send_policy_notify(struct xfrm_policy *xp, int dir, const struc
@@ -80744,10 +88012,46 @@ index 08897a3..0b812ab 100644
        return res;
  }
 diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
-index 494da7f..6ce2ffd 100644
+index 0479c64..9e72ff4 100644
 --- a/net/mac80211/cfg.c
 +++ b/net/mac80211/cfg.c
-@@ -2604,7 +2604,7 @@ static void ieee80211_mgmt_frame_register(struct wiphy *wiphy,
+@@ -790,7 +790,7 @@ static int ieee80211_set_monitor_channel(struct wiphy *wiphy,
+                       ret = ieee80211_vif_use_channel(sdata, chandef,
+                                       IEEE80211_CHANCTX_EXCLUSIVE);
+               }
+-      } else if (local->open_count == local->monitors) {
++      } else if (local_read(&local->open_count) == local->monitors) {
+               local->_oper_channel = chandef->chan;
+               local->_oper_channel_type = cfg80211_get_chandef_type(chandef);
+               ieee80211_hw_config(local, 0);
+@@ -2499,7 +2499,7 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,
+                       list_del(&dep->list);
+                       mutex_unlock(&local->mtx);
+-                      ieee80211_roc_notify_destroy(dep);
++                      ieee80211_roc_notify_destroy(dep, true);
+                       return 0;
+               }
+@@ -2539,7 +2539,7 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,
+                       ieee80211_start_next_roc(local);
+               mutex_unlock(&local->mtx);
+-              ieee80211_roc_notify_destroy(found);
++              ieee80211_roc_notify_destroy(found, true);
+       } else {
+               /* work may be pending so use it all the time */
+               found->abort = true;
+@@ -2549,6 +2549,8 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,
+               /* work will clean up etc */
+               flush_delayed_work(&found->work);
++              WARN_ON(!found->to_be_freed);
++              kfree(found);
+       }
+       return 0;
+@@ -2716,7 +2718,7 @@ static void ieee80211_mgmt_frame_register(struct wiphy *wiphy,
                else
                        local->probe_req_reg--;
  
@@ -80757,7 +88061,7 @@ index 494da7f..6ce2ffd 100644
  
                ieee80211_queue_work(&local->hw, &local->reconfig_filter);
 diff --git a/net/mac80211/ieee80211_i.h b/net/mac80211/ieee80211_i.h
-index 493e2e8..be76574 100644
+index 2ed065c..bec0c2b 100644
 --- a/net/mac80211/ieee80211_i.h
 +++ b/net/mac80211/ieee80211_i.h
 @@ -28,6 +28,7 @@
@@ -80768,7 +88072,15 @@ index 493e2e8..be76574 100644
  #include "key.h"
  #include "sta_info.h"
  #include "debug.h"
-@@ -852,7 +853,7 @@ struct ieee80211_local {
+@@ -346,6 +347,7 @@ struct ieee80211_roc_work {
+       struct ieee80211_channel *chan;
+       bool started, abort, hw_begun, notified;
++      bool to_be_freed;
+       unsigned long hw_start_time;
+@@ -909,7 +911,7 @@ struct ieee80211_local {
        /* also used to protect ampdu_ac_queue and amdpu_ac_stop_refcnt */
        spinlock_t queue_stop_reason_lock;
  
@@ -80777,11 +88089,20 @@ index 493e2e8..be76574 100644
        int monitors, cooked_mntrs;
        /* number of interfaces with corresponding FIF_ flags */
        int fif_fcsfail, fif_plcpfail, fif_control, fif_other_bss, fif_pspoll,
+@@ -1363,7 +1365,7 @@ void ieee80211_offchannel_return(struct ieee80211_local *local);
+ void ieee80211_roc_setup(struct ieee80211_local *local);
+ void ieee80211_start_next_roc(struct ieee80211_local *local);
+ void ieee80211_roc_purge(struct ieee80211_sub_if_data *sdata);
+-void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc);
++void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc, bool free);
+ void ieee80211_sw_roc_work(struct work_struct *work);
+ void ieee80211_handle_roc_started(struct ieee80211_roc_work *roc);
 diff --git a/net/mac80211/iface.c b/net/mac80211/iface.c
-index 0f5af91..4dba9e7 100644
+index 8be854e..ad72a69 100644
 --- a/net/mac80211/iface.c
 +++ b/net/mac80211/iface.c
-@@ -465,7 +465,7 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
+@@ -546,7 +546,7 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
                break;
        }
  
@@ -80790,7 +88111,7 @@ index 0f5af91..4dba9e7 100644
                res = drv_start(local);
                if (res)
                        goto err_del_bss;
-@@ -508,7 +508,7 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
+@@ -591,7 +591,7 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
                        break;
                }
  
@@ -80799,7 +88120,7 @@ index 0f5af91..4dba9e7 100644
                        res = ieee80211_add_virtual_monitor(local);
                        if (res)
                                goto err_stop;
-@@ -616,7 +616,7 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
+@@ -699,7 +699,7 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
        mutex_unlock(&local->mtx);
  
        if (coming_up)
@@ -80808,7 +88129,7 @@ index 0f5af91..4dba9e7 100644
  
        if (hw_reconf_flags)
                ieee80211_hw_config(local, hw_reconf_flags);
-@@ -630,7 +630,7 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
+@@ -713,7 +713,7 @@ int ieee80211_do_open(struct wireless_dev *wdev, bool coming_up)
   err_del_interface:
        drv_remove_interface(local, sdata);
   err_stop:
@@ -80817,7 +88138,7 @@ index 0f5af91..4dba9e7 100644
                drv_stop(local);
   err_del_bss:
        sdata->bss = NULL;
-@@ -762,7 +762,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
+@@ -827,7 +827,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
        }
  
        if (going_down)
@@ -80826,7 +88147,7 @@ index 0f5af91..4dba9e7 100644
  
        switch (sdata->vif.type) {
        case NL80211_IFTYPE_AP_VLAN:
-@@ -818,7 +818,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
+@@ -884,7 +884,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
  
        ieee80211_recalc_ps(local, -1);
  
@@ -80835,7 +88156,7 @@ index 0f5af91..4dba9e7 100644
                if (local->ops->napi_poll)
                        napi_disable(&local->napi);
                ieee80211_clear_tx_pending(local);
-@@ -850,7 +850,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
+@@ -910,7 +910,7 @@ static void ieee80211_do_stop(struct ieee80211_sub_if_data *sdata,
        }
        spin_unlock_irqrestore(&local->queue_stop_reason_lock, flags);
  
@@ -80845,32 +88166,110 @@ index 0f5af91..4dba9e7 100644
  }
  
 diff --git a/net/mac80211/main.c b/net/mac80211/main.c
-index f57f597..e0a7c03 100644
+index 1b087ff..bf600e9 100644
 --- a/net/mac80211/main.c
 +++ b/net/mac80211/main.c
-@@ -164,7 +164,7 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
-               local->hw.conf.power_level = power;
-       }
+@@ -181,7 +181,7 @@ int ieee80211_hw_config(struct ieee80211_local *local, u32 changed)
+               changed &= ~(IEEE80211_CONF_CHANGE_CHANNEL |
+                            IEEE80211_CONF_CHANGE_POWER);
  
 -      if (changed && local->open_count) {
 +      if (changed && local_read(&local->open_count)) {
                ret = drv_config(local, changed);
                /*
                 * Goal:
+diff --git a/net/mac80211/offchannel.c b/net/mac80211/offchannel.c
+index a3ad4c3..7acbdaa 100644
+--- a/net/mac80211/offchannel.c
++++ b/net/mac80211/offchannel.c
+@@ -299,10 +299,13 @@ void ieee80211_start_next_roc(struct ieee80211_local *local)
+       }
+ }
+-void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc)
++void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc, bool free)
+ {
+       struct ieee80211_roc_work *dep, *tmp;
++      if (WARN_ON(roc->to_be_freed))
++              return;
++
+       /* was never transmitted */
+       if (roc->frame) {
+               cfg80211_mgmt_tx_status(&roc->sdata->wdev,
+@@ -318,9 +321,12 @@ void ieee80211_roc_notify_destroy(struct ieee80211_roc_work *roc)
+                                                  GFP_KERNEL);
+       list_for_each_entry_safe(dep, tmp, &roc->dependents, list)
+-              ieee80211_roc_notify_destroy(dep);
++              ieee80211_roc_notify_destroy(dep, true);
+-      kfree(roc);
++      if (free)
++              kfree(roc);
++      else
++              roc->to_be_freed = true;
+ }
+ void ieee80211_sw_roc_work(struct work_struct *work)
+@@ -333,6 +339,9 @@ void ieee80211_sw_roc_work(struct work_struct *work)
+       mutex_lock(&local->mtx);
++      if (roc->to_be_freed)
++              goto out_unlock;
++
+       if (roc->abort)
+               goto finish;
+@@ -372,7 +381,7 @@ void ieee80211_sw_roc_work(struct work_struct *work)
+  finish:
+               list_del(&roc->list);
+               started = roc->started;
+-              ieee80211_roc_notify_destroy(roc);
++              ieee80211_roc_notify_destroy(roc, !roc->abort);
+               if (started) {
+                       drv_flush(local, false);
+@@ -412,7 +421,7 @@ static void ieee80211_hw_roc_done(struct work_struct *work)
+       list_del(&roc->list);
+-      ieee80211_roc_notify_destroy(roc);
++      ieee80211_roc_notify_destroy(roc, true);
+       /* if there's another roc, start it now */
+       ieee80211_start_next_roc(local);
+@@ -462,12 +471,14 @@ void ieee80211_roc_purge(struct ieee80211_sub_if_data *sdata)
+       list_for_each_entry_safe(roc, tmp, &tmp_list, list) {
+               if (local->ops->remain_on_channel) {
+                       list_del(&roc->list);
+-                      ieee80211_roc_notify_destroy(roc);
++                      ieee80211_roc_notify_destroy(roc, true);
+               } else {
+                       ieee80211_queue_delayed_work(&local->hw, &roc->work, 0);
+                       /* work will clean up etc */
+                       flush_delayed_work(&roc->work);
++                      WARN_ON(!roc->to_be_freed);
++                      kfree(roc);
+               }
+       }
 diff --git a/net/mac80211/pm.c b/net/mac80211/pm.c
-index 5c572e7..ecf75ce 100644
+index 79a48f3..5e185c9 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)
-       struct ieee80211_sub_if_data *sdata;
+@@ -35,7 +35,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
        struct sta_info *sta;
+       struct ieee80211_chanctx *ctx;
  
 -      if (!local->open_count)
 +      if (!local_read(&local->open_count))
                goto suspend;
  
        ieee80211_scan_cancel(local);
-@@ -72,7 +72,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
+@@ -73,7 +73,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
        cancel_work_sync(&local->dynamic_ps_enable_work);
        del_timer_sync(&local->dynamic_ps_timer);
  
@@ -80879,8 +88278,8 @@ index 5c572e7..ecf75ce 100644
        if (local->wowlan) {
                int err = drv_suspend(local, wowlan);
                if (err < 0) {
-@@ -143,7 +143,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
-               drv_remove_interface(local, sdata);
+@@ -187,7 +187,7 @@ int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan)
+       mutex_unlock(&local->chanctx_mtx);
  
        /* stop hardware - this must stop RX */
 -      if (local->open_count)
@@ -80889,10 +88288,10 @@ index 5c572e7..ecf75ce 100644
  
   suspend:
 diff --git a/net/mac80211/rate.c b/net/mac80211/rate.c
-index 3313c11..bec9f17 100644
+index dd88381..eef4dd6 100644
 --- a/net/mac80211/rate.c
 +++ b/net/mac80211/rate.c
-@@ -494,7 +494,7 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local,
+@@ -493,7 +493,7 @@ int ieee80211_init_rate_ctrl_alg(struct ieee80211_local *local,
  
        ASSERT_RTNL();
  
@@ -80915,10 +88314,10 @@ index c97a065..ff61928 100644
  
        return p;
 diff --git a/net/mac80211/util.c b/net/mac80211/util.c
-index 0151ae3..26709d3 100644
+index f11e8c5..08d0013 100644
 --- a/net/mac80211/util.c
 +++ b/net/mac80211/util.c
-@@ -1332,7 +1332,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
+@@ -1380,7 +1380,7 @@ int ieee80211_reconfig(struct ieee80211_local *local)
        }
  #endif
        /* everything else happens only if HW was up & running */
@@ -80960,11 +88359,24 @@ index 3259697..54d5393 100644
  obj-$(CONFIG_NETFILTER_XT_MATCH_HASHLIMIT) += xt_hashlimit.o
  obj-$(CONFIG_NETFILTER_XT_MATCH_HELPER) += xt_helper.o
  obj-$(CONFIG_NETFILTER_XT_MATCH_HL) += xt_hl.o
+diff --git a/net/netfilter/ipset/ip_set_core.c b/net/netfilter/ipset/ip_set_core.c
+index 6d6d8f2..a676749 100644
+--- a/net/netfilter/ipset/ip_set_core.c
++++ b/net/netfilter/ipset/ip_set_core.c
+@@ -1800,7 +1800,7 @@ done:
+       return ret;
+ }
+-static struct nf_sockopt_ops so_set __read_mostly = {
++static struct nf_sockopt_ops so_set = {
+       .pf             = PF_INET,
+       .get_optmin     = SO_IP_SET,
+       .get_optmax     = SO_IP_SET + 1,
 diff --git a/net/netfilter/ipvs/ip_vs_conn.c b/net/netfilter/ipvs/ip_vs_conn.c
-index 1548df9..98ad9b4 100644
+index 30e764a..c3b6a9d 100644
 --- a/net/netfilter/ipvs/ip_vs_conn.c
 +++ b/net/netfilter/ipvs/ip_vs_conn.c
-@@ -557,7 +557,7 @@ ip_vs_bind_dest(struct ip_vs_conn *cp, struct ip_vs_dest *dest)
+@@ -554,7 +554,7 @@ ip_vs_bind_dest(struct ip_vs_conn *cp, struct ip_vs_dest *dest)
        /* Increase the refcnt counter of the dest */
        atomic_inc(&dest->refcnt);
  
@@ -80973,7 +88385,7 @@ index 1548df9..98ad9b4 100644
        if (cp->protocol != IPPROTO_UDP)
                conn_flags &= ~IP_VS_CONN_F_ONE_PACKET;
        flags = cp->flags;
-@@ -902,7 +902,7 @@ ip_vs_conn_new(const struct ip_vs_conn_param *p,
+@@ -899,7 +899,7 @@ ip_vs_conn_new(const struct ip_vs_conn_param *p,
        atomic_set(&cp->refcnt, 1);
  
        atomic_set(&cp->n_control, 0);
@@ -80982,7 +88394,7 @@ index 1548df9..98ad9b4 100644
  
        atomic_inc(&ipvs->conn_count);
        if (flags & IP_VS_CONN_F_NO_CPORT)
-@@ -1183,7 +1183,7 @@ static inline int todrop_entry(struct ip_vs_conn *cp)
+@@ -1180,7 +1180,7 @@ static inline int todrop_entry(struct ip_vs_conn *cp)
  
        /* Don't drop the entry if its number of incoming packets is not
           located in [0, 8] */
@@ -80992,11 +88404,11 @@ index 1548df9..98ad9b4 100644
  
        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 58918e2..4d177a9 100644
+index 47edf5a..235b07d 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,
-               ret = cp->packet_xmit(skb, cp, pd->pp);
+@@ -559,7 +559,7 @@ int ip_vs_leave(struct ip_vs_service *svc, struct sk_buff *skb,
+               ret = cp->packet_xmit(skb, cp, pd->pp, iph);
                /* do not touch skb anymore */
  
 -              atomic_inc(&cp->in_pkts);
@@ -81004,7 +88416,7 @@ index 58918e2..4d177a9 100644
                ip_vs_conn_put(cp);
                return ret;
        }
-@@ -1681,7 +1681,7 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb, int af)
+@@ -1691,7 +1691,7 @@ ip_vs_in(unsigned int hooknum, struct sk_buff *skb, int af)
        if (cp->flags & IP_VS_CONN_F_ONE_PACKET)
                pkts = sysctl_sync_threshold(ipvs);
        else
@@ -81014,7 +88426,7 @@ index 58918e2..4d177a9 100644
        if (ipvs->sync_state & IP_VS_STATE_MASTER)
                ip_vs_sync_conn(net, cp, pkts);
 diff --git a/net/netfilter/ipvs/ip_vs_ctl.c b/net/netfilter/ipvs/ip_vs_ctl.c
-index c4ee437..a774a74 100644
+index ec664cb..7f34a77 100644
 --- a/net/netfilter/ipvs/ip_vs_ctl.c
 +++ b/net/netfilter/ipvs/ip_vs_ctl.c
 @@ -787,7 +787,7 @@ __ip_vs_update_dest(struct ip_vs_service *svc, struct ip_vs_dest *dest,
@@ -81026,6 +88438,15 @@ index c4ee437..a774a74 100644
  
        /* bind the service */
        if (!dest->svc) {
+@@ -1688,7 +1688,7 @@ proc_do_sync_ports(ctl_table *table, int write,
+  *    align with netns init in ip_vs_control_net_init()
+  */
+-static struct ctl_table vs_vars[] = {
++static ctl_table_no_const vs_vars[] __read_only = {
+       {
+               .procname       = "amemthresh",
+               .maxlen         = sizeof(int),
 @@ -2081,7 +2081,7 @@ static int ip_vs_info_seq_show(struct seq_file *seq, void *v)
                                           "      %-7s %-6d %-10d %-10d\n",
                                           &dest->addr.in6,
@@ -81062,8 +88483,43 @@ index c4ee437..a774a74 100644
                         IP_VS_CONN_F_FWD_MASK)) ||
            nla_put_u32(skb, IPVS_DEST_ATTR_WEIGHT,
                        atomic_read(&dest->weight)) ||
+@@ -3688,7 +3688,7 @@ static int __net_init ip_vs_control_net_init_sysctl(struct net *net)
+ {
+       int idx;
+       struct netns_ipvs *ipvs = net_ipvs(net);
+-      struct ctl_table *tbl;
++      ctl_table_no_const *tbl;
+       atomic_set(&ipvs->dropentry, 0);
+       spin_lock_init(&ipvs->dropentry_lock);
+diff --git a/net/netfilter/ipvs/ip_vs_lblc.c b/net/netfilter/ipvs/ip_vs_lblc.c
+index fdd89b9..bd96aa9 100644
+--- a/net/netfilter/ipvs/ip_vs_lblc.c
++++ b/net/netfilter/ipvs/ip_vs_lblc.c
+@@ -115,7 +115,7 @@ struct ip_vs_lblc_table {
+  *      IPVS LBLC sysctl table
+  */
+ #ifdef CONFIG_SYSCTL
+-static ctl_table vs_vars_table[] = {
++static ctl_table_no_const vs_vars_table[] __read_only = {
+       {
+               .procname       = "lblc_expiration",
+               .data           = NULL,
+diff --git a/net/netfilter/ipvs/ip_vs_lblcr.c b/net/netfilter/ipvs/ip_vs_lblcr.c
+index c03b6a3..8ce3681 100644
+--- a/net/netfilter/ipvs/ip_vs_lblcr.c
++++ b/net/netfilter/ipvs/ip_vs_lblcr.c
+@@ -288,7 +288,7 @@ struct ip_vs_lblcr_table {
+  *      IPVS LBLCR sysctl table
+  */
+-static ctl_table vs_vars_table[] = {
++static ctl_table_no_const vs_vars_table[] __read_only = {
+       {
+               .procname       = "lblcr_expiration",
+               .data           = NULL,
 diff --git a/net/netfilter/ipvs/ip_vs_sync.c b/net/netfilter/ipvs/ip_vs_sync.c
-index effa10c..9058928 100644
+index 44fd10c..2a163b3 100644
 --- a/net/netfilter/ipvs/ip_vs_sync.c
 +++ b/net/netfilter/ipvs/ip_vs_sync.c
 @@ -596,7 +596,7 @@ static void ip_vs_sync_conn_v0(struct net *net, struct ip_vs_conn *cp,
@@ -81094,10 +88550,10 @@ index effa10c..9058928 100644
        cp->old_state = cp->state;
        /*
 diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c
-index cc4c809..50f8fe5 100644
+index ee6b7a9..f9a89f6 100644
 --- a/net/netfilter/ipvs/ip_vs_xmit.c
 +++ b/net/netfilter/ipvs/ip_vs_xmit.c
-@@ -1202,7 +1202,7 @@ ip_vs_icmp_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
+@@ -1210,7 +1210,7 @@ ip_vs_icmp_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
                else
                        rc = NF_ACCEPT;
                /* do not touch skb anymore */
@@ -81106,7 +88562,7 @@ index cc4c809..50f8fe5 100644
                goto out;
        }
  
-@@ -1323,7 +1323,7 @@ ip_vs_icmp_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
+@@ -1332,7 +1332,7 @@ ip_vs_icmp_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
                else
                        rc = NF_ACCEPT;
                /* do not touch skb anymore */
@@ -81115,13 +88571,26 @@ index cc4c809..50f8fe5 100644
                goto out;
        }
  
+diff --git a/net/netfilter/nf_conntrack_acct.c b/net/netfilter/nf_conntrack_acct.c
+index 7df424e..a527b02 100644
+--- a/net/netfilter/nf_conntrack_acct.c
++++ b/net/netfilter/nf_conntrack_acct.c
+@@ -60,7 +60,7 @@ static struct nf_ct_ext_type acct_extend __read_mostly = {
+ #ifdef CONFIG_SYSCTL
+ static int nf_conntrack_acct_init_sysctl(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       table = kmemdup(acct_sysctl_table, sizeof(acct_sysctl_table),
+                       GFP_KERNEL);
 diff --git a/net/netfilter/nf_conntrack_core.c b/net/netfilter/nf_conntrack_core.c
-index ec02168..f0caab6 100644
+index e4a0c4f..c263f28 100644
 --- a/net/netfilter/nf_conntrack_core.c
 +++ b/net/netfilter/nf_conntrack_core.c
-@@ -1533,6 +1533,10 @@ err_extend:
- #define UNCONFIRMED_NULLS_VAL ((1<<30)+0)
+@@ -1529,6 +1529,10 @@ err_extend:
  #define DYING_NULLS_VAL               ((1<<30)+1)
+ #define TEMPLATE_NULLS_VAL    ((1<<30)+2)
  
 +#ifdef CONFIG_GRKERNSEC_HIDESYM
 +static atomic_unchecked_t conntrack_cache_id = ATOMIC_INIT(0);
@@ -81130,7 +88599,7 @@ index ec02168..f0caab6 100644
  static int nf_conntrack_init_net(struct net *net)
  {
        int ret;
-@@ -1546,7 +1550,11 @@ static int nf_conntrack_init_net(struct net *net)
+@@ -1543,7 +1547,11 @@ static int nf_conntrack_init_net(struct net *net)
                goto err_stat;
        }
  
@@ -81142,6 +88611,139 @@ index ec02168..f0caab6 100644
        if (!net->ct.slabname) {
                ret = -ENOMEM;
                goto err_slabname;
+diff --git a/net/netfilter/nf_conntrack_ecache.c b/net/netfilter/nf_conntrack_ecache.c
+index faa978f..1afb18f 100644
+--- a/net/netfilter/nf_conntrack_ecache.c
++++ b/net/netfilter/nf_conntrack_ecache.c
+@@ -186,7 +186,7 @@ static struct nf_ct_ext_type event_extend __read_mostly = {
+ #ifdef CONFIG_SYSCTL
+ static int nf_conntrack_event_init_sysctl(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       table = kmemdup(event_sysctl_table, sizeof(event_sysctl_table),
+                       GFP_KERNEL);
+diff --git a/net/netfilter/nf_conntrack_helper.c b/net/netfilter/nf_conntrack_helper.c
+index 884f2b3..d53b33a 100644
+--- a/net/netfilter/nf_conntrack_helper.c
++++ b/net/netfilter/nf_conntrack_helper.c
+@@ -55,7 +55,7 @@ static struct ctl_table helper_sysctl_table[] = {
+ static int nf_conntrack_helper_init_sysctl(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       table = kmemdup(helper_sysctl_table, sizeof(helper_sysctl_table),
+                       GFP_KERNEL);
+diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c
+index 51e928d..72a413a 100644
+--- a/net/netfilter/nf_conntrack_proto.c
++++ b/net/netfilter/nf_conntrack_proto.c
+@@ -51,7 +51,7 @@ nf_ct_register_sysctl(struct net *net,
+ static void
+ nf_ct_unregister_sysctl(struct ctl_table_header **header,
+-                      struct ctl_table **table,
++                      ctl_table_no_const **table,
+                       unsigned int users)
+ {
+       if (users > 0)
+diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c
+index e7185c6..4ad6c9c 100644
+--- a/net/netfilter/nf_conntrack_standalone.c
++++ b/net/netfilter/nf_conntrack_standalone.c
+@@ -470,7 +470,7 @@ static ctl_table nf_ct_netfilter_table[] = {
+ static int nf_conntrack_standalone_init_sysctl(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       if (net_eq(net, &init_net)) {
+               nf_ct_netfilter_header =
+diff --git a/net/netfilter/nf_conntrack_timestamp.c b/net/netfilter/nf_conntrack_timestamp.c
+index 7ea8026..bc9512d 100644
+--- a/net/netfilter/nf_conntrack_timestamp.c
++++ b/net/netfilter/nf_conntrack_timestamp.c
+@@ -42,7 +42,7 @@ static struct nf_ct_ext_type tstamp_extend __read_mostly = {
+ #ifdef CONFIG_SYSCTL
+ static int nf_conntrack_tstamp_init_sysctl(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       table = kmemdup(tstamp_sysctl_table, sizeof(tstamp_sysctl_table),
+                       GFP_KERNEL);
+diff --git a/net/netfilter/nf_log.c b/net/netfilter/nf_log.c
+index 9e31269..bc4c1b7 100644
+--- a/net/netfilter/nf_log.c
++++ b/net/netfilter/nf_log.c
+@@ -215,7 +215,7 @@ static const struct file_operations nflog_file_ops = {
+ #ifdef CONFIG_SYSCTL
+ static char nf_log_sysctl_fnames[NFPROTO_NUMPROTO-NFPROTO_UNSPEC][3];
+-static struct ctl_table nf_log_sysctl_table[NFPROTO_NUMPROTO+1];
++static ctl_table_no_const nf_log_sysctl_table[NFPROTO_NUMPROTO+1] __read_only;
+ static struct ctl_table_header *nf_log_dir_header;
+ static int nf_log_proc_dostring(ctl_table *table, int write,
+@@ -246,14 +246,16 @@ static int nf_log_proc_dostring(ctl_table *table, int write,
+               rcu_assign_pointer(nf_loggers[tindex], logger);
+               mutex_unlock(&nf_log_mutex);
+       } else {
++              ctl_table_no_const nf_log_table = *table;
++
+               mutex_lock(&nf_log_mutex);
+               logger = rcu_dereference_protected(nf_loggers[tindex],
+                                                  lockdep_is_held(&nf_log_mutex));
+               if (!logger)
+-                      table->data = "NONE";
++                      nf_log_table.data = "NONE";
+               else
+-                      table->data = logger->name;
+-              r = proc_dostring(table, write, buffer, lenp, ppos);
++                      nf_log_table.data = logger->name;
++              r = proc_dostring(&nf_log_table, write, buffer, lenp, ppos);
+               mutex_unlock(&nf_log_mutex);
+       }
+diff --git a/net/netfilter/nf_sockopt.c b/net/netfilter/nf_sockopt.c
+index f042ae5..30ea486 100644
+--- a/net/netfilter/nf_sockopt.c
++++ b/net/netfilter/nf_sockopt.c
+@@ -45,7 +45,7 @@ int nf_register_sockopt(struct nf_sockopt_ops *reg)
+               }
+       }
+-      list_add(&reg->list, &nf_sockopts);
++      pax_list_add((struct list_head *)&reg->list, &nf_sockopts);
+ out:
+       mutex_unlock(&nf_sockopt_mutex);
+       return ret;
+@@ -55,7 +55,7 @@ EXPORT_SYMBOL(nf_register_sockopt);
+ void nf_unregister_sockopt(struct nf_sockopt_ops *reg)
+ {
+       mutex_lock(&nf_sockopt_mutex);
+-      list_del(&reg->list);
++      pax_list_del((struct list_head *)&reg->list);
+       mutex_unlock(&nf_sockopt_mutex);
+ }
+ EXPORT_SYMBOL(nf_unregister_sockopt);
+diff --git a/net/netfilter/nfnetlink_acct.c b/net/netfilter/nfnetlink_acct.c
+index 589d686..dc3fd5d 100644
+--- a/net/netfilter/nfnetlink_acct.c
++++ b/net/netfilter/nfnetlink_acct.c
+@@ -49,6 +49,8 @@ nfnl_acct_new(struct sock *nfnl, struct sk_buff *skb,
+               return -EINVAL;
+       acct_name = nla_data(tb[NFACCT_NAME]);
++      if (strlen(acct_name) == 0)
++              return -EINVAL;
+       list_for_each_entry(nfacct, &nfnl_acct_list, head) {
+               if (strncmp(nfacct->name, acct_name, NFACCT_NAME_MAX) != 0)
 diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
 index 92fd8ec..3f6ea4b 100644
 --- a/net/netfilter/nfnetlink_log.c
@@ -81164,6 +88766,22 @@ index 92fd8ec..3f6ea4b 100644
                goto nla_put_failure;
  
        if (data_len) {
+diff --git a/net/netfilter/nfnetlink_queue_core.c b/net/netfilter/nfnetlink_queue_core.c
+index 3158d87..39006c9 100644
+--- a/net/netfilter/nfnetlink_queue_core.c
++++ b/net/netfilter/nfnetlink_queue_core.c
+@@ -1064,8 +1064,10 @@ static int __init nfnetlink_queue_init(void)
+ #ifdef CONFIG_PROC_FS
+       if (!proc_create("nfnetlink_queue", 0440,
+-                       proc_net_netfilter, &nfqnl_file_ops))
++                       proc_net_netfilter, &nfqnl_file_ops)) {
++              status = -ENOMEM;
+               goto cleanup_subsys;
++      }
+ #endif
+       register_netdevice_notifier(&nfqnl_dev_notifier);
 diff --git a/net/netfilter/xt_gradm.c b/net/netfilter/xt_gradm.c
 new file mode 100644
 index 0000000..c566332
@@ -81256,10 +88874,10 @@ index 4fe4fb4..87a89e5 100644
        return 0;
  }
 diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
-index 4da797f..eb1df70 100644
+index c0353d5..fcb0270 100644
 --- a/net/netlink/af_netlink.c
 +++ b/net/netlink/af_netlink.c
-@@ -782,7 +782,7 @@ static void netlink_overrun(struct sock *sk)
+@@ -785,7 +785,7 @@ static void netlink_overrun(struct sock *sk)
                        sk->sk_error_report(sk);
                }
        }
@@ -81268,7 +88886,7 @@ index 4da797f..eb1df70 100644
  }
  
  static struct sock *netlink_getsockbyportid(struct sock *ssk, u32 portid)
-@@ -2068,7 +2068,7 @@ static int netlink_seq_show(struct seq_file *seq, void *v)
+@@ -2071,7 +2071,7 @@ static int netlink_seq_show(struct seq_file *seq, void *v)
                           sk_wmem_alloc_get(s),
                           nlk->cb,
                           atomic_read(&s->sk_refcnt),
@@ -81277,6 +88895,48 @@ index 4da797f..eb1df70 100644
                           sock_i_ino(s)
                        );
  
+diff --git a/net/netlink/genetlink.c b/net/netlink/genetlink.c
+index 5a55be3..7630745 100644
+--- a/net/netlink/genetlink.c
++++ b/net/netlink/genetlink.c
+@@ -296,18 +296,20 @@ int genl_register_ops(struct genl_family *family, struct genl_ops *ops)
+               goto errout;
+       }
++      pax_open_kernel();
+       if (ops->dumpit)
+-              ops->flags |= GENL_CMD_CAP_DUMP;
++              *(unsigned int *)&ops->flags |= GENL_CMD_CAP_DUMP;
+       if (ops->doit)
+-              ops->flags |= GENL_CMD_CAP_DO;
++              *(unsigned int *)&ops->flags |= GENL_CMD_CAP_DO;
+       if (ops->policy)
+-              ops->flags |= GENL_CMD_CAP_HASPOL;
++              *(unsigned int *)&ops->flags |= GENL_CMD_CAP_HASPOL;
++      pax_close_kernel();
+       genl_lock();
+-      list_add_tail(&ops->ops_list, &family->ops_list);
++      pax_list_add_tail((struct list_head *)&ops->ops_list, &family->ops_list);
+       genl_unlock();
+-      genl_ctrl_event(CTRL_CMD_NEWOPS, ops);
++      genl_ctrl_event(CTRL_CMD_NEWOPS, (void *)ops);
+       err = 0;
+ errout:
+       return err;
+@@ -337,9 +339,9 @@ int genl_unregister_ops(struct genl_family *family, struct genl_ops *ops)
+       genl_lock();
+       list_for_each_entry(rc, &family->ops_list, ops_list) {
+               if (rc == ops) {
+-                      list_del(&ops->ops_list);
++                      pax_list_del((struct list_head *)&ops->ops_list);
+                       genl_unlock();
+-                      genl_ctrl_event(CTRL_CMD_DELOPS, ops);
++                      genl_ctrl_event(CTRL_CMD_DELOPS, (void *)ops);
+                       return 0;
+               }
+       }
 diff --git a/net/netrom/af_netrom.c b/net/netrom/af_netrom.c
 index 7261eb8..44e8ac6 100644
 --- a/net/netrom/af_netrom.c
@@ -81298,7 +88958,7 @@ index 7261eb8..44e8ac6 100644
                *uaddr_len = sizeof(struct sockaddr_ax25);
        }
 diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
-index 94060ed..c9bf90e 100644
+index c111bd0..7788ff7 100644
 --- a/net/packet/af_packet.c
 +++ b/net/packet/af_packet.c
 @@ -1578,7 +1578,7 @@ static int packet_rcv(struct sk_buff *skb, struct net_device *dev,
@@ -81319,27 +88979,7 @@ index 94060ed..c9bf90e 100644
        spin_unlock(&sk->sk_receive_queue.lock);
  
  drop_n_restore:
-@@ -2335,13 +2335,15 @@ static int packet_release(struct socket *sock)
-       packet_flush_mclist(sk);
--      memset(&req_u, 0, sizeof(req_u));
--
--      if (po->rx_ring.pg_vec)
-+      if (po->rx_ring.pg_vec) {
-+              memset(&req_u, 0, sizeof(req_u));
-               packet_set_ring(sk, &req_u, 1, 0);
-+      }
--      if (po->tx_ring.pg_vec)
-+      if (po->tx_ring.pg_vec) {
-+              memset(&req_u, 0, sizeof(req_u));
-               packet_set_ring(sk, &req_u, 1, 1);
-+      }
-       fanout_release(sk);
-@@ -2537,6 +2539,7 @@ out:
+@@ -2565,6 +2565,7 @@ out:
  
  static int packet_recv_error(struct sock *sk, struct msghdr *msg, int len)
  {
@@ -81347,7 +88987,7 @@ index 94060ed..c9bf90e 100644
        struct sock_exterr_skb *serr;
        struct sk_buff *skb, *skb2;
        int copied, err;
-@@ -2558,8 +2561,9 @@ static int packet_recv_error(struct sock *sk, struct msghdr *msg, int len)
+@@ -2586,8 +2587,9 @@ static int packet_recv_error(struct sock *sk, struct msghdr *msg, int len)
        sock_recv_timestamp(msg, sk, skb);
  
        serr = SKB_EXT_ERR(skb);
@@ -81358,7 +88998,7 @@ index 94060ed..c9bf90e 100644
  
        msg->msg_flags |= MSG_ERRQUEUE;
        err = copied;
-@@ -3171,7 +3175,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
+@@ -3212,7 +3214,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
        case PACKET_HDRLEN:
                if (len > sizeof(int))
                        len = sizeof(int);
@@ -81367,7 +89007,7 @@ index 94060ed..c9bf90e 100644
                        return -EFAULT;
                switch (val) {
                case TPACKET_V1:
-@@ -3210,7 +3214,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
+@@ -3254,7 +3256,7 @@ static int packet_getsockopt(struct socket *sock, int level, int optname,
                len = lv;
        if (put_user(len, optlen))
                return -EFAULT;
@@ -81442,6 +89082,19 @@ index b7e9827..c264c85 100644
        }
        seq_printf(seq, "%*s\n", 127 - len, "");
        return 0;
+diff --git a/net/phonet/sysctl.c b/net/phonet/sysctl.c
+index d6bbbbd..61561e4 100644
+--- a/net/phonet/sysctl.c
++++ b/net/phonet/sysctl.c
+@@ -67,7 +67,7 @@ static int proc_local_port_range(ctl_table *table, int write,
+ {
+       int ret;
+       int range[2] = {local_port_range[0], local_port_range[1]};
+-      ctl_table tmp = {
++      ctl_table_no_const tmp = {
+               .data = &range,
+               .maxlen = sizeof(range),
+               .mode = table->mode,
 diff --git a/net/rds/cong.c b/net/rds/cong.c
 index e5b65ac..f3b6fb7 100644
 --- a/net/rds/cong.c
@@ -81474,7 +89127,7 @@ index e5b65ac..f3b6fb7 100644
        if (likely(*recent == gen))
                return 0;
 diff --git a/net/rds/ib.h b/net/rds/ib.h
-index 8d2b3d5..227ec5b 100644
+index 7280ab8..e04f4ea 100644
 --- a/net/rds/ib.h
 +++ b/net/rds/ib.h
 @@ -128,7 +128,7 @@ struct rds_ib_connection {
@@ -81487,10 +89140,10 @@ index 8d2b3d5..227ec5b 100644
        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 a1e1162..265e129 100644
+index 31b74f5..dc1fbfa 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)
+@@ -717,7 +717,7 @@ void rds_ib_conn_shutdown(struct rds_connection *conn)
        /* Clear the ACK state */
        clear_bit(IB_ACK_IN_FLIGHT, &ic->i_ack_flags);
  #ifdef KERNEL_HAS_ATOMIC64
@@ -81500,10 +89153,10 @@ index a1e1162..265e129 100644
        ic->i_ack_next = 0;
  #endif
 diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c
-index 8d19491..05a3e65 100644
+index 8eb9501..0c386ff 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)
+@@ -597,7 +597,7 @@ static u64 rds_ib_get_ack(struct rds_ib_connection *ic)
  static void rds_ib_set_ack(struct rds_ib_connection *ic, u64 seq,
                                int ack_required)
  {
@@ -81512,7 +89165,7 @@ index 8d19491..05a3e65 100644
        if (ack_required) {
                smp_mb__before_clear_bit();
                set_bit(IB_ACK_REQUESTED, &ic->i_ack_flags);
-@@ -604,7 +604,7 @@ static u64 rds_ib_get_ack(struct rds_ib_connection *ic)
+@@ -609,7 +609,7 @@ static u64 rds_ib_get_ack(struct rds_ib_connection *ic)
        clear_bit(IB_ACK_REQUESTED, &ic->i_ack_flags);
        smp_mb__after_clear_bit();
  
@@ -81569,6 +89222,19 @@ index 4503335..db566b4 100644
  }
  #endif
  
+diff --git a/net/rds/rds.h b/net/rds/rds.h
+index ec1d731..90a3a8d 100644
+--- a/net/rds/rds.h
++++ b/net/rds/rds.h
+@@ -449,7 +449,7 @@ struct rds_transport {
+       void (*sync_mr)(void *trans_private, int direction);
+       void (*free_mr)(void *trans_private, int invalidate);
+       void (*flush_mrs)(void);
+-};
++} __do_const;
+ struct rds_sock {
+       struct sock             rs_sk;
 diff --git a/net/rds/tcp.c b/net/rds/tcp.c
 index edac9ef..16bcb98 100644
 --- a/net/rds/tcp.c
@@ -81855,60 +89521,42 @@ index f226709..0e735a8 100644
        _proto("Tx RESPONSE %%%u", ntohl(hdr->serial));
  
        ret = kernel_sendmsg(conn->trans->local->socket, &msg, iov, 3, len);
-diff --git a/net/sctp/auth.c b/net/sctp/auth.c
-index 159b9bc..d8420ae 100644
---- a/net/sctp/auth.c
-+++ b/net/sctp/auth.c
-@@ -71,7 +71,7 @@ void sctp_auth_key_put(struct sctp_auth_bytes *key)
-               return;
-       if (atomic_dec_and_test(&key->refcnt)) {
--              kfree(key);
-+              kzfree(key);
-               SCTP_DBG_OBJCNT_DEC(keys);
-       }
- }
-diff --git a/net/sctp/endpointola.c b/net/sctp/endpointola.c
-index 1859e2b..80a7264 100644
---- a/net/sctp/endpointola.c
-+++ b/net/sctp/endpointola.c
-@@ -249,6 +249,8 @@ void sctp_endpoint_free(struct sctp_endpoint *ep)
- /* Final destructor for endpoint.  */
- static void sctp_endpoint_destroy(struct sctp_endpoint *ep)
- {
-+      int i;
-+
-       SCTP_ASSERT(ep->base.dead, "Endpoint is not dead", return);
-       /* Free up the HMAC transform. */
-@@ -271,6 +273,9 @@ static void sctp_endpoint_destroy(struct sctp_endpoint *ep)
-       sctp_inq_free(&ep->base.inqueue);
-       sctp_bind_addr_free(&ep->base.bind_addr);
-+      for (i = 0; i < SCTP_HOW_MANY_SECRETS; ++i)
-+              memset(&ep->secret_key[i], 0, SCTP_SECRET_SIZE);
-+
-       /* Remove and free the port */
-       if (sctp_sk(ep->base.sk)->bind_hash)
-               sctp_put_port(ep->base.sk);
 diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c
-index ea14cb4..834e8e4 100644
+index 391a245..296b3d7 100644
 --- a/net/sctp/ipv6.c
 +++ b/net/sctp/ipv6.c
-@@ -1037,7 +1037,7 @@ void sctp_v6_pf_init(void)
+@@ -981,7 +981,7 @@ static const struct inet6_protocol sctpv6_protocol = {
+       .flags        = INET6_PROTO_NOPOLICY | INET6_PROTO_FINAL,
+ };
+-static struct sctp_af sctp_af_inet6 = {
++static struct sctp_af sctp_af_inet6 __read_only = {
+       .sa_family         = AF_INET6,
+       .sctp_xmit         = sctp_v6_xmit,
+       .setsockopt        = ipv6_setsockopt,
+@@ -1013,7 +1013,7 @@ static struct sctp_af sctp_af_inet6 = {
+ #endif
+ };
+-static struct sctp_pf sctp_pf_inet6 = {
++static struct sctp_pf sctp_pf_inet6 __read_only = {
+       .event_msgname = sctp_inet6_event_msgname,
+       .skb_msgname   = sctp_inet6_skb_msgname,
+       .af_supported  = sctp_inet6_af_supported,
+@@ -1038,7 +1038,7 @@ void sctp_v6_pf_init(void)
  
  void sctp_v6_pf_exit(void)
  {
 -      list_del(&sctp_af_inet6.list);
-+      pax_list_del((struct list_head *)&sctp_af_inet6.list);
++      pax_list_del(&sctp_af_inet6.list);
  }
  
  /* Initialize IPv6 support and register with socket layer.  */
 diff --git a/net/sctp/proc.c b/net/sctp/proc.c
-index 9966e7b..540c575 100644
+index 8c19e97..16264b8 100644
 --- a/net/sctp/proc.c
 +++ b/net/sctp/proc.c
-@@ -328,7 +328,8 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
+@@ -338,7 +338,8 @@ static int sctp_assocs_seq_show(struct seq_file *seq, void *v)
                seq_printf(seq,
                           "%8pK %8pK %-3d %-3d %-2d %-4d "
                           "%4d %8d %8d %7d %5lu %-5d %5d ",
@@ -81919,45 +89567,135 @@ index 9966e7b..540c575 100644
                           assoc->assoc_id,
                           assoc->sndbuf_used,
 diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c
-index 2d51842..150ba5c 100644
+index f898b1c..a2d0fe8 100644
 --- a/net/sctp/protocol.c
 +++ b/net/sctp/protocol.c
 @@ -834,8 +834,10 @@ int sctp_register_af(struct sctp_af *af)
                return 0;
        }
  
--      INIT_LIST_HEAD(&af->list);
--      list_add_tail(&af->list, &sctp_address_families);
 +      pax_open_kernel();
-+      INIT_LIST_HEAD((struct list_head *)&af->list);
+       INIT_LIST_HEAD(&af->list);
+-      list_add_tail(&af->list, &sctp_address_families);
 +      pax_close_kernel();
-+      pax_list_add_tail((struct list_head *)&af->list, &sctp_address_families);
++      pax_list_add_tail(&af->list, &sctp_address_families);
        return 1;
  }
  
+@@ -966,7 +968,7 @@ static inline int sctp_v4_xmit(struct sk_buff *skb,
+ static struct sctp_af sctp_af_inet;
+-static struct sctp_pf sctp_pf_inet = {
++static struct sctp_pf sctp_pf_inet __read_only = {
+       .event_msgname = sctp_inet_event_msgname,
+       .skb_msgname   = sctp_inet_skb_msgname,
+       .af_supported  = sctp_inet_af_supported,
+@@ -1037,7 +1039,7 @@ static const struct net_protocol sctp_protocol = {
+ };
+ /* IPv4 address related functions.  */
+-static struct sctp_af sctp_af_inet = {
++static struct sctp_af sctp_af_inet __read_only = {
+       .sa_family         = AF_INET,
+       .sctp_xmit         = sctp_v4_xmit,
+       .setsockopt        = ip_setsockopt,
 @@ -1122,7 +1124,7 @@ static void sctp_v4_pf_init(void)
  
  static void sctp_v4_pf_exit(void)
  {
 -      list_del(&sctp_af_inet.list);
-+      pax_list_del((struct list_head *)&sctp_af_inet.list);
++      pax_list_del(&sctp_af_inet.list);
  }
  
  static int sctp_v4_protosw_init(void)
+diff --git a/net/sctp/sm_sideeffect.c b/net/sctp/sm_sideeffect.c
+index c957775..6d4593a 100644
+--- a/net/sctp/sm_sideeffect.c
++++ b/net/sctp/sm_sideeffect.c
+@@ -447,7 +447,7 @@ static void sctp_generate_sack_event(unsigned long data)
+       sctp_generate_timeout_event(asoc, SCTP_EVENT_TIMEOUT_SACK);
+ }
+-sctp_timer_event_t *sctp_timer_events[SCTP_NUM_TIMEOUT_TYPES] = {
++sctp_timer_event_t * const sctp_timer_events[SCTP_NUM_TIMEOUT_TYPES] = {
+       NULL,
+       sctp_generate_t1_cookie_event,
+       sctp_generate_t1_init_event,
 diff --git a/net/sctp/socket.c b/net/sctp/socket.c
-index 406d957..0a6ae623 100644
+index 9ef5c73..1e9a9a9 100644
 --- a/net/sctp/socket.c
 +++ b/net/sctp/socket.c
-@@ -3388,7 +3388,7 @@ static int sctp_setsockopt_auth_key(struct sock *sk,
+@@ -2166,11 +2166,13 @@ static int sctp_setsockopt_events(struct sock *sk, char __user *optval,
+ {
+       struct sctp_association *asoc;
+       struct sctp_ulpevent *event;
++      struct sctp_event_subscribe subscribe;
  
-       ret = sctp_auth_set_key(sctp_sk(sk)->ep, asoc, authkey);
- out:
--      kfree(authkey);
-+      kzfree(authkey);
-       return ret;
- }
+       if (optlen > sizeof(struct sctp_event_subscribe))
+               return -EINVAL;
+-      if (copy_from_user(&sctp_sk(sk)->subscribe, optval, optlen))
++      if (copy_from_user(&subscribe, optval, optlen))
+               return -EFAULT;
++      sctp_sk(sk)->subscribe = subscribe;
  
-@@ -4661,6 +4661,8 @@ static int sctp_getsockopt_peer_addrs(struct sock *sk, int len,
+       /*
+        * At the time when a user app subscribes to SCTP_SENDER_DRY_EVENT,
+@@ -4215,13 +4217,16 @@ static int sctp_getsockopt_disable_fragments(struct sock *sk, int len,
+ static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval,
+                                 int __user *optlen)
+ {
++      struct sctp_event_subscribe subscribe;
++
+       if (len <= 0)
+               return -EINVAL;
+       if (len > sizeof(struct sctp_event_subscribe))
+               len = sizeof(struct sctp_event_subscribe);
+       if (put_user(len, optlen))
+               return -EFAULT;
+-      if (copy_to_user(optval, &sctp_sk(sk)->subscribe, len))
++      subscribe = sctp_sk(sk)->subscribe;
++      if (copy_to_user(optval, &subscribe, len))
+               return -EFAULT;
+       return 0;
+ }
+@@ -4239,6 +4244,8 @@ static int sctp_getsockopt_events(struct sock *sk, int len, char __user *optval,
+  */
+ static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optval, int __user *optlen)
+ {
++      __u32 autoclose;
++
+       /* Applicable to UDP-style socket only */
+       if (sctp_style(sk, TCP))
+               return -EOPNOTSUPP;
+@@ -4247,7 +4254,8 @@ static int sctp_getsockopt_autoclose(struct sock *sk, int len, char __user *optv
+       len = sizeof(int);
+       if (put_user(len, optlen))
+               return -EFAULT;
+-      if (copy_to_user(optval, &sctp_sk(sk)->autoclose, sizeof(int)))
++      autoclose = sctp_sk(sk)->autoclose;
++      if (copy_to_user(optval, &autoclose, sizeof(int)))
+               return -EFAULT;
+       return 0;
+ }
+@@ -4619,12 +4627,15 @@ static int sctp_getsockopt_delayed_ack(struct sock *sk, int len,
+  */
+ static int sctp_getsockopt_initmsg(struct sock *sk, int len, char __user *optval, int __user *optlen)
+ {
++      struct sctp_initmsg initmsg;
++
+       if (len < sizeof(struct sctp_initmsg))
+               return -EINVAL;
+       len = sizeof(struct sctp_initmsg);
+       if (put_user(len, optlen))
+               return -EFAULT;
+-      if (copy_to_user(optval, &sctp_sk(sk)->initmsg, len))
++      initmsg = sctp_sk(sk)->initmsg;
++      if (copy_to_user(optval, &initmsg, len))
+               return -EFAULT;
+       return 0;
+ }
+@@ -4665,6 +4676,8 @@ 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;
@@ -81966,8 +89704,70 @@ index 406d957..0a6ae623 100644
                if (copy_to_user(to, &temp, addrlen))
                        return -EFAULT;
                to += addrlen;
+diff --git a/net/sctp/ssnmap.c b/net/sctp/ssnmap.c
+index 442ad4e..825ea94 100644
+--- a/net/sctp/ssnmap.c
++++ b/net/sctp/ssnmap.c
+@@ -41,8 +41,6 @@
+ #include <net/sctp/sctp.h>
+ #include <net/sctp/sm.h>
+-#define MAX_KMALLOC_SIZE      131072
+-
+ static struct sctp_ssnmap *sctp_ssnmap_init(struct sctp_ssnmap *map, __u16 in,
+                                           __u16 out);
+@@ -65,7 +63,7 @@ struct sctp_ssnmap *sctp_ssnmap_new(__u16 in, __u16 out,
+       int size;
+       size = sctp_ssnmap_size(in, out);
+-      if (size <= MAX_KMALLOC_SIZE)
++      if (size <= KMALLOC_MAX_SIZE)
+               retval = kmalloc(size, gfp);
+       else
+               retval = (struct sctp_ssnmap *)
+@@ -82,7 +80,7 @@ struct sctp_ssnmap *sctp_ssnmap_new(__u16 in, __u16 out,
+       return retval;
+ fail_map:
+-      if (size <= MAX_KMALLOC_SIZE)
++      if (size <= KMALLOC_MAX_SIZE)
+               kfree(retval);
+       else
+               free_pages((unsigned long)retval, get_order(size));
+@@ -124,7 +122,7 @@ void sctp_ssnmap_free(struct sctp_ssnmap *map)
+               int size;
+               size = sctp_ssnmap_size(map->in.len, map->out.len);
+-              if (size <= MAX_KMALLOC_SIZE)
++              if (size <= KMALLOC_MAX_SIZE)
+                       kfree(map);
+               else
+                       free_pages((unsigned long)map, get_order(size));
+diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
+index bf3c6e8..376d8d0 100644
+--- a/net/sctp/sysctl.c
++++ b/net/sctp/sysctl.c
+@@ -307,7 +307,7 @@ static int proc_sctp_do_hmac_alg(ctl_table *ctl,
+ {
+       struct net *net = current->nsproxy->net_ns;
+       char tmp[8];
+-      ctl_table tbl;
++      ctl_table_no_const tbl;
+       int ret;
+       int changed = 0;
+       char *none = "none";
+@@ -350,7 +350,7 @@ static int proc_sctp_do_hmac_alg(ctl_table *ctl,
+ int sctp_sysctl_net_register(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       int i;
+       table = kmemdup(sctp_net_table, sizeof(sctp_net_table), GFP_KERNEL);
 diff --git a/net/socket.c b/net/socket.c
-index d92c490..b4bc863 100644
+index 2ca51c7..ee5feb5 100644
 --- a/net/socket.c
 +++ b/net/socket.c
 @@ -89,6 +89,7 @@
@@ -81996,7 +89796,7 @@ index d92c490..b4bc863 100644
  
  static struct file_system_type sock_fs_type = {
        .name =         "sockfs",
-@@ -1276,6 +1279,8 @@ int __sock_create(struct net *net, int family, int type, int protocol,
+@@ -1270,6 +1273,8 @@ int __sock_create(struct net *net, int family, int type, int protocol,
                return -EAFNOSUPPORT;
        if (type < 0 || type >= SOCK_MAX)
                return -EINVAL;
@@ -82005,7 +89805,7 @@ index d92c490..b4bc863 100644
  
        /* Compatibility.
  
-@@ -1407,6 +1412,16 @@ SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol)
+@@ -1401,6 +1406,16 @@ SYSCALL_DEFINE3(socket, int, family, int, type, int, protocol)
        if (SOCK_NONBLOCK != O_NONBLOCK && (flags & SOCK_NONBLOCK))
                flags = (flags & ~SOCK_NONBLOCK) | O_NONBLOCK;
  
@@ -82022,7 +89822,7 @@ index d92c490..b4bc863 100644
        retval = sock_create(family, type, protocol, &sock);
        if (retval < 0)
                goto out;
-@@ -1534,6 +1549,14 @@ SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen)
+@@ -1528,6 +1543,14 @@ SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen)
        if (sock) {
                err = move_addr_to_kernel(umyaddr, addrlen, &address);
                if (err >= 0) {
@@ -82037,7 +89837,7 @@ index d92c490..b4bc863 100644
                        err = security_socket_bind(sock,
                                                   (struct sockaddr *)&address,
                                                   addrlen);
-@@ -1542,6 +1565,7 @@ SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen)
+@@ -1536,6 +1559,7 @@ SYSCALL_DEFINE3(bind, int, fd, struct sockaddr __user *, umyaddr, int, addrlen)
                                                      (struct sockaddr *)
                                                      &address, addrlen);
                }
@@ -82045,7 +89845,7 @@ index d92c490..b4bc863 100644
                fput_light(sock->file, fput_needed);
        }
        return err;
-@@ -1565,10 +1589,20 @@ SYSCALL_DEFINE2(listen, int, fd, int, backlog)
+@@ -1559,10 +1583,20 @@ SYSCALL_DEFINE2(listen, int, fd, int, backlog)
                if ((unsigned int)backlog > somaxconn)
                        backlog = somaxconn;
  
@@ -82066,7 +89866,7 @@ index d92c490..b4bc863 100644
                fput_light(sock->file, fput_needed);
        }
        return err;
-@@ -1612,6 +1646,18 @@ SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr,
+@@ -1606,6 +1640,18 @@ SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr,
        newsock->type = sock->type;
        newsock->ops = sock->ops;
  
@@ -82085,7 +89885,7 @@ index d92c490..b4bc863 100644
        /*
         * We don't need try_module_get here, as the listening socket (sock)
         * has the protocol module (sock->ops->owner) held.
-@@ -1657,6 +1703,8 @@ SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr,
+@@ -1651,6 +1697,8 @@ SYSCALL_DEFINE4(accept4, int, fd, struct sockaddr __user *, upeer_sockaddr,
        fd_install(newfd, newfile);
        err = newfd;
  
@@ -82094,7 +89894,7 @@ index d92c490..b4bc863 100644
  out_put:
        fput_light(sock->file, fput_needed);
  out:
-@@ -1689,6 +1737,7 @@ SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr,
+@@ -1683,6 +1731,7 @@ SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr,
                int, addrlen)
  {
        struct socket *sock;
@@ -82102,7 +89902,7 @@ index d92c490..b4bc863 100644
        struct sockaddr_storage address;
        int err, fput_needed;
  
-@@ -1699,6 +1748,17 @@ SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr,
+@@ -1693,6 +1742,17 @@ SYSCALL_DEFINE3(connect, int, fd, struct sockaddr __user *, uservaddr,
        if (err < 0)
                goto out_put;
  
@@ -82120,7 +89920,25 @@ index d92c490..b4bc863 100644
        err =
            security_socket_connect(sock, (struct sockaddr *)&address, addrlen);
        if (err)
-@@ -2053,7 +2113,7 @@ static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg,
+@@ -1774,6 +1834,8 @@ SYSCALL_DEFINE3(getpeername, int, fd, struct sockaddr __user *, usockaddr,
+  *    the protocol.
+  */
++asmlinkage long sys_sendto(int, void *, size_t, unsigned, struct sockaddr *, int);
++
+ SYSCALL_DEFINE6(sendto, int, fd, void __user *, buff, size_t, len,
+               unsigned int, flags, struct sockaddr __user *, addr,
+               int, addr_len)
+@@ -1840,7 +1902,7 @@ SYSCALL_DEFINE6(recvfrom, int, fd, void __user *, ubuf, size_t, size,
+       struct socket *sock;
+       struct iovec iov;
+       struct msghdr msg;
+-      struct sockaddr_storage address;
++      struct sockaddr_storage address = { };
+       int err, err2;
+       int fput_needed;
+@@ -2047,7 +2109,7 @@ static int __sys_sendmsg(struct socket *sock, struct msghdr __user *msg,
                 * checking falls down on this.
                 */
                if (copy_from_user(ctl_buf,
@@ -82129,7 +89947,16 @@ index d92c490..b4bc863 100644
                                   ctl_len))
                        goto out_freectl;
                msg_sys->msg_control = ctl_buf;
-@@ -2221,7 +2281,7 @@ static int __sys_recvmsg(struct socket *sock, struct msghdr __user *msg,
+@@ -2187,7 +2249,7 @@ static int __sys_recvmsg(struct socket *sock, struct msghdr __user *msg,
+       int err, total_len, len;
+       /* kernel mode address */
+-      struct sockaddr_storage addr;
++      struct sockaddr_storage addr = { };
+       /* user mode address pointers */
+       struct sockaddr __user *uaddr;
+@@ -2215,7 +2277,7 @@ static int __sys_recvmsg(struct socket *sock, struct msghdr __user *msg,
         *      kernel msghdr to use the kernel address space)
         */
  
@@ -82138,7 +89965,7 @@ index d92c490..b4bc863 100644
        uaddr_len = COMPAT_NAMELEN(msg);
        if (MSG_CMSG_COMPAT & flags) {
                err = verify_compat_iovec(msg_sys, iov, &addr, VERIFY_WRITE);
-@@ -2844,7 +2904,7 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
+@@ -2838,7 +2900,7 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
        }
  
        ifr = compat_alloc_user_space(buf_size);
@@ -82147,7 +89974,7 @@ index d92c490..b4bc863 100644
  
        if (copy_in_user(&ifr->ifr_name, &ifr32->ifr_name, IFNAMSIZ))
                return -EFAULT;
-@@ -2868,12 +2928,12 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
+@@ -2862,12 +2924,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,
@@ -82164,7 +89991,7 @@ index d92c490..b4bc863 100644
                    copy_in_user(&rxnfc->rule_cnt, &compat_rxnfc->rule_cnt,
                                 sizeof(rxnfc->rule_cnt)))
                        return -EFAULT;
-@@ -2885,12 +2945,12 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
+@@ -2879,12 +2941,12 @@ static int ethtool_ioctl(struct net *net, struct compat_ifreq __user *ifr32)
  
        if (convert_out) {
                if (copy_in_user(compat_rxnfc, rxnfc,
@@ -82181,7 +90008,7 @@ index d92c490..b4bc863 100644
                    copy_in_user(&compat_rxnfc->rule_cnt, &rxnfc->rule_cnt,
                                 sizeof(rxnfc->rule_cnt)))
                        return -EFAULT;
-@@ -2960,7 +3020,7 @@ static int bond_ioctl(struct net *net, unsigned int cmd,
+@@ -2954,7 +3016,7 @@ static int bond_ioctl(struct net *net, unsigned int cmd,
                old_fs = get_fs();
                set_fs(KERNEL_DS);
                err = dev_ioctl(net, cmd,
@@ -82190,7 +90017,7 @@ index d92c490..b4bc863 100644
                set_fs(old_fs);
  
                return err;
-@@ -3069,7 +3129,7 @@ static int compat_sioc_ifmap(struct net *net, unsigned int cmd,
+@@ -3063,7 +3125,7 @@ static int compat_sioc_ifmap(struct net *net, unsigned int cmd,
  
        old_fs = get_fs();
        set_fs(KERNEL_DS);
@@ -82199,7 +90026,7 @@ index d92c490..b4bc863 100644
        set_fs(old_fs);
  
        if (cmd == SIOCGIFMAP && !err) {
-@@ -3174,7 +3234,7 @@ static int routing_ioctl(struct net *net, struct socket *sock,
+@@ -3168,7 +3230,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);
@@ -82208,7 +90035,7 @@ index d92c490..b4bc863 100644
                        devname[15] = 0;
                } else
                        r4.rt_dev = NULL;
-@@ -3400,8 +3460,8 @@ int kernel_getsockopt(struct socket *sock, int level, int optname,
+@@ -3394,8 +3456,8 @@ int kernel_getsockopt(struct socket *sock, int level, int optname,
        int __user *uoptlen;
        int err;
  
@@ -82219,7 +90046,7 @@ index d92c490..b4bc863 100644
  
        set_fs(KERNEL_DS);
        if (level == SOL_SOCKET)
-@@ -3421,7 +3481,7 @@ int kernel_setsockopt(struct socket *sock, int level, int optname,
+@@ -3415,7 +3477,7 @@ int kernel_setsockopt(struct socket *sock, int level, int optname,
        char __user *uoptval;
        int err;
  
@@ -82228,11 +90055,26 @@ index d92c490..b4bc863 100644
  
        set_fs(KERNEL_DS);
        if (level == SOL_SOCKET)
+diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
+index 507b5e8..049e64a 100644
+--- a/net/sunrpc/clnt.c
++++ b/net/sunrpc/clnt.c
+@@ -1272,7 +1272,9 @@ call_start(struct rpc_task *task)
+                       (RPC_IS_ASYNC(task) ? "async" : "sync"));
+       /* Increment call count */
+-      task->tk_msg.rpc_proc->p_count++;
++      pax_open_kernel();
++      (*(unsigned int *)&task->tk_msg.rpc_proc->p_count)++;
++      pax_close_kernel();
+       clnt->cl_stats->rpccnt++;
+       task->tk_action = call_reserve;
+ }
 diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c
-index 7865b44..174662e 100644
+index f8529fc..ce8c643 100644
 --- a/net/sunrpc/sched.c
 +++ b/net/sunrpc/sched.c
-@@ -240,9 +240,9 @@ static int rpc_wait_bit_killable(void *word)
+@@ -261,9 +261,9 @@ static int rpc_wait_bit_killable(void *word)
  #ifdef RPC_DEBUG
  static void rpc_task_set_debuginfo(struct rpc_task *task)
  {
@@ -82244,6 +90086,21 @@ index 7865b44..174662e 100644
  }
  #else
  static inline void rpc_task_set_debuginfo(struct rpc_task *task)
+diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
+index 2d34b6b..e2d584d 100644
+--- a/net/sunrpc/svc.c
++++ b/net/sunrpc/svc.c
+@@ -1156,7 +1156,9 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv)
+       svc_putnl(resv, RPC_SUCCESS);
+       /* Bump per-procedure stats counter */
+-      procp->pc_count++;
++      pax_open_kernel();
++      (*(unsigned int *)&procp->pc_count)++;
++      pax_close_kernel();
+       /* Initialize storage for argp and resp */
+       memset(rqstp->rq_argp, 0, procp->pc_argsize);
 diff --git a/net/sunrpc/xprtrdma/svc_rdma.c b/net/sunrpc/xprtrdma/svc_rdma.c
 index 8343737..677025e 100644
 --- a/net/sunrpc/xprtrdma/svc_rdma.c
@@ -82356,7 +90213,7 @@ index 8343737..677025e 100644
                .proc_handler   = read_reset_stat,
        },
 diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
-index 41cb63b..c4a1489 100644
+index 0ce7552..d074459 100644
 --- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
 +++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
 @@ -501,7 +501,7 @@ next_sge:
@@ -82387,7 +90244,7 @@ index 41cb63b..c4a1489 100644
        /* 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 42eb7ba..c887c45 100644
+index c1d124d..acfc59e 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,
@@ -82449,23 +90306,23 @@ index 62e4f9b..dd3f2d7 100644
                        /* 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 e3a6e37..be2ea77 100644
+index 9bc6db0..47ac8c0 100644
 --- a/net/sysctl_net.c
 +++ b/net/sysctl_net.c
-@@ -43,7 +43,7 @@ static int net_ctl_permissions(struct ctl_table_root *root,
-                              struct ctl_table *table)
- {
+@@ -46,7 +46,7 @@ static int net_ctl_permissions(struct ctl_table_header *head,
+       kgid_t root_gid = make_kgid(net->user_ns, 0);
        /* Allow network administrator to have same access as root. */
--      if (capable(CAP_NET_ADMIN)) {
-+      if (capable_nolog(CAP_NET_ADMIN)) {
+-      if (ns_capable(net->user_ns, CAP_NET_ADMIN) ||
++      if (ns_capable_nolog(net->user_ns, CAP_NET_ADMIN) ||
+           uid_eq(root_uid, current_uid())) {
                int mode = (table->mode >> 6) & 7;
                return (mode << 6) | (mode << 3) | mode;
-       }
 diff --git a/net/tipc/link.c b/net/tipc/link.c
-index a79c755..eca357d 100644
+index daa6080..02d357f 100644
 --- a/net/tipc/link.c
 +++ b/net/tipc/link.c
-@@ -1169,7 +1169,7 @@ static int link_send_sections_long(struct tipc_port *sender,
+@@ -1201,7 +1201,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;
@@ -82474,7 +90331,7 @@ index a79c755..eca357d 100644
        int curr_sect;
        u32 fragm_no;
  
-@@ -1210,7 +1210,7 @@ again:
+@@ -1242,7 +1242,7 @@ again:
  
                if (!sect_rest) {
                        sect_rest = msg_sect[++curr_sect].iov_len;
@@ -82483,7 +90340,7 @@ index a79c755..eca357d 100644
                }
  
                if (sect_rest < fragm_rest)
-@@ -1229,7 +1229,7 @@ error:
+@@ -1261,7 +1261,7 @@ error:
                        }
                } else
                        skb_copy_to_linear_data_offset(buf, fragm_crs,
@@ -82506,7 +90363,7 @@ index f2db8a8..9245aa4 100644
                pos += msg_sect[cnt].iov_len;
        }
 diff --git a/net/tipc/subscr.c b/net/tipc/subscr.c
-index 0f7d0d0..00f89bf 100644
+index 6b42d47..2ac24d5 100644
 --- a/net/tipc/subscr.c
 +++ b/net/tipc/subscr.c
 @@ -96,7 +96,7 @@ static void subscr_send_event(struct tipc_subscription *sub,
@@ -82519,10 +90376,10 @@ index 0f7d0d0..00f89bf 100644
  
        sub->evt.event = htohl(event, sub->swap);
 diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
-index 5b5c876..3127bf7 100644
+index b45eb65..bb4b223 100644
 --- a/net/unix/af_unix.c
 +++ b/net/unix/af_unix.c
-@@ -786,6 +786,12 @@ static struct sock *unix_find_other(struct net *net,
+@@ -785,6 +785,12 @@ static struct sock *unix_find_other(struct net *net,
                err = -ECONNREFUSED;
                if (!S_ISSOCK(inode->i_mode))
                        goto put_fail;
@@ -82535,7 +90392,7 @@ index 5b5c876..3127bf7 100644
                u = unix_find_socket_byinode(inode);
                if (!u)
                        goto put_fail;
-@@ -806,6 +812,13 @@ static struct sock *unix_find_other(struct net *net,
+@@ -805,6 +811,13 @@ static struct sock *unix_find_other(struct net *net,
                if (u) {
                        struct dentry *dentry;
                        dentry = unix_sk(u)->path.dentry;
@@ -82549,7 +90406,7 @@ index 5b5c876..3127bf7 100644
                        if (dentry)
                                touch_atime(&unix_sk(u)->path);
                } else
-@@ -839,12 +852,18 @@ static int unix_mknod(const char *sun_path, umode_t mode, struct path *res)
+@@ -838,12 +851,18 @@ static int unix_mknod(const char *sun_path, umode_t mode, struct path *res)
         */
        err = security_path_mknod(&path, dentry, mode, 0);
        if (!err) {
@@ -82568,6 +90425,70 @@ index 5b5c876..3127bf7 100644
        done_path_create(&path, dentry);
        return err;
  }
+@@ -1995,7 +2014,7 @@ again:
+                       if ((UNIXCB(skb).pid  != siocb->scm->pid) ||
+                           (UNIXCB(skb).cred != siocb->scm->cred))
+                               break;
+-              } else {
++              } else if (test_bit(SOCK_PASSCRED, &sock->flags)) {
+                       /* Copy credentials */
+                       scm_set_cred(siocb->scm, UNIXCB(skb).pid, UNIXCB(skb).cred);
+                       check_creds = 1;
+@@ -2325,9 +2344,13 @@ static int unix_seq_show(struct seq_file *seq, void *v)
+               seq_puts(seq, "Num       RefCount Protocol Flags    Type St "
+                        "Inode Path\n");
+       else {
+-              struct sock *s = v;
++              struct sock *s = v, *peer;
+               struct unix_sock *u = unix_sk(s);
+               unix_state_lock(s);
++              peer = unix_peer(s);
++              unix_state_unlock(s);
++
++              unix_state_double_lock(s, peer);
+               seq_printf(seq, "%pK: %08X %08X %08X %04X %02X %5lu",
+                       s,
+@@ -2354,8 +2377,10 @@ static int unix_seq_show(struct seq_file *seq, void *v)
+                       }
+                       for ( ; i < len; i++)
+                               seq_putc(seq, u->addr->name->sun_path[i]);
+-              }
+-              unix_state_unlock(s);
++              } else if (peer)
++                      seq_printf(seq, " P%lu", sock_i_ino(peer));
++
++              unix_state_double_unlock(s, peer);
+               seq_putc(seq, '\n');
+       }
+diff --git a/net/unix/sysctl_net_unix.c b/net/unix/sysctl_net_unix.c
+index 8800604..0526440 100644
+--- a/net/unix/sysctl_net_unix.c
++++ b/net/unix/sysctl_net_unix.c
+@@ -28,7 +28,7 @@ static ctl_table unix_table[] = {
+ int __net_init unix_sysctl_register(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       table = kmemdup(unix_table, sizeof(unix_table), GFP_KERNEL);
+       if (table == NULL)
+diff --git a/net/wireless/trace.h b/net/wireless/trace.h
+index 2134576..5d71a5a 100644
+--- a/net/wireless/trace.h
++++ b/net/wireless/trace.h
+@@ -27,7 +27,8 @@
+ #define WIPHY_PR_ARG  __entry->wiphy_name
+ #define WDEV_ENTRY    __field(u32, id)
+-#define WDEV_ASSIGN   (__entry->id) = (wdev ? wdev->identifier : 0)
++#define WDEV_ASSIGN   (__entry->id) = (!IS_ERR_OR_NULL(wdev)  \
++                                       ? wdev->identifier : 0)
+ #define WDEV_PR_FMT   "wdev(%u)"
+ #define WDEV_PR_ARG   (__entry->id)
 diff --git a/net/wireless/wext-core.c b/net/wireless/wext-core.c
 index c8717c1..08539f5 100644
 --- a/net/wireless/wext-core.c
@@ -82606,7 +90527,7 @@ index c8717c1..08539f5 100644
  
        iwp->length += essid_compat;
 diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c
-index 41eabc4..8d4e6d6 100644
+index 07c5857..fde4018 100644
 --- a/net/xfrm/xfrm_policy.c
 +++ b/net/xfrm/xfrm_policy.c
 @@ -317,7 +317,7 @@ static void xfrm_policy_kill(struct xfrm_policy *policy)
@@ -82672,7 +90593,32 @@ index 41eabc4..8d4e6d6 100644
                        return 0;
  
                mtu = dst_mtu(dst->child);
-@@ -2896,7 +2896,7 @@ static int xfrm_policy_migrate(struct xfrm_policy *pol,
+@@ -2457,8 +2457,11 @@ int xfrm_policy_register_afinfo(struct xfrm_policy_afinfo *afinfo)
+                       dst_ops->link_failure = xfrm_link_failure;
+               if (likely(dst_ops->neigh_lookup == NULL))
+                       dst_ops->neigh_lookup = xfrm_neigh_lookup;
+-              if (likely(afinfo->garbage_collect == NULL))
+-                      afinfo->garbage_collect = xfrm_garbage_collect_deferred;
++              if (likely(afinfo->garbage_collect == NULL)) {
++                      pax_open_kernel();
++                      *(void **)&afinfo->garbage_collect = xfrm_garbage_collect_deferred;
++                      pax_close_kernel();
++              }
+               rcu_assign_pointer(xfrm_policy_afinfo[afinfo->family], afinfo);
+       }
+       spin_unlock(&xfrm_policy_afinfo_lock);
+@@ -2512,7 +2515,9 @@ int xfrm_policy_unregister_afinfo(struct xfrm_policy_afinfo *afinfo)
+               dst_ops->check = NULL;
+               dst_ops->negative_advice = NULL;
+               dst_ops->link_failure = NULL;
+-              afinfo->garbage_collect = NULL;
++              pax_open_kernel();
++              *(void **)&afinfo->garbage_collect = NULL;
++              pax_close_kernel();
+       }
+       return err;
+ }
+@@ -2896,7 +2901,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 */
@@ -82682,20 +90628,110 @@ index 41eabc4..8d4e6d6 100644
        }
  
 diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
-index 3459692..eefb515 100644
+index 3459692..e7cdb1a 100644
 --- a/net/xfrm/xfrm_state.c
 +++ b/net/xfrm/xfrm_state.c
-@@ -278,7 +278,9 @@ int xfrm_register_mode(struct xfrm_mode *mode, int family)
+@@ -194,11 +194,13 @@ int xfrm_register_type(const struct xfrm_type *type, unsigned short family)
+       if (unlikely(afinfo == NULL))
+               return -EAFNOSUPPORT;
+-      typemap = afinfo->type_map;
++      typemap = (const struct xfrm_type **)afinfo->type_map;
+-      if (likely(typemap[type->proto] == NULL))
++      if (likely(typemap[type->proto] == NULL)) {
++              pax_open_kernel();
+               typemap[type->proto] = type;
+-      else
++              pax_close_kernel();
++      } else
+               err = -EEXIST;
+       xfrm_state_unlock_afinfo(afinfo);
+       return err;
+@@ -213,12 +215,15 @@ int xfrm_unregister_type(const struct xfrm_type *type, unsigned short family)
+       if (unlikely(afinfo == NULL))
+               return -EAFNOSUPPORT;
+-      typemap = afinfo->type_map;
++      typemap = (const struct xfrm_type **)afinfo->type_map;
+       if (unlikely(typemap[type->proto] != type))
+               err = -ENOENT;
+-      else
++      else {
++              pax_open_kernel();
+               typemap[type->proto] = NULL;
++              pax_close_kernel();
++      }
+       xfrm_state_unlock_afinfo(afinfo);
+       return err;
+ }
+@@ -227,7 +232,6 @@ EXPORT_SYMBOL(xfrm_unregister_type);
+ static const struct xfrm_type *xfrm_get_type(u8 proto, unsigned short family)
+ {
+       struct xfrm_state_afinfo *afinfo;
+-      const struct xfrm_type **typemap;
+       const struct xfrm_type *type;
+       int modload_attempted = 0;
+@@ -235,9 +239,8 @@ retry:
+       afinfo = xfrm_state_get_afinfo(family);
+       if (unlikely(afinfo == NULL))
+               return NULL;
+-      typemap = afinfo->type_map;
+-      type = typemap[proto];
++      type = afinfo->type_map[proto];
+       if (unlikely(type && !try_module_get(type->owner)))
+               type = NULL;
+       if (!type && !modload_attempted) {
+@@ -270,7 +273,7 @@ int xfrm_register_mode(struct xfrm_mode *mode, int family)
+               return -EAFNOSUPPORT;
+       err = -EEXIST;
+-      modemap = afinfo->mode_map;
++      modemap = (struct xfrm_mode **)afinfo->mode_map;
+       if (modemap[mode->encap])
+               goto out;
+@@ -278,8 +281,10 @@ int xfrm_register_mode(struct xfrm_mode *mode, int family)
        if (!try_module_get(afinfo->owner))
                goto out;
  
 -      mode->afinfo = afinfo;
 +      pax_open_kernel();
-+      *(void **)&mode->afinfo = afinfo;
-+      pax_close_kernel();
++      *(const void **)&mode->afinfo = afinfo;
        modemap[mode->encap] = mode;
++      pax_close_kernel();
        err = 0;
  
+ out:
+@@ -302,9 +307,11 @@ int xfrm_unregister_mode(struct xfrm_mode *mode, int family)
+               return -EAFNOSUPPORT;
+       err = -ENOENT;
+-      modemap = afinfo->mode_map;
++      modemap = (struct xfrm_mode **)afinfo->mode_map;
+       if (likely(modemap[mode->encap] == mode)) {
++              pax_open_kernel();
+               modemap[mode->encap] = NULL;
++              pax_close_kernel();
+               module_put(mode->afinfo->owner);
+               err = 0;
+       }
+diff --git a/net/xfrm/xfrm_sysctl.c b/net/xfrm/xfrm_sysctl.c
+index 05a6e3d..6716ec9 100644
+--- a/net/xfrm/xfrm_sysctl.c
++++ b/net/xfrm/xfrm_sysctl.c
+@@ -42,7 +42,7 @@ static struct ctl_table xfrm_table[] = {
+ int __net_init xfrm_sysctl_init(struct net *net)
+ {
+-      struct ctl_table *table;
++      ctl_table_no_const *table;
+       __xfrm_sysctl_init(net);
 diff --git a/scripts/Makefile.build b/scripts/Makefile.build
 index 0e801c3..5c8ad3b 100644
 --- a/scripts/Makefile.build
@@ -82843,12 +90879,12 @@ 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..008ac1a
+index 0000000..5e0222d
 --- /dev/null
 +++ b/scripts/gcc-plugin.sh
 @@ -0,0 +1,17 @@
 +#!/bin/bash
-+plugincc=`$1 -x c -shared - -o /dev/null -I\`$3 -print-file-name=plugin\`/include 2>&1 <<EOF
++plugincc=`$1 -E -shared - -o /dev/null -I\`$3 -print-file-name=plugin\`/include 2>&1 <<EOF
 +#include "gcc-plugin.h"
 +#include "tree.h"
 +#include "tm.h"
@@ -82864,6 +90900,18 @@ index 0000000..008ac1a
 +      [[ "$plugincc" =~ "$1" ]] && echo "$1"
 +      [[ "$plugincc" =~ "$2" ]] && echo "$2"
 +fi
+diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
+index 581ca99..a6ff02e 100644
+--- a/scripts/headers_install.pl
++++ b/scripts/headers_install.pl
+@@ -35,6 +35,7 @@ foreach my $filename (@files) {
+               $line =~ s/([\s(])__user\s/$1/g;
+               $line =~ s/([\s(])__force\s/$1/g;
+               $line =~ s/([\s(])__iomem\s/$1/g;
++              $line =~ s/(\s?)__intentional_overflow\([-\d\s,]*\)\s?/$1/g;
+               $line =~ s/\s__attribute_const__\s/ /g;
+               $line =~ s/\s__attribute_const__$//g;
+               $line =~ s/\b__packed\b/__attribute__((packed))/g;
 diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
 index b3d907e..a4782ab 100644
 --- a/scripts/link-vmlinux.sh
@@ -82945,10 +90993,10 @@ index df4fc23..0ea719d 100644
        sprintf(alias, "dmi*");
  
 diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
-index 0d93856..e828363 100644
+index ff36c50..7ab4fa9 100644
 --- a/scripts/mod/modpost.c
 +++ b/scripts/mod/modpost.c
-@@ -933,6 +933,7 @@ enum mismatch {
+@@ -929,6 +929,7 @@ enum mismatch {
        ANY_INIT_TO_ANY_EXIT,
        ANY_EXIT_TO_ANY_INIT,
        EXPORT_TO_INIT_EXIT,
@@ -82956,7 +91004,7 @@ index 0d93856..e828363 100644
  };
  
  struct sectioncheck {
-@@ -1047,6 +1048,12 @@ const struct sectioncheck sectioncheck[] = {
+@@ -1043,6 +1044,12 @@ const struct sectioncheck sectioncheck[] = {
        .tosec   = { INIT_SECTIONS, EXIT_SECTIONS, NULL },
        .mismatch = EXPORT_TO_INIT_EXIT,
        .symbol_white_list = { DEFAULT_SYMBOL_WHITE_LIST, NULL },
@@ -82969,7 +91017,7 @@ index 0d93856..e828363 100644
  }
  };
  
-@@ -1169,10 +1176,10 @@ static Elf_Sym *find_elf_symbol(struct elf_info *elf, Elf64_Sword addr,
+@@ -1165,10 +1172,10 @@ static Elf_Sym *find_elf_symbol(struct elf_info *elf, Elf64_Sword addr,
                        continue;
                if (ELF_ST_TYPE(sym->st_info) == STT_SECTION)
                        continue;
@@ -82982,7 +91030,7 @@ index 0d93856..e828363 100644
                if (d < 0)
                        d = addr - sym->st_value;
                if (d < distance) {
-@@ -1451,6 +1458,14 @@ static void report_sec_mismatch(const char *modname,
+@@ -1447,6 +1454,14 @@ static void report_sec_mismatch(const char *modname,
                tosym, prl_to, prl_to, tosym);
                free(prl_to);
                break;
@@ -82997,7 +91045,7 @@ index 0d93856..e828363 100644
        }
        fprintf(stderr, "\n");
  }
-@@ -1685,7 +1700,7 @@ static void section_rel(const char *modname, struct elf_info *elf,
+@@ -1681,7 +1696,7 @@ static void section_rel(const char *modname, struct elf_info *elf,
  static void check_sec_ref(struct module *mod, const char *modname,
                            struct elf_info *elf)
  {
@@ -83006,7 +91054,7 @@ index 0d93856..e828363 100644
        Elf_Shdr *sechdrs = elf->sechdrs;
  
        /* Walk through all sections */
-@@ -1783,7 +1798,7 @@ void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf,
+@@ -1779,7 +1794,7 @@ void __attribute__((format(printf, 2, 3))) buf_printf(struct buffer *buf,
        va_end(ap);
  }
  
@@ -83015,7 +91063,7 @@ index 0d93856..e828363 100644
  {
        if (buf->size - buf->pos < len) {
                buf->size += len + SZ;
-@@ -2001,7 +2016,7 @@ static void write_if_changed(struct buffer *b, const char *fname)
+@@ -1997,7 +2012,7 @@ static void write_if_changed(struct buffer *b, const char *fname)
        if (fstat(fileno(file), &st) < 0)
                goto close_write;
  
@@ -83060,11 +91108,23 @@ index 9dfcd6d..099068e 100644
                warn("writing sum in %s failed: %s\n",
                        filename, strerror(errno));
                goto out;
+diff --git a/scripts/package/builddeb b/scripts/package/builddeb
+index acb8650..b8c5f02 100644
+--- a/scripts/package/builddeb
++++ b/scripts/package/builddeb
+@@ -246,6 +246,7 @@ fi
+ (cd $srctree; find . -name Makefile\* -o -name Kconfig\* -o -name \*.pl > "$objtree/debian/hdrsrcfiles")
+ (cd $srctree; find arch/$SRCARCH/include include scripts -type f >> "$objtree/debian/hdrsrcfiles")
+ (cd $objtree; find arch/$SRCARCH/include .config Module.symvers include scripts -type f >> "$objtree/debian/hdrobjfiles")
++(cd $objtree; find tools/gcc -name \*.so >> "$objtree/debian/hdrobjfiles")
+ destdir=$kernel_headers_dir/usr/src/linux-headers-$version
+ mkdir -p "$destdir"
+ (cd $srctree; tar -c -f - -T "$objtree/debian/hdrsrcfiles") | (cd $destdir; tar -xf -)
 diff --git a/scripts/pnmtologo.c b/scripts/pnmtologo.c
-index 5c11312..72742b5 100644
+index 68bb4ef..2f419e1 100644
 --- a/scripts/pnmtologo.c
 +++ b/scripts/pnmtologo.c
-@@ -237,14 +237,14 @@ static void write_header(void)
+@@ -244,14 +244,14 @@ static void write_header(void)
      fprintf(out, " *  Linux logo %s\n", logoname);
      fputs(" */\n\n", out);
      fputs("#include <linux/linux_logo.h>\n\n", out);
@@ -83081,7 +91141,7 @@ index 5c11312..72742b5 100644
      fprintf(out, "\t.type\t\t= %s,\n", logo_types[logo_type]);
      fprintf(out, "\t.width\t\t= %d,\n", logo_width);
      fprintf(out, "\t.height\t\t= %d,\n", logo_height);
-@@ -374,7 +374,7 @@ static void write_logo_clut224(void)
+@@ -381,7 +381,7 @@ static void write_logo_clut224(void)
      fputs("\n};\n\n", out);
  
      /* write logo clut */
@@ -83090,11 +91150,28 @@ index 5c11312..72742b5 100644
            logoname);
      write_hex_cnt = 0;
      for (i = 0; i < logo_clutsize; i++) {
+diff --git a/scripts/sortextable.h b/scripts/sortextable.h
+index e4fd45b..2eeb5c4 100644
+--- a/scripts/sortextable.h
++++ b/scripts/sortextable.h
+@@ -106,9 +106,9 @@ do_func(Elf_Ehdr *ehdr, char const *const fname, table_sort_t custom_sort)
+       const char *secstrtab;
+       const char *strtab;
+       char *extab_image;
+-      int extab_index = 0;
+-      int i;
+-      int idx;
++      unsigned int extab_index = 0;
++      unsigned int i;
++      unsigned int idx;
+       shdr = (Elf_Shdr *)((char *)ehdr + _r(&ehdr->e_shoff));
+       shstrtab_sec = shdr + r2(&ehdr->e_shstrndx);
 diff --git a/security/Kconfig b/security/Kconfig
-index e9c6ac7..01c698c 100644
+index e9c6ac7..20df9f1 100644
 --- a/security/Kconfig
 +++ b/security/Kconfig
-@@ -4,6 +4,902 @@
+@@ -4,6 +4,944 @@
  
  menu "Security options"
  
@@ -83268,15 +91345,17 @@ index e9c6ac7..01c698c 100644
 +      help
 +        Choose this option if performance is of highest priority for this deployment
 +        of grsecurity.  Features like UDEREF on a 64bit kernel, kernel stack clearing,
-+        and freed memory sanitizing will be disabled.
++        clearing of structures intended for userland, and freed memory sanitizing will
++        be disabled.
 +
 +config GRKERNSEC_CONFIG_PRIORITY_SECURITY
 +      bool "Security"
 +      help
 +        Choose this option if security is of highest priority for this deployment of
-+        grsecurity.  UDEREF, kernel stack clearing, and freed memory sanitizing will
-+        be enabled for this kernel.  In a worst-case scenario, these features can
-+        introduce a 20% performance hit (UDEREF on x64 contributing half of this hit).
++        grsecurity.  UDEREF, kernel stack clearing, clearing of structures intended
++        for userland, and freed memory sanitizing will be enabled for this kernel.
++        In a worst-case scenario, these features can introduce a 20% performance hit
++        (UDEREF on x64 contributing half of this hit).
 +
 +endchoice
 +
@@ -83672,7 +91751,7 @@ index e9c6ac7..01c698c 100644
 +config PAX_KERNEXEC
 +      bool "Enforce non-executable kernel pages"
 +      default y if GRKERNSEC_CONFIG_AUTO && (GRKERNSEC_CONFIG_VIRT_NONE || (GRKERNSEC_CONFIG_VIRT_EPT && GRKERNSEC_CONFIG_VIRT_GUEST) || (GRKERNSEC_CONFIG_VIRT_EPT && GRKERNSEC_CONFIG_VIRT_KVM))
-+      depends on (X86 || ARM_LPAE) && (!X86_32 || X86_WP_WORKS_OK) && !XEN
++      depends on ((X86 && (!X86_32 || X86_WP_WORKS_OK)) || (ARM && (CPU_V6 || CPU_V7) && !(ARM_LPAE && MODULES))) && !XEN
 +      select PAX_PER_CPU_PGD if X86_64 || (X86_32 && X86_PAE)
 +      select PAX_KERNEXEC_PLUGIN if X86_64
 +      help
@@ -83872,10 +91951,27 @@ index e9c6ac7..01c698c 100644
 +        frames may leave uninitialized memory behind that may be exposed
 +        to a later syscall leaking the stack.
 +
++config PAX_MEMORY_STRUCTLEAK
++      bool "Forcibly initialize local variables copied to userland"
++      default y if (GRKERNSEC_CONFIG_AUTO && GRKERNSEC_CONFIG_PRIORITY_SECURITY)
++      help
++        By saying Y here the kernel will zero initialize some local
++        variables that are going to be copied to userland.  This in
++        turn prevents unintended information leakage from the kernel
++        stack should later code forget to explicitly set all parts of
++        the copied variable.
++
++        The tradeoff is less performance impact than PAX_MEMORY_STACKLEAK
++        at a much smaller coverage.
++
++        Note that the implementation requires a gcc with plugin support,
++        i.e., gcc 4.5 or newer.  You may need to install the supporting
++        headers explicitly in addition to the normal gcc package.
++
 +config PAX_MEMORY_UDEREF
 +      bool "Prevent invalid userland pointer dereference"
-+      default y if GRKERNSEC_CONFIG_AUTO && (X86_32 || (X86_64 && GRKERNSEC_CONFIG_PRIORITY_SECURITY)) && (GRKERNSEC_CONFIG_VIRT_NONE || GRKERNSEC_CONFIG_VIRT_EPT)
-+      depends on X86 && !UML_X86 && !XEN
++      default y if GRKERNSEC_CONFIG_AUTO && !(X86_64 && GRKERNSEC_CONFIG_PRIORITY_PERF) && (GRKERNSEC_CONFIG_VIRT_NONE || GRKERNSEC_CONFIG_VIRT_EPT)
++      depends on (X86 || (ARM && (CPU_V6 || CPU_V7) && !ARM_LPAE)) && !UML_X86 && !XEN
 +      select PAX_PER_CPU_PGD if X86_64
 +      help
 +        By saying Y here the kernel will be prevented from dereferencing
@@ -83912,6 +92008,24 @@ index e9c6ac7..01c698c 100644
 +        Since this has a negligible performance impact, you should enable
 +        this feature.
 +
++config PAX_CONSTIFY_PLUGIN
++      bool "Automatically constify eligible structures"
++      default y
++      depends on !UML
++      help
++        By saying Y here the compiler will automatically constify a class
++        of types that contain only function pointers.  This reduces the
++        kernel's attack surface and also produces a better memory layout.
++
++        Note that the implementation requires a gcc with plugin support,
++        i.e., gcc 4.5 or newer.  You may need to install the supporting
++        headers explicitly in addition to the normal gcc package.
++ 
++        Note that if some code really has to modify constified variables
++        then the source code will have to be patched to allow it.  Examples
++        can be found in PaX itself (the no_const attribute) and for some
++        out-of-tree modules at http://www.grsecurity.net/~paxguy1/ .
++
 +config PAX_USERCOPY
 +      bool "Harden heap object copies between kernel and userland"
 +      default y if GRKERNSEC_CONFIG_AUTO
@@ -83977,6 +92091,11 @@ index e9c6ac7..01c698c 100644
 +        there is little 'natural' source of entropy normally.  The cost
 +        is some slowdown of the boot process.
 +
++        When pax_extra_latent_entropy is passed on the kernel command line,
++        entropy will be extracted from up to the first 4GB of RAM while the
++        runtime memory allocator is being initialized.  This costs even more
++        slowdown of the boot process.
++
 +        Note that the implementation requires a gcc with plugin support,
 +        i.e., gcc 4.5 or newer.  You may need to install the supporting
 +        headers explicitly in addition to the normal gcc package.
@@ -83997,7 +92116,7 @@ index e9c6ac7..01c698c 100644
  source security/keys/Kconfig
  
  config SECURITY_DMESG_RESTRICT
-@@ -103,7 +999,7 @@ config INTEL_TXT
+@@ -103,7 +1041,7 @@ config INTEL_TXT
  config LSM_MMAP_MIN_ADDR
        int "Low address space for LSM to protect from user allocation"
        depends on SECURITY && SECURITY_SELINUX
@@ -84020,10 +92139,10 @@ index 8c2a7f6..b133ac9 100644
  
        .ptrace_access_check =          apparmor_ptrace_access_check,
 diff --git a/security/commoncap.c b/security/commoncap.c
-index 6dbae46..d5611fd 100644
+index 7ee08c7..8d1a9d6 100644
 --- a/security/commoncap.c
 +++ b/security/commoncap.c
-@@ -415,6 +415,32 @@ int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data
+@@ -424,6 +424,32 @@ int get_vfs_caps_from_disk(const struct dentry *dentry, struct cpu_vfs_cap_data
        return 0;
  }
  
@@ -84056,7 +92175,7 @@ index 6dbae46..d5611fd 100644
  /*
   * Attempt to get the on-exec apply capability sets for an executable file from
   * its xattrs and, if present, apply them to the proposed credentials being
-@@ -583,6 +609,9 @@ int cap_bprm_secureexec(struct linux_binprm *bprm)
+@@ -592,6 +618,9 @@ int cap_bprm_secureexec(struct linux_binprm *bprm)
        const struct cred *cred = current_cred();
        kuid_t root_uid = make_kuid(cred->user_ns, 0);
  
@@ -84067,7 +92186,7 @@ index 6dbae46..d5611fd 100644
                if (bprm->cap_effective)
                        return 1;
 diff --git a/security/integrity/ima/ima.h b/security/integrity/ima/ima.h
-index 6ee8826..6350060 100644
+index 079a85d..12e93f8 100644
 --- a/security/integrity/ima/ima.h
 +++ b/security/integrity/ima/ima.h
 @@ -96,8 +96,8 @@ void ima_add_violation(struct inode *inode, const unsigned char *filename,
@@ -84082,7 +92201,7 @@ index 6ee8826..6350060 100644
  };
  extern struct ima_h_table ima_htable;
 diff --git a/security/integrity/ima/ima_api.c b/security/integrity/ima/ima_api.c
-index b356884..fd9676e 100644
+index 0cea3db..2f0ef77 100644
 --- a/security/integrity/ima/ima_api.c
 +++ b/security/integrity/ima/ima_api.c
 @@ -79,7 +79,7 @@ void ima_add_violation(struct inode *inode, const unsigned char *filename,
@@ -84127,7 +92246,7 @@ index 55a6271..ad829c3 100644
        hlist_add_head_rcu(&qe->hnext, &ima_htable.queue[key]);
        return 0;
 diff --git a/security/keys/compat.c b/security/keys/compat.c
-index 1c26176..64a1ba2 100644
+index d65fa7f..cbfe366 100644
 --- a/security/keys/compat.c
 +++ b/security/keys/compat.c
 @@ -44,7 +44,7 @@ static long compat_keyctl_instantiate_key_iov(
@@ -84136,11 +92255,68 @@ index 1c26176..64a1ba2 100644
  
 -      ret = keyctl_instantiate_key_common(id, iov, ioc, ret, ringid);
 +      ret = keyctl_instantiate_key_common(id, (const struct iovec __force_user *)iov, ioc, ret, ringid);
+ err:
        if (iov != iovstack)
                kfree(iov);
+diff --git a/security/keys/key.c b/security/keys/key.c
+index 8fb7c7b..ba3610d 100644
+--- a/security/keys/key.c
++++ b/security/keys/key.c
+@@ -284,7 +284,7 @@ struct key *key_alloc(struct key_type *type, const char *desc,
+       atomic_set(&key->usage, 1);
+       init_rwsem(&key->sem);
+-      lockdep_set_class(&key->sem, &type->lock_class);
++      lockdep_set_class(&key->sem, (struct lock_class_key *)&type->lock_class);
+       key->type = type;
+       key->user = user;
+       key->quotalen = quotalen;
+@@ -1032,7 +1032,9 @@ int register_key_type(struct key_type *ktype)
+       struct key_type *p;
+       int ret;
+-      memset(&ktype->lock_class, 0, sizeof(ktype->lock_class));
++      pax_open_kernel();
++      memset((void *)&ktype->lock_class, 0, sizeof(ktype->lock_class));
++      pax_close_kernel();
+       ret = -EEXIST;
+       down_write(&key_types_sem);
+@@ -1044,7 +1046,7 @@ int register_key_type(struct key_type *ktype)
+       }
+       /* store the type */
+-      list_add(&ktype->link, &key_types_list);
++      pax_list_add((struct list_head *)&ktype->link, &key_types_list);
+       pr_notice("Key type %s registered\n", ktype->name);
+       ret = 0;
+@@ -1066,7 +1068,7 @@ EXPORT_SYMBOL(register_key_type);
+ void unregister_key_type(struct key_type *ktype)
+ {
+       down_write(&key_types_sem);
+-      list_del_init(&ktype->link);
++      pax_list_del_init((struct list_head *)&ktype->link);
+       downgrade_write(&key_types_sem);
+       key_gc_keytype(ktype);
+       pr_notice("Key type %s unregistered\n", ktype->name);
+@@ -1084,10 +1086,10 @@ void __init key_init(void)
+                       0, SLAB_HWCACHE_ALIGN|SLAB_PANIC, NULL);
+       /* add the special key types */
+-      list_add_tail(&key_type_keyring.link, &key_types_list);
+-      list_add_tail(&key_type_dead.link, &key_types_list);
+-      list_add_tail(&key_type_user.link, &key_types_list);
+-      list_add_tail(&key_type_logon.link, &key_types_list);
++      pax_list_add_tail((struct list_head *)&key_type_keyring.link, &key_types_list);
++      pax_list_add_tail((struct list_head *)&key_type_dead.link, &key_types_list);
++      pax_list_add_tail((struct list_head *)&key_type_user.link, &key_types_list);
++      pax_list_add_tail((struct list_head *)&key_type_logon.link, &key_types_list);
+       /* record the root user tracking */
+       rb_link_node(&root_key_user.node,
 diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c
-index 5d34b4e..2456674 100644
+index 4b5c948..2054dc1 100644
 --- a/security/keys/keyctl.c
 +++ b/security/keys/keyctl.c
 @@ -986,7 +986,7 @@ static int keyctl_change_reqkey_auth(struct key *key)
@@ -84176,11 +92352,11 @@ index 5d34b4e..2456674 100644
  
 -      ret = keyctl_instantiate_key_common(id, iov, ioc, ret, ringid);
 +      ret = keyctl_instantiate_key_common(id, (const struct iovec __force_user *)iov, ioc, ret, ringid);
+ err:
        if (iov != iovstack)
                kfree(iov);
 diff --git a/security/keys/keyring.c b/security/keys/keyring.c
-index 6e42df1..aba52bd 100644
+index 6ece7f2..ecdb55c 100644
 --- a/security/keys/keyring.c
 +++ b/security/keys/keyring.c
 @@ -227,16 +227,16 @@ static long keyring_read(const struct key *keyring,
@@ -84224,7 +92400,7 @@ index f728728..6457a0c 100644
  
  /*
 diff --git a/security/security.c b/security/security.c
-index 8dcd4ae..1124de7 100644
+index 7b88c6a..1e3ea8f 100644
 --- a/security/security.c
 +++ b/security/security.c
 @@ -20,6 +20,7 @@
@@ -84257,7 +92433,7 @@ index 8dcd4ae..1124de7 100644
  
  /* Save user chosen LSM */
 diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
-index 61a5336..27215d8 100644
+index ef26e96..642fb78 100644
 --- a/security/selinux/hooks.c
 +++ b/security/selinux/hooks.c
 @@ -95,8 +95,6 @@
@@ -84269,7 +92445,7 @@ index 61a5336..27215d8 100644
  /* SECMARK reference count */
  static atomic_t selinux_secmark_refcount = ATOMIC_INIT(0);
  
-@@ -5476,7 +5474,7 @@ static int selinux_key_getsecurity(struct key *key, char **_buffer)
+@@ -5501,7 +5499,7 @@ static int selinux_key_getsecurity(struct key *key, char **_buffer)
  
  #endif
  
@@ -84304,6 +92480,21 @@ index 38be92c..21f49ee 100644
        .name =                         "smack",
  
        .ptrace_access_check =          smack_ptrace_access_check,
+diff --git a/security/tomoyo/mount.c b/security/tomoyo/mount.c
+index 390c646..f2f8db3 100644
+--- a/security/tomoyo/mount.c
++++ b/security/tomoyo/mount.c
+@@ -118,6 +118,10 @@ static int tomoyo_mount_acl(struct tomoyo_request_info *r,
+                  type == tomoyo_mounts[TOMOYO_MOUNT_MOVE]) {
+               need_dev = -1; /* dev_name is a directory */
+       } else {
++              if (!capable(CAP_SYS_ADMIN)) {
++                      error = -EPERM;
++                      goto out;
++              }
+               fstype = get_fs_type(type);
+               if (!fstype) {
+                       error = -ENODEV;
 diff --git a/security/tomoyo/tomoyo.c b/security/tomoyo/tomoyo.c
 index a2ee362..5754f34 100644
 --- a/security/tomoyo/tomoyo.c
@@ -84329,6 +92520,68 @@ index 20ef514..4182bed 100644
        select SECURITYFS
        select SECURITY_PATH
        default n
+diff --git a/security/yama/yama_lsm.c b/security/yama/yama_lsm.c
+index 23414b9..f8c115e 100644
+--- a/security/yama/yama_lsm.c
++++ b/security/yama/yama_lsm.c
+@@ -347,10 +347,8 @@ int yama_ptrace_traceme(struct task_struct *parent)
+       /* Only disallow PTRACE_TRACEME on more aggressive settings. */
+       switch (ptrace_scope) {
+       case YAMA_SCOPE_CAPABILITY:
+-              rcu_read_lock();
+-              if (!ns_capable(__task_cred(parent)->user_ns, CAP_SYS_PTRACE))
++              if (!has_ns_capability(parent, current_user_ns(), CAP_SYS_PTRACE))
+                       rc = -EPERM;
+-              rcu_read_unlock();
+               break;
+       case YAMA_SCOPE_NO_ATTACH:
+               rc = -EPERM;
+@@ -367,7 +365,7 @@ int yama_ptrace_traceme(struct task_struct *parent)
+ }
+ #ifndef CONFIG_SECURITY_YAMA_STACKED
+-static struct security_operations yama_ops = {
++static struct security_operations yama_ops __read_only = {
+       .name =                 "yama",
+       .ptrace_access_check =  yama_ptrace_access_check,
+@@ -378,28 +376,24 @@ static struct security_operations yama_ops = {
+ #endif
+ #ifdef CONFIG_SYSCTL
++static int zero __read_only;
++static int max_scope __read_only = YAMA_SCOPE_NO_ATTACH;
++
+ static int yama_dointvec_minmax(struct ctl_table *table, int write,
+                               void __user *buffer, size_t *lenp, loff_t *ppos)
+ {
+-      int rc;
++      ctl_table_no_const yama_table;
+       if (write && !capable(CAP_SYS_PTRACE))
+               return -EPERM;
+-      rc = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
+-      if (rc)
+-              return rc;
+-
++      yama_table = *table;
+       /* Lock the max value if it ever gets set. */
+-      if (write && *(int *)table->data == *(int *)table->extra2)
+-              table->extra1 = table->extra2;
+-
+-      return rc;
++      if (ptrace_scope == max_scope)
++              yama_table.extra1 = &max_scope;
++      return proc_dointvec_minmax(&yama_table, write, buffer, lenp, ppos);
+ }
+-static int zero;
+-static int max_scope = YAMA_SCOPE_NO_ATTACH;
+-
+ struct ctl_path yama_sysctl_path[] = {
+       { .procname = "kernel", },
+       { .procname = "yama", },
 diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c
 index 4cedc69..e59d8a3 100644
 --- a/sound/aoa/codecs/onyx.c
@@ -84449,7 +92702,7 @@ index 4c1cc51..16040040 100644
                                }
                        } else if (runtime->access == SNDRV_PCM_ACCESS_RW_NONINTERLEAVED) {
 diff --git a/sound/core/pcm_compat.c b/sound/core/pcm_compat.c
-index 91cdf943..4085161 100644
+index af49721..e85058e 100644
 --- a/sound/core/pcm_compat.c
 +++ b/sound/core/pcm_compat.c
 @@ -31,7 +31,7 @@ static int snd_pcm_ioctl_delay_compat(struct snd_pcm_substream *substream,
@@ -84462,10 +92715,10 @@ index 91cdf943..4085161 100644
        if (err < 0)
                return err;
 diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c
-index f9ddecf..e27404d 100644
+index 09b4286..8620fac 100644
 --- a/sound/core/pcm_native.c
 +++ b/sound/core/pcm_native.c
-@@ -2804,11 +2804,11 @@ int snd_pcm_kernel_ioctl(struct snd_pcm_substream *substream,
+@@ -2806,11 +2806,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,
@@ -84480,7 +92733,7 @@ index f9ddecf..e27404d 100644
        default:
                result = -EINVAL;
 diff --git a/sound/core/seq/seq_device.c b/sound/core/seq/seq_device.c
-index 60e8fc1..786abcb 100644
+index 040c60e..989a19a 100644
 --- a/sound/core/seq/seq_device.c
 +++ b/sound/core/seq/seq_device.c
 @@ -64,7 +64,7 @@ struct ops_list {
@@ -84490,7 +92743,7 @@ index 60e8fc1..786abcb 100644
 -      struct snd_seq_dev_ops ops;
 +      struct snd_seq_dev_ops *ops;
  
-       /* registred devices */
+       /* registered devices */
        struct list_head dev_list;      /* list of devices */
 @@ -333,7 +333,7 @@ int snd_seq_device_register_driver(char *id, struct snd_seq_dev_ops *entry,
  
@@ -84520,7 +92773,7 @@ index 60e8fc1..786abcb 100644
                dev->driver_data = NULL;
                ops->num_init_devices--;
 diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c
-index 2d5514b..3afae9c 100644
+index 4e0dd22..7a1f32c 100644
 --- a/sound/drivers/mts64.c
 +++ b/sound/drivers/mts64.c
 @@ -29,6 +29,7 @@
@@ -84593,7 +92846,7 @@ index b953fb4..1999c01 100644
        int timeout = 10;
        while ((inb(opl4->fm_port) & OPL4_STATUS_BUSY) && --timeout > 0)
 diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c
-index 8364855..59f2e2b 100644
+index 991018d..8984740 100644
 --- a/sound/drivers/portman2x4.c
 +++ b/sound/drivers/portman2x4.c
 @@ -48,6 +48,7 @@
@@ -84692,11 +92945,44 @@ index d428ffe..751ef78 100644
                break;
        default:
                return -EINVAL;
+diff --git a/sound/firewire/scs1x.c b/sound/firewire/scs1x.c
+index 844a555..985ab83 100644
+--- a/sound/firewire/scs1x.c
++++ b/sound/firewire/scs1x.c
+@@ -74,7 +74,7 @@ static void scs_output_trigger(struct snd_rawmidi_substream *stream, int up)
+ {
+       struct scs *scs = stream->rmidi->private_data;
+-      ACCESS_ONCE(scs->output) = up ? stream : NULL;
++      ACCESS_ONCE_RW(scs->output) = up ? stream : NULL;
+       if (up) {
+               scs->output_idle = false;
+               tasklet_schedule(&scs->tasklet);
+@@ -257,7 +257,7 @@ static void scs_input_trigger(struct snd_rawmidi_substream *stream, int up)
+ {
+       struct scs *scs = stream->rmidi->private_data;
+-      ACCESS_ONCE(scs->input) = up ? stream : NULL;
++      ACCESS_ONCE_RW(scs->input) = up ? stream : NULL;
+ }
+ static void scs_input_escaped_byte(struct snd_rawmidi_substream *stream,
+@@ -457,8 +457,8 @@ static int scs_remove(struct device *dev)
+       snd_card_disconnect(scs->card);
+-      ACCESS_ONCE(scs->output) = NULL;
+-      ACCESS_ONCE(scs->input) = NULL;
++      ACCESS_ONCE_RW(scs->output) = NULL;
++      ACCESS_ONCE_RW(scs->input) = NULL;
+       wait_event(scs->idle_wait, scs->output_idle);
 diff --git a/sound/oss/sb_audio.c b/sound/oss/sb_audio.c
-index b2b3c01..e1c1e1f 100644
+index 048439a..3be9f6f 100644
 --- a/sound/oss/sb_audio.c
 +++ b/sound/oss/sb_audio.c
-@@ -903,7 +903,7 @@ sb16_copy_from_user(int dev,
+@@ -904,7 +904,7 @@ sb16_copy_from_user(int dev,
                buf16 = (signed short *)(localbuf + localoffs);
                while (c)
                {
@@ -84757,10 +93043,10 @@ index 4631a23..001ae57 100644
        const struct firmware *dsp_microcode;
        const struct firmware *controller_microcode;
 diff --git a/sound/pci/ymfpci/ymfpci_main.c b/sound/pci/ymfpci/ymfpci_main.c
-index 3a6f03f..bc5c86c 100644
+index 22056c5..25d3244 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)
+@@ -202,8 +202,8 @@ static void snd_ymfpci_hw_stop(struct snd_ymfpci *chip)
                if ((snd_ymfpci_readl(chip, YDSXGR_STATUS) & 2) == 0)
                        break;
        }
@@ -84771,7 +93057,7 @@ index 3a6f03f..bc5c86c 100644
                wake_up(&chip->interrupt_sleep);
        }
        __end:
-@@ -788,7 +788,7 @@ static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip)
+@@ -787,7 +787,7 @@ static void snd_ymfpci_irq_wait(struct snd_ymfpci *chip)
                        continue;
                init_waitqueue_entry(&wait, current);
                add_wait_queue(&chip->interrupt_sleep, &wait);
@@ -84780,7 +93066,7 @@ index 3a6f03f..bc5c86c 100644
                schedule_timeout_uninterruptible(msecs_to_jiffies(50));
                remove_wait_queue(&chip->interrupt_sleep, &wait);
        }
-@@ -826,8 +826,8 @@ static irqreturn_t snd_ymfpci_interrupt(int irq, void *dev_id)
+@@ -825,8 +825,8 @@ static irqreturn_t snd_ymfpci_interrupt(int irq, void *dev_id)
                snd_ymfpci_writel(chip, YDSXGR_MODE, mode);
                spin_unlock(&chip->reg_lock);
  
@@ -84791,7 +93077,7 @@ index 3a6f03f..bc5c86c 100644
                        wake_up(&chip->interrupt_sleep);
                }
        }
-@@ -2420,7 +2420,7 @@ int __devinit snd_ymfpci_create(struct snd_card *card,
+@@ -2421,7 +2421,7 @@ int 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);
@@ -84809,10 +93095,10 @@ index 0000000..50f2f2f
 +size_overflow_hash.h
 diff --git a/tools/gcc/Makefile b/tools/gcc/Makefile
 new file mode 100644
-index 0000000..1d09b7e
+index 0000000..144dbee
 --- /dev/null
 +++ b/tools/gcc/Makefile
-@@ -0,0 +1,43 @@
+@@ -0,0 +1,45 @@
 +#CC := gcc
 +#PLUGIN_SOURCE_FILES := pax_plugin.c
 +#PLUGIN_OBJECT_FILES := $(patsubst %.c,%.o,$(PLUGIN_SOURCE_FILES))
@@ -84821,13 +93107,13 @@ index 0000000..1d09b7e
 +
 +ifeq ($(PLUGINCC),$(HOSTCC))
 +HOSTLIBS := hostlibs
-+HOST_EXTRACFLAGS += -I$(GCCPLUGINS_DIR)/include -I$(GCCPLUGINS_DIR)/include/c-family -std=gnu99 -ggdb
++HOST_EXTRACFLAGS += -I$(GCCPLUGINS_DIR)/include -std=gnu99 -ggdb
 +else
 +HOSTLIBS := hostcxxlibs
-+HOST_EXTRACXXFLAGS += -I$(GCCPLUGINS_DIR)/include -I$(GCCPLUGINS_DIR)/include/c-family -std=gnu++98 -ggdb -Wno-unused-parameter
++HOST_EXTRACXXFLAGS += -I$(GCCPLUGINS_DIR)/include -std=gnu++98 -ggdb -Wno-unused-parameter
 +endif
 +
-+$(HOSTLIBS)-y := constify_plugin.so
++$(HOSTLIBS)-$(CONFIG_PAX_CONSTIFY_PLUGIN) := 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
@@ -84835,6 +93121,7 @@ index 0000000..1d09b7e
 +$(HOSTLIBS)-y += colorize_plugin.so
 +$(HOSTLIBS)-$(CONFIG_PAX_SIZE_OVERFLOW) += size_overflow_plugin.so
 +$(HOSTLIBS)-$(CONFIG_PAX_LATENT_ENTROPY) += latent_entropy_plugin.so
++$(HOSTLIBS)-$(CONFIG_PAX_MEMORY_STRUCTLEAK) += structleak_plugin.so
 +
 +always := $($(HOSTLIBS)-y)
 +
@@ -84846,6 +93133,7 @@ index 0000000..1d09b7e
 +colorize_plugin-objs := colorize_plugin.o
 +size_overflow_plugin-objs := size_overflow_plugin.o
 +latent_entropy_plugin-objs := latent_entropy_plugin.o
++structleak_plugin-objs := structleak_plugin.o
 +
 +$(obj)/size_overflow_plugin.o: $(objtree)/$(obj)/size_overflow_hash.h
 +
@@ -85192,10 +93480,10 @@ index 0000000..414fe5e
 +}
 diff --git a/tools/gcc/constify_plugin.c b/tools/gcc/constify_plugin.c
 new file mode 100644
-index 0000000..c415c9d
+index 0000000..bee0acb
 --- /dev/null
 +++ b/tools/gcc/constify_plugin.c
-@@ -0,0 +1,359 @@
+@@ -0,0 +1,518 @@
 +/*
 + * Copyright 2011 by Emese Revfy <re.emese@gmail.com>
 + * Copyright 2011-2013 by PaX Team <pageexec@freemail.hu>
@@ -85230,36 +93518,137 @@ index 0000000..c415c9d
 +#include "rtl.h"
 +#include "emit-rtl.h"
 +#include "tree-flow.h"
++#include "target.h"
++#include "langhooks.h"
 +
++// should come from c-tree.h if only it were installed for gcc 4.5...
 +#define C_TYPE_FIELDS_READONLY(TYPE) TREE_LANG_FLAG_1(TYPE)
 +
++// unused type flag in all versions 4.5-4.8
++#define TYPE_CONSTIFY_VISITED(TYPE) TYPE_LANG_FLAG_4(TYPE)
++
 +int plugin_is_GPL_compatible;
 +
 +static struct plugin_info const_plugin_info = {
-+      .version        = "201302112000",
++      .version        = "201303270300",
 +      .help           = "no-constify\tturn off constification\n",
 +};
 +
-+static tree get_field_type(tree field)
++typedef struct {
++      bool has_fptr_field;
++      bool has_writable_field;
++      bool has_do_const_field;
++      bool has_no_const_field;
++} constify_info;
++
++static const_tree get_field_type(const_tree field)
 +{
 +      return strip_array_types(TREE_TYPE(field));
 +}
 +
-+static bool walk_struct(tree node);
++static bool is_fptr(const_tree field)
++{
++      const_tree ptr = get_field_type(field);
++
++      if (TREE_CODE(ptr) != POINTER_TYPE)
++              return false;
++
++      return TREE_CODE(TREE_TYPE(ptr)) == FUNCTION_TYPE;
++}
++
++/*
++ * determine whether the given structure type meets the requirements for automatic constification,
++ * including the constification attributes on nested structure types
++ */
++static void constifiable(const_tree node, constify_info *cinfo)
++{
++      const_tree field;
++
++      gcc_assert(TREE_CODE(node) == RECORD_TYPE || TREE_CODE(node) == UNION_TYPE);
++
++      // e.g., pointer to structure fields while still constructing the structure type
++      if (TYPE_FIELDS(node) == NULL_TREE)
++              return;
++
++      for (field = TYPE_FIELDS(node); field; field = TREE_CHAIN(field)) {
++              const_tree type = get_field_type(field);
++              enum tree_code code = TREE_CODE(type);
++
++              if (node == type)
++                      continue;
++
++              if (is_fptr(field))
++                      cinfo->has_fptr_field = true;
++              else if (!TREE_READONLY(field))
++                      cinfo->has_writable_field = true;
++
++              if (code == RECORD_TYPE || code == UNION_TYPE) {
++                      if (lookup_attribute("do_const", TYPE_ATTRIBUTES(type)))
++                              cinfo->has_do_const_field = true;
++                      else if (lookup_attribute("no_const", TYPE_ATTRIBUTES(type)))
++                              cinfo->has_no_const_field = true;
++                      else
++                              constifiable(type, cinfo);
++              }
++      }
++}
++
++static bool constified(const_tree node)
++{
++      constify_info cinfo = {
++              .has_fptr_field = false,
++              .has_writable_field = false,
++              .has_do_const_field = false,
++              .has_no_const_field = false
++      };
++
++      gcc_assert(TREE_CODE(node) == RECORD_TYPE || TREE_CODE(node) == UNION_TYPE);
++
++      if (lookup_attribute("no_const", TYPE_ATTRIBUTES(node))) {
++              gcc_assert(!TYPE_READONLY(node));
++              return false;
++      }
++
++      if (lookup_attribute("do_const", TYPE_ATTRIBUTES(node))) {
++              gcc_assert(TYPE_READONLY(node));
++              return true;
++      }
++
++      constifiable(node, &cinfo);
++      if ((!cinfo.has_fptr_field || cinfo.has_writable_field) && !cinfo.has_do_const_field)
++              return false;
++
++      return TYPE_READONLY(node);
++}
++
 +static void deconstify_tree(tree node);
 +
 +static void deconstify_type(tree type)
 +{
 +      tree field;
 +
++      gcc_assert(TREE_CODE(type) == RECORD_TYPE || TREE_CODE(type) == UNION_TYPE);
++
 +      for (field = TYPE_FIELDS(type); field; field = TREE_CHAIN(field)) {
-+              tree fieldtype = get_field_type(field);
++              const_tree fieldtype = get_field_type(field);
 +
-+              if (TREE_CODE(fieldtype) != RECORD_TYPE && TREE_CODE(fieldtype) != UNION_TYPE)
++              // special case handling of simple ptr-to-same-array-type members
++              if (TREE_CODE(TREE_TYPE(field)) == POINTER_TYPE) {
++                      const_tree ptrtype = TREE_TYPE(TREE_TYPE(field));
++
++                      if (TREE_CODE(ptrtype) != RECORD_TYPE && TREE_CODE(ptrtype) != UNION_TYPE)
++                              continue;
++                      if (TREE_TYPE(TREE_TYPE(field)) == type)
++                              continue;
++                      if (TYPE_MAIN_VARIANT(ptrtype) == TYPE_MAIN_VARIANT(type)) {
++                              TREE_TYPE(field) = copy_node(TREE_TYPE(field));
++                              TREE_TYPE(TREE_TYPE(field)) = type;
++                      }
 +                      continue;
-+              if (!TYPE_READONLY(fieldtype))
++              }
++              if (TREE_CODE(fieldtype) != RECORD_TYPE && TREE_CODE(fieldtype) != UNION_TYPE)
 +                      continue;
-+              if (!walk_struct(fieldtype))
++              if (!constified(fieldtype))
 +                      continue;
 +
 +              deconstify_tree(field);
@@ -85267,16 +93656,17 @@ index 0000000..c415c9d
 +      }
 +      TYPE_READONLY(type) = 0;
 +      C_TYPE_FIELDS_READONLY(type) = 0;
++      if (lookup_attribute("do_const", TYPE_ATTRIBUTES(type)))
++              TYPE_ATTRIBUTES(type) = remove_attribute("do_const", TYPE_ATTRIBUTES(type));
 +}
 +
 +static void deconstify_tree(tree node)
 +{
 +      tree old_type, new_type, field;
 +
-+//    TREE_READONLY(node) = 0;
 +      old_type = TREE_TYPE(node);
 +      while (TREE_CODE(old_type) == ARRAY_TYPE && TREE_CODE(TREE_TYPE(old_type)) != ARRAY_TYPE) {
-+              node = old_type;
++              node = TREE_TYPE(node) = copy_node(old_type);
 +              old_type = TREE_TYPE(old_type);
 +      }
 +
@@ -85296,6 +93686,12 @@ index 0000000..c415c9d
 +static tree handle_no_const_attribute(tree *node, tree name, tree args, int flags, bool *no_add_attrs)
 +{
 +      tree type;
++      constify_info cinfo = {
++              .has_fptr_field = false,
++              .has_writable_field = false,
++              .has_do_const_field = false,
++              .has_no_const_field = false
++      };
 +
 +      *no_add_attrs = true;
 +      if (TREE_CODE(*node) == FUNCTION_DECL) {
@@ -85303,21 +93699,24 @@ index 0000000..c415c9d
 +              return NULL_TREE;
 +      }
 +
++      if (TREE_CODE(*node) == PARM_DECL) {
++              error("%qE attribute does not apply to function parameters", name);
++              return NULL_TREE;
++      }
++
 +      if (TREE_CODE(*node) == VAR_DECL) {
 +              error("%qE attribute does not apply to variables", name);
 +              return NULL_TREE;
 +      }
 +
 +      if (TYPE_P(*node)) {
-+              if (TREE_CODE(*node) == RECORD_TYPE || TREE_CODE(*node) == UNION_TYPE)
-+                      *no_add_attrs = false;
-+              else
-+                      error("%qE attribute applies to struct and union types only", name);
-+              return NULL_TREE;
++              *no_add_attrs = false;
++              type = *node;
++      } else {
++              gcc_assert(TREE_CODE(*node) == TYPE_DECL);
++              type = TREE_TYPE(*node);
 +      }
 +
-+      type = TREE_TYPE(*node);
-+
 +      if (TREE_CODE(type) != RECORD_TYPE && TREE_CODE(type) != UNION_TYPE) {
 +              error("%qE attribute applies to struct and union types only", name);
 +              return NULL_TREE;
@@ -85328,16 +93727,20 @@ index 0000000..c415c9d
 +              return NULL_TREE;
 +      }
 +
-+      if (TREE_CODE(*node) == TYPE_DECL && !TYPE_READONLY(type)) {
-+              error("%qE attribute used on type that is not constified", name);
++      if (TYPE_P(*node)) {
++              if (lookup_attribute("do_const", TYPE_ATTRIBUTES(type)))
++                      error("%qE attribute is incompatible with 'do_const'", name);
 +              return NULL_TREE;
 +      }
 +
-+      if (TREE_CODE(*node) == TYPE_DECL) {
++      constifiable(type, &cinfo);
++      if ((cinfo.has_fptr_field && !cinfo.has_writable_field) || lookup_attribute("do_const", TYPE_ATTRIBUTES(type))) {
 +              deconstify_tree(*node);
++              TYPE_CONSTIFY_VISITED(TREE_TYPE(*node)) = 1;
 +              return NULL_TREE;
 +      }
 +
++      error("%qE attribute used on type that is not constified", name);
 +      return NULL_TREE;
 +}
 +
@@ -85345,6 +93748,8 @@ index 0000000..c415c9d
 +{
 +      TYPE_READONLY(type) = 1;
 +      C_TYPE_FIELDS_READONLY(type) = 1;
++      TYPE_CONSTIFY_VISITED(type) = 1;
++//    TYPE_ATTRIBUTES(type) = tree_cons(get_identifier("do_const"), NULL_TREE, TYPE_ATTRIBUTES(type));
 +}
 +
 +static tree handle_do_const_attribute(tree *node, tree name, tree args, int flags, bool *no_add_attrs)
@@ -85360,8 +93765,17 @@ index 0000000..c415c9d
 +              return NULL_TREE;
 +      }
 +
++      if (lookup_attribute(IDENTIFIER_POINTER(name), TYPE_ATTRIBUTES(*node))) {
++              error("%qE attribute is already applied to the type", name);
++              return NULL_TREE;
++      }
++
++      if (lookup_attribute("no_const", TYPE_ATTRIBUTES(*node))) {
++              error("%qE attribute is incompatible with 'no_const'", name);
++              return NULL_TREE;
++      }
++
 +      *no_add_attrs = false;
-+      constify_type(*node);
 +      return NULL_TREE;
 +}
 +
@@ -85397,61 +93811,54 @@ index 0000000..c415c9d
 +      register_attribute(&do_const_attr);
 +}
 +
-+static bool is_fptr(tree field)
++static void finish_type(void *event_data, void *data)
 +{
-+      tree ptr = get_field_type(field);
-+
-+      if (TREE_CODE(ptr) != POINTER_TYPE)
-+              return false;
-+
-+      return TREE_CODE(TREE_TYPE(ptr)) == FUNCTION_TYPE;
-+}
++      tree type = (tree)event_data;
++      constify_info cinfo = {
++              .has_fptr_field = false,
++              .has_writable_field = false,
++              .has_do_const_field = false,
++              .has_no_const_field = false
++      };
 +
-+static bool walk_struct(tree node)
-+{
-+      tree field;
++      if (type == NULL_TREE || type == error_mark_node)
++              return;
 +
-+      if (TYPE_FIELDS(node) == NULL_TREE)
-+              return false;
++      if (TYPE_FIELDS(type) == NULL_TREE || TYPE_CONSTIFY_VISITED(type))
++              return;
 +
-+      if (lookup_attribute("do_const", TYPE_ATTRIBUTES(node)))
-+              return true;
++      constifiable(type, &cinfo);
 +
-+      if (lookup_attribute("no_const", TYPE_ATTRIBUTES(node))) {
-+              gcc_assert(!TYPE_READONLY(node));
-+              deconstify_type(node);
-+              return false;
++      if (TYPE_READONLY(type) && C_TYPE_FIELDS_READONLY(type)) {
++              if (!lookup_attribute("do_const", TYPE_ATTRIBUTES(type)))
++                      return;
++              if (cinfo.has_writable_field)
++                      return;
++              error("'do_const' attribute used on type that is%sconstified", cinfo.has_fptr_field ? " " : " not ");
++              return;
 +      }
 +
-+      for (field = TYPE_FIELDS(node); field; field = TREE_CHAIN(field)) {
-+              tree type = get_field_type(field);
-+              enum tree_code code = TREE_CODE(type);
-+
-+              if (node == type)
-+                      return false;
-+              if (code == RECORD_TYPE || code == UNION_TYPE) {
-+                      if (!(walk_struct(type)))
-+                              return false;
-+              } else if (!is_fptr(field) && !TREE_READONLY(field))
-+                      return false;
++      if (lookup_attribute("no_const", TYPE_ATTRIBUTES(type))) {
++              if ((cinfo.has_fptr_field && !cinfo.has_writable_field) || cinfo.has_do_const_field) {
++                      deconstify_type(type);
++                      TYPE_CONSTIFY_VISITED(type) = 1;
++              } else
++                      error("'no_const' attribute used on type that is not constified");
++              return;
 +      }
-+      return true;
-+}
-+
-+static void finish_type(void *event_data, void *data)
-+{
-+      tree type = (tree)event_data;
 +
-+      if (type == NULL_TREE || type == error_mark_node)
++      if (lookup_attribute("do_const", TYPE_ATTRIBUTES(type))) {
++              constify_type(type);
 +              return;
++      }
 +
-+      if (TYPE_READONLY(type))
++      if (cinfo.has_fptr_field && !cinfo.has_writable_field) {
++              constify_type(type);
 +              return;
++      }
 +
-+      if (walk_struct(type))
-+              constify_type(type);
-+      else
-+              deconstify_type(type);
++      deconstify_type(type);
++      TYPE_CONSTIFY_VISITED(type) = 1;
 +}
 +
 +static unsigned int check_local_variables(void)
@@ -85480,24 +93887,19 @@ index 0000000..c415c9d
 +              if (TREE_CODE(type) != RECORD_TYPE && TREE_CODE(type) != UNION_TYPE)
 +                      continue;
 +
-+              if (!TYPE_READONLY(type))
++              if (!TYPE_READONLY(type) || !C_TYPE_FIELDS_READONLY(type))
 +                      continue;
 +
-+//            if (lookup_attribute("no_const", DECL_ATTRIBUTES(var)))
-+//                    continue;
-+
-+              if (lookup_attribute("no_const", TYPE_ATTRIBUTES(type)))
++              if (!TYPE_CONSTIFY_VISITED(type))
 +                      continue;
 +
-+              if (walk_struct(type)) {
-+                      error_at(DECL_SOURCE_LOCATION(var), "constified variable %qE cannot be local", var);
-+                      ret = 1;
-+              }
++              error_at(DECL_SOURCE_LOCATION(var), "constified variable %qE cannot be local", var);
++              ret = 1;
 +      }
 +      return ret;
 +}
 +
-+struct gimple_opt_pass pass_local_variable = {
++static struct gimple_opt_pass pass_local_variable = {
 +      {
 +              .type                   = GIMPLE_PASS,
 +              .name                   = "check_local_variables",
@@ -85518,6 +93920,45 @@ index 0000000..c415c9d
 +      }
 +};
 +
++static struct {
++      const char *name;
++      const char *asm_op;
++} sections[] = {
++      {".init.rodata",     "\t.section\t.init.rodata,\"a\""},
++      {".ref.rodata",      "\t.section\t.ref.rodata,\"a\""},
++      {".devinit.rodata",  "\t.section\t.devinit.rodata,\"a\""},
++      {".devexit.rodata",  "\t.section\t.devexit.rodata,\"a\""},
++      {".cpuinit.rodata",  "\t.section\t.cpuinit.rodata,\"a\""},
++      {".cpuexit.rodata",  "\t.section\t.cpuexit.rodata,\"a\""},
++      {".meminit.rodata",  "\t.section\t.meminit.rodata,\"a\""},
++      {".memexit.rodata",  "\t.section\t.memexit.rodata,\"a\""},
++      {".data..read_only", "\t.section\t.data..read_only,\"a\""},
++};
++
++static unsigned int (*old_section_type_flags)(tree decl, const char *name, int reloc);
++
++static unsigned int constify_section_type_flags(tree decl, const char *name, int reloc)
++{
++      size_t i;
++
++      for (i = 0; i < ARRAY_SIZE(sections); i++)
++              if (!strcmp(sections[i].name, name))
++                      return 0;
++      return old_section_type_flags(decl, name, reloc);
++}
++
++static void constify_start_unit(void *gcc_data, void *user_data)
++{
++//    size_t i;
++
++//    for (i = 0; i < ARRAY_SIZE(sections); i++)
++//            sections[i].section = get_unnamed_section(0, output_section_asm_op, sections[i].asm_op);
++//            sections[i].section = get_section(sections[i].name, 0, NULL);
++
++      old_section_type_flags = targetm.section_type_flags;
++      targetm.section_type_flags = constify_section_type_flags;
++}
++
 +int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gcc_version *version)
 +{
 +      const char * const plugin_name = plugin_info->base_name;
@@ -85546,10 +93987,16 @@ index 0000000..c415c9d
 +              error(G_("unkown option '-fplugin-arg-%s-%s'"), plugin_name, argv[i].key);
 +      }
 +
++      if (strcmp(lang_hooks.name, "GNU C")) {
++              inform(UNKNOWN_LOCATION, G_("%s supports C only"), plugin_name);
++              constify = false;
++      }
++
 +      register_callback(plugin_name, PLUGIN_INFO, NULL, &const_plugin_info);
 +      if (constify) {
 +              register_callback(plugin_name, PLUGIN_FINISH_TYPE, finish_type, NULL);
 +              register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &local_variable_pass_info);
++              register_callback(plugin_name, PLUGIN_START_UNIT, constify_start_unit, NULL);
 +      }
 +      register_callback(plugin_name, PLUGIN_ATTRIBUTES, register_attributes, NULL);
 +
@@ -86304,10 +94751,10 @@ index 0000000..0408e06
 +}
 diff --git a/tools/gcc/latent_entropy_plugin.c b/tools/gcc/latent_entropy_plugin.c
 new file mode 100644
-index 0000000..1276616
+index 0000000..b5395ba
 --- /dev/null
 +++ b/tools/gcc/latent_entropy_plugin.c
-@@ -0,0 +1,321 @@
+@@ -0,0 +1,327 @@
 +/*
 + * Copyright 2012-2013 by the PaX Team <pageexec@freemail.hu>
 + * Licensed under the GPL v2
@@ -86348,6 +94795,7 @@ index 0000000..1276616
 +#include "rtl.h"
 +#include "emit-rtl.h"
 +#include "tree-flow.h"
++#include "langhooks.h"
 +
 +#if BUILDING_GCC_VERSION >= 4008
 +#define TODO_dump_func 0
@@ -86358,7 +94806,7 @@ index 0000000..1276616
 +static tree latent_entropy_decl;
 +
 +static struct plugin_info latent_entropy_plugin_info = {
-+      .version        = "201302112000",
++      .version        = "201303102320",
 +      .help           = NULL
 +};
 +
@@ -86582,6 +95030,8 @@ index 0000000..1276616
 +
 +static void start_unit_callback(void *gcc_data, void *user_data)
 +{
++      tree latent_entropy_type;
++
 +#if BUILDING_GCC_VERSION >= 4007
 +      seed = get_random_seed(false);
 +#else
@@ -86592,16 +95042,19 @@ index 0000000..1276616
 +      if (in_lto_p)
 +              return;
 +
-+      // extern u64 latent_entropy
-+      latent_entropy_decl = build_decl(UNKNOWN_LOCATION, VAR_DECL, get_identifier("latent_entropy"), unsigned_intDI_type_node);
++      // extern volatile u64 latent_entropy
++      gcc_assert(TYPE_PRECISION(long_long_unsigned_type_node) == 64);
++      latent_entropy_type = build_qualified_type(long_long_unsigned_type_node, TYPE_QUALS(long_long_unsigned_type_node) | TYPE_QUAL_VOLATILE);
++      latent_entropy_decl = build_decl(UNKNOWN_LOCATION, VAR_DECL, get_identifier("latent_entropy"), latent_entropy_type);
 +
 +      TREE_STATIC(latent_entropy_decl) = 1;
 +      TREE_PUBLIC(latent_entropy_decl) = 1;
 +      TREE_USED(latent_entropy_decl) = 1;
 +      TREE_THIS_VOLATILE(latent_entropy_decl) = 1;
 +      DECL_EXTERNAL(latent_entropy_decl) = 1;
-+      DECL_ARTIFICIAL(latent_entropy_decl) = 0;
++      DECL_ARTIFICIAL(latent_entropy_decl) = 1;
 +      DECL_INITIAL(latent_entropy_decl) = NULL;
++      lang_hooks.decls.pushdecl(latent_entropy_decl);
 +//    DECL_ASSEMBLER_NAME(latent_entropy_decl);
 +//    varpool_finalize_decl(latent_entropy_decl);
 +//    varpool_mark_needed_node(latent_entropy_decl);
@@ -86631,3742 +95084,5908 @@ index 0000000..1276616
 +}
 diff --git a/tools/gcc/size_overflow_hash.data b/tools/gcc/size_overflow_hash.data
 new file mode 100644
-index 0000000..5921fd7
+index 0000000..ddd5b2e
 --- /dev/null
 +++ b/tools/gcc/size_overflow_hash.data
-@@ -0,0 +1,3713 @@
+@@ -0,0 +1,5876 @@
 +intel_fake_agp_alloc_by_type_1 intel_fake_agp_alloc_by_type 1 1 NULL
-+ipwireless_tty_received_49154 ipwireless_tty_received 3 49154 NULL
 +batadv_orig_node_del_if_4 batadv_orig_node_del_if 2 4 NULL
-+ipw_queue_tx_init_49161 ipw_queue_tx_init 3 49161 NULL
-+xfs_efd_init_5463 xfs_efd_init 3 5463 NULL
-+recent_mt_proc_write_8206 recent_mt_proc_write 3 8206 NULL
-+sctp_tsnmap_grow_32784 sctp_tsnmap_grow 2 32784 NULL
-+rt2x00debug_write_bbp_8212 rt2x00debug_write_bbp 3 8212 NULL
-+diva_os_malloc_16406 diva_os_malloc 2 16406 NULL
++storvsc_connect_to_vsp_22 storvsc_connect_to_vsp 2 22 NULL
 +compat_sock_setsockopt_23 compat_sock_setsockopt 5 23 NULL
-+xfs_dir2_leaf_getdents_23841 xfs_dir2_leaf_getdents 3 23841 NULL
-+ad7879_spi_multi_read_8218 ad7879_spi_multi_read 3 8218 NULL
 +carl9170_alloc_27 carl9170_alloc 1 27 NULL
-+dvb_dvr_ioctl_49182 dvb_dvr_ioctl 2 49182 NULL
-+create_log_8225 create_log 2 8225 NULL
-+ieee80211_if_read_tsf_16420 ieee80211_if_read_tsf 3 16420 NULL
-+rproc_name_read_32805 rproc_name_read 3 32805 NULL
-+rxrpc_server_keyring_16431 rxrpc_server_keyring 3 16431 NULL
-+mac80211_format_buffer_41010 mac80211_format_buffer 2 41010 NULL
-+il4965_rs_sta_dbgfs_stats_table_read_49206 il4965_rs_sta_dbgfs_stats_table_read 3 49206 NULL
 +sel_read_policyvers_55 sel_read_policyvers 3 55 NULL nohasharray
 +padzero_55 padzero 1 55 &sel_read_policyvers_55
 +cfg80211_disconnected_57 cfg80211_disconnected 4 57 NULL
-+alloc_wr_24635 alloc_wr 1-2 24635 NULL
-+read_file_blob_57406 read_file_blob 3 57406 NULL
-+add_rx_skb_8257 add_rx_skb 3 8257 NULL
-+enclosure_register_57412 enclosure_register 3 57412 NULL
-+t3_init_l2t_8261 t3_init_l2t 1 8261 NULL
-+_req_append_segment_41031 _req_append_segment 2 41031 NULL
-+gre_manip_pkt_57416 gre_manip_pkt 4 57416 NULL
-+netlink_change_ngroups_16457 netlink_change_ngroups 2 16457 NULL
-+mISDN_sock_sendmsg_41035 mISDN_sock_sendmsg 4 41035 NULL
++__skb_to_sgvec_72 __skb_to_sgvec 0 72 NULL
 +DepcaSignature_80 DepcaSignature 2 80 NULL nohasharray
 +crypto_authenc_setkey_80 crypto_authenc_setkey 3 80 &DepcaSignature_80
-+init_cdev_8274 init_cdev 1 8274 NULL
-+shmem_pread_fast_34147 shmem_pread_fast 3 34147 NULL
-+compat_keyctl_instantiate_key_iov_57431 compat_keyctl_instantiate_key_iov 3 57431 NULL nohasharray
-+alloc_ftrace_hash_57431 alloc_ftrace_hash 1 57431 &compat_keyctl_instantiate_key_iov_57431
-+copy_to_user_fromio_57432 copy_to_user_fromio 3 57432 NULL
-+rproc_recovery_write_8281 rproc_recovery_write 3 8281 NULL
 +snd_korg1212_copy_to_92 snd_korg1212_copy_to 6 92 NULL
 +load_msg_95 load_msg 2 95 NULL
-+rds_sendmsg_40976 rds_sendmsg 4 40976 NULL
-+new_tape_buffer_32866 new_tape_buffer 2 32866 NULL
-+acpi_tb_check_xsdt_21862 acpi_tb_check_xsdt 1 21862 NULL
-+sys_pselect6_57449 sys_pselect6 1 57449 NULL
-+biovec_create_pools_9575 biovec_create_pools 2 9575 NULL
-+ieee80211_if_read_rssi_threshold_49260 ieee80211_if_read_rssi_threshold 3 49260 NULL
-+tracing_readme_read_16493 tracing_readme_read 3 16493 NULL
-+ath6kl_usb_submit_ctrl_in_32880 ath6kl_usb_submit_ctrl_in 6 32880 NULL nohasharray
-+cifs_writedata_alloc_32880 cifs_writedata_alloc 1 32880 &ath6kl_usb_submit_ctrl_in_32880
-+cfg80211_inform_bss_frame_41078 cfg80211_inform_bss_frame 4 41078 NULL
-+send_midi_async_57463 send_midi_async 3 57463 NULL
-+sisusb_clear_vram_57466 sisusb_clear_vram 3-2 57466 NULL
-+ath6kl_usb_post_recv_transfers_32892 ath6kl_usb_post_recv_transfers 2 32892 NULL
-+ieee80211_if_read_flags_57470 ieee80211_if_read_flags 3 57470 NULL nohasharray
-+sep_lock_user_pages_57470 sep_lock_user_pages 2-3 57470 &ieee80211_if_read_flags_57470
-+rx_filter_beacon_filter_read_49279 rx_filter_beacon_filter_read 3 49279 NULL
-+construct_key_and_link_8321 construct_key_and_link 4 8321 NULL
-+ath6kl_set_ap_probe_resp_ies_50539 ath6kl_set_ap_probe_resp_ies 3 50539 NULL
++device_flush_iotlb_115 device_flush_iotlb 2-3 115 NULL
 +init_q_132 init_q 4 132 NULL
-+roccat_read_41093 roccat_read 3 41093 NULL nohasharray
-+nvme_map_user_pages_41093 nvme_map_user_pages 3-4 41093 &roccat_read_41093
-+ipwireless_send_packet_8328 ipwireless_send_packet 4 8328 NULL
-+unifi_net_data_malloc_24716 unifi_net_data_malloc 3 24716 NULL
 +memstick_alloc_host_142 memstick_alloc_host 1 142 NULL
-+il_dbgfs_tx_stats_read_32913 il_dbgfs_tx_stats_read 3 32913 NULL
-+uio_read_49300 uio_read 3 49300 NULL
-+f_audio_buffer_alloc_41110 f_audio_buffer_alloc 1 41110 NULL
++hva_to_gfn_memslot_149 hva_to_gfn_memslot 0-1 149 NULL
 +tracing_trace_options_write_153 tracing_trace_options_write 3 153 NULL
-+bnad_debugfs_write_regwr_57500 bnad_debugfs_write_regwr 3 57500 NULL
-+firmwareUpload_32794 firmwareUpload 3 32794 NULL
-+simple_attr_read_24738 simple_attr_read 3 24738 NULL
-+play_iframe_8219 play_iframe 3 8219 NULL
-+qla2x00_change_queue_depth_24742 qla2x00_change_queue_depth 2 24742 NULL
-+ping_getfrag_8360 ping_getfrag 4-3 8360 NULL
-+ath_rxbuf_alloc_24745 ath_rxbuf_alloc 2 24745 NULL
 +nvme_create_queue_170 nvme_create_queue 3 170 NULL
-+init_tag_map_57515 init_tag_map 3 57515 NULL
-+il_dbgfs_force_reset_read_57517 il_dbgfs_force_reset_read 3 57517 NULL
-+srpt_alloc_ioctx_ring_49330 srpt_alloc_ioctx_ring 2-3-4 49330 NULL
-+kgdb_hex2mem_24755 kgdb_hex2mem 3 24755 NULL
-+lpfc_debugfs_read_16566 lpfc_debugfs_read 3 16566 NULL
 +xfs_buf_item_get_format_189 xfs_buf_item_get_format 2 189 NULL
-+DoC_Probe_57534 DoC_Probe 1 57534 NULL
-+cfpkt_setlen_49343 cfpkt_setlen 2 49343 NULL
-+agp_allocate_memory_wrap_16576 agp_allocate_memory_wrap 1 16576 NULL
-+mI_alloc_skb_24770 mI_alloc_skb 1 24770 NULL
 +iscsi_session_setup_196 iscsi_session_setup 4-5 196 NULL
 +virtblk_add_req_197 virtblk_add_req 2-3 197 NULL
-+il_dbgfs_fh_reg_read_40993 il_dbgfs_fh_reg_read 3 40993 NULL
-+rds_tcp_data_recv_53476 rds_tcp_data_recv 3 53476 NULL
-+xdi_copy_from_user_8395 xdi_copy_from_user 4 8395 NULL
-+skb_make_writable_24783 skb_make_writable 2 24783 NULL
-+datablob_hmac_verify_24786 datablob_hmac_verify 4 24786 NULL
-+dvb_ca_write_41171 dvb_ca_write 3 41171 NULL
-+cache_read_24790 cache_read 3 24790 NULL
-+px_raw_event_49371 px_raw_event 4 49371 NULL
-+tty_register_device_attr_57381 tty_register_device_attr 2 57381 NULL
-+compat_filldir_32999 compat_filldir 3 32999 NULL
-+hci_si_event_1404 hci_si_event 3 1404 NULL
-+compat_sys_process_vm_writev_41194 compat_sys_process_vm_writev 3-5 41194 NULL
-+dfs_file_write_41196 dfs_file_write 3 41196 NULL
-+afs_cell_create_27346 afs_cell_create 2 27346 NULL
-+iscsi_alloc_session_49390 iscsi_alloc_session 3 49390 NULL
-+applesmc_create_nodes_49392 applesmc_create_nodes 2 49392 NULL
-+snd_usb_ctl_msg_8436 snd_usb_ctl_msg 8 8436 NULL
-+comedi_buf_alloc_24822 comedi_buf_alloc 3 24822 NULL
-+rx_streaming_always_read_49401 rx_streaming_always_read 3 49401 NULL
-+tnode_alloc_49407 tnode_alloc 1 49407 NULL
-+tun_alloc_skb_41216 tun_alloc_skb 2-4-3 41216 NULL
 +proc_scsi_write_proc_267 proc_scsi_write_proc 3 267 NULL
-+__alloc_objio_seg_7203 __alloc_objio_seg 1 7203 NULL
-+sk_stream_alloc_skb_57622 sk_stream_alloc_skb 2 57622 NULL
-+tx_tx_retry_template_read_57623 tx_tx_retry_template_read 3 57623 NULL
-+iwl_dbgfs_ucode_general_stats_read_49199 iwl_dbgfs_ucode_general_stats_read 3 49199 NULL
-+mfd_add_devices_16668 mfd_add_devices 4 16668 NULL
-+packet_recv_error_16669 packet_recv_error 3 16669 NULL
-+osdmap_set_max_osd_57630 osdmap_set_max_osd 2 57630 NULL nohasharray
-+sisusbcon_putcs_57630 sisusbcon_putcs 3 57630 &osdmap_set_max_osd_57630
-+mem_read_57631 mem_read 3 57631 NULL
-+afs_cell_lookup_8482 afs_cell_lookup 2 8482 NULL
-+ieee80211_if_read_uapsd_max_sp_len_15067 ieee80211_if_read_uapsd_max_sp_len 3 15067 NULL
++br_port_info_size_268 br_port_info_size 0 268 NULL
++generic_file_direct_write_291 generic_file_direct_write 0 291 NULL
 +read_file_war_stats_292 read_file_war_stats 3 292 NULL
-+pnp_alloc_24869 pnp_alloc 1 24869 NULL nohasharray
-+l2cap_create_basic_pdu_24869 l2cap_create_basic_pdu 3 24869 &pnp_alloc_24869
-+hiddev_compat_ioctl_41255 hiddev_compat_ioctl 2 41255 NULL
-+stats_dot11RTSSuccessCount_read_33065 stats_dot11RTSSuccessCount_read 3 33065 NULL
-+sel_read_checkreqprot_33068 sel_read_checkreqprot 3 33068 NULL
-+queues_read_24877 queues_read 3 24877 NULL
-+__fprog_create_41263 __fprog_create 2 41263 NULL
 +syslog_print_307 syslog_print 2 307 NULL
 +platform_device_add_data_310 platform_device_add_data 3 310 NULL
-+agp_3_5_isochronous_node_enable_49465 agp_3_5_isochronous_node_enable 3 49465 NULL
 +dn_setsockopt_314 dn_setsockopt 5 314 NULL
-+sys_mq_timedsend_57661 sys_mq_timedsend 3 57661 NULL
-+r3964_write_57662 r3964_write 4 57662 NULL
-+xfs_iformat_local_49472 xfs_iformat_local 4 49472 NULL
-+savu_sysfs_read_49473 savu_sysfs_read 6 49473 NULL
-+dn_nsp_do_disc_49474 dn_nsp_do_disc 6-2 49474 NULL
-+alloc_context_41283 alloc_context 1 41283 NULL
-+__lgwrite_57669 __lgwrite 4 57669 NULL
-+ath9k_wmi_cmd_327 ath9k_wmi_cmd 4 327 NULL
-+codec_list_read_file_24910 codec_list_read_file 3 24910 NULL
-+isr_decrypt_done_read_49490 isr_decrypt_done_read 3 49490 NULL
-+alloc_pg_vec_8533 alloc_pg_vec 2 8533 NULL
-+pwr_missing_bcns_cnt_read_45113 pwr_missing_bcns_cnt_read 3 45113 NULL
-+ieee80211_fragment_33112 ieee80211_fragment 4 33112 NULL
-+arch_gnttab_map_shared_41306 arch_gnttab_map_shared 3 41306 NULL
-+v4l2_ctrl_new_24927 v4l2_ctrl_new 7 24927 NULL
-+write_node_33121 write_node 4 33121 NULL
-+vring_new_virtqueue_54673 vring_new_virtqueue 2 54673 NULL
-+i2400m_rx_stats_read_57706 i2400m_rx_stats_read 3 57706 NULL
-+profile_remove_8556 profile_remove 3 8556 NULL
-+rx_filter_data_filter_read_30098 rx_filter_data_filter_read 3 30098 NULL
-+iscsi_recv_pdu_16755 iscsi_recv_pdu 4 16755 NULL
-+arcmsr_adjust_disk_queue_depth_16756 arcmsr_adjust_disk_queue_depth 2 16756 NULL
-+cmtp_send_interopmsg_376 cmtp_send_interopmsg 7 376 NULL
-+ieee80211_if_read_dot11MeshHWMPconfirmationInterval_57722 ieee80211_if_read_dot11MeshHWMPconfirmationInterval 3 57722 NULL
-+mga_ioremap_8571 mga_ioremap 1-2 8571 NULL
-+isr_dma0_done_read_8574 isr_dma0_done_read 3 8574 NULL
-+sys_rt_sigpending_24961 sys_rt_sigpending 2 24961 NULL
-+tower_write_8580 tower_write 3 8580 NULL
-+cnic_init_id_tbl_41354 cnic_init_id_tbl 2 41354 NULL
-+compat_sys_set_mempolicy_57742 compat_sys_set_mempolicy 3 57742 NULL nohasharray
-+pppol2tp_recvmsg_57742 pppol2tp_recvmsg 4 57742 &compat_sys_set_mempolicy_57742
-+jbd2_alloc_41359 jbd2_alloc 1 41359 NULL
-+debug_debug6_read_33168 debug_debug6_read 3 33168 NULL
-+nf_nat_sdp_port_24977 nf_nat_sdp_port 7 24977 NULL
-+smk_write_access_49561 smk_write_access 3 49561 NULL
-+llc_ui_sendmsg_24987 llc_ui_sendmsg 4 24987 NULL
-+kmp_init_41373 kmp_init 2 41373 NULL
-+context_alloc_24645 context_alloc 3 24645 NULL
++next_node_allowed_318 next_node_allowed 1 318 NULL
++compat_sys_ioctl_333 compat_sys_ioctl 3 333 NULL
++btmrvl_txdnldready_read_413 btmrvl_txdnldready_read 3 413 NULL
 +lbs_rdmac_read_418 lbs_rdmac_read 3 418 NULL
-+get_server_iovec_16804 get_server_iovec 2 16804 NULL
-+alloc_chunk_49575 alloc_chunk 1 49575 NULL
-+tipc_send2name_16809 tipc_send2name 6 16809 NULL
-+sctp_setsockopt_default_send_param_49578 sctp_setsockopt_default_send_param 3 49578 NULL
-+key_conf_hw_key_idx_read_25003 key_conf_hw_key_idx_read 3 25003 NULL
-+shash_setkey_unaligned_8620 shash_setkey_unaligned 3 8620 NULL
-+il_dbgfs_channels_read_25005 il_dbgfs_channels_read 3 25005 NULL
-+dm_vcalloc_16814 dm_vcalloc 1-2 16814 NULL
-+it821x_firmware_command_8628 it821x_firmware_command 3 8628 NULL
-+isr_commands_read_41398 isr_commands_read 3 41398 NULL
-+pp_read_33210 pp_read 3 33210 NULL
-+sys_flistxattr_41407 sys_flistxattr 3 41407 NULL
-+scsi_mode_sense_16835 scsi_mode_sense 5 16835 NULL
-+ivtv_read_57796 ivtv_read 3 57796 NULL
-+isr_wakeups_read_49607 isr_wakeups_read 3 49607 NULL
-+nfs_dns_resolve_name_25036 nfs_dns_resolve_name 3 25036 NULL
-+xfs_iext_add_41422 xfs_iext_add 3 41422 NULL
-+heap_init_49617 heap_init 2 49617 NULL
-+xfs_file_aio_write_33234 xfs_file_aio_write 4 33234 NULL
-+ieee80211_send_probe_req_38307 ieee80211_send_probe_req 6-4 38307 NULL
-+isdn_ppp_fill_rq_41428 isdn_ppp_fill_rq 2 41428 NULL
-+smk_write_doi_49621 smk_write_doi 3 49621 NULL
++snd_ca0106_ptr_read_467 snd_ca0106_ptr_read 0 467 NULL
 +_alloc_get_attr_desc_470 _alloc_get_attr_desc 2 470 NULL
-+lbs_rdrf_read_41431 lbs_rdrf_read 3 41431 NULL
-+btrfsic_cmp_log_and_dev_bytenr_49628 btrfsic_cmp_log_and_dev_bytenr 2 49628 NULL
-+iio_device_alloc_41440 iio_device_alloc 1 41440 NULL
-+ntfs_file_buffered_write_41442 ntfs_file_buffered_write 4-6 41442 NULL
-+pcpu_build_alloc_info_41443 pcpu_build_alloc_info 1-2-3 41443 NULL
-+dio_bio_alloc_8677 dio_bio_alloc 5 8677 NULL
-+bfad_debugfs_read_regrd_57830 bfad_debugfs_read_regrd 3 57830 NULL
-+st_write_16874 st_write 3 16874 NULL
-+copy_to_user_57835 copy_to_user 3 57835 NULL
-+rproc_trace_read_8686 rproc_trace_read 3 8686 NULL
++dccp_manip_pkt_476 dccp_manip_pkt 4 476 NULL
 +pidlist_resize_496 pidlist_resize 2 496 NULL
-+flash_read_57843 flash_read 3 57843 NULL
 +read_vbt_r0_503 read_vbt_r0 1 503 NULL
 +rx_rx_defrag_end_read_505 rx_rx_defrag_end_read 3 505 NULL
-+cachefiles_cook_key_33274 cachefiles_cook_key 2 33274 NULL
-+rds_message_map_pages_31487 rds_message_map_pages 2 31487 NULL
-+arcfb_write_8702 arcfb_write 3 8702 NULL
-+gsm_control_reply_53333 gsm_control_reply 4 53333 NULL
-+smp_send_cmd_512 smp_send_cmd 3 512 NULL
-+rt2x00debug_write_rfcsr_41473 rt2x00debug_write_rfcsr 3 41473 NULL
-+rfcomm_sock_sendmsg_37661 rfcomm_sock_sendmsg 4 37661 NULL nohasharray
-+vmw_framebuffer_dmabuf_dirty_37661 vmw_framebuffer_dmabuf_dirty 6 37661 &rfcomm_sock_sendmsg_37661
-+HDLC_irq_8709 HDLC_irq 2 8709 NULL
-+ctrl_out_8712 ctrl_out 3-5 8712 NULL
-+cxio_hal_init_rhdl_resource_25104 cxio_hal_init_rhdl_resource 1 25104 NULL
-+sock_wmalloc_16472 sock_wmalloc 2 16472 NULL
-+snd_rawmidi_kernel_write_25106 snd_rawmidi_kernel_write 3 25106 NULL
-+aa_simple_write_to_buffer_49683 aa_simple_write_to_buffer 3-4 49683 NULL
-+wep_interrupt_read_41492 wep_interrupt_read 3 41492 NULL
-+hpfs_translate_name_41497 hpfs_translate_name 3 41497 NULL
-+mcs7830_get_reg_33308 mcs7830_get_reg 3 33308 NULL
-+psb_unlocked_ioctl_16926 psb_unlocked_ioctl 2 16926 NULL nohasharray
-+snd_gf1_mem_proc_dump_16926 snd_gf1_mem_proc_dump 5 16926 &psb_unlocked_ioctl_16926
-+iwl_dbgfs_reply_tx_error_read_19205 iwl_dbgfs_reply_tx_error_read 3 19205 NULL
-+sys_gethostname_49698 sys_gethostname 2 49698 NULL
-+cx2341x_ctrl_new_menu_49700 cx2341x_ctrl_new_menu 3 49700 NULL
-+ieee80211_rx_mgmt_probe_resp_6918 ieee80211_rx_mgmt_probe_resp 3 6918 NULL
++ocfs2_validate_meta_ecc_bhs_527 ocfs2_validate_meta_ecc_bhs 0 527 NULL
++zlib_deflate_workspacesize_537 zlib_deflate_workspacesize 0-1-2 537 NULL
++iwl_dbgfs_wowlan_sram_read_540 iwl_dbgfs_wowlan_sram_read 3 540 NULL
++dle_count_543 dle_count 0 543 NULL
 +devres_alloc_551 devres_alloc 2 551 NULL
-+ldisc_receive_41516 ldisc_receive 4 41516 NULL
-+tx_tx_exch_expiry_read_8749 tx_tx_exch_expiry_read 3 8749 NULL
-+ip_append_data_16942 ip_append_data 5-6 16942 NULL
-+xt_alloc_table_info_57903 xt_alloc_table_info 1 57903 NULL
-+_sp2d_alloc_16944 _sp2d_alloc 1-2-3 16944 NULL
-+squashfs_read_table_16945 squashfs_read_table 3 16945 NULL
-+emi26_writememory_57908 emi26_writememory 4 57908 NULL
-+start_isoc_chain_565 start_isoc_chain 2 565 NULL
-+iio_read_first_n_kfifo_57910 iio_read_first_n_kfifo 2 57910 NULL
-+gsm_mux_rx_netchar_33336 gsm_mux_rx_netchar 3 33336 NULL
-+brcmu_pkt_buf_get_skb_5556 brcmu_pkt_buf_get_skb 1 5556 NULL
-+joydev_compat_ioctl_8765 joydev_compat_ioctl 2 8765 NULL
-+sys_prctl_8766 sys_prctl 4 8766 NULL
-+joydev_ioctl_33343 joydev_ioctl 2 33343 NULL
-+sep_create_dcb_dmatables_context_kernel_49728 sep_create_dcb_dmatables_context_kernel 6 49728 NULL
++snd_aw2_saa7146_get_hw_ptr_playback_558 snd_aw2_saa7146_get_hw_ptr_playback 0 558 NULL
++dev_hard_header_565 dev_hard_header 0 565 NULL nohasharray
++start_isoc_chain_565 start_isoc_chain 2 565 &dev_hard_header_565
 +compat_sys_preadv_583 compat_sys_preadv 3 583 NULL
-+sys_fsetxattr_49736 sys_fsetxattr 4 49736 NULL
-+keyctl_instantiate_key_iov_16969 keyctl_instantiate_key_iov 3 16969 NULL
-+create_xattr_datum_33356 create_xattr_datum 5 33356 NULL nohasharray
-+irq_pkt_threshold_read_33356 irq_pkt_threshold_read 3 33356 &create_xattr_datum_33356
-+sel_read_handle_unknown_57933 sel_read_handle_unknown 3 57933 NULL
-+sys_fgetxattr_25166 sys_fgetxattr 4 25166 NULL
-+ipath_init_qp_table_25167 ipath_init_qp_table 2 25167 NULL
-+zd_usb_iowrite16v_49744 zd_usb_iowrite16v 3 49744 NULL
-+tx_tx_frame_checksum_read_41553 tx_tx_frame_checksum_read 3 41553 NULL
-+ath6kl_endpoint_stats_read_41554 ath6kl_endpoint_stats_read 3 41554 NULL
-+ath6kl_buf_alloc_57304 ath6kl_buf_alloc 1 57304 NULL
-+cache_do_downcall_6926 cache_do_downcall 3 6926 NULL
-+gserial_setup_41558 gserial_setup 2 41558 NULL
-+rx_rx_checksum_result_read_50617 rx_rx_checksum_result_read 3 50617 NULL
-+rx_57944 rx 4 57944 NULL
-+sctp_getsockopt_local_addrs_25178 sctp_getsockopt_local_addrs 2 25178 NULL
-+nci_skb_alloc_49757 nci_skb_alloc 2 49757 NULL
-+key_conf_keylen_read_49758 key_conf_keylen_read 3 49758 NULL
-+cpuset_common_file_read_8800 cpuset_common_file_read 5 8800 NULL
-+sctp_ulpevent_new_33377 sctp_ulpevent_new 1 33377 NULL
-+fuse_conn_waiting_read_49762 fuse_conn_waiting_read 3 49762 NULL
-+mempool_create_slab_pool_62907 mempool_create_slab_pool 1 62907 NULL
-+isku_sysfs_write_49767 isku_sysfs_write 6 49767 NULL
-+i915_cache_sharing_write_57961 i915_cache_sharing_write 3 57961 NULL
-+batadv_receive_client_update_packet_41578 batadv_receive_client_update_packet 3 41578 NULL
-+ceph_read_dir_17005 ceph_read_dir 3 17005 NULL
-+handle_response_icmp_39574 handle_response_icmp 7 39574 NULL
-+wbcir_tx_19219 wbcir_tx 3 19219 NULL
-+hfc_empty_fifo_57972 hfc_empty_fifo 2 57972 NULL
-+ceph_dns_resolve_name_62488 ceph_dns_resolve_name 2 62488 NULL
-+metronomefb_write_8823 metronomefb_write 3 8823 NULL
-+icmpv6_manip_pkt_8833 icmpv6_manip_pkt 4 8833 NULL
-+copy_counters_to_user_17027 copy_counters_to_user 5 17027 NULL
-+read_file_rx_chainmask_41605 read_file_rx_chainmask 3 41605 NULL
-+vmw_du_crtc_cursor_set_28479 vmw_du_crtc_cursor_set 4-5 28479 NULL
-+_osd_req_list_objects_4204 _osd_req_list_objects 6 4204 NULL
-+nfs4_acl_new_49806 nfs4_acl_new 1 49806 NULL
-+a2mp_send_41615 a2mp_send 4 41615 NULL
++smk_write_load_self2_591 smk_write_load_self2 3 591 NULL
++ni_gpct_device_construct_610 ni_gpct_device_construct 5 610 NULL
++compat_sys_shmat_620 compat_sys_shmat 3 620 NULL
++isp1760_register_628 isp1760_register 1-2 628 NULL
++drbd_bm_find_next_643 drbd_bm_find_next 2 643 NULL
++unlink_queued_645 unlink_queued 3-4 645 NULL
++dtim_interval_read_654 dtim_interval_read 3 654 NULL
 +ceph_copy_user_to_page_vector_656 ceph_copy_user_to_page_vector 4-3 656 NULL
-+rx_reset_counter_read_58001 rx_reset_counter_read 3 58001 NULL
-+arch_gnttab_map_status_49812 arch_gnttab_map_status 3 49812 NULL
-+mon_stat_read_25238 mon_stat_read 3 25238 NULL
-+jffs2_trusted_setxattr_17048 jffs2_trusted_setxattr 4 17048 NULL
-+tcf_csum_ipv6_udp_25241 tcf_csum_ipv6_udp 4 25241 NULL
-+wa_nep_queue_8858 wa_nep_queue 2 8858 NULL
-+macvtap_alloc_skb_50629 macvtap_alloc_skb 2-4-3 50629 NULL
++div_u64_rem_672 div_u64_rem 0 672 NULL
 +mem_rx_free_mem_blks_read_675 mem_rx_free_mem_blks_read 3 675 NULL
-+ntfs_copy_from_user_iovec_49829 ntfs_copy_from_user_iovec 3-6 49829 NULL
-+add_uuid_49831 add_uuid 4 49831 NULL
-+send_pages_8872 send_pages 3 8872 NULL
-+ath6kl_fwlog_block_read_49836 ath6kl_fwlog_block_read 3 49836 NULL
-+__btrfs_map_block_49839 __btrfs_map_block 3 49839 NULL
-+dvb_dvr_read_17073 dvb_dvr_read 3 17073 NULL
-+mempool_create_kmalloc_pool_41650 mempool_create_kmalloc_pool 1 41650 NULL
-+simple_transaction_read_17076 simple_transaction_read 3 17076 NULL
-+rx_rx_pre_complt_read_41653 rx_rx_pre_complt_read 3 41653 NULL
-+__kmalloc_reserve_17080 __kmalloc_reserve 1 17080 NULL
-+timeradd_entry_49850 timeradd_entry 3 49850 NULL
-+crypto_alloc_instance2_25277 crypto_alloc_instance2 3 25277 NULL
-+vfs_writev_25278 vfs_writev 3 25278 NULL
 +rtl8169_try_rx_copy_705 rtl8169_try_rx_copy 3 705 NULL
-+alloc_async_14208 alloc_async 1 14208 NULL
-+ovs_vport_alloc_33475 ovs_vport_alloc 1 33475 NULL
-+persistent_ram_vmap_709 persistent_ram_vmap 2-1 709 NULL
-+l2tp_session_create_25286 l2tp_session_create 1 25286 NULL
-+create_entry_33479 create_entry 2 33479 NULL
-+mce_async_out_58056 mce_async_out 3 58056 NULL
-+alloc_sja1000dev_17868 alloc_sja1000dev 1 17868 NULL
-+sys_preadv_17100 sys_preadv 3 17100 NULL
-+sctp_setsockopt_bindx_49870 sctp_setsockopt_bindx 3 49870 NULL
-+ip_setsockopt_33487 ip_setsockopt 5 33487 NULL
-+netxen_nic_hw_write_wx_128M_33488 netxen_nic_hw_write_wx_128M 2 33488 NULL
-+aac_src_ioremap_41688 aac_src_ioremap 2 41688 NULL
-+dt3155_alloc_coherent_58073 dt3155_alloc_coherent 2 58073 NULL
-+res_counter_read_33499 res_counter_read 4 33499 NULL
++persistent_ram_vmap_709 persistent_ram_vmap 1-2 709 NULL
++ipath_resize_cq_712 ipath_resize_cq 2 712 NULL
 +sctp_setsockopt_peer_addr_params_734 sctp_setsockopt_peer_addr_params 3 734 NULL
-+cm4040_write_58079 cm4040_write 3 58079 NULL
-+fb_read_33506 fb_read 3 33506 NULL
-+help_25316 help 5 25316 NULL nohasharray
-+ath9k_debugfs_read_buf_25316 ath9k_debugfs_read_buf 3 25316 &help_25316
-+rfcomm_wmalloc_58090 rfcomm_wmalloc 2 58090 NULL
-+mwifiex_get_common_rates_17131 mwifiex_get_common_rates 3 17131 NULL
-+musb_test_mode_write_33518 musb_test_mode_write 3 33518 NULL
-+ddp_set_map_751 ddp_set_map 4 751 NULL
-+driver_stats_read_8944 driver_stats_read 3 8944 NULL
-+ahash_setkey_unaligned_33521 ahash_setkey_unaligned 3 33521 NULL
++wm8962_gpio_direction_out_738 wm8962_gpio_direction_out 2 738 NULL
 +dvb_video_write_754 dvb_video_write 3 754 NULL
-+nes_alloc_fast_reg_page_list_33523 nes_alloc_fast_reg_page_list 2 33523 NULL
-+osd_req_add_get_attr_list_49278 osd_req_add_get_attr_list 3 49278 NULL
-+aggr_size_rx_size_read_33526 aggr_size_rx_size_read 3 33526 NULL
-+bdx_tx_db_init_41719 bdx_tx_db_init 2 41719 NULL
-+nouveau_instobj_create__17144 nouveau_instobj_create_ 4 17144 NULL
-+udi_log_event_58105 udi_log_event 3 58105 NULL
-+sys_pwritev_41722 sys_pwritev 3 41722 NULL
-+l2cap_sock_alloc_skb_cb_33532 l2cap_sock_alloc_skb_cb 2 33532 NULL
-+ib_send_cm_mra_60202 ib_send_cm_mra 4 60202 NULL nohasharray
-+qib_reg_phys_mr_60202 qib_reg_phys_mr 3 60202 &ib_send_cm_mra_60202
-+read_file_tgt_stats_8959 read_file_tgt_stats 3 8959 NULL
-+__copy_from_user_inatomic_nocache_49921 __copy_from_user_inatomic_nocache 3 49921 NULL
-+tomoyo_read_self_33539 tomoyo_read_self 3 33539 NULL
-+usb_allocate_stream_buffers_8964 usb_allocate_stream_buffers 3 8964 NULL
-+tcm_loop_change_queue_depth_42454 tcm_loop_change_queue_depth 2 42454 NULL
-+venus_mkdir_8967 venus_mkdir 4 8967 NULL
-+vol_cdev_read_8968 vol_cdev_read 3 8968 NULL nohasharray
-+seq_open_net_8968 seq_open_net 4 8968 &vol_cdev_read_8968
-+sep_read_17161 sep_read 3 17161 NULL
-+befs_nls2utf_17163 befs_nls2utf 3 17163 NULL
-+tx_tx_start_templates_read_17164 tx_tx_start_templates_read 3 17164 NULL
-+dup_array_33551 dup_array 3 33551 NULL
-+vxge_device_register_7752 vxge_device_register 4 7752 NULL
-+solo_enc_read_33553 solo_enc_read 3 33553 NULL
-+fillonedir_41746 fillonedir 3 41746 NULL
-+init_bch_64130 init_bch 1-2 64130 NULL
-+ipv6_flowlabel_opt_58135 ipv6_flowlabel_opt 3 58135 NULL nohasharray
-+slhc_init_58135 slhc_init 1-2 58135 &ipv6_flowlabel_opt_58135
-+sel_read_mls_25369 sel_read_mls 3 25369 NULL
-+btrfs_alloc_free_block_8986 btrfs_alloc_free_block 3 8986 NULL
-+savemem_58129 savemem 3 58129 NULL
-+batadv_tt_realloc_packet_buff_49960 batadv_tt_realloc_packet_buff 4 49960 NULL
-+rx_defrag_tkip_called_read_21031 rx_defrag_tkip_called_read 3 21031 NULL
-+driver_state_read_17194 driver_state_read 3 17194 NULL nohasharray
-+iscsit_find_cmd_from_itt_or_dump_17194 iscsit_find_cmd_from_itt_or_dump 3 17194 &driver_state_read_17194
-+dispatch_ioctl_32357 dispatch_ioctl 2 32357 NULL
++iwl_read_targ_mem_772 iwl_read_targ_mem 0 772 NULL
++snd_pcm_drain_811 snd_pcm_drain 0 811 NULL
 +if_writecmd_815 if_writecmd 2 815 NULL
 +aac_change_queue_depth_825 aac_change_queue_depth 2 825 NULL
 +read_fifo_826 read_fifo 3 826 NULL
-+keyctl_describe_key_36853 keyctl_describe_key 3 36853 NULL
-+scsi_execute_33596 scsi_execute 5 33596 NULL
-+dn_recvmsg_17213 dn_recvmsg 4 17213 NULL
-+ms_rw_17220 ms_rw 3-4 17220 NULL
 +read_tree_block_841 read_tree_block 3 841 NULL
-+hsi_alloc_controller_41802 hsi_alloc_controller 1 41802 NULL
-+l2cap_chan_send_49995 l2cap_chan_send 3 49995 NULL
-+dai_list_read_file_25421 dai_list_read_file 3 25421 NULL
-+__pskb_copy_9038 __pskb_copy 2 9038 NULL
-+garmin_write_bulk_58191 garmin_write_bulk 3 58191 NULL
-+asix_write_cmd_58192 asix_write_cmd 5 58192 NULL
 +um_idi_read_850 um_idi_read 3 850 NULL
-+__module_alloc_50004 __module_alloc 1 50004 NULL
-+sco_send_frame_41815 sco_send_frame 3 41815 NULL
-+ts_read_44687 ts_read 3 44687 NULL
-+nci_send_cmd_58206 nci_send_cmd 3 58206 NULL
-+snd_emu10k1_synth_copy_from_user_9061 snd_emu10k1_synth_copy_from_user 3-5 9061 NULL
-+snd_gus_dram_peek_9062 snd_gus_dram_peek 4 9062 NULL
-+provide_user_output_41105 provide_user_output 3 41105 NULL
-+error_error_frame_cts_nul_flid_read_17262 error_error_frame_cts_nul_flid_read 3 17262 NULL
++ieee80211_if_fmt_rc_rateidx_mcs_mask_5ghz_856 ieee80211_if_fmt_rc_rateidx_mcs_mask_5ghz 3 856 NULL
 +o2net_send_message_vec_879 o2net_send_message_vec 4 879 NULL nohasharray
 +iwl_dbgfs_fh_reg_read_879 iwl_dbgfs_fh_reg_read 3 879 &o2net_send_message_vec_879
-+fib_info_hash_alloc_9075 fib_info_hash_alloc 1 9075 NULL
-+alloc_ep_17269 alloc_ep 1 17269 NULL
-+ath6kl_wmi_beginscan_cmd_25462 ath6kl_wmi_beginscan_cmd 8 25462 NULL
-+ieee80211_if_read_aid_9705 ieee80211_if_read_aid 3 9705 NULL
-+generic_file_buffered_write_25464 generic_file_buffered_write 4 25464 NULL
-+do_ip_setsockopt_41852 do_ip_setsockopt 5 41852 NULL
-+raw_recvmsg_17277 raw_recvmsg 4 17277 NULL
-+alloc_ebda_hpc_50046 alloc_ebda_hpc 1-2 50046 NULL
-+keyctl_instantiate_key_41855 keyctl_instantiate_key 3 41855 NULL
-+create_queues_9088 create_queues 2-3 9088 NULL
-+irq_blk_threshold_read_33666 irq_blk_threshold_read 3 33666 NULL
-+neigh_hash_grow_17283 neigh_hash_grow 2 17283 NULL
-+btrfsic_create_link_to_next_block_58246 btrfsic_create_link_to_next_block 4 58246 NULL
-+minstrel_stats_read_17290 minstrel_stats_read 3 17290 NULL
-+rbd_alloc_coll_33678 rbd_alloc_coll 1 33678 NULL
-+read_file_debug_58256 read_file_debug 3 58256 NULL
-+skb_pad_17302 skb_pad 2 17302 NULL
-+tracing_entries_read_8345 tracing_entries_read 3 8345 NULL
++snd_pcm_action_single_905 snd_pcm_action_single 0 905 NULL
 +btmrvl_hsstate_read_920 btmrvl_hsstate_read 3 920 NULL
-+profile_load_58267 profile_load 3 58267 NULL
-+pmcraid_change_queue_depth_9116 pmcraid_change_queue_depth 2 9116 NULL
-+ivtv_buf_copy_from_user_25502 ivtv_buf_copy_from_user 4 25502 NULL
-+acpi_ds_build_internal_package_obj_58271 acpi_ds_build_internal_package_obj 3 58271 NULL
-+snd_pcm_plugin_build_25505 snd_pcm_plugin_build 5 25505 NULL
-+dev_set_alias_50084 dev_set_alias 3 50084 NULL
-+pcpu_get_vm_areas_50085 pcpu_get_vm_areas 3 50085 NULL
-+sock_setsockopt_50088 sock_setsockopt 5 50088 NULL
-+altera_swap_dr_50090 altera_swap_dr 2 50090 NULL
-+sys_keyctl_33708 sys_keyctl 4 33708 NULL nohasharray
-+netlink_sendmsg_33708 netlink_sendmsg 4 33708 &sys_keyctl_33708
-+ata_host_alloc_pinfo_17325 ata_host_alloc_pinfo 3 17325 NULL
-+iscsi_decode_text_input_58292 iscsi_decode_text_input 4 58292 NULL
++readw_931 readw 0 931 NULL
 +carl9170_cmd_buf_950 carl9170_cmd_buf 3 950 NULL
-+pvr2_stream_buffer_count_33719 pvr2_stream_buffer_count 2 33719 NULL
-+get_packet_41914 get_packet 3 41914 NULL
-+get_fdb_entries_41916 get_fdb_entries 3 41916 NULL
-+ceph_get_direct_page_vector_41917 ceph_get_direct_page_vector 2 41917 NULL
-+read_file_slot_50111 read_file_slot 3 50111 NULL
-+netlink_recvmsg_61600 netlink_recvmsg 4 61600 NULL
-+ieee80211_if_read_dot11MeshHWMPperrMinInterval_17346 ieee80211_if_read_dot11MeshHWMPperrMinInterval 3 17346 NULL
-+ath6kl_wmi_send_mgmt_cmd_17347 ath6kl_wmi_send_mgmt_cmd 7 17347 NULL
-+serverworks_create_gatt_pages_46582 serverworks_create_gatt_pages 1 46582 NULL
-+ieee80211_if_read_path_refresh_time_25545 ieee80211_if_read_path_refresh_time 3 25545 NULL
-+tx_tx_start_int_templates_read_58324 tx_tx_start_int_templates_read 3 58324 NULL
-+copy_items_50140 copy_items 6 50140 NULL
-+omfs_readpages_42490 omfs_readpages 4 42490 NULL
-+pcim_iomap_58334 pcim_iomap 3 58334 NULL
-+diva_init_dma_map_58336 diva_init_dma_map 3 58336 NULL
-+map_addr_56144 map_addr 7 56144 NULL
-+vifs_state_read_33762 vifs_state_read 3 33762 NULL
-+btmrvl_psstate_read_50683 btmrvl_psstate_read 3 50683 NULL
++ieee80211_ie_build_vht_cap_956 ieee80211_ie_build_vht_cap 0 956 NULL nohasharray
++__nodes_weight_956 __nodes_weight 2-0 956 &ieee80211_ie_build_vht_cap_956
++sys_msgrcv_959 sys_msgrcv 3 959 NULL
 +hdlcdev_rx_997 hdlcdev_rx 3 997 NULL
-+portnames_read_41958 portnames_read 3 41958 NULL
-+ubi_self_check_all_ff_41959 ubi_self_check_all_ff 4 41959 NULL
-+hashtab_create_33769 hashtab_create 3 33769 NULL
-+alloc_group_attrs_9194 alloc_group_attrs 2 9194 NULL nohasharray
-+altera_swap_ir_9194 altera_swap_ir 2 9194 &alloc_group_attrs_9194
-+vmalloc_to_sg_58354 vmalloc_to_sg 2 58354 NULL
-+aac_nark_ioremap_50163 aac_nark_ioremap 2 50163 NULL nohasharray
-+kmalloc_node_50163 kmalloc_node 1 50163 &aac_nark_ioremap_50163
-+cx24116_writeregN_41975 cx24116_writeregN 4 41975 NULL
-+odev_update_50169 odev_update 2 50169 NULL
-+ubi_resize_volume_50172 ubi_resize_volume 2 50172 NULL
 +smk_write_cipso2_1021 smk_write_cipso2 3 1021 NULL
-+__devres_alloc_25598 __devres_alloc 2 25598 NULL
-+snd_compr_write_data_46592 snd_compr_write_data 3 46592 NULL
-+netpoll_send_udp_58955 netpoll_send_udp 3 58955 NULL
-+tx_tx_prepared_descs_read_9221 tx_tx_prepared_descs_read 3 9221 NULL
-+ib_send_cm_drep_50186 ib_send_cm_drep 3 50186 NULL
-+do_write_orph_node_64343 do_write_orph_node 2 64343 NULL
-+qla4xxx_post_aen_work_46953 qla4xxx_post_aen_work 3 46953 NULL
-+lpfc_debugfs_dif_err_write_17424 lpfc_debugfs_dif_err_write 3 17424 NULL
-+il_dbgfs_status_read_58388 il_dbgfs_status_read 3 58388 NULL
-+cfg80211_roamed_bss_50198 cfg80211_roamed_bss 4-6 50198 NULL
-+lguest_map_42008 lguest_map 1-2 42008 NULL
-+proc_coredump_filter_write_25625 proc_coredump_filter_write 3 25625 NULL
-+sta_connected_time_read_17435 sta_connected_time_read 3 17435 NULL
-+pool_allocate_42012 pool_allocate 3 42012 NULL
-+l2cap_sock_setsockopt_50207 l2cap_sock_setsockopt 5 50207 NULL
-+sctp_make_init_58401 sctp_make_init 4 58401 NULL
-+ieee80211_skb_resize_50211 ieee80211_skb_resize 3 50211 NULL
++lp872x_select_buck_vout_addr_1045 lp872x_select_buck_vout_addr 0 1045 NULL
 +gigaset_initdriver_1060 gigaset_initdriver 2 1060 NULL
-+sep_create_msgarea_context_33829 sep_create_msgarea_context 4 33829 NULL
-+skb_do_copy_data_nocache_12465 skb_do_copy_data_nocache 5 12465 NULL
-+udplite_manip_pkt_33832 udplite_manip_pkt 4 33832 NULL
-+tcf_csum_ipv4_icmp_9258 tcf_csum_ipv4_icmp 3 9258 NULL
-+acpi_ut_create_buffer_object_42030 acpi_ut_create_buffer_object 1 42030 NULL
++Read_hfc16_1070 Read_hfc16 0 1070 NULL
 +mce_request_packet_1073 mce_request_packet 3 1073 NULL
 +agp_create_memory_1075 agp_create_memory 1 1075 NULL
-+sparse_early_usemaps_alloc_node_9269 sparse_early_usemaps_alloc_node 4 9269 NULL
-+__hwahc_op_set_gtk_42038 __hwahc_op_set_gtk 4 42038 NULL
-+iscsi_offload_mesg_58425 iscsi_offload_mesg 5 58425 NULL
-+mon_bin_compat_ioctl_50234 mon_bin_compat_ioctl 3 50234 NULL
 +_scsih_adjust_queue_depth_1083 _scsih_adjust_queue_depth 2 1083 NULL
-+oz_cdev_write_33852 oz_cdev_write 3 33852 NULL
 +nfs_pgarray_set_1085 nfs_pgarray_set 2 1085 NULL
-+irda_sendmsg_ultra_42047 irda_sendmsg_ultra 4 42047 NULL
-+sg_kmalloc_50240 sg_kmalloc 1 50240 NULL
-+ps_poll_upsd_max_ap_turn_read_42050 ps_poll_upsd_max_ap_turn_read 3 42050 NULL
 +llcp_sock_sendmsg_1092 llcp_sock_sendmsg 4 1092 NULL
-+probe_kernel_write_17481 probe_kernel_write 3 17481 NULL
-+InterfaceTransmitPacket_42058 InterfaceTransmitPacket 3 42058 NULL
-+__alloc_session_17485 __alloc_session 2-1 17485 NULL
-+TSS_rawhmac_17486 TSS_rawhmac 3 17486 NULL
-+pm860x_bulk_write_43875 pm860x_bulk_write 3 43875 NULL
-+afs_extract_data_50261 afs_extract_data 5 50261 NULL
-+config_proc_write_33878 config_proc_write 3 33878 NULL
-+capabilities_read_58457 capabilities_read 3 58457 NULL
-+sta_inactive_ms_read_25690 sta_inactive_ms_read 3 25690 NULL
-+iwl_dbgfs_stations_read_9309 iwl_dbgfs_stations_read 3 9309 NULL
-+lpfc_idiag_baracc_read_58466 lpfc_idiag_baracc_read 3 58466 NULL nohasharray
-+compat_do_ipt_set_ctl_58466 compat_do_ipt_set_ctl 4 58466 &lpfc_idiag_baracc_read_58466
-+scsi_execute_req_42088 scsi_execute_req 5 42088 NULL
-+hcd_buffer_alloc_27495 hcd_buffer_alloc 2 27495 NULL
-+rxrpc_setsockopt_50286 rxrpc_setsockopt 5 50286 NULL
-+sk_chk_filter_42095 sk_chk_filter 2 42095 NULL
-+rx_filter_mc_filter_read_25712 rx_filter_mc_filter_read 3 25712 NULL
-+ibmasm_new_command_25714 ibmasm_new_command 2 25714 NULL
-+snd_rme96_capture_copy_58484 snd_rme96_capture_copy 5 58484 NULL
-+event_tx_stuck_read_19305 event_tx_stuck_read 3 19305 NULL
-+batadv_bla_is_backbone_gw_58488 batadv_bla_is_backbone_gw 3 58488 NULL
-+v4l2_ctrl_new_int_menu_41151 v4l2_ctrl_new_int_menu 4 41151 NULL
-+submit_inquiry_42108 submit_inquiry 3 42108 NULL
-+sel_write_context_25726 sel_write_context 3 25726 NULL nohasharray
-+__alloc_bootmem_low_node_25726 __alloc_bootmem_low_node 2 25726 &sel_write_context_25726
-+sysfs_read_file_42113 sysfs_read_file 3 42113 NULL
-+mcs_unwrap_fir_25733 mcs_unwrap_fir 3 25733 NULL
-+vme_user_write_15587 vme_user_write 3 15587 NULL
-+xlog_do_log_recovery_17550 xlog_do_log_recovery 3 17550 NULL
-+__copy_to_user_17551 __copy_to_user 3 17551 NULL
-+cxgbi_device_portmap_create_25747 cxgbi_device_portmap_create 3 25747 NULL
-+sel_read_avc_cache_threshold_33942 sel_read_avc_cache_threshold 3 33942 NULL
-+lpfc_idiag_ctlacc_read_33943 lpfc_idiag_ctlacc_read 3 33943 NULL
-+read_file_tgt_rx_stats_33944 read_file_tgt_rx_stats 3 33944 NULL
-+nouveau_engine_create__50331 nouveau_engine_create_ 7 50331 NULL
-+lpfc_idiag_pcicfg_read_50334 lpfc_idiag_pcicfg_read 3 50334 NULL
-+v9fs_alloc_rdir_buf_42150 v9fs_alloc_rdir_buf 2 42150 NULL
-+roccat_common2_send_with_status_50343 roccat_common2_send_with_status 4 50343 NULL
++nfs4_init_nonuniform_client_string_1097 nfs4_init_nonuniform_client_string 3 1097 NULL
++store_risefalltime_1109 store_risefalltime 5 1109 NULL
++cfg80211_report_obss_beacon_1133 cfg80211_report_obss_beacon 3 1133 NULL
++vmalloc_32_1135 vmalloc_32 1 1135 NULL
++i2400m_rx_ctl_1157 i2400m_rx_ctl 4 1157 NULL
 +ipc_alloc_1192 ipc_alloc 1 1192 NULL
-+mwifiex_info_read_53447 mwifiex_info_read 3 53447 NULL
 +ib_create_send_mad_1196 ib_create_send_mad 5 1196 NULL
-+rndis_add_response_58544 rndis_add_response 2 58544 NULL
-+isdn_ppp_read_50356 isdn_ppp_read 4 50356 NULL
-+read_9397 read 3 9397 NULL
++i2400m_rx_ctl_ack_1199 i2400m_rx_ctl_ack 3 1199 NULL
++dgrp_dpa_read_1204 dgrp_dpa_read 3 1204 NULL
 +i2cdev_read_1206 i2cdev_read 3 1206 NULL
-+read_file_base_eeprom_42168 read_file_base_eeprom 3 42168 NULL
-+printer_write_60276 printer_write 3 60276 NULL
-+acpi_ut_create_package_object_17594 acpi_ut_create_package_object 1 17594 NULL
-+neigh_hash_alloc_17595 neigh_hash_alloc 1 17595 NULL
-+rts51x_write_mem_17598 rts51x_write_mem 4 17598 NULL
-+vga_switcheroo_debugfs_write_33984 vga_switcheroo_debugfs_write 3 33984 NULL
-+roccat_common2_receive_50369 roccat_common2_receive 4 50369 NULL
-+oprofilefs_str_to_user_42182 oprofilefs_str_to_user 3 42182 NULL
-+osst_execute_17607 osst_execute 7-6 17607 NULL
-+nf_nat_sip_expect_9418 nf_nat_sip_expect 8 9418 NULL
-+sl_alloc_bufs_50380 sl_alloc_bufs 2 50380 NULL
 +ipw_packet_received_skb_1230 ipw_packet_received_skb 2 1230 NULL
-+ieee80211_if_read_dot11MeshHWMPactivePathToRootTimeout_17618 ieee80211_if_read_dot11MeshHWMPactivePathToRootTimeout 3 17618 NULL
-+rx_rx_frame_checksum_read_40140 rx_rx_frame_checksum_read 3 40140 NULL
-+sys32_rt_sigpending_25814 sys32_rt_sigpending 2 25814 NULL
-+bm_realloc_pages_9431 bm_realloc_pages 2 9431 NULL
++thin_status_1239 thin_status 5 1239 NULL
 +acpi_battery_write_alarm_1240 acpi_battery_write_alarm 3 1240 NULL
-+joydev_ioctl_common_49359 joydev_ioctl_common 2 49359 NULL
-+ffs_ep0_write_9438 ffs_ep0_write 3 9438 NULL
-+xip_file_read_58592 xip_file_read 3 58592 NULL
-+iwl_dbgfs_ucode_tx_stats_read_31611 iwl_dbgfs_ucode_tx_stats_read 3 31611 NULL
-+kmalloc_array_9444 kmalloc_array 1-2 9444 NULL
-+__ntfs_malloc_34022 __ntfs_malloc 1 34022 NULL
-+l2tp_ip_sendmsg_50411 l2tp_ip_sendmsg 4 50411 NULL
-+mcs_unwrap_mir_9455 mcs_unwrap_mir 3 9455 NULL
-+ppp_write_34034 ppp_write 3 34034 NULL
++ocfs2_extend_file_1266 ocfs2_extend_file 3 1266 NULL
 +qla4xxx_change_queue_depth_1268 qla4xxx_change_queue_depth 2 1268 NULL
-+iscsi_create_conn_50425 iscsi_create_conn 2 50425 NULL
-+tty_insert_flip_string_34042 tty_insert_flip_string 3 34042 NULL
-+packet_setsockopt_17662 packet_setsockopt 5 17662 NULL
++ioctl_private_iw_point_1273 ioctl_private_iw_point 7 1273 NULL
 +batadv_tt_prepare_packet_buff_1280 batadv_tt_prepare_packet_buff 4 1280 NULL
-+do_arpt_set_ctl_51053 do_arpt_set_ctl 4 51053 NULL
-+module_alloc_update_bounds_rx_58634 module_alloc_update_bounds_rx 1 58634 NULL nohasharray
-+efi_ioremap_58634 efi_ioremap 1-2 58634 &module_alloc_update_bounds_rx_58634
-+btmrvl_hsmode_write_42252 btmrvl_hsmode_write 3 42252 NULL
-+rx_defrag_need_decrypt_read_42253 rx_defrag_need_decrypt_read 3 42253 NULL
-+dsp_tone_hw_message_17678 dsp_tone_hw_message 3 17678 NULL
-+netxen_nic_map_indirect_address_128M_42257 netxen_nic_map_indirect_address_128M 2 42257 NULL
-+ulog_alloc_skb_23427 ulog_alloc_skb 1 23427 NULL
-+__alloc_preds_9492 __alloc_preds 2 9492 NULL
-+pgctrl_write_50453 pgctrl_write 3 50453 NULL
-+pwr_enable_ps_read_17686 pwr_enable_ps_read 3 17686 NULL
-+read_file_ant_diversity_34071 read_file_ant_diversity 3 34071 NULL
-+tx_tx_start_fw_gen_read_58648 tx_tx_start_fw_gen_read 3 58648 NULL
-+ath6kl_regread_read_25884 ath6kl_regread_read 3 25884 NULL
-+tm6000_i2c_recv_regs16_2949 tm6000_i2c_recv_regs16 5 2949 NULL
-+savu_sysfs_write_42273 savu_sysfs_write 6 42273 NULL
-+uvc_v4l2_ioctl_8411 uvc_v4l2_ioctl 2 8411 NULL
-+lp_write_9511 lp_write 3 9511 NULL
-+__einj_error_trigger_17707 __einj_error_trigger 1 17707 NULL nohasharray
-+venus_rename_17707 venus_rename 5-4 17707 &__einj_error_trigger_17707
-+cdrom_read_cdda_50478 cdrom_read_cdda 4 50478 NULL
-+nfs_readdir_make_qstr_12509 nfs_readdir_make_qstr 3 12509 NULL
-+lpfc_change_queue_depth_25905 lpfc_change_queue_depth 2 25905 NULL
-+scsi_tgt_kspace_exec_9522 scsi_tgt_kspace_exec 8 9522 NULL
-+do_jffs2_setxattr_25910 do_jffs2_setxattr 5 25910 NULL
-+do_xip_mapping_read_60297 do_xip_mapping_read 5 60297 NULL
-+read_file_dma_9530 read_file_dma 3 9530 NULL
-+sel_read_perm_42302 sel_read_perm 3 42302 NULL
-+rcname_read_25919 rcname_read 3 25919 NULL
-+sctp_setsockopt_del_key_42304 sctp_setsockopt_del_key 3 42304 NULL nohasharray
-+ulong_read_file_42304 ulong_read_file 3 42304 &sctp_setsockopt_del_key_42304
-+tps6586x_writes_58689 tps6586x_writes 3 58689 NULL
-+il_dbgfs_rx_stats_read_15243 il_dbgfs_rx_stats_read 3 15243 NULL
-+xfs_vm_readpages_42308 xfs_vm_readpages 4 42308 NULL
-+exofs_read_lookup_dev_table_17733 exofs_read_lookup_dev_table 3 17733 NULL
-+pwr_rcvd_awake_beacons_read_50505 pwr_rcvd_awake_beacons_read 3 50505 NULL
-+snd_es1938_capture_copy_25930 snd_es1938_capture_copy 5 25930 NULL
-+key_flags_read_25931 key_flags_read 3 25931 NULL
-+audit_log_n_untrustedstring_9548 audit_log_n_untrustedstring 3 9548 NULL
-+sctpprobe_read_17741 sctpprobe_read 3 17741 NULL
++tx_frag_in_process_called_read_1290 tx_frag_in_process_called_read 3 1290 NULL
++compat_put_u64_1319 compat_put_u64 1 1319 NULL
++ffs_1322 ffs 0 1322 NULL
++carl9170_rx_stream_1334 carl9170_rx_stream 3 1334 NULL
++btrfs_submit_compressed_write_1347 btrfs_submit_compressed_write 5 1347 NULL
++gen_pool_best_fit_1348 gen_pool_best_fit 2-3-4 1348 NULL
++io_mapping_create_wc_1354 io_mapping_create_wc 1-2 1354 NULL
++snd_pcm_lib_write1_1358 snd_pcm_lib_write1 0-3 1358 NULL
 +ipx_sendmsg_1362 ipx_sendmsg 4 1362 NULL
-+hysdn_conf_read_42324 hysdn_conf_read 3 42324 NULL
-+islpci_mgt_transmit_34133 islpci_mgt_transmit 5 34133 NULL
-+pipeline_dec_packet_in_fifo_full_read_33052 pipeline_dec_packet_in_fifo_full_read 3 33052 NULL
-+fw_node_create_9559 fw_node_create 2 9559 NULL
 +fw_stats_raw_read_1369 fw_stats_raw_read 3 1369 NULL
-+ixgbe_dbg_netdev_ops_write_34141 ixgbe_dbg_netdev_ops_write 3 34141 NULL
-+kobj_map_9566 kobj_map 2-3 9566 NULL
-+snd_pcm_plug_alloc_42339 snd_pcm_plug_alloc 2 42339 NULL
-+acpi_map_58725 acpi_map 1-2 58725 NULL
-+brcmf_usb_attach_17766 brcmf_usb_attach 2-3 17766 NULL
++ocfs2_prepare_inode_for_write_1372 ocfs2_prepare_inode_for_write 3 1372 NULL
 +sctp_setsockopt_initmsg_1383 sctp_setsockopt_initmsg 3 1383 NULL
-+fwnet_receive_packet_50537 fwnet_receive_packet 9 50537 NULL
 +do_msgsnd_1387 do_msgsnd 4 1387 NULL
-+ieee80211_tdls_mgmt_9581 ieee80211_tdls_mgmt 8 9581 NULL
-+snd_rawmidi_kernel_read_4328 snd_rawmidi_kernel_read 3 4328 NULL
-+ide_raw_taskfile_42355 ide_raw_taskfile 4 42355 NULL
-+udp_recvmsg_42558 udp_recvmsg 4 42558 NULL
++zone_page_state_1393 zone_page_state 0 1393 NULL
 +file_read_actor_1401 file_read_actor 4 1401 NULL
-+av7110_ipack_init_46655 av7110_ipack_init 2 46655 NULL
-+ieee80211_if_write_tkip_mic_test_58748 ieee80211_if_write_tkip_mic_test 3 58748 NULL
-+ubifs_leb_change_17789 ubifs_leb_change 4 17789 NULL
-+udp_setsockopt_25985 udp_setsockopt 5 25985 NULL
-+do_sync_9604 do_sync 1 9604 NULL
-+snd_emu10k1_fx8010_read_9605 snd_emu10k1_fx8010_read 5 9605 NULL
-+scsi_host_alloc_63041 scsi_host_alloc 2 63041 NULL
-+agp_allocate_memory_58761 agp_allocate_memory 2 58761 NULL
-+__do_config_autodelink_58763 __do_config_autodelink 3 58763 NULL
-+sctp_sf_abort_violation_1420 sctp_sf_abort_violation 7 1420 NULL
-+afs_cell_alloc_24052 afs_cell_alloc 2 24052 NULL
-+il_dbgfs_disable_ht40_read_42386 il_dbgfs_disable_ht40_read 3 42386 NULL
-+lpfc_sli_probe_sriov_nr_virtfn_26004 lpfc_sli_probe_sriov_nr_virtfn 2 26004 NULL
-+qib_alloc_fast_reg_mr_12526 qib_alloc_fast_reg_mr 2 12526 NULL
-+fat_readpages_50582 fat_readpages 4 50582 NULL nohasharray
-+pep_reply_50582 pep_reply 5 50582 &fat_readpages_50582
-+iwl_dbgfs_missed_beacon_read_50584 iwl_dbgfs_missed_beacon_read 3 50584 NULL
-+saa7164_buffer_alloc_user_9627 saa7164_buffer_alloc_user 2 9627 NULL
-+_snd_pcm_lib_alloc_vmalloc_buffer_17820 _snd_pcm_lib_alloc_vmalloc_buffer 2 17820 NULL
-+xfs_readdir_41200 xfs_readdir 3 41200 NULL
-+sge_rx_50594 sge_rx 3 50594 NULL
++lm3533_als_get_threshold_reg_1404 lm3533_als_get_threshold_reg 0-1 1404 NULL
 +stack_max_size_read_1445 stack_max_size_read 3 1445 NULL
-+compat_sys_keyctl_9639 compat_sys_keyctl 4 9639 NULL
-+skb_padto_50759 skb_padto 2 50759 NULL
-+raw_send_hdrinc_58803 raw_send_hdrinc 4 58803 NULL
-+mptscsih_change_queue_depth_26036 mptscsih_change_queue_depth 2 26036 NULL
-+selinux_inode_post_setxattr_26037 selinux_inode_post_setxattr 4 26037 NULL
-+isku_sysfs_read_58806 isku_sysfs_read 6 58806 NULL
 +tx_queue_len_read_1463 tx_queue_len_read 3 1463 NULL
-+uvc_alloc_buffers_9656 uvc_alloc_buffers 2-3 9656 NULL
-+queue_received_packet_9657 queue_received_packet 5 9657 NULL
-+ep_read_58813 ep_read 3 58813 NULL
 +xprt_alloc_1475 xprt_alloc 2 1475 NULL
-+gsm_data_alloc_42437 gsm_data_alloc 3 42437 NULL
-+snd_opl4_mem_proc_write_9670 snd_opl4_mem_proc_write 5 9670 NULL
-+pci_enable_sriov_35745 pci_enable_sriov 2 35745 NULL
-+sisusb_send_bulk_msg_17864 sisusb_send_bulk_msg 3 17864 NULL
-+simple_transaction_get_50633 simple_transaction_get 3 50633 NULL
-+key_conf_keyidx_read_42443 key_conf_keyidx_read 3 42443 NULL
-+dns_query_9676 dns_query 3 9676 NULL
-+keyctl_update_key_26061 keyctl_update_key 3 26061 NULL
 +sta_num_ps_buf_frames_read_1488 sta_num_ps_buf_frames_read 3 1488 NULL
-+ray_cs_essid_proc_write_17875 ray_cs_essid_proc_write 3 17875 NULL
-+orinoco_set_key_17878 orinoco_set_key 5-7 17878 NULL
-+bl_pipe_downcall_34264 bl_pipe_downcall 3 34264 NULL
-+command_write_58841 command_write 3 58841 NULL
-+short_retry_limit_read_4687 short_retry_limit_read 3 4687 NULL
-+dev_config_8506 dev_config 3 8506 NULL
-+compat_sys_pwritev_17886 compat_sys_pwritev 3 17886 NULL
-+sys_readv_50664 sys_readv 3 50664 NULL
-+bnad_debugfs_read_50665 bnad_debugfs_read 3 50665 NULL
-+__simple_xattr_set_42474 __simple_xattr_set 4 42474 NULL
-+ath6kl_wmi_send_action_cmd_58860 ath6kl_wmi_send_action_cmd 7 58860 NULL
-+rx_rx_wa_density_dropped_frame_read_26095 rx_rx_wa_density_dropped_frame_read 3 26095 NULL
-+recover_head_17904 recover_head 3 17904 NULL
-+dccp_feat_register_sp_17914 dccp_feat_register_sp 5 17914 NULL
-+xfs_buf_associate_memory_17915 xfs_buf_associate_memory 3 17915 NULL
-+brcmf_sdbrcm_bus_txctl_42492 brcmf_sdbrcm_bus_txctl 3 42492 NULL
-+srp_iu_pool_alloc_17920 srp_iu_pool_alloc 2 17920 NULL
-+gs_alloc_req_58883 gs_alloc_req 2 58883 NULL
-+pvr2_v4l2_read_18006 pvr2_v4l2_read 3 18006 NULL
-+cs553x_init_one_58886 cs553x_init_one 3 58886 NULL
-+ddb_input_read_9743 ddb_input_read 3 9743 NULL
-+skb_cow_26138 skb_cow 2 26138 NULL
-+smk_write_netlbladdr_42525 smk_write_netlbladdr 3 42525 NULL
-+snd_emux_create_port_42533 snd_emux_create_port 3 42533 NULL
-+do_sigpending_9766 do_sigpending 2 9766 NULL
-+hysdn_conf_write_52145 hysdn_conf_write 3 52145 NULL
-+pipeline_cs_rx_packet_out_read_58926 pipeline_cs_rx_packet_out_read 3 58926 NULL
-+blk_check_plugged_50736 blk_check_plugged 3 50736 NULL
-+__blk_queue_init_tags_9778 __blk_queue_init_tags 2 9778 NULL
-+copy_oldmem_page_26164 copy_oldmem_page 3-1 26164 NULL
-+i915_ring_stop_read_42549 i915_ring_stop_read 3 42549 NULL nohasharray
-+ath6kl_wmi_proc_events_vif_42549 ath6kl_wmi_proc_events_vif 5 42549 &i915_ring_stop_read_42549
-+ath6kl_roam_table_read_26166 ath6kl_roam_table_read 3 26166 NULL
-+snd_mem_proc_write_9786 snd_mem_proc_write 3 9786 NULL
++posix_acl_permission_1495 posix_acl_permission 0 1495 NULL
++tomoyo_round2_1518 tomoyo_round2 0 1518 NULL
++alloc_perm_bits_1532 alloc_perm_bits 2 1532 NULL
++ieee80211_if_read_dot11MeshHWMPnetDiameterTraversalTime_1589 ieee80211_if_read_dot11MeshHWMPnetDiameterTraversalTime 3 1589 NULL
 +fc_frame_alloc_1596 fc_frame_alloc 2 1596 NULL
-+rngapi_reset_34366 rngapi_reset 3 34366 NULL nohasharray
-+p54_alloc_skb_34366 p54_alloc_skb 3 34366 &rngapi_reset_34366
-+iwl_calib_set_34400 iwl_calib_set 3 34400 NULL nohasharray
-+ivtv_read_pos_34400 ivtv_read_pos 3 34400 &iwl_calib_set_34400
-+solo_v4l2_read_59247 solo_v4l2_read 3 59247 NULL
-+smk_write_cipso_17989 smk_write_cipso 3 17989 NULL
 +packet_buffer_init_1607 packet_buffer_init 2 1607 NULL
-+reiserfs_resize_34377 reiserfs_resize 2 34377 NULL
-+get_registers_26187 get_registers 3 26187 NULL
-+cgroup_setxattr_26188 cgroup_setxattr 4 26188 NULL
-+ttm_bo_fbdev_io_9805 ttm_bo_fbdev_io 4 9805 NULL
 +btmrvl_hscmd_read_1614 btmrvl_hscmd_read 3 1614 NULL
-+av7110_vbi_write_34384 av7110_vbi_write 3 34384 NULL
-+usbvision_v4l2_read_34386 usbvision_v4l2_read 3 34386 NULL
-+snd_pcm_oss_write2_27332 snd_pcm_oss_write2 3 27332 NULL
-+udpv6_recvmsg_9813 udpv6_recvmsg 4 9813 NULL nohasharray
-+ieee80211_if_read_state_9813 ieee80211_if_read_state 3 9813 &udpv6_recvmsg_9813
-+tm6000_read_write_usb_50774 tm6000_read_write_usb 7 50774 NULL nohasharray
-+pipe_handler_request_50774 pipe_handler_request 5 50774 &tm6000_read_write_usb_50774
-+xfs_idata_realloc_26199 xfs_idata_realloc 2 26199 NULL
-+mce_write_26201 mce_write 3 26201 NULL
-+iwch_alloc_fastreg_pbl_40153 iwch_alloc_fastreg_pbl 2 40153 NULL
-+bio_alloc_map_data_50782 bio_alloc_map_data 1-2 50782 NULL
-+alloc_rx_desc_ring_18016 alloc_rx_desc_ring 2 18016 NULL
-+oom_score_adj_write_42594 oom_score_adj_write 3 42594 NULL
-+smk_write_load2_52155 smk_write_load2 3 52155 NULL
-+__pskb_pull_42602 __pskb_pull 2 42602 NULL
-+sctp_make_heartbeat_ack_34411 sctp_make_heartbeat_ack 4 34411 NULL
-+tpm_write_50798 tpm_write 3 50798 NULL
++v9fs_fid_xattr_get_1618 v9fs_fid_xattr_get 0 1618 NULL
 +btmrvl_hsmode_read_1647 btmrvl_hsmode_read 3 1647 NULL
-+tun_do_read_50800 tun_do_read 4 50800 NULL
-+handle_rx_packet_58993 handle_rx_packet 3 58993 NULL
-+write_flush_50803 write_flush 3 50803 NULL
-+_scsih_change_queue_depth_26230 _scsih_change_queue_depth 2 26230 NULL
-+rxrpc_recvmsg_26233 rxrpc_recvmsg 4 26233 NULL
 +ikconfig_read_current_1658 ikconfig_read_current 3 1658 NULL
-+dvb_play_50814 dvb_play 3 50814 NULL
-+cryptd_alloc_instance_18048 cryptd_alloc_instance 2-3 18048 NULL
-+sys_move_pages_42626 sys_move_pages 2 42626 NULL
-+ddebug_proc_write_18055 ddebug_proc_write 3 18055 NULL
-+pmcraid_alloc_sglist_9864 pmcraid_alloc_sglist 1 9864 NULL
-+btrfs_free_reserved_extent_9867 btrfs_free_reserved_extent 2 9867 NULL
-+usbtest_alloc_urb_34446 usbtest_alloc_urb 3-5 34446 NULL
-+dma_attach_50831 dma_attach 6-7 50831 NULL
-+scsi_activate_tcq_42640 scsi_activate_tcq 2 42640 NULL
-+br_mdb_rehash_42643 br_mdb_rehash 2 42643 NULL
-+vhci_put_user_12604 vhci_put_user 4 12604 NULL
-+packet_came_18072 packet_came 3 18072 NULL
-+init_pci_cap_msi_perm_59033 init_pci_cap_msi_perm 2 59033 NULL
-+kvm_read_guest_page_18074 kvm_read_guest_page 5 18074 NULL
-+sctp_make_abort_34459 sctp_make_abort 3 34459 NULL
-+_regmap_raw_write_42652 _regmap_raw_write 4 42652 NULL
-+selinux_transaction_write_59038 selinux_transaction_write 3 59038 NULL
-+get_vm_area_18080 get_vm_area 1 18080 NULL
-+dvb_dvr_set_buffer_size_9840 dvb_dvr_set_buffer_size 2 9840 NULL
-+bm_register_write_9893 bm_register_write 3 9893 NULL nohasharray
-+snd_midi_event_new_9893 snd_midi_event_new 1 9893 &bm_register_write_9893
-+self_check_write_50856 self_check_write 5 50856 NULL
-+line6_dumpreq_init_34473 line6_dumpreq_init 3 34473 NULL
-+i2o_parm_field_get_34477 i2o_parm_field_get 5 34477 NULL
-+mpi_alloc_18094 mpi_alloc 1 18094 NULL
++netdev_feature_string_1667 netdev_feature_string 0 1667 NULL
++compat_x25_ioctl_1674 compat_x25_ioctl 3 1674 NULL
++rmap_add_1677 rmap_add 3 1677 NULL
++configfs_read_file_1683 configfs_read_file 3 1683 NULL
 +coda_psdev_write_1711 coda_psdev_write 3 1711 NULL
-+l2tp_xmit_skb_42672 l2tp_xmit_skb 3 42672 NULL
-+bitmap_resize_33054 bitmap_resize 2 33054 NULL
-+mga_compat_ioctl_52170 mga_compat_ioctl 2 52170 NULL
-+mgmt_pending_add_46976 mgmt_pending_add 5 46976 NULL
-+sis190_try_rx_copy_57069 sis190_try_rx_copy 3 57069 NULL
-+dfs_file_read_18116 dfs_file_read 3 18116 NULL
-+request_key_and_link_42693 request_key_and_link 4 42693 NULL
-+vb2_read_42703 vb2_read 3 42703 NULL
-+pwr_wake_on_host_read_26321 pwr_wake_on_host_read 3 26321 NULL
-+hvc_alloc_12579 hvc_alloc 4 12579 NULL
++btrfs_dir_data_len_1714 btrfs_dir_data_len 0 1714 NULL
++dma_memcpy_pg_to_iovec_1725 dma_memcpy_pg_to_iovec 6 1725 NULL
 +tx_frag_called_read_1748 tx_frag_called_read 3 1748 NULL
-+snd_pcm_plugin_alloc_12580 snd_pcm_plugin_alloc 2 12580 NULL
-+pstore_ftrace_knob_read_9947 pstore_ftrace_knob_read 3 9947 NULL
-+read_file_misc_9948 read_file_misc 3 9948 NULL
-+xfs_iext_remove_50909 xfs_iext_remove 3 50909 NULL
-+set_rxd_buffer_pointer_9950 set_rxd_buffer_pointer 8 9950 NULL
-+selinux_inode_setsecurity_18148 selinux_inode_setsecurity 4 18148 NULL
-+csum_partial_copy_fromiovecend_9957 csum_partial_copy_fromiovecend 3-4 9957 NULL
-+tracing_stats_read_34537 tracing_stats_read 3 34537 NULL
-+hash_recvmsg_50924 hash_recvmsg 4 50924 NULL
-+dvb_demux_ioctl_42733 dvb_demux_ioctl 2 42733 NULL
++compat_cdrom_generic_command_1756 compat_cdrom_generic_command 4 1756 NULL
++ieee80211_new_mesh_header_1761 ieee80211_new_mesh_header 0 1761 NULL
++ebt_size_mwt_1768 ebt_size_mwt 0 1768 NULL
 +cosa_write_1774 cosa_write 3 1774 NULL
-+set_aoe_iflist_42737 set_aoe_iflist 2 42737 NULL
-+hugetlbfs_read_actor_34547 hugetlbfs_read_actor 2-5-4 34547 NULL
-+ax25_setsockopt_42740 ax25_setsockopt 5 42740 NULL
-+btrfs_add_link_9973 btrfs_add_link 5 9973 NULL
-+bnx2fc_cmd_mgr_alloc_24873 bnx2fc_cmd_mgr_alloc 3-2 24873 NULL
-+cifs_readdata_alloc_26360 cifs_readdata_alloc 1 26360 NULL
-+ath6kl_usb_submit_ctrl_out_9978 ath6kl_usb_submit_ctrl_out 6 9978 NULL
-+dup_to_netobj_26363 dup_to_netobj 3 26363 NULL
-+sock_bindtodevice_50942 sock_bindtodevice 3 50942 NULL
-+pccard_store_cis_18176 pccard_store_cis 6 18176 NULL
++update_macheader_1775 update_macheader 7 1775 NULL
 +fcoe_ctlr_device_add_1793 fcoe_ctlr_device_add 3 1793 NULL
-+alloc_ieee80211_rsl_34564 alloc_ieee80211_rsl 1 34564 NULL
-+mld_newpack_50950 mld_newpack 2 50950 NULL
-+framebuffer_alloc_59145 framebuffer_alloc 1 59145 NULL
-+i915_ring_stop_write_59010 i915_ring_stop_write 3 59010 NULL
-+radeon_compat_ioctl_59150 radeon_compat_ioctl 2 59150 NULL
-+cfpkt_create_18197 cfpkt_create 1 18197 NULL
-+velocity_rx_copy_34583 velocity_rx_copy 2 34583 NULL
-+x25_recvmsg_42777 x25_recvmsg 4 42777 NULL
-+init_send_hfcd_34586 init_send_hfcd 1 34586 NULL
-+tty_insert_flip_string_fixed_flag_37428 tty_insert_flip_string_fixed_flag 4 37428 NULL
-+xfrm_dst_alloc_copy_3034 xfrm_dst_alloc_copy 3 3034 NULL
-+orinoco_add_extscan_result_18207 orinoco_add_extscan_result 3 18207 NULL
-+gsm_control_message_18209 gsm_control_message 4 18209 NULL
-+do_ipv6_setsockopt_18215 do_ipv6_setsockopt 5 18215 NULL
-+handle_request_10024 handle_request 9 10024 NULL
-+__tty_alloc_driver_53799 __tty_alloc_driver 1 53799 NULL
-+setup_window_59178 setup_window 4-2-5-7 59178 NULL
-+timeout_write_50991 timeout_write 3 50991 NULL
-+batadv_orig_hash_add_if_10033 batadv_orig_hash_add_if 2 10033 NULL
-+fw_device_op_compat_ioctl_42804 fw_device_op_compat_ioctl 2 42804 NULL
-+ip_vs_create_timeout_table_64478 ip_vs_create_timeout_table 2 64478 NULL
-+proc_write_51003 proc_write 3 51003 NULL
-+drm_ioctl_42813 drm_ioctl 2 42813 NULL
-+gnttab_alloc_grant_references_18240 gnttab_alloc_grant_references 1 18240 NULL
-+iwl_dbgfs_ucode_bt_stats_read_42820 iwl_dbgfs_ucode_bt_stats_read 3 42820 NULL
-+set_arg_42824 set_arg 3 42824 NULL
-+xfs_iext_realloc_indirect_59211 xfs_iext_realloc_indirect 2 59211 NULL
-+fast_rx_path_59214 fast_rx_path 3 59214 NULL
-+lbs_dev_info_51023 lbs_dev_info 3 51023 NULL
-+cnic_alloc_dma_34641 cnic_alloc_dma 3 34641 NULL
-+audit_log_n_string_31705 audit_log_n_string 3 31705 NULL
-+fuse_conn_congestion_threshold_read_51028 fuse_conn_congestion_threshold_read 3 51028 NULL
-+pstore_mkfile_50830 pstore_mkfile 5 50830 NULL
-+qdisc_class_hash_alloc_18262 qdisc_class_hash_alloc 1 18262 NULL
-+hidp_queue_report_1881 hidp_queue_report 3 1881 NULL
-+dt3155_read_59226 dt3155_read 3 59226 NULL
-+xfs_buf_read_uncached_42844 xfs_buf_read_uncached 3 42844 NULL
-+ieee80211_set_probe_resp_10077 ieee80211_set_probe_resp 3 10077 NULL
-+dump_midi_51040 dump_midi 3 51040 NULL
-+srpt_alloc_ioctx_51042 srpt_alloc_ioctx 2-3 51042 NULL
-+gfs2_alloc_sort_buffer_18275 gfs2_alloc_sort_buffer 1 18275 NULL
-+nf_nat_mangle_udp_packet_34661 nf_nat_mangle_udp_packet 8-6 34661 NULL
-+alloc_ring_18278 alloc_ring 2-4 18278 NULL
-+tty_prepare_flip_string_flags_59240 tty_prepare_flip_string_flags 4 59240 NULL
-+nouveau_subdev_create__18281 nouveau_subdev_create_ 7 18281 NULL
-+ext4_readpages_18283 ext4_readpages 4 18283 NULL
-+mmc_send_bus_test_18285 mmc_send_bus_test 4 18285 NULL
-+em28xx_v4l2_read_16701 em28xx_v4l2_read 3 16701 NULL
-+configfs_read_file_1683 configfs_read_file 3 1683 NULL
-+ulong_write_file_26485 ulong_write_file 3 26485 NULL
-+wusb_prf_64_51065 wusb_prf_64 7 51065 NULL
-+dvb_ca_en50221_io_ioctl_26490 dvb_ca_en50221_io_ioctl 2 26490 NULL
-+dynamic_ps_timeout_read_10110 dynamic_ps_timeout_read 3 10110 NULL
-+isr_fiqs_read_34687 isr_fiqs_read 3 34687 NULL
-+pskb_expand_head_42881 pskb_expand_head 2-3 42881 NULL
-+ip6ip6_err_18308 ip6ip6_err 5 18308 NULL
-+read_vmcore_26501 read_vmcore 3 26501 NULL
++__nodelist_scnprintf_1815 __nodelist_scnprintf 0-2-4 1815 NULL
++rx_defrag_called_read_1897 rx_defrag_called_read 3 1897 NULL
++nfs_parse_server_name_1899 nfs_parse_server_name 2 1899 NULL
 +tx_tx_retry_data_read_1926 tx_tx_retry_data_read 3 1926 NULL
-+garp_attr_create_3883 garp_attr_create 3 3883 NULL
-+tipc_port_recv_sections_42890 tipc_port_recv_sections 4 42890 NULL
-+vfio_pci_set_msi_trigger_26507 vfio_pci_set_msi_trigger 3-4 26507 NULL
-+xpc_kmalloc_cacheline_aligned_42895 xpc_kmalloc_cacheline_aligned 1 42895 NULL
-+jbd2_journal_init_revoke_51088 jbd2_journal_init_revoke 2 51088 NULL
-+ecryptfs_send_message_18322 ecryptfs_send_message 2 18322 NULL
 +cyttsp_probe_1940 cyttsp_probe 4 1940 NULL
-+SendTxCommandPacket_42901 SendTxCommandPacket 3 42901 NULL
-+btmrvl_hscfgcmd_read_56303 btmrvl_hscfgcmd_read 3 56303 NULL
-+W6692_empty_Bfifo_47804 W6692_empty_Bfifo 2 47804 NULL
-+ath6kl_wmi_send_probe_response_cmd_31728 ath6kl_wmi_send_probe_response_cmd 6 31728 NULL
-+ieee80211_if_read_num_sta_ps_34722 ieee80211_if_read_num_sta_ps 3 34722 NULL
-+exofs_read_kern_39921 exofs_read_kern 6 39921 NULL nohasharray
-+oom_score_adj_read_39921 oom_score_adj_read 3 39921 &exofs_read_kern_39921
-+btrfs_insert_dir_item_59304 btrfs_insert_dir_item 4 59304 NULL
-+aes_decrypt_packets_read_10155 aes_decrypt_packets_read 3 10155 NULL
-+rds_message_inc_copy_to_user_26540 rds_message_inc_copy_to_user 3 26540 NULL
-+iscsi_nop_out_rsp_51117 iscsi_nop_out_rsp 4 51117 NULL
-+platform_list_read_file_34734 platform_list_read_file 3 34734 NULL
-+hidg_alloc_ep_req_10159 hidg_alloc_ep_req 2 10159 NULL
-+reg_w_ixbuf_34736 reg_w_ixbuf 4 34736 NULL
-+sctp_make_datafrag_empty_34737 sctp_make_datafrag_empty 3 34737 NULL
-+pwr_power_save_off_read_18355 pwr_power_save_off_read 3 18355 NULL
-+asd_store_update_bios_10165 asd_store_update_bios 4 10165 NULL
-+__vhost_add_used_n_26554 __vhost_add_used_n 3 26554 NULL
-+fd_copyout_59323 fd_copyout 3 59323 NULL
-+nfs_map_name_to_uid_51132 nfs_map_name_to_uid 3 51132 NULL
-+proc_pid_attr_read_10173 proc_pid_attr_read 3 10173 NULL
-+read_9287_modal_eeprom_59327 read_9287_modal_eeprom 3 59327 NULL
++ieee80211_if_fmt_dot11MeshConfirmTimeout_1945 ieee80211_if_fmt_dot11MeshConfirmTimeout 3 1945 NULL
++read_swap_header_1957 read_swap_header 0 1957 NULL
++ivtv_v4l2_read_1964 ivtv_v4l2_read 3 1964 NULL
 +sel_read_avc_hash_stats_1984 sel_read_avc_hash_stats 3 1984 NULL
-+diva_alloc_dma_map_23798 diva_alloc_dma_map 2 23798 NULL
-+solos_param_store_34755 solos_param_store 4 34755 NULL
-+simple_xattr_set_51140 simple_xattr_set 4 51140 NULL
-+jffs2_user_setxattr_10182 jffs2_user_setxattr 4 10182 NULL
 +__alloc_bootmem_node_1992 __alloc_bootmem_node 2 1992 NULL
-+rx_defrag_in_process_called_read_59338 rx_defrag_in_process_called_read 3 59338 NULL
-+xfs_trans_get_efd_51148 xfs_trans_get_efd 3 51148 NULL
-+ib_send_cm_rtu_63138 ib_send_cm_rtu 3 63138 NULL
-+compat_sys_pwritev64_51151 compat_sys_pwritev64 3 51151 NULL
-+rts51x_read_mem_26577 rts51x_read_mem 4 26577 NULL nohasharray
-+batadv_receive_server_sync_packet_26577 batadv_receive_server_sync_packet 3 26577 &rts51x_read_mem_26577
-+xfs_attrmulti_attr_set_59346 xfs_attrmulti_attr_set 4 59346 NULL
-+vcc_recvmsg_37198 vcc_recvmsg 4 37198 NULL
++atomic_read_unchecked_1995 atomic_read_unchecked 0 1995 NULL
 +batadv_tt_commit_changes_2008 batadv_tt_commit_changes 4 2008 NULL
 +sep_prepare_input_dma_table_2009 sep_prepare_input_dma_table 2-3 2009 NULL
-+qib_cdev_init_34778 qib_cdev_init 1 34778 NULL
-+ubifs_write_node_11258 ubifs_write_node 5-3 11258 NULL
-+reada_tree_block_flagged_18402 reada_tree_block_flagged 3 18402 NULL
-+iscsi_if_send_reply_52219 iscsi_if_send_reply 7 52219 NULL
++rx_rx_defrag_read_2010 rx_rx_defrag_read 3 2010 NULL
++ocfs2_global_qinit_alloc_2018 ocfs2_global_qinit_alloc 0 2018 NULL
 +write_flush_pipefs_2021 write_flush_pipefs 3 2021 NULL
-+__copy_in_user_34790 __copy_in_user 3 34790 NULL
-+crystalhd_user_data_18407 crystalhd_user_data 3 18407 NULL
-+nfs_idmap_get_desc_42990 nfs_idmap_get_desc 4-2 42990 NULL
-+mwifiex_regrdwr_read_34472 mwifiex_regrdwr_read 3 34472 NULL
 +BcmCopySection_2035 BcmCopySection 5 2035 NULL
 +devm_ioremap_nocache_2036 devm_ioremap_nocache 2-3 2036 NULL
-+carl9170_debugfs_write_50857 carl9170_debugfs_write 3 50857 NULL
-+hdlc_rpr_irq_10240 hdlc_rpr_irq 2 10240 NULL
-+batadv_orig_node_add_if_18433 batadv_orig_node_add_if 2 18433 NULL
 +ath6kl_fwlog_mask_read_2050 ath6kl_fwlog_mask_read 3 2050 NULL
-+pwr_fix_tsf_ps_read_26627 pwr_fix_tsf_ps_read 3 26627 NULL
-+nfc_alloc_recv_skb_10244 nfc_alloc_recv_skb 1 10244 NULL
-+pm8001_store_update_fw_55716 pm8001_store_update_fw 4 55716 NULL
-+mangle_sdp_packet_30381 mangle_sdp_packet 10 30381 NULL
-+isr_rx_mem_overflow_read_43025 isr_rx_mem_overflow_read 3 43025 NULL
-+cciss_proc_write_10259 cciss_proc_write 3 10259 NULL
-+hest_ghes_dev_register_46766 hest_ghes_dev_register 1 46766 NULL
-+b43_debugfs_write_34838 b43_debugfs_write 3 34838 NULL
++ocfs2_expand_inline_dir_2063 ocfs2_expand_inline_dir 3 2063 NULL
 +subbuf_read_actor_2071 subbuf_read_actor 3 2071 NULL
-+fuse_perform_write_18457 fuse_perform_write 4 18457 NULL
-+irq_alloc_generic_chip_26650 irq_alloc_generic_chip 2 26650 NULL
-+regset_tls_set_18459 regset_tls_set 4 18459 NULL
-+nf_ct_ext_create_51232 nf_ct_ext_create 3 51232 NULL
-+receive_DataRequest_9904 receive_DataRequest 3 9904 NULL
-+acpi_system_write_wakeup_device_34853 acpi_system_write_wakeup_device 3 34853 NULL
-+tipc_send_51238 tipc_send 4 51238 NULL
-+drm_property_create_51239 drm_property_create 4 51239 NULL
-+snd_rme9652_capture_copy_10287 snd_rme9652_capture_copy 5 10287 NULL
-+squashfs_read_data_59440 squashfs_read_data 6 59440 NULL
++iwl_dbgfs_current_sleep_command_read_2081 iwl_dbgfs_current_sleep_command_read 3 2081 NULL
++get_unaligned_le32_2092 get_unaligned_le32 0 2092 NULL
 +idetape_chrdev_read_2097 idetape_chrdev_read 3 2097 NULL
 +audit_expand_2098 audit_expand 2 2098 NULL
-+st_read_51251 st_read 3 51251 NULL
-+fs_path_ensure_buf_59445 fs_path_ensure_buf 2 59445 NULL
-+udpv6_setsockopt_18487 udpv6_setsockopt 5 18487 NULL
++num_pages_spanned_2105 num_pages_spanned 0 2105 NULL
 +iwl_dbgfs_log_event_read_2107 iwl_dbgfs_log_event_read 3 2107 NULL
 +ecryptfs_encrypt_and_encode_filename_2109 ecryptfs_encrypt_and_encode_filename 6 2109 NULL
-+compat_dccp_setsockopt_51263 compat_dccp_setsockopt 5 51263 NULL
-+nouveau_gpuobj_create__43072 nouveau_gpuobj_create_ 9 43072 NULL
-+rtsx_read_cfg_seq_48139 rtsx_read_cfg_seq 5-3 48139 NULL
 +__find_xattr_2117 __find_xattr 6 2117 NULL nohasharray
 +enable_read_2117 enable_read 3 2117 &__find_xattr_2117
-+dvb_audio_write_51275 dvb_audio_write 3 51275 NULL
-+pcf50633_write_block_2124 pcf50633_write_block 3 2124 NULL
-+ipwireless_network_packet_received_51277 ipwireless_network_packet_received 4 51277 NULL
-+ieee80211_if_write_34894 ieee80211_if_write 3 34894 NULL
-+c4_add_card_54968 c4_add_card 3 54968 NULL
-+rtllib_authentication_req_26713 rtllib_authentication_req 3 26713 NULL
-+snd_gus_dram_poke_18525 snd_gus_dram_poke 4 18525 NULL
++pcf50633_write_block_2124 pcf50633_write_block 3-2 2124 NULL
 +check_load_and_stores_2143 check_load_and_stores 2 2143 NULL
-+fd_do_readv_51297 fd_do_readv 3 51297 NULL
-+nouveau_fifo_channel_create__18530 nouveau_fifo_channel_create_ 5-6-9 18530 NULL
-+nfc_hci_send_cmd_async_26723 nfc_hci_send_cmd_async 5 26723 NULL
-+mlx4_init_icm_table_2151 mlx4_init_icm_table 5-4 2151 NULL
-+bnad_debugfs_read_regrd_51308 bnad_debugfs_read_regrd 3 51308 NULL
-+ufx_alloc_urb_list_10349 ufx_alloc_urb_list 3 10349 NULL
-+ib_copy_from_udata_59502 ib_copy_from_udata 3 59502 NULL
-+seq_copy_in_user_18543 seq_copy_in_user 3 18543 NULL
-+sctp_setsockopt_connectx_6073 sctp_setsockopt_connectx 3 6073 NULL
-+ath6kl_listen_int_read_10355 ath6kl_listen_int_read 3 10355 NULL
++mlx4_init_icm_table_2151 mlx4_init_icm_table 5-4 2151 NULL nohasharray
++multipath_status_2151 multipath_status 5 2151 &mlx4_init_icm_table_2151
++iov_iter_count_2152 iov_iter_count 0 2152 NULL
 +_ore_get_io_state_2166 _ore_get_io_state 3-4-5 2166 NULL
-+nr_recvmsg_12649 nr_recvmsg 4 12649 NULL
-+alloc_hippi_dev_51320 alloc_hippi_dev 1 51320 NULL
-+pipeline_tcp_rx_stat_fifo_int_read_26745 pipeline_tcp_rx_stat_fifo_int_read 3 26745 NULL
-+ms_write_multiple_pages_10362 ms_write_multiple_pages 6-5 10362 NULL
-+sas_change_queue_depth_18555 sas_change_queue_depth 2 18555 NULL
-+fb_sys_write_33130 fb_sys_write 3 33130 NULL
-+sta_ht_capa_read_10366 sta_ht_capa_read 3 10366 NULL
-+set_bypass_pwoff_pfs_27669 set_bypass_pwoff_pfs 3 27669 NULL
-+smk_write_rules_list_18565 smk_write_rules_list 3 18565 NULL
-+srp_ring_alloc_26760 srp_ring_alloc 2 26760 NULL
-+read_file_dfs_43145 read_file_dfs 3 43145 NULL
-+ecryptfs_decode_and_decrypt_filename_10379 ecryptfs_decode_and_decrypt_filename 5 10379 NULL
-+ntfs_malloc_nofs_nofail_63631 ntfs_malloc_nofs_nofail 1 63631 NULL
-+cosa_net_setup_rx_38594 cosa_net_setup_rx 2 38594 NULL
-+skb_gro_header_slow_34958 skb_gro_header_slow 2 34958 NULL
-+debug_output_18575 debug_output 3 18575 NULL
-+Realloc_34961 Realloc 2 34961 NULL
-+il_dbgfs_power_save_status_read_43165 il_dbgfs_power_save_status_read 3 43165 NULL
-+do_compat_pselect_10398 do_compat_pselect 1 10398 NULL
-+_rtl92s_firmware_downloadcode_14021 _rtl92s_firmware_downloadcode 3 14021 NULL
-+__netdev_alloc_skb_18595 __netdev_alloc_skb 2 18595 NULL
-+slabinfo_write_18600 slabinfo_write 3 18600 NULL
 +ssb_bus_ssbbus_register_2217 ssb_bus_ssbbus_register 2 2217 NULL
-+radeon_kms_compat_ioctl_51371 radeon_kms_compat_ioctl 2 51371 NULL
-+iowarrior_write_18604 iowarrior_write 3 18604 NULL
++u32_array_read_2219 u32_array_read 3 2219 NULL
 +vhci_write_2224 vhci_write 3 2224 NULL
-+ath6kl_set_assoc_req_ies_43185 ath6kl_set_assoc_req_ies 3 43185 NULL
-+acpi_os_ioremap_49523 acpi_os_ioremap 1-2 49523 NULL
-+rb_alloc_3102 rb_alloc 1 3102 NULL
-+uf_create_device_nodes_24948 uf_create_device_nodes 2 24948 NULL
-+rx_rx_hdr_overflow_read_35002 rx_rx_hdr_overflow_read 3 35002 NULL
-+l2cap_skbuff_fromiovec_35003 l2cap_skbuff_fromiovec 4-3 35003 NULL
-+write_pbl_59583 write_pbl 4 59583 NULL
-+from_buffer_18625 from_buffer 3 18625 NULL
-+uio_write_43202 uio_write 3 43202 NULL
-+memdup_user_59590 memdup_user 2 59590 NULL
-+ieee80211_wx_set_gen_ie_51399 ieee80211_wx_set_gen_ie 3 51399 NULL
-+iso_callback_43208 iso_callback 3 43208 NULL
++efx_tsoh_page_count_2225 efx_tsoh_page_count 0 2225 NULL
++lowpan_get_mac_header_length_2231 lowpan_get_mac_header_length 0 2231 NULL
 +ieee80211_if_read_dot11MeshHWMPRannInterval_2249 ieee80211_if_read_dot11MeshHWMPRannInterval 3 2249 NULL
-+smk_write_load_26829 smk_write_load 3 26829 NULL
++netlbl_secattr_catmap_walk_2255 netlbl_secattr_catmap_walk 0-2 2255 NULL
 +sel_write_avc_cache_threshold_2256 sel_write_avc_cache_threshold 3 2256 NULL
 +do_update_counters_2259 do_update_counters 4 2259 NULL
-+coda_psdev_read_35029 coda_psdev_read 3 35029 NULL
-+cache_slow_downcall_8570 cache_slow_downcall 2 8570 NULL
-+ecryptfs_miscdev_write_26847 ecryptfs_miscdev_write 3 26847 NULL
-+blk_register_region_51424 blk_register_region 1-2 51424 NULL
 +ath6kl_wmi_bssinfo_event_rx_2275 ath6kl_wmi_bssinfo_event_rx 3 2275 NULL
-+mwifiex_rdeeprom_read_51429 mwifiex_rdeeprom_read 3 51429 NULL
-+mtrr_write_59622 mtrr_write 3 59622 NULL
-+event_phy_transmit_error_read_10471 event_phy_transmit_error_read 3 10471 NULL
-+ip_vs_icmp_xmit_59624 ip_vs_icmp_xmit 4 59624 NULL
-+netxen_nic_hw_read_wx_128M_26858 netxen_nic_hw_read_wx_128M 2 26858 NULL
-+edge_tty_recv_18667 edge_tty_recv 4 18667 NULL nohasharray
-+xfs_iext_insert_18667 xfs_iext_insert 3 18667 &edge_tty_recv_18667
-+btmrvl_gpiogap_write_35053 btmrvl_gpiogap_write 3 35053 NULL
-+tty_buffer_alloc_45437 tty_buffer_alloc 2 45437 NULL
-+ieee80211_if_read_dot11MeshHWMPRootMode_51441 ieee80211_if_read_dot11MeshHWMPRootMode 3 51441 NULL
 +debug_debug5_read_2291 debug_debug5_read 3 2291 NULL
-+twl_change_queue_depth_41342 twl_change_queue_depth 2 41342 NULL
-+fixup_leb_43256 fixup_leb 3 43256 NULL
-+dvb_usercopy_14036 dvb_usercopy 2 14036 NULL
-+ubifs_recover_log_leb_12079 ubifs_recover_log_leb 3 12079 NULL
-+ubifs_setxattr_59650 ubifs_setxattr 4 59650 NULL nohasharray
-+hidraw_read_59650 hidraw_read 3 59650 &ubifs_setxattr_59650
 +kvm_clear_guest_page_2308 kvm_clear_guest_page 4 2308 NULL
-+ca91cx42_alloc_resource_10502 ca91cx42_alloc_resource 2 10502 NULL
 +intel_sdvo_set_value_2311 intel_sdvo_set_value 4 2311 NULL
-+qib_alloc_fast_reg_page_list_10507 qib_alloc_fast_reg_page_list 2 10507 NULL
-+evtchn_write_43278 evtchn_write 3 43278 NULL
-+sel_write_disable_10511 sel_write_disable 3 10511 NULL
-+store_ifalias_35088 store_ifalias 4 35088 NULL
-+tx_tx_template_prepared_read_30424 tx_tx_template_prepared_read 3 30424 NULL
-+osd_req_write_sg_kern_10514 osd_req_write_sg_kern 5 10514 NULL
-+____alloc_ei_netdev_51475 ____alloc_ei_netdev 1 51475 NULL
-+iwl_dbgfs_rx_handlers_read_18708 iwl_dbgfs_rx_handlers_read 3 18708 NULL
-+rds_message_alloc_10517 rds_message_alloc 1 10517 NULL
-+ceph_alloc_page_vector_18710 ceph_alloc_page_vector 1 18710 NULL
-+blk_rq_map_user_iov_16772 blk_rq_map_user_iov 5 16772 NULL
-+get_vm_area_caller_10527 get_vm_area_caller 1 10527 NULL
-+capi_write_35104 capi_write 3 35104 NULL nohasharray
-+tx_tx_done_template_read_35104 tx_tx_done_template_read 3 35104 &capi_write_35104
-+mpage_alloc_43299 mpage_alloc 3 43299 NULL
-+sys_semtimedop_4486 sys_semtimedop 3 4486 NULL
-+ide_settings_proc_write_35110 ide_settings_proc_write 3 35110 NULL
-+osd_req_write_sg_50908 osd_req_write_sg 5 50908 NULL
-+x25_asy_change_mtu_26928 x25_asy_change_mtu 2 26928 NULL
++picolcd_fb_write_2318 picolcd_fb_write 3 2318 NULL
++gart_map_page_2325 gart_map_page 3-4 2325 NULL
++__erst_read_to_erange_2341 __erst_read_to_erange 0 2341 NULL
 +zr364xx_read_2354 zr364xx_read 3 2354 NULL
-+mic_calc_failure_read_59700 mic_calc_failure_read 3 59700 NULL
-+scsi_tgt_copy_sense_26933 scsi_tgt_copy_sense 3 26933 NULL
-+pppoe_recvmsg_15073 pppoe_recvmsg 4 15073 NULL
-+pwr_ps_enter_read_26935 pwr_ps_enter_read 3 26935 NULL nohasharray
-+sctp_setsockopt_adaptation_layer_26935 sctp_setsockopt_adaptation_layer 3 26935 &pwr_ps_enter_read_26935
-+o2hb_debug_create_18744 o2hb_debug_create 4 18744 NULL
-+tcp_send_rcvq_11316 tcp_send_rcvq 3 11316 NULL
 +viafb_iga2_odev_proc_write_2363 viafb_iga2_odev_proc_write 3 2363 NULL
-+hecubafb_write_26942 hecubafb_write 3 26942 NULL
-+wep_packets_read_18751 wep_packets_read 3 18751 NULL
-+xfs_buf_map_from_irec_2368 xfs_buf_map_from_irec 5 2368 NULL nohasharray
-+rose_recvmsg_2368 rose_recvmsg 4 2368 &xfs_buf_map_from_irec_2368
++xfs_buf_map_from_irec_2368 xfs_buf_map_from_irec 5 2368 NULL
 +il_dbgfs_sensitivity_read_2370 il_dbgfs_sensitivity_read 3 2370 NULL
-+ieee80211_if_write_uapsd_queues_51526 ieee80211_if_write_uapsd_queues 3 51526 NULL
-+do_trimming_26952 do_trimming 3 26952 NULL
-+ath6kl_wmi_set_ie_cmd_37260 ath6kl_wmi_set_ie_cmd 6 37260 NULL
-+read_file_dump_nfcal_18766 read_file_dump_nfcal 3 18766 NULL
-+prism2_info_scanresults_59729 prism2_info_scanresults 3 59729 NULL
-+iscsi_conn_setup_35159 iscsi_conn_setup 2 35159 NULL
-+alloc_buf_34532 alloc_buf 1 34532 NULL
-+sock_rmalloc_59740 sock_rmalloc 2 59740 NULL nohasharray
-+ieee80211_if_read_fwded_unicast_59740 ieee80211_if_read_fwded_unicast 3 59740 &sock_rmalloc_59740
-+__alloc_eip_netdev_51549 __alloc_eip_netdev 1 51549 NULL
-+icn_writecmd_38629 icn_writecmd 2 38629 NULL
-+otp_read_10594 otp_read 2-4-5 10594 NULL
++rtl_port_map_2385 rtl_port_map 1-2 2385 NULL
 +rxpipe_rx_prep_beacon_drop_read_2403 rxpipe_rx_prep_beacon_drop_read 3 2403 NULL
-+sctp_manip_pkt_59749 sctp_manip_pkt 4 59749 NULL
-+icmp_manip_pkt_51560 icmp_manip_pkt 4 51560 NULL
-+brcmf_sdbrcm_read_control_22721 brcmf_sdbrcm_read_control 3 22721 NULL
-+supply_map_read_file_10608 supply_map_read_file 3 10608 NULL
 +isdn_v110_open_2418 isdn_v110_open 3 2418 NULL
++raid1_size_2419 raid1_size 0-2 2419 NULL
 +roccat_common2_send_2422 roccat_common2_send 4 2422 NULL
-+ieee80211_auth_challenge_18810 ieee80211_auth_challenge 3 18810 NULL
-+ima_show_htable_violations_10619 ima_show_htable_violations 3 10619 NULL
-+cxgb3_get_cpl_reply_skb_10620 cxgb3_get_cpl_reply_skb 2 10620 NULL
-+xfs_iroot_realloc_46826 xfs_iroot_realloc 2 46826 NULL
-+venus_remove_59781 venus_remove 4 59781 NULL
++hfcpci_empty_fifo_2427 hfcpci_empty_fifo 4 2427 NULL
 +ioremap_nocache_2439 ioremap_nocache 1-2 2439 NULL
-+sys_modify_ldt_18824 sys_modify_ldt 3 18824 NULL
-+unix_stream_recvmsg_35210 unix_stream_recvmsg 4 35210 NULL
 +tty_buffer_find_2443 tty_buffer_find 2 2443 NULL
-+xlog_do_recover_59789 xlog_do_recover 3 59789 NULL
-+aac_convert_sgraw2_51598 aac_convert_sgraw2 4 51598 NULL
-+rfcomm_tty_write_51603 rfcomm_tty_write 3 51603 NULL
-+xenfb_write_43412 xenfb_write 3 43412 NULL
-+chd_dec_fetch_cdata_50926 chd_dec_fetch_cdata 3 50926 NULL
 +nfs4_alloc_slots_2454 nfs4_alloc_slots 1 2454 NULL nohasharray
 +ath6kl_usb_bmi_write_2454 ath6kl_usb_bmi_write 3 2454 &nfs4_alloc_slots_2454
-+rx_rx_cmplt_task_read_35226 rx_rx_cmplt_task_read 3 35226 NULL
-+mtf_test_write_18844 mtf_test_write 3 18844 NULL
-+__alloc_bootmem_low_43423 __alloc_bootmem_low 1 43423 NULL nohasharray
-+gdm_wimax_netif_rx_43423 gdm_wimax_netif_rx 3 43423 &__alloc_bootmem_low_43423
-+rtllib_wx_set_gen_ie_59808 rtllib_wx_set_gen_ie 3 59808 NULL
-+error_error_null_Frame_tx_start_read_55024 error_error_null_Frame_tx_start_read 3 55024 NULL
-+udp_manip_pkt_45467 udp_manip_pkt 4 45467 NULL
-+nfs_idmap_lookup_id_10660 nfs_idmap_lookup_id 2 10660 NULL
-+xlog_recover_add_to_cont_trans_44102 xlog_recover_add_to_cont_trans 4 44102 NULL
-+ni65_alloc_mem_10664 ni65_alloc_mem 3 10664 NULL
 +b43legacy_debugfs_read_2473 b43legacy_debugfs_read 3 2473 NULL
-+usb_alloc_urb_43436 usb_alloc_urb 1 43436 NULL
-+cmd_complete_51629 cmd_complete 6 51629 NULL
-+sctp_setsockopt_events_18862 sctp_setsockopt_events 3 18862 NULL
-+btmrvl_txdnldready_read_413 btmrvl_txdnldready_read 3 413 NULL
-+ath6kl_wmi_roam_tbl_event_rx_43440 ath6kl_wmi_roam_tbl_event_rx 3 43440 NULL
-+set_fd_set_35249 set_fd_set 1 35249 NULL
++update_pmkid_2481 update_pmkid 4 2481 NULL
 +wiphy_new_2482 wiphy_new 2 2482 NULL
 +bio_alloc_bioset_2484 bio_alloc_bioset 2 2484 NULL
-+ieee80211_if_read_dot11MeshHWMPmaxPREQretries_59829 ieee80211_if_read_dot11MeshHWMPmaxPREQretries 3 59829 NULL
-+__videobuf_alloc_vb_27062 __videobuf_alloc_vb 1 27062 NULL
-+ioapic_setup_resources_35255 ioapic_setup_resources 1 35255 NULL
-+tcp_push_10680 tcp_push 3 10680 NULL
-+sctp_auth_create_key_51641 sctp_auth_create_key 1 51641 NULL
-+c101_run_37279 c101_run 2 37279 NULL
-+iscsi_create_session_51647 iscsi_create_session 3 51647 NULL
-+dma_show_regs_35266 dma_show_regs 3 35266 NULL
-+tun_put_user_59849 tun_put_user 4 59849 NULL
 +squashfs_read_fragment_index_table_2506 squashfs_read_fragment_index_table 4 2506 NULL
-+alloc_fdmem_27083 alloc_fdmem 1 27083 NULL
-+irda_recvmsg_stream_35280 irda_recvmsg_stream 4 35280 NULL
 +dm_write_2513 dm_write 3 2513 NULL
 +v9fs_cached_file_read_2514 v9fs_cached_file_read 3 2514 NULL
-+isr_rx_rdys_read_35283 isr_rx_rdys_read 3 35283 NULL
-+selinux_inode_setxattr_10708 selinux_inode_setxattr 4 10708 NULL
-+ps_upsd_utilization_read_51669 ps_upsd_utilization_read 3 51669 NULL
-+ntfs_malloc_nofs_49572 ntfs_malloc_nofs 1 49572 NULL
-+nfc_llcp_send_i_frame_59130 nfc_llcp_send_i_frame 3 59130 NULL
-+pvr2_ioread_read_10720 pvr2_ioread_read 3 10720 NULL nohasharray
-+shash_async_setkey_10720 shash_async_setkey 3 10720 &pvr2_ioread_read_10720
-+ceph_setxattr_18913 ceph_setxattr 4 18913 NULL
-+sctp_setsockopt_associnfo_51684 sctp_setsockopt_associnfo 3 51684 NULL
-+__iscsi_complete_pdu_10726 __iscsi_complete_pdu 4 10726 NULL
-+sfi_sysfs_install_table_51688 sfi_sysfs_install_table 1 51688 NULL
-+tx_tx_data_prepared_read_43497 tx_tx_data_prepared_read 3 43497 NULL
-+pvr2_ioread_set_sync_key_59882 pvr2_ioread_set_sync_key 3 59882 NULL
-+__btrfs_direct_write_22273 __btrfs_direct_write 4 22273 NULL
-+l2cap_sock_recvmsg_59886 l2cap_sock_recvmsg 4 59886 NULL
-+brcmf_sdio_forensic_read_35311 brcmf_sdio_forensic_read 3 35311 NULL nohasharray
-+__btrfs_buffered_write_35311 __btrfs_buffered_write 3 35311 &brcmf_sdio_forensic_read_35311
-+tracing_read_pipe_35312 tracing_read_pipe 3 35312 NULL
-+sctp_getsockopt_maxseg_10737 sctp_getsockopt_maxseg 2 10737 NULL
-+compat_sys_msgsnd_10738 compat_sys_msgsnd 2 10738 NULL
-+ffs_prepare_buffer_59892 ffs_prepare_buffer 2 59892 NULL
-+sel_write_access_51704 sel_write_access 3 51704 NULL
-+sys_syslog_10746 sys_syslog 3 10746 NULL
-+alloc_one_pg_vec_page_10747 alloc_one_pg_vec_page 1 10747 NULL
-+new_bind_ctl_35324 new_bind_ctl 2 35324 NULL
-+do_readlink_43518 do_readlink 2 43518 NULL
-+tty_cdev_add_51714 tty_cdev_add 2-4 51714 NULL
-+gem_alloc_skb_51715 gem_alloc_skb 2 51715 NULL
-+fallback_on_nodma_alloc_35332 fallback_on_nodma_alloc 2 35332 NULL
-+read_file_reset_52310 read_file_reset 3 52310 NULL
-+pms_capture_27142 pms_capture 4 27142 NULL
-+btmrvl_hscfgcmd_write_27143 btmrvl_hscfgcmd_write 3 27143 NULL
-+vhost_add_used_n_10760 vhost_add_used_n 3 10760 NULL
++ext4_get_inode_loc_2516 ext4_get_inode_loc 0 2516 NULL
 +gspca_dev_probe_2570 gspca_dev_probe 4 2570 NULL
-+sg_read_oxfer_51724 sg_read_oxfer 3 51724 NULL
-+msg_set_51725 msg_set 3 51725 NULL
-+cachefiles_daemon_write_43535 cachefiles_daemon_write 3 43535 NULL
-+tx_frag_failed_read_43540 tx_frag_failed_read 3 43540 NULL
-+hpi_alloc_control_cache_35351 hpi_alloc_control_cache 1 35351 NULL
-+hid_parse_report_51737 hid_parse_report 3 51737 NULL
-+compat_filldir64_35354 compat_filldir64 3 35354 NULL
-+alc_auto_create_extra_outs_18975 alc_auto_create_extra_outs 2 18975 NULL
-+i2400m_net_rx_27170 i2400m_net_rx 5 27170 NULL
-+l3_alloc_skb_32289 l3_alloc_skb 1 32289 NULL
-+ifx_spi_insert_flip_string_51752 ifx_spi_insert_flip_string 3 51752 NULL
-+ath_rx_init_43564 ath_rx_init 2 43564 NULL
-+il_dbgfs_rxon_flags_read_59950 il_dbgfs_rxon_flags_read 3 59950 NULL nohasharray
-+dapm_widget_power_read_file_59950 dapm_widget_power_read_file 3 59950 &il_dbgfs_rxon_flags_read_59950
-+sys_bind_10799 sys_bind 3 10799 NULL
-+_fc_frame_alloc_43568 _fc_frame_alloc 1 43568 NULL
-+nfcwilink_send_bts_cmd_10802 nfcwilink_send_bts_cmd 3 10802 NULL
-+ioremap_prot_51764 ioremap_prot 1-2 51764 NULL
-+rpc_malloc_43573 rpc_malloc 2 43573 NULL
-+dataflash_read_fact_otp_33204 dataflash_read_fact_otp 2-3 33204 NULL
++pcm_sanity_check_2574 pcm_sanity_check 0 2574 NULL
 +smk_write_logging_2618 smk_write_logging 3 2618 NULL
-+rx_defrag_init_called_read_35935 rx_defrag_init_called_read 3 35935 NULL
-+drm_vblank_init_11362 drm_vblank_init 2 11362 NULL
-+send_command_10832 send_command 4 10832 NULL
 +lro_gen_skb_2644 lro_gen_skb 6 2644 NULL
-+osd_req_read_kern_59990 osd_req_read_kern 5 59990 NULL
-+lbs_sleepparams_read_10840 lbs_sleepparams_read 3 10840 NULL
-+pppol2tp_sendmsg_56420 pppol2tp_sendmsg 4 56420 NULL
-+proc_read_43614 proc_read 3 43614 NULL
-+rawv6_send_hdrinc_35425 rawv6_send_hdrinc 3 35425 NULL
-+rxrpc_request_key_27235 rxrpc_request_key 3 27235 NULL
-+drm_fb_helper_init_19044 drm_fb_helper_init 3-4 19044 NULL
-+fuse_conn_max_background_read_10855 fuse_conn_max_background_read 3 10855 NULL
-+xlbd_reserve_minors_18365 xlbd_reserve_minors 1-2 18365 NULL
-+rawsock_sendmsg_60010 rawsock_sendmsg 4 60010 NULL
-+mthca_init_cq_60011 mthca_init_cq 2 60011 NULL
-+rx_rx_tkip_replays_read_60193 rx_rx_tkip_replays_read 3 60193 NULL
-+buffer_to_user_35439 buffer_to_user 3 35439 NULL
-+lpfc_idiag_drbacc_read_15948 lpfc_idiag_drbacc_read 3 15948 NULL
-+vmalloc_15464 vmalloc 1 15464 NULL
-+buffer_from_user_51826 buffer_from_user 3 51826 NULL
-+snd_pcm_oss_write1_10872 snd_pcm_oss_write1 3 10872 NULL
-+ieee80211_key_alloc_19065 ieee80211_key_alloc 3 19065 NULL
-+osd_req_list_dev_partitions_60027 osd_req_list_dev_partitions 4 60027 NULL
-+cfpkt_add_trail_27260 cfpkt_add_trail 3 27260 NULL
-+xlog_bread_offset_60030 xlog_bread_offset 3 60030 NULL
-+sys_sched_getaffinity_60033 sys_sched_getaffinity 2 60033 NULL
-+read_file_tgt_tx_stats_51847 read_file_tgt_tx_stats 3 51847 NULL
-+do_ip6t_set_ctl_60040 do_ip6t_set_ctl 4 60040 NULL
-+do_readv_writev_51849 do_readv_writev 4 51849 NULL
-+adu_write_30487 adu_write 3 30487 NULL
-+ieee80211_if_read_tkip_mic_test_19565 ieee80211_if_read_tkip_mic_test 3 19565 NULL
-+get_scq_10897 get_scq 2 10897 NULL
-+sys_process_vm_readv_19090 sys_process_vm_readv 3-5 19090 NULL nohasharray
-+brcmf_usbdev_qinit_19090 brcmf_usbdev_qinit 2 19090 &sys_process_vm_readv_19090
++nfc_llcp_send_ui_frame_2702 nfc_llcp_send_ui_frame 5 2702 NULL
 +memcpy_fromiovecend_2707 memcpy_fromiovecend 3-4 2707 NULL
-+cgroup_write_string_10900 cgroup_write_string 5 10900 NULL
-+pointer_size_read_51863 pointer_size_read 3 51863 NULL
-+load_module_60056 load_module 2 60056 NULL nohasharray
-+gru_alloc_gts_60056 gru_alloc_gts 3-2 60056 &load_module_60056
-+__videobuf_alloc_cached_12740 __videobuf_alloc_cached 1 12740 NULL
-+get_indirect_ea_51869 get_indirect_ea 4 51869 NULL
-+dmam_declare_coherent_memory_43679 dmam_declare_coherent_memory 4-2 43679 NULL
-+ieee80211_build_probe_req_60064 ieee80211_build_probe_req 8-6 60064 NULL
-+compat_do_ip6t_set_ctl_3184 compat_do_ip6t_set_ctl 4 3184 NULL
-+sta_last_seq_ctrl_read_19106 sta_last_seq_ctrl_read 3 19106 NULL
-+__netdev_alloc_skb_ip_align_55067 __netdev_alloc_skb_ip_align 2 55067 NULL
-+read_file_regidx_33370 read_file_regidx 3 33370 NULL
-+cifs_readv_from_socket_19109 cifs_readv_from_socket 3 19109 NULL
-+__copy_from_user_10918 __copy_from_user 3 10918 NULL
-+user_read_51881 user_read 3 51881 NULL
-+copy_from_buf_27308 copy_from_buf 4-2 27308 NULL
 +__xip_file_write_2733 __xip_file_write 4-3 2733 NULL
-+cryptd_hash_setkey_42781 cryptd_hash_setkey 3 42781 NULL
-+ath6kl_wmi_test_cmd_27312 ath6kl_wmi_test_cmd 3 27312 NULL
-+max77693_bulk_write_43698 max77693_bulk_write 3 43698 NULL
-+rxrpc_kernel_send_data_60083 rxrpc_kernel_send_data 3 60083 NULL
-+hidp_send_ctrl_message_43702 hidp_send_ctrl_message 4 43702 NULL
-+async_setkey_35521 async_setkey 3 35521 NULL
-+set_dev_class_39645 set_dev_class 4 39645 NULL nohasharray
-+dm_exception_table_init_39645 dm_exception_table_init 2 39645 &set_dev_class_39645
-+cxgb4_pktgl_to_skb_61899 cxgb4_pktgl_to_skb 2 61899 NULL
-+alloc_irdadev_19140 alloc_irdadev 1 19140 NULL
-+iio_read_first_n_sw_rb_51911 iio_read_first_n_sw_rb 2 51911 NULL
 +hid_report_raw_event_2762 hid_report_raw_event 4 2762 NULL
-+add_tty_40055 add_tty 1 40055 NULL nohasharray
-+l2cap_create_iframe_pdu_40055 l2cap_create_iframe_pdu 3 40055 &add_tty_40055
-+iwl_dbgfs_bt_traffic_read_35534 iwl_dbgfs_bt_traffic_read 3 35534 NULL
-+rxpipe_tx_xfr_host_int_trig_rx_data_read_35538 rxpipe_tx_xfr_host_int_trig_rx_data_read 3 35538 NULL
 +mon_bin_ioctl_2771 mon_bin_ioctl 3 2771 NULL
-+snd_rme32_playback_copy_43732 snd_rme32_playback_copy 5 43732 NULL
-+ttm_bo_kmap_60118 ttm_bo_kmap 3-2 60118 NULL
-+sleep_auth_read_19159 sleep_auth_read 3 19159 NULL
-+alloc_context_3194 alloc_context 1 3194 NULL
-+ieee80211_if_write_smps_35550 ieee80211_if_write_smps 3 35550 NULL
-+bm_entry_read_10976 bm_entry_read 3 10976 NULL
-+smk_write_access2_19170 smk_write_access2 3 19170 NULL
-+pcbit_stat_27364 pcbit_stat 2 27364 NULL
-+i915_min_freq_write_10981 i915_min_freq_write 3 10981 NULL
-+sched_autogroup_write_10984 sched_autogroup_write 3 10984 NULL
-+gigaset_initcs_43753 gigaset_initcs 2 43753 NULL
-+sctp_setsockopt_active_key_43755 sctp_setsockopt_active_key 3 43755 NULL
-+scsi_get_vpd_page_51951 scsi_get_vpd_page 4 51951 NULL
-+koneplus_sysfs_read_42792 koneplus_sysfs_read 6 42792 NULL
-+scsi_init_shared_tag_map_59812 scsi_init_shared_tag_map 2 59812 NULL
-+xfrm_hash_alloc_10997 xfrm_hash_alloc 1 10997 NULL
-+ieee80211_if_read_dot11MeshMaxRetries_12756 ieee80211_if_read_dot11MeshMaxRetries 3 12756 NULL
-+rx_filter_accum_arp_pend_requests_read_11003 rx_filter_accum_arp_pend_requests_read 3 11003 NULL
-+init_state_60165 init_state 2 60165 NULL
-+udpv6_sendmsg_22316 udpv6_sendmsg 4 22316 NULL
++__next_cpu_2782 __next_cpu 1 2782 NULL
 +sel_read_enforce_2828 sel_read_enforce 3 2828 NULL
-+__copy_to_user_inatomic_19214 __copy_to_user_inatomic 3 19214 NULL
-+dev_counters_read_19216 dev_counters_read 3 19216 NULL
-+ath6kl_sdio_alloc_prep_scat_req_51986 ath6kl_sdio_alloc_prep_scat_req 2 51986 NULL
-+sg_build_sgat_60179 sg_build_sgat 3 60179 NULL nohasharray
-+jffs2_alloc_full_dirent_60179 jffs2_alloc_full_dirent 1 60179 &sg_build_sgat_60179
-+ps_poll_ps_poll_timeouts_read_5934 ps_poll_ps_poll_timeouts_read 3 5934 NULL
-+ieee80211_if_read_smps_27416 ieee80211_if_read_smps 3 27416 NULL
-+calc_hmac_32010 calc_hmac 3 32010 NULL
-+ixgbe_dbg_reg_ops_write_46895 ixgbe_dbg_reg_ops_write 3 46895 NULL
-+dwc3_mode_write_51997 dwc3_mode_write 3 51997 NULL
-+btrfs_copy_from_user_43806 btrfs_copy_from_user 3-1 43806 NULL
-+kernel_readv_35617 kernel_readv 3 35617 NULL
-+hci_send_cmd_43810 hci_send_cmd 3 43810 NULL
-+sys_lgetxattr_45531 sys_lgetxattr 4 45531 NULL
-+dev_irnet_write_11398 dev_irnet_write 3 11398 NULL
-+bio_alloc_mddev_19238 bio_alloc_mddev 2 19238 NULL
-+nouveau_gpio_create__11048 nouveau_gpio_create_ 4 11048 NULL
-+dccp_manip_pkt_476 dccp_manip_pkt 4 476 NULL
-+tda10048_writeregbulk_11050 tda10048_writeregbulk 4 11050 NULL
-+set_tap_pfs_60203 set_tap_pfs 3 60203 NULL
++vb2_dc_get_userptr_2829 vb2_dc_get_userptr 2-3 2829 NULL nohasharray
++snd_pcm_reset_2829 snd_pcm_reset 0 2829 &vb2_dc_get_userptr_2829
++wait_for_avail_2847 wait_for_avail 0 2847 NULL
++ufs_free_fragments_2857 ufs_free_fragments 2 2857 NULL
 +sfq_alloc_2861 sfq_alloc 1 2861 NULL
-+skb_copy_datagram_from_iovec_52014 skb_copy_datagram_from_iovec 4-2-5 52014 NULL
-+carl9170_handle_mpdu_11056 carl9170_handle_mpdu 3 11056 NULL
 +move_addr_to_user_2868 move_addr_to_user 2 2868 NULL
-+ieee80211_alloc_hw_43829 ieee80211_alloc_hw 1 43829 NULL
-+vxge_rx_alloc_52024 vxge_rx_alloc 3 52024 NULL
-+ValidateDSDParamsChecksum_63654 ValidateDSDParamsChecksum 3 63654 NULL
-+__ip_append_data_16864 __ip_append_data 8-9 16864 NULL
-+p54_download_eeprom_43842 p54_download_eeprom 4 43842 NULL
-+spi_register_board_info_35651 spi_register_board_info 2 35651 NULL
-+store_debug_level_35652 store_debug_level 3 35652 NULL
-+l2tp_ip6_sendmsg_7461 l2tp_ip6_sendmsg 4 7461 NULL
-+read_flush_43851 read_flush 3 43851 NULL
-+dma_rx_errors_read_52045 dma_rx_errors_read 3 52045 NULL
++__swab64p_2875 __swab64p 0 2875 NULL
++nla_padlen_2883 nla_padlen 1 2883 NULL
 +cmm_write_2896 cmm_write 3 2896 NULL
-+il_dbgfs_rxon_filter_flags_read_19281 il_dbgfs_rxon_filter_flags_read 3 19281 NULL
-+io_mapping_map_wc_19284 io_mapping_map_wc 2 19284 NULL
-+tunables_write_59563 tunables_write 3 59563 NULL
-+compat_sys_kexec_load_35674 compat_sys_kexec_load 2 35674 NULL
-+rtsx_write_cfg_seq_27485 rtsx_write_cfg_seq 5-3 27485 NULL
-+v4l2_ctrl_new_std_menu_items_27487 v4l2_ctrl_new_std_menu_items 4 27487 NULL
-+kvm_write_guest_cached_11106 kvm_write_guest_cached 4 11106 NULL
-+isofs_readpages_52067 isofs_readpages 4 52067 NULL
-+lbs_bcnmiss_read_8678 lbs_bcnmiss_read 3 8678 NULL
-+dm_table_create_35687 dm_table_create 3 35687 NULL
-+qib_create_cq_27497 qib_create_cq 2 27497 NULL
-+nfc_hci_execute_cmd_43882 nfc_hci_execute_cmd 5 43882 NULL
-+rds_page_copy_user_35691 rds_page_copy_user 4 35691 NULL
-+tw_change_queue_depth_11116 tw_change_queue_depth 2 11116 NULL
++rbd_req_sync_read_2915 rbd_req_sync_read 4-5 2915 NULL
++alloc_page_cgroup_2919 alloc_page_cgroup 1 2919 NULL
 +xfs_trans_get_buf_map_2927 xfs_trans_get_buf_map 4 2927 NULL
-+tracing_buffers_read_11124 tracing_buffers_read 3 11124 NULL
-+garmin_read_process_27509 garmin_read_process 3 27509 NULL
-+alloc_alien_cache_11127 alloc_alien_cache 2 11127 NULL
-+nsm_get_handle_52089 nsm_get_handle 4 52089 NULL
-+debug_read_19322 debug_read 3 19322 NULL
-+v9fs_direct_read_45546 v9fs_direct_read 3 45546 NULL
-+__pskb_pull_tail_60287 __pskb_pull_tail 2 60287 NULL
-+gs_buf_alloc_25067 gs_buf_alloc 2 25067 NULL
-+cfg80211_inform_bss_19332 cfg80211_inform_bss 8 19332 NULL
-+ib_copy_to_udata_27525 ib_copy_to_udata 3 27525 NULL
-+dn_nsp_return_disc_60296 dn_nsp_return_disc 2 60296 NULL
-+o2net_debug_read_52105 o2net_debug_read 3 52105 NULL
-+prism2_sta_send_mgmt_43916 prism2_sta_send_mgmt 5 43916 NULL
-+mgmt_device_found_14146 mgmt_device_found 10 14146 NULL
-+snd_seq_oss_readq_new_14283 snd_seq_oss_readq_new 2 14283 NULL
-+doc_probe_23285 doc_probe 1 23285 NULL
++nes_read_indexed_2946 nes_read_indexed 0 2946 NULL
++tm6000_i2c_recv_regs16_2949 tm6000_i2c_recv_regs16 5 2949 NULL
 +ppp_cp_event_2965 ppp_cp_event 6 2965 NULL
-+SendString_43928 SendString 3 43928 NULL
-+acpi_os_map_memory_11161 acpi_os_map_memory 1-2 11161 NULL
-+ceph_parse_server_name_60318 ceph_parse_server_name 2 60318 NULL
-+retry_count_read_52129 retry_count_read 3 52129 NULL
-+xlog_recover_add_to_trans_62839 xlog_recover_add_to_trans 4 62839 NULL
-+ioat2_alloc_ring_11172 ioat2_alloc_ring 2 11172 NULL
-+read_zero_19366 read_zero 3 19366 NULL
-+bch_alloc_4593 bch_alloc 1 4593 NULL
-+stats_dot11RTSFailureCount_read_43948 stats_dot11RTSFailureCount_read 3 43948 NULL
-+iwl_dbgfs_disable_ht40_read_35761 iwl_dbgfs_disable_ht40_read 3 35761 NULL
-+libipw_alloc_txb_27579 libipw_alloc_txb 1-2-3 27579 NULL
-+raid5_resize_63306 raid5_resize 2 63306 NULL
-+interpret_user_input_19393 interpret_user_input 2 19393 NULL
-+handle_eviocgbit_44193 handle_eviocgbit 3 44193 NULL
-+ieee80211_if_read_dot11MeshRetryTimeout_52168 ieee80211_if_read_dot11MeshRetryTimeout 3 52168 NULL
++do_strnlen_user_2976 do_strnlen_user 0-2 2976 NULL
++p9_nr_pages_2992 p9_nr_pages 0-2 2992 NULL
 +do_dmabuf_dirty_sou_3017 do_dmabuf_dirty_sou 7 3017 NULL
-+udf_alloc_i_data_35786 udf_alloc_i_data 2 35786 NULL
 +depth_write_3021 depth_write 3 3021 NULL
-+dccp_setsockopt_60367 dccp_setsockopt 5 60367 NULL
-+read_file_stations_35795 read_file_stations 3 35795 NULL
-+il_dbgfs_rx_queue_read_11221 il_dbgfs_rx_queue_read 3 11221 NULL
-+tipc_cfg_reply_alloc_27606 tipc_cfg_reply_alloc 1 27606 NULL
-+bcm_recvmsg_43992 bcm_recvmsg 4 43992 NULL
-+proc_pid_readlink_52186 proc_pid_readlink 3 52186 NULL
-+ubi_eba_atomic_leb_change_60379 ubi_eba_atomic_leb_change 5 60379 NULL
++snd_azf3328_codec_inl_3022 snd_azf3328_codec_inl 0 3022 NULL
++xfrm_dst_alloc_copy_3034 xfrm_dst_alloc_copy 3 3034 NULL
 +iwl_dbgfs_sleep_level_override_read_3038 iwl_dbgfs_sleep_level_override_read 3 3038 NULL
-+dvbdmx_write_19423 dvbdmx_write 3 19423 NULL
++nr_free_buffer_pages_3044 nr_free_buffer_pages 0 3044 NULL
 +il3945_ucode_rx_stats_read_3048 il3945_ucode_rx_stats_read 3 3048 NULL
-+il4965_ucode_rx_stats_read_61948 il4965_ucode_rx_stats_read 3 61948 NULL
-+mthca_alloc_resize_buf_60394 mthca_alloc_resize_buf 3 60394 NULL
-+write_flush_procfs_44011 write_flush_procfs 3 44011 NULL
-+driver_names_read_60399 driver_names_read 3 60399 NULL
-+read_flush_procfs_27642 read_flush_procfs 3 27642 NULL
-+add_new_gdb_27643 add_new_gdb 3 27643 NULL
++__blk_end_bidi_request_3070 __blk_end_bidi_request 3-4 3070 NULL
 +dac960_user_command_proc_write_3071 dac960_user_command_proc_write 3 3071 NULL
-+hugetlbfs_read_11268 hugetlbfs_read 3 11268 NULL
-+_alloc_mISDN_skb_52232 _alloc_mISDN_skb 3 52232 NULL
-+qnx6_readpages_27657 qnx6_readpages 4 27657 NULL
-+tx_tx_cmplt_read_35854 tx_tx_cmplt_read 3 35854 NULL
-+cdrom_read_cdda_old_27664 cdrom_read_cdda_old 4 27664 NULL
-+do_dmabuf_dirty_ldu_52241 do_dmabuf_dirty_ldu 6 52241 NULL
-+mthca_buf_alloc_35861 mthca_buf_alloc 2 35861 NULL
-+rx_data_60442 rx_data 4 60442 NULL
++free_coherent_3082 free_coherent 4-2 3082 NULL
 +ttusb2_msg_3100 ttusb2_msg 4 3100 NULL
-+efivar_create_sysfs_entry_19485 efivar_create_sysfs_entry 2 19485 NULL
-+tcf_csum_ipv4_igmp_60446 tcf_csum_ipv4_igmp 3 60446 NULL
-+mdiobus_alloc_size_52259 mdiobus_alloc_size 1 52259 NULL
-+rt2x00debug_write_csr_64753 rt2x00debug_write_csr 3 64753 NULL
-+sisusbcon_do_font_op_52271 sisusbcon_do_font_op 9 52271 NULL
++rb_alloc_3102 rb_alloc 1 3102 NULL
 +simple_write_to_buffer_3122 simple_write_to_buffer 5-2 3122 NULL
-+__tty_buffer_request_room_27700 __tty_buffer_request_room 2 27700 NULL
-+ext4_add_new_descs_19509 ext4_add_new_descs 3 19509 NULL
-+fs_path_add_from_extent_buffer_27702 fs_path_add_from_extent_buffer 4 27702 NULL
-+tcp_mark_head_lost_35895 tcp_mark_head_lost 2 35895 NULL
-+skb_realloc_headroom_19516 skb_realloc_headroom 2 19516 NULL
-+atm_alloc_charge_19517 atm_alloc_charge 2 19517 NULL nohasharray
-+dev_alloc_skb_19517 dev_alloc_skb 1 19517 &atm_alloc_charge_19517
-+construct_key_11329 construct_key 3 11329 NULL
-+evm_write_key_27715 evm_write_key 3 27715 NULL
-+persistent_ram_buffer_map_11332 persistent_ram_buffer_map 1-2 11332 NULL
++print_time_3132 print_time 0 3132 NULL
 +fill_write_buffer_3142 fill_write_buffer 3 3142 NULL
-+filldir_55137 filldir 3 55137 NULL
-+igmpv3_newpack_35912 igmpv3_newpack 2 35912 NULL
-+kernel_setsockopt_35913 kernel_setsockopt 5 35913 NULL
-+reg_w_buf_27724 reg_w_buf 3 27724 NULL
-+nfc_llcp_build_tlv_19536 nfc_llcp_build_tlv 3 19536 NULL
++CIFSSMBSetPosixACL_3154 CIFSSMBSetPosixACL 5 3154 NULL
 +compat_sys_migrate_pages_3157 compat_sys_migrate_pages 2 3157 NULL
-+a4t_cs_init_27734 a4t_cs_init 3 27734 NULL
-+sel_write_create_11353 sel_write_create 3 11353 NULL
-+tracing_set_trace_read_44122 tracing_set_trace_read 3 44122 NULL
-+request_asymmetric_key_52317 request_asymmetric_key 2-4 52317 NULL
-+hwflags_read_52318 hwflags_read 3 52318 NULL
-+nfc_alloc_send_skb_3167 nfc_alloc_send_skb 4 3167 NULL
-+batadv_skb_head_push_11360 batadv_skb_head_push 2 11360 NULL
-+put_cmsg_compat_35937 put_cmsg_compat 4 35937 NULL
-+vmw_gmr_bind_44130 vmw_gmr_bind 3 44130 NULL
-+ath_tx_init_60515 ath_tx_init 2 60515 NULL
-+drm_property_create_enum_29201 drm_property_create_enum 5 29201 NULL
-+ntfs_rl_split_52328 ntfs_rl_split 2-4 52328 NULL
-+qib_get_base_info_11369 qib_get_base_info 3 11369 NULL
-+ocfs2_control_message_19564 ocfs2_control_message 3 19564 NULL
-+test_unaligned_bulk_52333 test_unaligned_bulk 3 52333 NULL
-+nfsd_read_19568 nfsd_read 5 19568 NULL
-+cgroup_read_s64_19570 cgroup_read_s64 5 19570 NULL
-+hysdn_sched_rx_60533 hysdn_sched_rx 3 60533 NULL
++uv_num_possible_blades_3177 uv_num_possible_blades 0 3177 NULL
++uvc_video_stats_dump_3181 uvc_video_stats_dump 3 3181 NULL
++compat_do_ip6t_set_ctl_3184 compat_do_ip6t_set_ctl 4 3184 NULL
 +mempool_create_node_3191 mempool_create_node 1 3191 NULL
-+kcalloc_27770 kcalloc 1-2 27770 NULL
++alloc_context_3194 alloc_context 1 3194 NULL
 +shmem_pread_slow_3198 shmem_pread_slow 3 3198 NULL
-+bm_status_read_19583 bm_status_read 3 19583 NULL
-+v9fs_fid_readn_60544 v9fs_fid_readn 4 60544 NULL
-+zd_mac_rx_38296 zd_mac_rx 3 38296 NULL
-+nfs_parse_server_name_1899 nfs_parse_server_name 2 1899 NULL
-+ceph_buffer_new_35974 ceph_buffer_new 1 35974 NULL
-+acl_alloc_35979 acl_alloc 1 35979 NULL
-+copy_entries_to_user_52367 copy_entries_to_user 1 52367 NULL
-+___alloc_bootmem_11410 ___alloc_bootmem 1 11410 NULL
-+str_to_user_11411 str_to_user 2 11411 NULL
-+mem_fw_gen_free_mem_blks_read_11413 mem_fw_gen_free_mem_blks_read 3 11413 NULL
-+koneplus_sysfs_write_35993 koneplus_sysfs_write 6 35993 NULL
-+trace_options_read_11419 trace_options_read 3 11419 NULL
-+ttm_object_file_init_27804 ttm_object_file_init 2 27804 NULL
-+mpihelp_mul_27805 mpihelp_mul 5-3 27805 NULL
-+xd_read_multiple_pages_11422 xd_read_multiple_pages 5-4 11422 NULL
-+isdn_writebuf_stub_52383 isdn_writebuf_stub 4 52383 NULL
 +kimage_crash_alloc_3233 kimage_crash_alloc 3 3233 NULL
-+write_adapter_mem_3234 write_adapter_mem 3 3234 NULL
-+iwl_dbgfs_tx_queue_read_4635 iwl_dbgfs_tx_queue_read 3 4635 NULL
 +do_read_log_to_user_3236 do_read_log_to_user 4 3236 NULL
-+console_store_36007 console_store 4 36007 NULL
-+bttv_read_11432 bttv_read 3 11432 NULL
++ext3_xattr_find_entry_3237 ext3_xattr_find_entry 0 3237 NULL
 +key_key_read_3241 key_key_read 3 3241 NULL
-+aer_inject_write_52399 aer_inject_write 3 52399 NULL
-+il3945_ucode_tx_stats_read_36016 il3945_ucode_tx_stats_read 3 36016 NULL
-+__feat_register_sp_64712 __feat_register_sp 6 64712 NULL
-+ib_alloc_device_26483 ib_alloc_device 1 26483 NULL
++number_3243 number 0 3243 NULL
 +check_vendor_extension_3254 check_vendor_extension 1 3254 NULL
-+ieee80211_amsdu_to_8023s_15561 ieee80211_amsdu_to_8023s 5 15561 NULL
-+sys_listxattr_27833 sys_listxattr 3 27833 NULL
-+aac_rx_ioremap_52410 aac_rx_ioremap 2 52410 NULL
-+ubi_eba_write_leb_36029 ubi_eba_write_leb 5-6 36029 NULL
-+um_idi_write_18293 um_idi_write 3 18293 NULL
-+cgroup_file_write_52417 cgroup_file_write 3 52417 NULL
-+srp_alloc_iu_44227 srp_alloc_iu 2 44227 NULL
-+usbvision_rvmalloc_19655 usbvision_rvmalloc 1 19655 NULL
-+line6_midibuf_init_52425 line6_midibuf_init 2 52425 NULL
-+LoadBitmap_19658 LoadBitmap 2 19658 NULL
-+wl1273_fm_fops_write_60621 wl1273_fm_fops_write 3 60621 NULL
-+sys_init_module_36047 sys_init_module 2 36047 NULL
-+read_profile_27859 read_profile 3 27859 NULL
-+acl_alloc_stack_init_60630 acl_alloc_stack_init 1 60630 NULL
-+sca3000_read_first_n_hw_rb_11479 sca3000_read_first_n_hw_rb 2 11479 NULL
-+enlarge_skb_44248 enlarge_skb 2 44248 NULL nohasharray
-+xfs_buf_readahead_map_44248 xfs_buf_readahead_map 3 44248 &enlarge_skb_44248
-+scsi_track_queue_full_44239 scsi_track_queue_full 2 44239 NULL
-+refill_pool_19477 refill_pool 2 19477 NULL
-+ubifs_recover_leb_60639 ubifs_recover_leb 3 60639 NULL
-+ieee80211_if_read_dot11MeshHWMProotInterval_27873 ieee80211_if_read_dot11MeshHWMProotInterval 3 27873 NULL
-+iwl_dbgfs_thermal_throttling_read_38779 iwl_dbgfs_thermal_throttling_read 3 38779 NULL
-+xfs_file_buffered_aio_write_11492 xfs_file_buffered_aio_write 4 11492 NULL
-+__btrfs_free_reserved_extent_31207 __btrfs_free_reserved_extent 2 31207 NULL
-+tcp_sacktag_walk_49703 tcp_sacktag_walk 6 49703 NULL
-+ieee80211_if_write_tsf_36077 ieee80211_if_write_tsf 3 36077 NULL
++__ilog2_u64_3284 __ilog2_u64 0 3284 NULL
 +arvo_sysfs_write_3311 arvo_sysfs_write 6 3311 NULL
-+sd_do_mode_sense_11507 sd_do_mode_sense 5 11507 NULL
-+unix_seqpacket_sendmsg_27893 unix_seqpacket_sendmsg 4 27893 NULL
-+kmem_zalloc_11510 kmem_zalloc 1 11510 NULL
-+hidraw_get_report_45609 hidraw_get_report 3 45609 NULL
 +dbDiscardAG_3322 dbDiscardAG 3 3322 NULL
-+ieee80211_alloc_txb_52477 ieee80211_alloc_txb 1-2 52477 NULL
-+ieee80211_if_read_dot11MeshConfirmTimeout_60670 ieee80211_if_read_dot11MeshConfirmTimeout 3 60670 NULL
-+blk_init_tags_30592 blk_init_tags 1 30592 NULL
-+venus_symlink_23570 venus_symlink 4-6 23570 NULL
-+storvsc_connect_to_vsp_22 storvsc_connect_to_vsp 2 22 NULL
++compat_sys_setsockopt_3326 compat_sys_setsockopt 5 3326 NULL
++de600_read_byte_3332 de600_read_byte 0 3332 NULL
 +aac_rkt_ioremap_3333 aac_rkt_ioremap 2 3333 NULL
-+sctp_make_init_ack_3335 sctp_make_init_ack 4 3335 NULL
 +read_from_oldmem_3337 read_from_oldmem 2 3337 NULL
 +tty_port_register_device_attr_3341 tty_port_register_device_attr 3 3341 NULL
-+ath6kl_keepalive_read_44303 ath6kl_keepalive_read 3 44303 NULL
-+vga_arb_write_36112 vga_arb_write 3 36112 NULL
-+int_tasklet_entry_52500 int_tasklet_entry 3 52500 NULL
-+acpi_os_allocate_zeroed_37422 acpi_os_allocate_zeroed 1 37422 NULL
-+simple_xattr_alloc_36118 simple_xattr_alloc 2 36118 NULL
 +il_dbgfs_interrupt_read_3351 il_dbgfs_interrupt_read 3 3351 NULL
-+memcpy_toiovecend_19736 memcpy_toiovecend 4-3 19736 NULL
 +gsm_control_rls_3353 gsm_control_rls 3 3353 NULL
-+ath6kl_usb_ctrl_msg_exchange_33327 ath6kl_usb_ctrl_msg_exchange 4 33327 NULL
-+dispatch_proc_write_44320 dispatch_proc_write 3 44320 NULL
-+pm_qos_power_write_52513 pm_qos_power_write 3 52513 NULL
-+mem_swapout_entry_32586 mem_swapout_entry 3 32586 NULL
-+gpio_power_read_36059 gpio_power_read 3 36059 NULL
-+vmalloc_exec_36132 vmalloc_exec 1 36132 NULL
-+init_data_container_60709 init_data_container 1 60709 NULL
-+p9_client_read_19750 p9_client_read 5 19750 NULL
-+skb_cow_data_11565 skb_cow_data 2 11565 NULL
-+pnpbios_proc_write_19758 pnpbios_proc_write 3 19758 NULL
-+ocfs2_readpages_19759 ocfs2_readpages 4 19759 NULL
-+ext3_readpages_36144 ext3_readpages 4 36144 NULL
-+mlx4_init_cmpt_table_11569 mlx4_init_cmpt_table 3 11569 NULL
-+iwl_trans_txq_alloc_36147 iwl_trans_txq_alloc 3 36147 NULL
-+alloc_vm_area_36149 alloc_vm_area 1 36149 NULL
-+ubi_eba_write_leb_st_44343 ubi_eba_write_leb_st 5 44343 NULL
-+tracing_clock_write_27961 tracing_clock_write 3 27961 NULL
-+b1_alloc_card_36155 b1_alloc_card 1 36155 NULL
-+oprofilefs_ulong_to_user_11582 oprofilefs_ulong_to_user 3 11582 NULL
++scnprintf_3360 scnprintf 0-2 3360 NULL nohasharray
++tps65090_clr_bits_3360 tps65090_clr_bits 2 3360 &scnprintf_3360
 +mtdchar_writeoob_3393 mtdchar_writeoob 4 3393 NULL
-+nfs_fscache_get_super_cookie_44355 nfs_fscache_get_super_cookie 3 44355 NULL nohasharray
-+blk_queue_init_tags_44355 blk_queue_init_tags 2 44355 &nfs_fscache_get_super_cookie_44355
-+saa7146_vmalloc_build_pgtable_19780 saa7146_vmalloc_build_pgtable 2 19780 NULL
 +send_stream_3397 send_stream 4 3397 NULL
-+snd_korg1212_copy_from_36169 snd_korg1212_copy_from 6 36169 NULL
-+fw_device_op_ioctl_11595 fw_device_op_ioctl 2 11595 NULL
-+ipx_recvmsg_44366 ipx_recvmsg 4 44366 NULL
-+hycapi_rx_capipkt_11602 hycapi_rx_capipkt 3 11602 NULL
++isdn_readbchan_3401 isdn_readbchan 0-5 3401 NULL
 +msix_map_region_3411 msix_map_region 3 3411 NULL
-+sys_kexec_load_14222 sys_kexec_load 2 14222 NULL
-+rts_threshold_read_44384 rts_threshold_read 3 44384 NULL
-+iwl_dbgfs_rf_reset_read_26512 iwl_dbgfs_rf_reset_read 3 26512 NULL
++mei_io_cb_alloc_resp_buf_3414 mei_io_cb_alloc_resp_buf 2 3414 NULL
 +pci_add_cap_save_buffer_3426 pci_add_cap_save_buffer 3 3426 NULL
 +crystalhd_create_dio_pool_3427 crystalhd_create_dio_pool 2 3427 NULL
-+sel_write_checkreqprot_60774 sel_write_checkreqprot 3 60774 NULL
-+opticon_write_60775 opticon_write 4 60775 NULL
-+snd_rawmidi_write_28008 snd_rawmidi_write 3 28008 NULL
-+acl_alloc_num_60778 acl_alloc_num 1-2 60778 NULL
-+aoedev_flush_44398 aoedev_flush 2 44398 NULL
-+irda_setsockopt_19824 irda_setsockopt 5 19824 NULL
-+drm_buffer_alloc_44405 drm_buffer_alloc 2 44405 NULL
 +pipe_iov_copy_to_user_3447 pipe_iov_copy_to_user 3 3447 NULL
-+vip_read_19832 vip_read 3 19832 NULL
-+osst_do_scsi_44410 osst_do_scsi 4 44410 NULL
-+llc_shdlc_alloc_skb_11645 llc_shdlc_alloc_skb 2 11645 NULL
-+security_context_to_sid_19839 security_context_to_sid 2 19839 NULL
-+sisusb_send_bridge_packet_11649 sisusb_send_bridge_packet 2 11649 NULL
-+nfqnl_mangle_36226 nfqnl_mangle 4-2 36226 NULL
-+atomic_stats_read_36228 atomic_stats_read 3 36228 NULL
-+crypt_alloc_buffer_19846 crypt_alloc_buffer 2 19846 NULL
-+ieee80211_if_read_rc_rateidx_mcs_mask_5ghz_44423 ieee80211_if_read_rc_rateidx_mcs_mask_5ghz 3 44423 NULL
-+sctp_setsockopt_maxburst_28041 sctp_setsockopt_maxburst 3 28041 NULL
++percpu_modalloc_3448 percpu_modalloc 2-3 3448 NULL
++jffs2_acl_setxattr_3464 jffs2_acl_setxattr 4 3464 NULL nohasharray
++snd_pcm_lib_readv_transfer_3464 snd_pcm_lib_readv_transfer 4-2-5 3464 &jffs2_acl_setxattr_3464
 +alloc_skb_fclone_3467 alloc_skb_fclone 1 3467 NULL
-+cfg80211_mlme_register_mgmt_19852 cfg80211_mlme_register_mgmt 5 19852 NULL
-+viafb_iga1_odev_proc_write_36241 viafb_iga1_odev_proc_write 3 36241 NULL
-+cx231xx_init_vbi_isoc_28053 cx231xx_init_vbi_isoc 3-2 28053 NULL
-+ide_queue_pc_tail_11673 ide_queue_pc_tail 5 11673 NULL
-+llcp_allocate_pdu_19866 llcp_allocate_pdu 3 19866 NULL
-+lpfc_idiag_mbxacc_read_28061 lpfc_idiag_mbxacc_read 3 28061 NULL
-+btrfs_alloc_delayed_item_11678 btrfs_alloc_delayed_item 1 11678 NULL
-+compat_sys_mbind_36256 compat_sys_mbind 5 36256 NULL
 +security_context_to_sid_default_3492 security_context_to_sid_default 2 3492 NULL
-+sctp_setsockopt_hmac_ident_11687 sctp_setsockopt_hmac_ident 3 11687 NULL
-+blk_rq_map_kern_47004 blk_rq_map_kern 4 47004 NULL
-+split_11691 split 2 11691 NULL
-+brcmf_sdio_assert_info_52653 brcmf_sdio_assert_info 4 52653 NULL
-+snd_ctl_elem_user_tlv_11695 snd_ctl_elem_user_tlv 3 11695 NULL
-+pwr_tx_with_ps_read_60851 pwr_tx_with_ps_read 3 60851 NULL
-+usb_buffer_alloc_36276 usb_buffer_alloc 2 36276 NULL
-+__kfifo_alloc_22173 __kfifo_alloc 2-3 22173 NULL
-+codec_reg_read_file_36280 codec_reg_read_file 3 36280 NULL
-+gdth_init_isa_28091 gdth_init_isa 1 28091 NULL
-+readahead_tree_block_36285 readahead_tree_block 3 36285 NULL
++xfrm_migrate_msgsize_3496 xfrm_migrate_msgsize 1 3496 NULL
 +mem_tx_free_mem_blks_read_3521 mem_tx_free_mem_blks_read 3 3521 NULL nohasharray
 +ieee80211_wx_set_gen_ie_rsl_3521 ieee80211_wx_set_gen_ie_rsl 3 3521 &mem_tx_free_mem_blks_read_3521
-+nouveau_cli_create_36293 nouveau_cli_create 3 36293 NULL
-+vmw_unlocked_ioctl_19212 vmw_unlocked_ioctl 2 19212 NULL
-+ps_upsd_max_apturn_read_19918 ps_upsd_max_apturn_read 3 19918 NULL
-+lpfc_debugfs_dif_err_read_36303 lpfc_debugfs_dif_err_read 3 36303 NULL
-+ieee80211_if_read_dropped_frames_ttl_44500 ieee80211_if_read_dropped_frames_ttl 3 44500 NULL
-+rx_defrag_need_defrag_read_28117 rx_defrag_need_defrag_read 3 28117 NULL
-+ad7879_spi_xfer_36311 ad7879_spi_xfer 3 36311 NULL
-+iwl_dbgfs_sram_read_44505 iwl_dbgfs_sram_read 3 44505 NULL
-+tcf_csum_ipv6_icmp_11738 tcf_csum_ipv6_icmp 4 11738 NULL
-+smk_write_load_self2_591 smk_write_load_self2 3 591 NULL
-+vgacon_adjust_height_28124 vgacon_adjust_height 2 28124 NULL
-+spidev_write_44510 spidev_write 3 44510 NULL
-+macvtap_sendmsg_30629 macvtap_sendmsg 4 30629 NULL
-+dm_bio_prison_create_11749 dm_bio_prison_create 1 11749 NULL
-+iwl_dbgfs_rx_queue_read_19943 iwl_dbgfs_rx_queue_read 3 19943 NULL
-+fat_compat_ioctl_filldir_36328 fat_compat_ioctl_filldir 3 36328 NULL
-+iwl_dbgfs_qos_read_11753 iwl_dbgfs_qos_read 3 11753 NULL
-+nouveau_client_create__52715 nouveau_client_create_ 5 52715 NULL
-+iio_debugfs_read_reg_60908 iio_debugfs_read_reg 3 60908 NULL
-+kone_receive_4690 kone_receive 4 4690 NULL
++btrfs_dir_name_len_3549 btrfs_dir_name_len 0 3549 NULL
++b43legacy_read16_3561 b43legacy_read16 0 3561 NULL
 +alloc_smp_resp_3566 alloc_smp_resp 1 3566 NULL
-+jbd2_journal_init_revoke_table_36336 jbd2_journal_init_revoke_table 1 36336 NULL
 +evtchn_read_3569 evtchn_read 3 3569 NULL
-+video_read_28148 video_read 3 28148 NULL
-+compat_sys_setsockopt_3326 compat_sys_setsockopt 5 3326 NULL
-+sys_msgsnd_44537 sys_msgsnd 3 44537 NULL nohasharray
-+comm_write_44537 comm_write 3 44537 &sys_msgsnd_44537
-+stats_dot11FCSErrorCount_read_28154 stats_dot11FCSErrorCount_read 3 28154 NULL
-+ax25_send_frame_19964 ax25_send_frame 2 19964 NULL
-+blkcipher_next_slow_52733 blkcipher_next_slow 3-4 52733 NULL
-+relay_alloc_page_array_52735 relay_alloc_page_array 1 52735 NULL
-+ps_pspoll_timeouts_read_11776 ps_pspoll_timeouts_read 3 11776 NULL
 +vc_resize_3585 vc_resize 2-3 3585 NULL
-+gluebi_write_27905 gluebi_write 3 27905 NULL
-+ivtv_v4l2_read_1964 ivtv_v4l2_read 3 1964 NULL
-+c4iw_reject_cr_28174 c4iw_reject_cr 3 28174 NULL
-+rx_out_of_mem_read_10157 rx_out_of_mem_read 3 10157 NULL
-+attach_hdlc_protocol_19986 attach_hdlc_protocol 3 19986 NULL
 +compat_sys_semtimedop_3606 compat_sys_semtimedop 3 3606 NULL
 +sctp_getsockopt_events_3607 sctp_getsockopt_events 2 3607 NULL
-+macvtap_get_user_28185 macvtap_get_user 4 28185 NULL
 +edac_mc_alloc_3611 edac_mc_alloc 4 3611 NULL
-+key_algorithm_read_57946 key_algorithm_read 3 57946 NULL
-+pti_char_write_60960 pti_char_write 3 60960 NULL
 +tx_tx_starts_read_3617 tx_tx_starts_read 3 3617 NULL
-+nouveau_mxm_create__28200 nouveau_mxm_create_ 4 28200 NULL
-+pcpu_fc_alloc_11818 pcpu_fc_alloc 2 11818 NULL
-+read_vbt_r10_60679 read_vbt_r10 1 60679 NULL
 +aligned_kmalloc_3628 aligned_kmalloc 1 3628 NULL
-+afs_alloc_flat_call_36399 afs_alloc_flat_call 2-3 36399 NULL
-+error_error_frame_read_39947 error_error_frame_read 3 39947 NULL nohasharray
-+fwnet_pd_new_39947 fwnet_pd_new 4 39947 &error_error_frame_read_39947
-+snd_pcm_alloc_vmalloc_buffer_44595 snd_pcm_alloc_vmalloc_buffer 2 44595 NULL
-+zerocopy_sg_from_iovec_11828 zerocopy_sg_from_iovec 3 11828 NULL
-+sctp_setsockopt_maxseg_11829 sctp_setsockopt_maxseg 3 11829 NULL
-+rts51x_read_status_11830 rts51x_read_status 4 11830 NULL
-+__a2mp_build_60987 __a2mp_build 3 60987 NULL
-+split_scan_timeout_read_20029 split_scan_timeout_read 3 20029 NULL
-+hsc_msg_alloc_60990 hsc_msg_alloc 1 60990 NULL
-+cm_copy_private_data_3649 cm_copy_private_data 2 3649 NULL
++x86_swiotlb_alloc_coherent_3649 x86_swiotlb_alloc_coherent 2 3649 NULL nohasharray
++cm_copy_private_data_3649 cm_copy_private_data 2 3649 &x86_swiotlb_alloc_coherent_3649
 +ath6kl_disconnect_timeout_read_3650 ath6kl_disconnect_timeout_read 3 3650 NULL
-+ieee80211_if_read_auto_open_plinks_38268 ieee80211_if_read_auto_open_plinks 3 38268 NULL nohasharray
-+mthca_alloc_icm_table_38268 mthca_alloc_icm_table 4-3 38268 &ieee80211_if_read_auto_open_plinks_38268
-+ip_set_alloc_57953 ip_set_alloc 1 57953 NULL
 +i915_compat_ioctl_3656 i915_compat_ioctl 2 3656 NULL
-+mb_cache_create_17307 mb_cache_create 2 17307 NULL
-+ni_gpct_device_construct_610 ni_gpct_device_construct 5 610 NULL
-+cfpkt_add_body_44630 cfpkt_add_body 3 44630 NULL
-+nf_nat_sdp_media_11863 nf_nat_sdp_media 9 11863 NULL
-+alloc_extent_buffer_52824 alloc_extent_buffer 3 52824 NULL
-+skb_cow_head_52495 skb_cow_head 2 52495 NULL
-+ecryptfs_copy_filename_11868 ecryptfs_copy_filename 4 11868 NULL
-+sctp_tsnmap_init_36446 sctp_tsnmap_init 2 36446 NULL
-+alloc_ieee80211_20063 alloc_ieee80211 1 20063 NULL
-+alloc_etherdev_mqs_36450 alloc_etherdev_mqs 1 36450 NULL
-+pwr_rcvd_beacons_read_52836 pwr_rcvd_beacons_read 3 52836 NULL
-+ieee80211_if_read_dropped_frames_no_route_33383 ieee80211_if_read_dropped_frames_no_route 3 33383 NULL
-+sctp_getsockopt_maxburst_42941 sctp_getsockopt_maxburst 2 42941 NULL
-+rawv6_sendmsg_20080 rawv6_sendmsg 4 20080 NULL
-+fuse_conn_limit_read_20084 fuse_conn_limit_read 3 20084 NULL
-+btmrvl_psmode_write_3703 btmrvl_psmode_write 3 3703 NULL
-+symtab_init_61050 symtab_init 2 61050 NULL
-+team_options_register_20091 team_options_register 3 20091 NULL
++ntfs_attr_make_non_resident_3694 ntfs_attr_make_non_resident 0 3694 NULL
++create_irq_3703 create_irq 0 3703 NULL nohasharray
++btmrvl_psmode_write_3703 btmrvl_psmode_write 3 3703 &create_irq_3703 nohasharray
++snd_m3_assp_read_3703 snd_m3_assp_read 0 3703 &btmrvl_psmode_write_3703
 +videobuf_pages_to_sg_3708 videobuf_pages_to_sg 2 3708 NULL
-+mon_bin_get_event_52863 mon_bin_get_event 4 52863 NULL
-+oom_adj_read_21847 oom_adj_read 3 21847 NULL
-+b43_nphy_load_samples_36481 b43_nphy_load_samples 3 36481 NULL
-+mpi_resize_44674 mpi_resize 2 44674 NULL
-+ip6_append_data_36490 ip6_append_data 4-5 36490 NULL nohasharray
-+tx_tx_checksum_result_read_36490 tx_tx_checksum_result_read 3 36490 &ip6_append_data_36490
-+kmalloc_slab_11917 kmalloc_slab 1 11917 NULL
-+rng_dev_read_41581 rng_dev_read 3 41581 NULL
-+nouveau_compat_ioctl_28305 nouveau_compat_ioctl 2 28305 NULL
-+cache_read_procfs_52882 cache_read_procfs 3 52882 NULL
-+fs_devrw_entry_11924 fs_devrw_entry 3 11924 NULL
-+hptiop_adjust_disk_queue_depth_20122 hptiop_adjust_disk_queue_depth 2 20122 NULL
-+xfs_trans_read_buf_map_37487 xfs_trans_read_buf_map 5 37487 NULL
-+ci_ll_write_3740 ci_ll_write 4 3740 NULL
-+snd_pcm_oss_read_28317 snd_pcm_oss_read 3 28317 NULL
-+kvm_kvzalloc_52894 kvm_kvzalloc 1 52894 NULL
-+ima_show_htable_value_57136 ima_show_htable_value 2 57136 NULL
-+mcam_v4l_read_36513 mcam_v4l_read 3 36513 NULL
-+dccp_feat_clone_sp_val_11942 dccp_feat_clone_sp_val 3 11942 NULL
-+pms_read_53873 pms_read 3 53873 NULL
-+ieee80211_if_read_fwded_frames_36520 ieee80211_if_read_fwded_frames 3 36520 NULL
-+get_derived_key_61100 get_derived_key 4 61100 NULL
-+bm_entry_write_28338 bm_entry_write 3 28338 NULL
-+_zd_iowrite32v_locked_44725 _zd_iowrite32v_locked 3 44725 NULL
-+tcp_copy_to_iovec_28344 tcp_copy_to_iovec 3 28344 NULL
-+clusterip_proc_write_44729 clusterip_proc_write 3 44729 NULL
-+dm_read_15674 dm_read 3 15674 NULL
-+cpu_type_read_36540 cpu_type_read 3 36540 NULL
-+__probe_kernel_read_61119 __probe_kernel_read 3 61119 NULL
-+nfsctl_transaction_write_64800 nfsctl_transaction_write 3 64800 NULL
-+kone_send_63435 kone_send 4 63435 NULL
-+alloc_rtllib_51136 alloc_rtllib 1 51136 NULL
-+key_tx_rx_count_read_44742 key_tx_rx_count_read 3 44742 NULL
-+tomoyo_commit_ok_20167 tomoyo_commit_ok 2 20167 NULL
-+iblock_get_bio_52936 iblock_get_bio 3 52936 NULL
-+__kfifo_to_user_36555 __kfifo_to_user 3 36555 NULL nohasharray
-+macvtap_do_read_36555 macvtap_do_read 4 36555 &__kfifo_to_user_36555
-+wep_addr_key_count_read_20174 wep_addr_key_count_read 3 20174 NULL
-+create_trace_probe_20175 create_trace_probe 1 20175 NULL
++lm3533_als_get_threshold_3725 lm3533_als_get_threshold 2 3725 NULL
++ci_ll_write_3740 ci_ll_write 4 3740 NULL nohasharray
++ath6kl_mgmt_tx_3740 ath6kl_mgmt_tx 7 3740 &ci_ll_write_3740
 +sctp_setsockopt_auth_key_3793 sctp_setsockopt_auth_key 3 3793 NULL
-+afs_proc_cells_write_61139 afs_proc_cells_write 3 61139 NULL
-+tnode_new_44757 tnode_new 3 44757 NULL nohasharray
-+pty_write_44757 pty_write 3 44757 &tnode_new_44757
-+ath6kl_send_go_probe_resp_21113 ath6kl_send_go_probe_resp 3 21113 NULL
-+kvm_read_guest_atomic_10765 kvm_read_guest_atomic 4 10765 NULL
-+iwl_dbgfs_nvm_read_23845 iwl_dbgfs_nvm_read 3 23845 NULL
-+send_packet_52960 send_packet 4 52960 NULL
-+dlmfs_file_read_28385 dlmfs_file_read 3 28385 NULL
-+ssb_bus_scan_36578 ssb_bus_scan 2 36578 NULL
 +ncp_file_write_3813 ncp_file_write 3 3813 NULL
-+tipc_port_reject_sections_55229 tipc_port_reject_sections 5 55229 NULL
-+tx_frag_cache_miss_read_28394 tx_frag_cache_miss_read 3 28394 NULL
-+set_bypass_pfs_28395 set_bypass_pfs 3 28395 NULL
-+put_cmsg_36589 put_cmsg 4 36589 NULL
-+__vmalloc_61168 __vmalloc 1 61168 NULL
-+llc_ui_recvmsg_3826 llc_ui_recvmsg 4 3826 NULL
-+sctp_setsockopt_44788 sctp_setsockopt 5 44788 NULL
 +read_file_tx_chainmask_3829 read_file_tx_chainmask 3 3829 NULL
-+pcnet32_realloc_rx_ring_36598 pcnet32_realloc_rx_ring 3 36598 NULL
-+event_oom_late_read_61175 event_oom_late_read 3 61175 NULL nohasharray
-+pair_device_61175 pair_device 4 61175 &event_oom_late_read_61175
-+sys_lsetxattr_61177 sys_lsetxattr 4 61177 NULL
-+tx_tx_exch_read_52986 tx_tx_exch_read 3 52986 NULL
-+nfs4_alloc_pages_48426 nfs4_alloc_pages 1 48426 NULL
-+rx_dropped_read_44799 rx_dropped_read 3 44799 NULL
-+batadv_check_management_packet_52993 batadv_check_management_packet 3 52993 NULL
-+tpci200_slot_map_space_3848 tpci200_slot_map_space 2 3848 NULL
-+regmap_bulk_write_59049 regmap_bulk_write 4 59049 NULL
++stringify_nodemap_3842 stringify_nodemap 2 3842 NULL
++ubi_eba_read_leb_3847 ubi_eba_read_leb 0 3847 NULL
 +create_one_cdev_3852 create_one_cdev 2 3852 NULL
-+fat_ioctl_filldir_36621 fat_ioctl_filldir 3 36621 NULL
 +smk_read_onlycap_3855 smk_read_onlycap 3 3855 NULL
-+mpage_readpages_28436 mpage_readpages 3 28436 NULL
-+cfpkt_append_61206 cfpkt_append 3 61206 NULL
-+btrfs_free_and_pin_reserved_extent_53016 btrfs_free_and_pin_reserved_extent 2 53016 NULL
-+rose_sendmsg_20249 rose_sendmsg 4 20249 NULL
 +get_fd_set_3866 get_fd_set 1 3866 NULL
-+megaraid_change_queue_depth_64815 megaraid_change_queue_depth 2 64815 NULL
-+rx_rx_defrag_read_2010 rx_rx_defrag_read 3 2010 NULL
-+unlink_queued_645 unlink_queued 3-4 645 NULL
-+il4965_ucode_tx_stats_read_12064 il4965_ucode_tx_stats_read 3 12064 NULL
-+sisusb_write_44834 sisusb_write 3 44834 NULL
-+smk_read_ambient_61220 smk_read_ambient 3 61220 NULL
-+raw_recvmsg_52529 raw_recvmsg 4 52529 NULL
-+alloc_irq_cpu_rmap_28459 alloc_irq_cpu_rmap 1 28459 NULL
-+ptc_proc_write_12076 ptc_proc_write 3 12076 NULL
-+hdlc_empty_fifo_18397 hdlc_empty_fifo 2 18397 NULL
++garp_attr_create_3883 garp_attr_create 3 3883 NULL
 +uea_send_modem_cmd_3888 uea_send_modem_cmd 3 3888 NULL
-+h5_prepare_pkt_12085 h5_prepare_pkt 4 12085 NULL
++efivarfs_file_read_3893 efivarfs_file_read 3 3893 NULL
 +nvram_write_3894 nvram_write 3 3894 NULL
-+osd_req_list_collection_objects_36664 osd_req_list_collection_objects 5 36664 NULL
 +pipeline_pre_proc_swi_read_3898 pipeline_pre_proc_swi_read 3 3898 NULL
-+iscsi_host_alloc_36671 iscsi_host_alloc 2 36671 NULL
++comedi_buf_read_n_available_3899 comedi_buf_read_n_available 0 3899 NULL
 +vcs_write_3910 vcs_write 3 3910 NULL
-+sctp_make_abort_violation_27959 sctp_make_abort_violation 4 27959 NULL
-+mwifiex_debug_read_53074 mwifiex_debug_read 3 53074 NULL
-+dtim_interval_read_654 dtim_interval_read 3 654 NULL
-+btrfs_bio_alloc_61270 btrfs_bio_alloc 3 61270 NULL
-+packet_sendmsg_24954 packet_sendmsg 4 24954 NULL
-+alloc_bulk_urbs_generic_12127 alloc_bulk_urbs_generic 5 12127 NULL
-+do_tty_write_44896 do_tty_write 5 44896 NULL
-+set_powered_12129 set_powered 4 12129 NULL
-+qib_resize_cq_53090 qib_resize_cq 2 53090 NULL
-+snd_cs4281_BA1_read_20323 snd_cs4281_BA1_read 5 20323 NULL
-+nfs_writedata_alloc_12133 nfs_writedata_alloc 2 12133 NULL
-+ramoops_init_prz_12134 ramoops_init_prz 5 12134 NULL
-+ps_poll_upsd_utilization_read_28519 ps_poll_upsd_utilization_read 3 28519 NULL
-+hdlc_irq_one_3944 hdlc_irq_one 2 3944 NULL
-+rawv6_seticmpfilter_12137 rawv6_seticmpfilter 5 12137 NULL
-+vmw_fifo_reserve_12141 vmw_fifo_reserve 2 12141 NULL
-+i2400m_tx_stats_read_28527 i2400m_tx_stats_read 3 28527 NULL
-+rawsock_recvmsg_12144 rawsock_recvmsg 4 12144 NULL
-+btmrvl_sdio_host_to_card_12152 btmrvl_sdio_host_to_card 3 12152 NULL
-+vmbus_open_12154 vmbus_open 2-3 12154 NULL
-+capinc_tty_write_28539 capinc_tty_write 3 28539 NULL
-+sel_read_policycap_28544 sel_read_policycap 3 28544 NULL
-+mptctl_getiocinfo_28545 mptctl_getiocinfo 2 28545 NULL
-+line6_dumpreq_initbuf_53123 line6_dumpreq_initbuf 3 53123 NULL
-+snd_rawmidi_kernel_read1_36740 snd_rawmidi_kernel_read1 4 36740 NULL
-+gather_array_56641 gather_array 3 56641 NULL
-+cxgbi_device_register_36746 cxgbi_device_register 1-2 36746 NULL
-+b43legacy_debugfs_write_28556 b43legacy_debugfs_write 3 28556 NULL
-+dma_memcpy_to_iovec_12173 dma_memcpy_to_iovec 5 12173 NULL
-+debug_debug1_read_8856 debug_debug1_read 3 8856 NULL
-+ddp_make_gl_12179 ddp_make_gl 1 12179 NULL
-+ps_poll_ps_poll_max_ap_turn_read_53140 ps_poll_ps_poll_max_ap_turn_read 3 53140 NULL
-+scsi_deactivate_tcq_47086 scsi_deactivate_tcq 2 47086 NULL
-+regcache_rbtree_insert_to_block_58009 regcache_rbtree_insert_to_block 5 58009 NULL
++atalk_compat_ioctl_3991 atalk_compat_ioctl 3 3991 NULL
 +do_add_counters_3992 do_add_counters 3 3992 NULL
-+mic_rx_pkts_read_27972 mic_rx_pkts_read 3 27972 NULL
-+smk_set_cipso_20379 smk_set_cipso 3 20379 NULL
-+st5481_setup_isocpipes_61340 st5481_setup_isocpipes 6-4 61340 NULL
-+rx_rx_wa_ba_not_expected_read_61341 rx_rx_wa_ba_not_expected_read 3 61341 NULL
-+dccpprobe_read_52549 dccpprobe_read 3 52549 NULL
-+ip4ip6_err_36772 ip4ip6_err 5 36772 NULL
-+mei_write_4005 mei_write 3 4005 NULL
++userspace_status_4004 userspace_status 4 4004 NULL
++mei_write_4005 mei_write 3 4005 NULL nohasharray
++xfs_check_block_4005 xfs_check_block 4 4005 &mei_write_4005
 +snd_hdsp_capture_copy_4011 snd_hdsp_capture_copy 5 4011 NULL
-+ptp_filter_init_36780 ptp_filter_init 2 36780 NULL
-+__kfifo_from_user_20399 __kfifo_from_user 3 20399 NULL
-+tx_queue_status_read_44978 tx_queue_status_read 3 44978 NULL
-+debug_debug4_read_61367 debug_debug4_read 3 61367 NULL
-+receive_copy_12216 receive_copy 3 12216 NULL
-+aat2870_reg_read_file_12221 aat2870_reg_read_file 3 12221 NULL
-+proc_fault_inject_read_36802 proc_fault_inject_read 3 36802 NULL
-+bcsp_prepare_pkt_12961 bcsp_prepare_pkt 3 12961 NULL
-+ftdi_process_packet_45005 ftdi_process_packet 5 45005 NULL
-+change_xattr_61390 change_xattr 5 61390 NULL
-+find_skb_20431 find_skb 2 20431 NULL
-+hiddev_ioctl_36816 hiddev_ioctl 2 36816 NULL
-+fmc_send_cmd_20435 fmc_send_cmd 5 20435 NULL
-+tcp_fragment_20436 tcp_fragment 3 20436 NULL
-+ib_uverbs_unmarshall_recv_12251 ib_uverbs_unmarshall_recv 5 12251 NULL
-+ptrace_writedata_45021 ptrace_writedata 4 45021 NULL
-+simple_alloc_urb_60420 simple_alloc_urb 3 60420 NULL
-+sys_sethostname_42962 sys_sethostname 2 42962 NULL
-+int_hardware_entry_36833 int_hardware_entry 3 36833 NULL
-+tx_tx_start_data_read_53219 tx_tx_start_data_read 3 53219 NULL
-+pwr_rcvd_bcns_cnt_read_4774 pwr_rcvd_bcns_cnt_read 3 4774 NULL
-+fc_change_queue_depth_36841 fc_change_queue_depth 2 36841 NULL
-+shash_compat_setkey_12267 shash_compat_setkey 3 12267 NULL
-+add_sctp_bind_addr_12269 add_sctp_bind_addr 3 12269 NULL
-+sctp_make_asconf_4078 sctp_make_asconf 3 4078 NULL
-+vhci_get_user_45039 vhci_get_user 3 45039 NULL
-+ip_vs_icmp_xmit_v6_20464 ip_vs_icmp_xmit_v6 4 20464 NULL
-+compat_ipv6_setsockopt_20468 compat_ipv6_setsockopt 5 20468 NULL
-+read_buf_20469 read_buf 2 20469 NULL
-+cm_write_36858 cm_write 3 36858 NULL
-+note_last_dentry_12285 note_last_dentry 3 12285 NULL
-+blk_queue_resize_tags_28670 blk_queue_resize_tags 2 28670 NULL
-+il_dbgfs_nvm_read_12288 il_dbgfs_nvm_read 3 12288 NULL
-+sel_write_user_45060 sel_write_user 3 45060 NULL
-+tx_tx_data_programmed_read_36871 tx_tx_data_programmed_read 3 36871 NULL
-+__dev_alloc_skb_28681 __dev_alloc_skb 1 28681 NULL
-+svc_setsockopt_36876 svc_setsockopt 5 36876 NULL
-+snd_mixart_BA0_read_45069 snd_mixart_BA0_read 5 45069 NULL
-+fast_user_write_20494 fast_user_write 5 20494 NULL
-+unix_stream_sendmsg_61455 unix_stream_sendmsg 4 61455 NULL
-+sctp_make_fwdtsn_53265 sctp_make_fwdtsn 3 53265 NULL
-+ib_ucm_alloc_data_36885 ib_ucm_alloc_data 3 36885 NULL
-+hidraw_report_event_20503 hidraw_report_event 3 20503 NULL
-+bt_sock_recvmsg_12316 bt_sock_recvmsg 4 12316 NULL
-+selinux_inode_notifysecctx_36896 selinux_inode_notifysecctx 3 36896 NULL
-+lirc_buffer_init_53282 lirc_buffer_init 3-2 53282 NULL
-+tipc_msg_build_12326 tipc_msg_build 4 12326 NULL
-+xfs_iext_realloc_direct_20521 xfs_iext_realloc_direct 2 20521 NULL
-+drbd_bm_resize_20522 drbd_bm_resize 2 20522 NULL
-+pcbit_writecmd_12332 pcbit_writecmd 2 12332 NULL
-+OS_kmalloc_36909 OS_kmalloc 1 36909 NULL
-+osst_read_40237 osst_read 3 40237 NULL
++blk_end_request_4024 blk_end_request 3 4024 NULL
++ext4_xattr_find_entry_4025 ext4_xattr_find_entry 0 4025 NULL
++usbnet_write_cmd_async_4035 usbnet_write_cmd_async 7 4035 NULL
++read_file_queues_4078 read_file_queues 3 4078 NULL
++fbcon_do_set_font_4079 fbcon_do_set_font 2-3 4079 NULL
++da9052_free_irq_4090 da9052_free_irq 2 4090 NULL
 +tm6000_read_4151 tm6000_read 3 4151 NULL
-+amd_create_gatt_pages_20537 amd_create_gatt_pages 1 20537 NULL
-+usbdev_read_45114 usbdev_read 3 45114 NULL
-+drm_plane_init_28731 drm_plane_init 6 28731 NULL
-+spi_execute_28736 spi_execute 5 28736 NULL
-+snd_pcm_aio_write_28738 snd_pcm_aio_write 3 28738 NULL
-+mptctl_ioctl_12355 mptctl_ioctl 2 12355 NULL
++mpt_raid_phys_disk_get_num_paths_4155 mpt_raid_phys_disk_get_num_paths 0 4155 NULL
++msg_bits_4158 msg_bits 0-3-4 4158 NULL
 +get_alua_req_4166 get_alua_req 3 4166 NULL
-+scsi_report_opcode_20551 scsi_report_opcode 3 20551 NULL
 +blk_dropped_read_4168 blk_dropped_read 3 4168 NULL
-+venus_create_20555 venus_create 4 20555 NULL
-+__nf_ct_ext_add_length_12364 __nf_ct_ext_add_length 3 12364 NULL
-+batadv_interface_rx_53325 batadv_interface_rx 4 53325 NULL
-+receive_packet_12367 receive_packet 2 12367 NULL
-+squashfs_cache_init_41656 squashfs_cache_init 2 41656 NULL
-+mem_write_22232 mem_write 3 22232 NULL
 +read_file_bool_4180 read_file_bool 3 4180 NULL
-+send_to_tty_45141 send_to_tty 3 45141 NULL
-+fops_read_40672 fops_read 3 40672 NULL
-+cxio_init_resource_fifo_28764 cxio_init_resource_fifo 3 28764 NULL
-+write_leb_36957 write_leb 5 36957 NULL
-+xfs_iext_inline_to_direct_12384 xfs_iext_inline_to_direct 2 12384 NULL
-+device_write_45156 device_write 3 45156 NULL
-+i915_max_freq_read_20581 i915_max_freq_read 3 20581 NULL
-+tomoyo_write_self_45161 tomoyo_write_self 3 45161 NULL
-+sparse_early_mem_maps_alloc_node_36971 sparse_early_mem_maps_alloc_node 4 36971 NULL
-+batadv_tt_append_diff_20588 batadv_tt_append_diff 4 20588 NULL
-+dvb_net_sec_callback_28786 dvb_net_sec_callback 2 28786 NULL
-+excessive_retries_read_60425 excessive_retries_read 3 60425 NULL
-+isp1760_register_628 isp1760_register 1-2 628 NULL
-+dvb_net_ioctl_61559 dvb_net_ioctl 2 61559 NULL
-+lirc_write_20604 lirc_write 3 20604 NULL
-+sel_write_member_28800 sel_write_member 3 28800 NULL
-+ieee80211_if_read_rc_rateidx_mask_2ghz_61570 ieee80211_if_read_rc_rateidx_mask_2ghz 3 61570 NULL
-+ieee80211_if_read_num_mcast_sta_12419 ieee80211_if_read_num_mcast_sta 3 12419 NULL
-+cgroup_file_read_28804 cgroup_file_read 3 28804 NULL
-+sys_msgrcv_959 sys_msgrcv 3 959 NULL
-+snd_sb_csp_load_user_45190 snd_sb_csp_load_user 3 45190 NULL
-+pskb_network_may_pull_35336 pskb_network_may_pull 2 35336 NULL
-+auok190xfb_write_37001 auok190xfb_write 3 37001 NULL
-+ext4_kvzalloc_47605 ext4_kvzalloc 1 47605 NULL
-+setxattr_37006 setxattr 4 37006 NULL
-+add_child_45201 add_child 4 45201 NULL
-+seq_open_private_61589 seq_open_private 3 61589 NULL
-+iso_alloc_urb_45206 iso_alloc_urb 4-5 45206 NULL
-+__get_vm_area_61599 __get_vm_area 1 61599 NULL
-+iwl_dbgfs_rxon_filter_flags_read_28832 iwl_dbgfs_rxon_filter_flags_read 3 28832 NULL
-+nl_portid_hash_zalloc_34843 nl_portid_hash_zalloc 1 34843 NULL
-+kfifo_copy_to_user_20646 kfifo_copy_to_user 3 20646 NULL
-+spi_alloc_master_45223 spi_alloc_master 2 45223 NULL
-+ieee80211_if_read_dropped_frames_congestion_32603 ieee80211_if_read_dropped_frames_congestion 3 32603 NULL
-+vp_request_msix_vectors_28849 vp_request_msix_vectors 2 28849 NULL
-+oz_cdev_read_20659 oz_cdev_read 3 20659 NULL
-+configfs_write_file_61621 configfs_write_file 3 61621 NULL
-+ieee80211_if_read_drop_unencrypted_37053 ieee80211_if_read_drop_unencrypted 3 37053 NULL
-+ieee80211_rx_bss_info_61630 ieee80211_rx_bss_info 3 61630 NULL
-+isr_cmd_cmplt_read_53439 isr_cmd_cmplt_read 3 53439 NULL
-+ablkcipher_next_slow_47274 ablkcipher_next_slow 4-3 47274 NULL
-+i2o_parm_table_get_61635 i2o_parm_table_get 6 61635 NULL
-+snd_hdsp_playback_copy_20676 snd_hdsp_playback_copy 5 20676 NULL
-+x25_sendmsg_12487 x25_sendmsg 4 12487 NULL
-+dvb_dmxdev_buffer_read_20682 dvb_dmxdev_buffer_read 4 20682 NULL
-+get_packet_pg_28023 get_packet_pg 4 28023 NULL
-+rtllib_auth_challenge_12493 rtllib_auth_challenge 3 12493 NULL
-+acpi_tb_parse_root_table_53455 acpi_tb_parse_root_table 1 53455 NULL
-+resize_stripes_61650 resize_stripes 2 61650 NULL
-+n2_run_53459 n2_run 3 53459 NULL
-+packet_sendmsg_spkt_28885 packet_sendmsg_spkt 4 28885 NULL
-+parse_command_37079 parse_command 2 37079 NULL
-+read_file_tgt_int_stats_20697 read_file_tgt_int_stats 3 20697 NULL
-+alloc_ts_config_45775 alloc_ts_config 1 45775 NULL
-+ttm_page_pool_free_61661 ttm_page_pool_free 2 61661 NULL
-+input_mt_init_slots_45279 input_mt_init_slots 2 45279 NULL
-+pipeline_cs_rx_packet_in_read_37089 pipeline_cs_rx_packet_in_read 3 37089 NULL
-+bt_sock_stream_recvmsg_52518 bt_sock_stream_recvmsg 4 52518 NULL
-+insert_one_name_61668 insert_one_name 7 61668 NULL
++f1x_determine_channel_4202 f1x_determine_channel 2 4202 NULL
++_osd_req_list_objects_4204 _osd_req_list_objects 6 4204 NULL
++__snd_gf1_read_addr_4210 __snd_gf1_read_addr 0 4210 NULL
++ext4_new_inode_4247 ext4_new_inode 5 4247 NULL
++xt_compat_add_offset_4289 xt_compat_add_offset 0 4289 NULL
++__usbnet_read_cmd_4299 __usbnet_read_cmd 7 4299 NULL
++dvb_ringbuffer_pkt_read_user_4303 dvb_ringbuffer_pkt_read_user 2-3-5 4303 NULL
 +nouveau_fifo_create__4327 nouveau_fifo_create_ 5-6 4327 NULL
-+pcpu_page_first_chunk_20712 pcpu_page_first_chunk 1 20712 NULL
-+iowarrior_read_53483 iowarrior_read 3 53483 NULL
-+osd_req_write_kern_53486 osd_req_write_kern 5 53486 NULL
-+lock_loop_61681 lock_loop 1 61681 NULL
-+snd_pcm_oss_sync1_45298 snd_pcm_oss_sync1 2 45298 NULL
-+security_context_to_sid_force_20724 security_context_to_sid_force 2 20724 NULL
-+brcmf_sdio_trap_info_48510 brcmf_sdio_trap_info 4 48510 NULL
-+ps_upsd_timeouts_read_28924 ps_upsd_timeouts_read 3 28924 NULL
-+vring_add_indirect_20737 vring_add_indirect 3-4 20737 NULL
-+push_rx_28939 push_rx 3 28939 NULL
++snd_rawmidi_kernel_read_4328 snd_rawmidi_kernel_read 3 4328 NULL
 +__copy_from_user_inatomic_4365 __copy_from_user_inatomic 3 4365 NULL
-+vol_cdev_direct_write_20751 vol_cdev_direct_write 3 20751 NULL
-+idetape_chrdev_write_53976 idetape_chrdev_write 3 53976 NULL
 +sys_setdomainname_4373 sys_setdomainname 2 4373 NULL
-+fragmentation_threshold_read_61718 fragmentation_threshold_read 3 61718 NULL
-+copy_vm86_regs_from_user_45340 copy_vm86_regs_from_user 3 45340 NULL
-+nouveau_dmaobj_create__61730 nouveau_dmaobj_create_ 6 61730 NULL
-+btrfs_trim_block_group_28963 btrfs_trim_block_group 3 28963 NULL
 +irda_sendmsg_4388 irda_sendmsg 4 4388 NULL
-+aac_srcv_ioremap_6659 aac_srcv_ioremap 2 6659 NULL
-+ubi_leb_change_10289 ubi_leb_change 4 10289 NULL
-+read_file_credit_dist_stats_54367 read_file_credit_dist_stats 3 54367 NULL
-+alloc_sched_domains_28972 alloc_sched_domains 1 28972 NULL
-+pcpu_extend_area_map_12589 pcpu_extend_area_map 2 12589 NULL
-+read_file_interrupt_61742 read_file_interrupt 3 61742 NULL nohasharray
-+read_file_regval_61742 read_file_regval 3 61742 &read_file_interrupt_61742
-+btmrvl_hscmd_write_27089 btmrvl_hscmd_write 3 27089 NULL
-+fb_alloc_cmap_gfp_20792 fb_alloc_cmap_gfp 2 20792 NULL
-+iwl_dbgfs_rxon_flags_read_20795 iwl_dbgfs_rxon_flags_read 3 20795 NULL
-+cxacru_cm_get_array_4412 cxacru_cm_get_array 4 4412 NULL
++access_process_vm_4412 access_process_vm 0-2-4 4412 NULL nohasharray
++cxacru_cm_get_array_4412 cxacru_cm_get_array 4 4412 &access_process_vm_4412
 +libfc_vport_create_4415 libfc_vport_create 2 4415 NULL
-+hci_sock_setsockopt_28993 hci_sock_setsockopt 5 28993 NULL
-+tstats_write_60432 tstats_write 3 60432 NULL nohasharray
-+kmalloc_60432 kmalloc 1 60432 &tstats_write_60432
-+bin_uuid_28999 bin_uuid 3 28999 NULL
-+sys_sendto_20809 sys_sendto 6 20809 NULL
-+alloc_page_cgroup_2919 alloc_page_cgroup 1 2919 NULL
-+set_registers_53582 set_registers 3 53582 NULL
-+fc_fcp_frame_alloc_12624 fc_fcp_frame_alloc 2 12624 NULL
 +do_pages_stat_4437 do_pages_stat 2 4437 NULL
-+lane2_associate_req_45398 lane2_associate_req 4 45398 NULL
-+tcf_csum_ipv4_udp_30777 tcf_csum_ipv4_udp 4 30777 NULL
-+pwr_rcvd_awake_bcns_cnt_read_12632 pwr_rcvd_awake_bcns_cnt_read 3 12632 NULL
-+bchannel_get_rxbuf_37213 bchannel_get_rxbuf 2 37213 NULL
-+keymap_store_45406 keymap_store 4 45406 NULL
-+pn_sendmsg_12640 pn_sendmsg 4 12640 NULL
-+dwc3_link_state_write_12641 dwc3_link_state_write 3 12641 NULL
-+wl1271_format_buffer_20834 wl1271_format_buffer 2 20834 NULL
-+il4965_rs_sta_dbgfs_rate_scale_data_read_37792 il4965_rs_sta_dbgfs_rate_scale_data_read 3 37792 NULL
-+pfkey_recvmsg_53604 pfkey_recvmsg 4 53604 NULL
-+xz_dec_init_29029 xz_dec_init 2 29029 NULL
-+regmap_access_read_file_37223 regmap_access_read_file 3 37223 NULL
-+tcp_dma_try_early_copy_4457 tcp_dma_try_early_copy 3 4457 NULL
-+__do_replace_37227 __do_replace 5 37227 NULL
-+dn_alloc_send_pskb_4465 dn_alloc_send_pskb 2 4465 NULL
-+ieee80211_if_read_ht_opmode_29044 ieee80211_if_read_ht_opmode 3 29044 NULL
-+rx_filter_dup_filter_read_37238 rx_filter_dup_filter_read 3 37238 NULL
 +at76_set_card_command_4471 at76_set_card_command 4 4471 NULL
-+rxrpc_sendmsg_29049 rxrpc_sendmsg 4 29049 NULL
-+tso_fragment_29050 tso_fragment 3 29050 NULL
-+__alloc_pred_stack_26687 __alloc_pred_stack 2 26687 NULL
-+sel_read_class_12669 sel_read_class 3 12669 NULL nohasharray
-+sparse_mem_maps_populate_node_12669 sparse_mem_maps_populate_node 4 12669 &sel_read_class_12669
-+rproc_recovery_read_36245 rproc_recovery_read 3 36245 NULL
-+xd_write_multiple_pages_53633 xd_write_multiple_pages 6-5 53633 NULL
-+ccid_getsockopt_builtin_ccids_53634 ccid_getsockopt_builtin_ccids 2 53634 NULL
-+__iio_allocate_sw_ring_buffer_4843 __iio_allocate_sw_ring_buffer 3 4843 NULL
-+init_per_cpu_17880 init_per_cpu 1 17880 NULL
-+iso_packets_buffer_init_29061 iso_packets_buffer_init 3-4 29061 NULL
-+intel_render_ring_init_dri_45446 intel_render_ring_init_dri 2-3 45446 NULL
-+udp_sendmsg_4492 udp_sendmsg 4 4492 NULL
-+ieee80211_probereq_get_29069 ieee80211_probereq_get 4-6 29069 NULL
++snd_seq_expand_var_event_4481 snd_seq_expand_var_event 0-5 4481 NULL
++sys_semtimedop_4486 sys_semtimedop 3 4486 NULL
 +vmbus_establish_gpadl_4495 vmbus_establish_gpadl 3 4495 NULL
-+bfad_debugfs_write_regwr_61841 bfad_debugfs_write_regwr 3 61841 NULL
-+_alloc_cdb_cont_23609 _alloc_cdb_cont 2 23609 NULL
 +set_link_security_4502 set_link_security 4 4502 NULL
-+nr_sendmsg_53656 nr_sendmsg 4 53656 NULL
-+l1oip_socket_parse_4507 l1oip_socket_parse 4 4507 NULL
-+tracing_read_dyn_info_45468 tracing_read_dyn_info 3 45468 NULL
-+fs_path_prepare_for_add_61854 fs_path_prepare_for_add 2 61854 NULL
-+key_icverrors_read_20895 key_icverrors_read 3 20895 NULL
-+srp_target_alloc_37288 srp_target_alloc 3 37288 NULL
-+mmio_read_40348 mmio_read 4 40348 NULL
-+vfio_msi_enable_20906 vfio_msi_enable 2 20906 NULL
-+ieee80211_if_read_num_buffered_multicast_12716 ieee80211_if_read_num_buffered_multicast 3 12716 NULL
-+compat_sys_readv_20911 compat_sys_readv 3 20911 NULL
-+ivtv_write_12721 ivtv_write 3 12721 NULL
-+fuse_fill_write_pages_53682 fuse_fill_write_pages 4 53682 NULL
-+islpci_mgt_transaction_23610 islpci_mgt_transaction 5 23610 NULL
 +sys_llistxattr_4532 sys_llistxattr 3 4532 NULL
-+isdn_ppp_write_29109 isdn_ppp_write 4 29109 NULL
-+da9052_group_write_4534 da9052_group_write 3 4534 NULL
-+v4l2_event_subscribe_53687 v4l2_event_subscribe 3 53687 NULL
-+jffs2_write_dirent_37311 jffs2_write_dirent 5 37311 NULL
-+key_rx_spec_read_12736 key_rx_spec_read 3 12736 NULL
-+tx_frag_bad_mblk_num_read_28064 tx_frag_bad_mblk_num_read 3 28064 NULL
++da9052_group_write_4534 da9052_group_write 2-3 4534 NULL
++tty_register_device_4544 tty_register_device 2 4544 NULL
 +videobuf_vmalloc_to_sg_4548 videobuf_vmalloc_to_sg 2 4548 NULL
-+rds_message_copy_from_user_45510 rds_message_copy_from_user 3 45510 NULL
-+ieee80211_rtl_auth_challenge_61897 ieee80211_rtl_auth_challenge 3 61897 NULL
-+send_msg_37323 send_msg 4 37323 NULL
-+brcmf_sdbrcm_membytes_37324 brcmf_sdbrcm_membytes 3-5 37324 NULL
-+l2cap_create_connless_pdu_37327 l2cap_create_connless_pdu 3 37327 NULL
-+clear_refs_write_61904 clear_refs_write 3 61904 NULL
-+scsi_mode_select_37330 scsi_mode_select 6 37330 NULL
-+rxrpc_server_sendmsg_37331 rxrpc_server_sendmsg 4 37331 NULL
-+altera_set_ir_post_20948 altera_set_ir_post 2 20948 NULL
-+virtqueue_add_buf_59470 virtqueue_add_buf 3-4 59470 NULL
-+proc_scsi_write_29142 proc_scsi_write 3 29142 NULL
-+dsp_buffer_alloc_11684 dsp_buffer_alloc 2 11684 NULL
-+rx_filter_arp_filter_read_61914 rx_filter_arp_filter_read 3 61914 NULL
-+reshape_ring_29147 reshape_ring 2 29147 NULL
-+cgroup_read_u64_45532 cgroup_read_u64 5 45532 NULL
-+au0828_init_isoc_61917 au0828_init_isoc 3-2 61917 NULL
-+copy_macs_45534 copy_macs 4 45534 NULL
-+sctp_sendmsg_61919 sctp_sendmsg 4 61919 NULL
-+listxattr_12769 listxattr 3 12769 NULL
++btrfs_file_extent_inline_item_len_4575 btrfs_file_extent_inline_item_len 0 4575 NULL
 +xfs_buf_get_maps_4581 xfs_buf_get_maps 2 4581 NULL
-+wdm_write_53735 wdm_write 3 53735 NULL
-+snd_rme9652_playback_copy_20970 snd_rme9652_playback_copy 5 20970 NULL
-+send_bulk_static_data_61932 send_bulk_static_data 3 61932 NULL
-+cx18_copy_mdl_to_user_45549 cx18_copy_mdl_to_user 4 45549 NULL
-+mempool_create_29437 mempool_create 1 29437 NULL
-+platform_create_bundle_12785 platform_create_bundle 4-6 12785 NULL
-+brcmf_tx_frame_20978 brcmf_tx_frame 3 20978 NULL
-+sock_alloc_send_pskb_21246 sock_alloc_send_pskb 2 21246 NULL
-+stats_dot11ACKFailureCount_read_45558 stats_dot11ACKFailureCount_read 3 45558 NULL
-+alg_setsockopt_20985 alg_setsockopt 5 20985 NULL
-+venus_rmdir_45564 venus_rmdir 4 45564 NULL
-+scsi_adjust_queue_depth_12802 scsi_adjust_queue_depth 3 12802 NULL
-+rsa_extract_mpi_6973 rsa_extract_mpi 5 6973 NULL
-+squashfs_read_id_index_table_61961 squashfs_read_id_index_table 4 61961 NULL
-+mgmt_event_12810 mgmt_event 4 12810 NULL
-+ntfs_rl_realloc_nofail_32173 ntfs_rl_realloc_nofail 3 32173 NULL
-+xfs_inumbers_fmt_12817 xfs_inumbers_fmt 3 12817 NULL
-+ipath_create_cq_45586 ipath_create_cq 2 45586 NULL
-+wusb_prf_256_29203 wusb_prf_256 7 29203 NULL nohasharray
-+alloc_group_attrs_29203 alloc_group_attrs 3 29203 &wusb_prf_256_29203
-+comedi_alloc_subdevices_29207 comedi_alloc_subdevices 2 29207 NULL
-+rdma_set_ib_paths_45592 rdma_set_ib_paths 3 45592 NULL
-+compat_udpv6_setsockopt_42981 compat_udpv6_setsockopt 5 42981 NULL
-+rds_iw_inc_copy_to_user_29214 rds_iw_inc_copy_to_user 3 29214 NULL
-+zd_usb_iowrite16v_async_23984 zd_usb_iowrite16v_async 3 23984 NULL
-+TSS_authhmac_12839 TSS_authhmac 3 12839 NULL
-+iwl_dbgfs_temperature_read_29224 iwl_dbgfs_temperature_read 3 29224 NULL
-+virtnet_send_command_61993 virtnet_send_command 5-6 61993 NULL
-+sys_getxattr_37418 sys_getxattr 4 37418 NULL
-+regmap_raw_write_53803 regmap_raw_write 4 53803 NULL
-+hci_sock_sendmsg_37420 hci_sock_sendmsg 4 37420 NULL
-+spidev_ioctl_12846 spidev_ioctl 2 12846 NULL
-+t4vf_pktgl_to_skb_39005 t4vf_pktgl_to_skb 2 39005 NULL
-+audit_log_n_hex_45617 audit_log_n_hex 3 45617 NULL
-+devm_ioremap_29235 devm_ioremap 2-3 29235 NULL
-+irq_domain_add_linear_29236 irq_domain_add_linear 2 29236 NULL
-+recover_peb_29238 recover_peb 6-7 29238 NULL
-+security_context_to_sid_core_29248 security_context_to_sid_core 2 29248 NULL
-+proc_fault_inject_write_21058 proc_fault_inject_write 3 21058 NULL
-+i915_gem_execbuffer_relocate_slow_25355 i915_gem_execbuffer_relocate_slow 7 25355 NULL
-+jffs2_do_unlink_62020 jffs2_do_unlink 4 62020 NULL
-+tun_sendmsg_10337 tun_sendmsg 4 10337 NULL
++bch_alloc_4593 bch_alloc 1 4593 NULL
++iwl_dbgfs_tx_queue_read_4635 iwl_dbgfs_tx_queue_read 3 4635 NULL
 +skb_add_data_nocache_4682 skb_add_data_nocache 4 4682 NULL
 +cx18_read_pos_4683 cx18_read_pos 3 4683 NULL
-+brcmf_sdio_dump_console_37455 brcmf_sdio_dump_console 4 37455 NULL
-+pmcraid_build_passthrough_ioadls_62034 pmcraid_build_passthrough_ioadls 2 62034 NULL
-+event_calibration_read_21083 event_calibration_read 3 21083 NULL
-+ppp_tx_cp_62044 ppp_tx_cp 5 62044 NULL
-+prism2_set_genericelement_29277 prism2_set_genericelement 3 29277 NULL
-+sctp_user_addto_chunk_62047 sctp_user_addto_chunk 2-3 62047 NULL
++short_retry_limit_read_4687 short_retry_limit_read 3 4687 NULL
++kone_receive_4690 kone_receive 4 4690 NULL
++round_pipe_size_4701 round_pipe_size 0 4701 NULL
 +cxgbi_alloc_big_mem_4707 cxgbi_alloc_big_mem 1 4707 NULL
-+compat_mpctl_ioctl_45671 compat_mpctl_ioctl 2 45671 NULL
-+do_pselect_62061 do_pselect 1 62061 NULL
 +btmrvl_gpiogap_read_4718 btmrvl_gpiogap_read 3 4718 NULL
-+dgram_sendmsg_45679 dgram_sendmsg 4 45679 NULL
-+kmem_realloc_37489 kmem_realloc 2 37489 NULL
 +ati_create_gatt_pages_4722 ati_create_gatt_pages 1 4722 NULL nohasharray
 +show_header_4722 show_header 3 4722 &ati_create_gatt_pages_4722
-+ip_options_get_from_user_64958 ip_options_get_from_user 4 64958 NULL
-+sn9c102_read_29305 sn9c102_read 3 29305 NULL
-+pcpu_alloc_bootmem_62074 pcpu_alloc_bootmem 2 62074 NULL
-+smk_write_ambient_45691 smk_write_ambient 3 45691 NULL
-+sg_read_25799 sg_read 3 25799 NULL
-+uwb_rc_cmd_done_35892 uwb_rc_cmd_done 4 35892 NULL
-+ci_ll_init_12930 ci_ll_init 3 12930 NULL
-+unix_dgram_sendmsg_45699 unix_dgram_sendmsg 4 45699 NULL
-+nouveau_namedb_create__26732 nouveau_namedb_create_ 7 26732 NULL
-+pwr_disable_ps_read_13176 pwr_disable_ps_read 3 13176 NULL
-+vmalloc_32_user_37519 vmalloc_32_user 1 37519 NULL
-+fd_do_writev_29329 fd_do_writev 3 29329 NULL
-+hugetlb_cgroup_read_49259 hugetlb_cgroup_read 5 49259 NULL
-+do_ip_vs_set_ctl_48641 do_ip_vs_set_ctl 4 48641 NULL
-+ecryptfs_send_message_locked_31801 ecryptfs_send_message_locked 2 31801 NULL
-+dvb_ca_en50221_init_45718 dvb_ca_en50221_init 4 45718 NULL
-+__alloc_ei_netdev_29338 __alloc_ei_netdev 1 29338 NULL
-+jffs2_security_setxattr_62107 jffs2_security_setxattr 4 62107 NULL
-+new_skb_21148 new_skb 1 21148 NULL
-+ath6kl_mgmt_tx_21153 ath6kl_mgmt_tx 9 21153 NULL
-+l2cap_sock_setsockopt_old_29346 l2cap_sock_setsockopt_old 4 29346 NULL
-+bm_status_write_12964 bm_status_write 3 12964 NULL
-+mmc_test_alloc_mem_28102 mmc_test_alloc_mem 3-2 28102 NULL
-+snd_cs46xx_io_read_45734 snd_cs46xx_io_read 5 45734 NULL
-+wusb_ccm_mac_32199 wusb_ccm_mac 7 32199 NULL
-+ip6_ufo_append_data_4780 ip6_ufo_append_data 5-6-7 4780 NULL
-+sep_create_dcb_dmatables_context_37551 sep_create_dcb_dmatables_context 6 37551 NULL nohasharray
-+nf_nat_mangle_tcp_packet_37551 nf_nat_mangle_tcp_packet 6-8 37551 &sep_create_dcb_dmatables_context_37551
-+bnad_debugfs_write_regrd_6706 bnad_debugfs_write_regrd 3 6706 NULL
-+rw_copy_check_uvector_45748 rw_copy_check_uvector 3 45748 NULL nohasharray
-+v4l2_ctrl_new_std_45748 v4l2_ctrl_new_std 5 45748 &rw_copy_check_uvector_45748
-+qib_diag_write_62133 qib_diag_write 3 62133 NULL
-+gnttab_expand_15817 gnttab_expand 1 15817 NULL
-+lkdtm_debugfs_read_45752 lkdtm_debugfs_read 3 45752 NULL
-+sctp_make_chunk_12986 sctp_make_chunk 4 12986 NULL
-+sisusb_send_packet_20891 sisusb_send_packet 2 20891 NULL
-+TransmitTcb_12989 TransmitTcb 4 12989 NULL
-+mthca_setup_cmd_doorbells_53954 mthca_setup_cmd_doorbells 2 53954 NULL
++pwr_rcvd_bcns_cnt_read_4774 pwr_rcvd_bcns_cnt_read 3 4774 NULL
 +ncp__vol2io_4804 ncp__vol2io 5 4804 NULL
-+video_usercopy_62151 video_usercopy 2 62151 NULL
-+cx18_v4l2_read_21196 cx18_v4l2_read 3 21196 NULL
 +repair_io_failure_4815 repair_io_failure 4 4815 NULL
-+xhci_alloc_streams_37586 xhci_alloc_streams 5 37586 NULL
-+p9_client_zc_rpc_14345 p9_client_zc_rpc 7 14345 NULL
-+bnx2i_send_nl_mesg_53353 bnx2i_send_nl_mesg 4 53353 NULL
-+ipc_rcu_alloc_21208 ipc_rcu_alloc 1 21208 NULL
-+___alloc_bootmem_nopanic_53626 ___alloc_bootmem_nopanic 1 53626 NULL
-+subsystem_filter_write_13022 subsystem_filter_write 3 13022 NULL
-+tracing_max_lat_read_8890 tracing_max_lat_read 3 8890 NULL
-+raw_setsockopt_45800 raw_setsockopt 5 45800 NULL
-+alloc_upcall_62186 alloc_upcall 2 62186 NULL
-+kvm_read_guest_page_mmu_37611 kvm_read_guest_page_mmu 6 37611 NULL
-+drm_compat_ioctl_51717 drm_compat_ioctl 2 51717 NULL
-+lbs_rdbbp_read_45805 lbs_rdbbp_read 3 45805 NULL
-+pcpu_alloc_alloc_info_45813 pcpu_alloc_alloc_info 1-2 45813 NULL
-+input_ff_create_21240 input_ff_create 2 21240 NULL
-+sock_kmalloc_62205 sock_kmalloc 2 62205 NULL
++__iio_allocate_sw_ring_buffer_4843 __iio_allocate_sw_ring_buffer 3 4843 NULL
++gigaset_if_receive_4861 gigaset_if_receive 3 4861 NULL
 +key_tx_spec_read_4862 key_tx_spec_read 3 4862 NULL
-+__dn_setsockopt_13060 __dn_setsockopt 5 13060 NULL
-+amthi_read_45831 amthi_read 4 45831 NULL
-+cmpk_message_handle_tx_54024 cmpk_message_handle_tx 4 54024 NULL
++ocfs2_defrag_extent_4873 ocfs2_defrag_extent 3 4873 NULL
 +hid_register_field_4874 hid_register_field 2-3 4874 NULL
-+ipxrtr_route_packet_54036 ipxrtr_route_packet 4 54036 NULL
 +vga_arb_read_4886 vga_arb_read 3 4886 NULL
 +sys_ipc_4889 sys_ipc 3 4889 NULL
-+bio_copy_user_iov_37660 bio_copy_user_iov 4 37660 NULL
-+smp_build_cmd_45853 smp_build_cmd 3 45853 NULL
-+x509_process_extension_45854 x509_process_extension 5 45854 NULL
-+nfsd_read_file_62241 nfsd_read_file 6 62241 NULL
-+pipeline_dec_packet_out_read_54052 pipeline_dec_packet_out_read 3 54052 NULL
-+do_register_entry_29478 do_register_entry 4 29478 NULL
-+isdn_write_45863 isdn_write 3 45863 NULL
-+rproc_state_read_54057 rproc_state_read 3 54057 NULL
-+ieee80211_if_read_rc_rateidx_mcs_mask_2ghz_37675 ieee80211_if_read_rc_rateidx_mcs_mask_2ghz 3 37675 NULL
-+regmap_map_read_file_37685 regmap_map_read_file 3 37685 NULL
-+alloc_smp_req_51337 alloc_smp_req 1 51337 NULL
-+vmw_gmr2_bind_21305 vmw_gmr2_bind 3 21305 NULL
-+get_rdac_req_45882 get_rdac_req 3 45882 NULL
-+_malloc_54077 _malloc 1 54077 NULL
-+add_res_range_21310 add_res_range 4 21310 NULL
-+bfad_debugfs_read_13119 bfad_debugfs_read 3 13119 NULL
++lp872x_write_byte_4914 lp872x_write_byte 2 4914 NULL
 +sys_process_vm_writev_4928 sys_process_vm_writev 3-5 4928 NULL
 +ntfs_rl_insert_4931 ntfs_rl_insert 2-4 4931 NULL
-+ip_make_skb_13129 ip_make_skb 5-6 13129 NULL
-+snd_rme96_playback_copy_13111 snd_rme96_playback_copy 5 13111 NULL
-+ftrace_profile_read_21327 ftrace_profile_read 3 21327 NULL
-+atk_debugfs_ggrp_read_29522 atk_debugfs_ggrp_read 3 29522 NULL
-+altera_set_ir_pre_54103 altera_set_ir_pre 2 54103 NULL
-+il_dbgfs_sram_read_62296 il_dbgfs_sram_read 3 62296 NULL
-+create_xattr_54106 create_xattr 5 54106 NULL
-+udplite_getfrag_14479 udplite_getfrag 3-4 14479 NULL
-+ep_write_59008 ep_write 3 59008 NULL
-+dbgfs_frame_45917 dbgfs_frame 3 45917 NULL
-+sparse_early_usemaps_alloc_pgdat_section_62304 sparse_early_usemaps_alloc_pgdat_section 2 62304 NULL
++ieee80211_if_fmt_ave_beacon_4941 ieee80211_if_fmt_ave_beacon 3 4941 NULL
++da9055_reg_write_4942 da9055_reg_write 2 4942 NULL
 +devm_kzalloc_4966 devm_kzalloc 2 4966 NULL
 +compat_rawv6_setsockopt_4967 compat_rawv6_setsockopt 5 4967 NULL
-+udf_sb_alloc_partition_maps_62313 udf_sb_alloc_partition_maps 2 62313 NULL
-+alloc_mr_45935 alloc_mr 1 45935 NULL
-+read_enabled_file_bool_37744 read_enabled_file_bool 3 37744 NULL
-+isku_receive_54130 isku_receive 4 54130 NULL
-+hfcpci_empty_bfifo_62323 hfcpci_empty_bfifo 4 62323 NULL
-+caif_stream_recvmsg_13173 caif_stream_recvmsg 4 13173 NULL
-+ocfs2_control_cfu_37750 ocfs2_control_cfu 2 37750 NULL
-+Wb35Reg_BurstWrite_62327 Wb35Reg_BurstWrite 4 62327 NULL
-+ipath_cdev_init_37752 ipath_cdev_init 1 37752 NULL
-+idetape_queue_rw_tail_29562 idetape_queue_rw_tail 3 29562 NULL
-+alloc_orinocodev_21371 alloc_orinocodev 1 21371 NULL
-+i915_max_freq_write_11350 i915_max_freq_write 3 11350 NULL
-+leaf_dealloc_29566 leaf_dealloc 3 29566 NULL
-+dgrp_net_ioctl_13183 dgrp_net_ioctl 2 13183 NULL
-+create_trace_uprobe_13184 create_trace_uprobe 1 13184 NULL
-+btmrvl_pscmd_write_29504 btmrvl_pscmd_write 3 29504 NULL
-+lbs_lowsnr_read_29571 lbs_lowsnr_read 3 29571 NULL
-+video_ioctl2_21380 video_ioctl2 2 21380 NULL
-+dccp_setsockopt_cscov_37766 dccp_setsockopt_cscov 2 37766 NULL
-+alloc_ldt_21972 alloc_ldt 2 21972 NULL
-+ipath_resize_cq_712 ipath_resize_cq 2 712 NULL
-+comedi_read_13199 comedi_read 3 13199 NULL
-+flash_write_62354 flash_write 3 62354 NULL
-+rb_simple_read_45972 rb_simple_read 3 45972 NULL
-+mmc_ext_csd_read_13205 mmc_ext_csd_read 3 13205 NULL
-+i2400m_zrealloc_2x_54166 i2400m_zrealloc_2x 3 54166 NULL nohasharray
-+memcpy_toiovec_54166 memcpy_toiovec 3 54166 &i2400m_zrealloc_2x_54166
-+l2tp_ip_recvmsg_22681 l2tp_ip_recvmsg 4 22681 NULL
-+proc_file_read_53905 proc_file_read 3 53905 NULL
++skb_network_header_len_4971 skb_network_header_len 0 4971 NULL
++ieee80211_if_fmt_dot11MeshHWMPconfirmationInterval_4976 ieee80211_if_fmt_dot11MeshHWMPconfirmationInterval 3 4976 NULL
++vmw_surface_define_size_4993 vmw_surface_define_size 0 4993 NULL
++qla82xx_pci_mem_write_direct_5008 qla82xx_pci_mem_write_direct 2 5008 NULL
++lm3533_als_set_target_5010 lm3533_als_set_target 2-3 5010 NULL
++do_mincore_5018 do_mincore 0-1 5018 NULL
 +mtd_device_parse_register_5024 mtd_device_parse_register 5 5024 NULL
-+acpi_tb_install_table_12988 acpi_tb_install_table 1 12988 NULL
-+set_wd_exp_mode_pfs_62372 set_wd_exp_mode_pfs 3 62372 NULL
-+reiserfs_readpages_35629 reiserfs_readpages 4 35629 NULL
-+acpi_os_read_memory_54186 acpi_os_read_memory 1-3 54186 NULL
-+smk_read_logging_37804 smk_read_logging 3 37804 NULL
-+rx_rx_timeout_read_62389 rx_rx_timeout_read 3 62389 NULL
-+mgt_set_varlen_60916 mgt_set_varlen 4 60916 NULL
-+cru_detect_11272 cru_detect 1 11272 NULL
-+altera_irscan_62396 altera_irscan 2 62396 NULL
-+alloc_perm_bits_1532 alloc_perm_bits 2 1532 NULL
-+aggr_size_tx_agg_vs_rate_read_21438 aggr_size_tx_agg_vs_rate_read 3 21438 NULL
-+fw_download_code_13249 fw_download_code 3 13249 NULL
-+init_tid_tabs_13252 init_tid_tabs 2-3-4 13252 NULL
-+tx_frag_cache_hit_read_29639 tx_frag_cache_hit_read 3 29639 NULL
-+set_ssp_62411 set_ssp 4 62411 NULL
-+nfc_hci_send_event_21452 nfc_hci_send_event 5 21452 NULL
-+sierra_setup_urb_46029 sierra_setup_urb 5 46029 NULL
-+get_free_entries_46030 get_free_entries 1 46030 NULL
-+__register_chrdev_54223 __register_chrdev 2-3 54223 NULL
-+sctp_make_abort_user_29654 sctp_make_abort_user 3 29654 NULL
-+snd_midi_channel_alloc_set_28153 snd_midi_channel_alloc_set 1 28153 NULL
-+carl9170_rx_13272 carl9170_rx 3 13272 NULL
++ocfs2_check_range_for_holes_5066 ocfs2_check_range_for_holes 2-3 5066 NULL
 +snd_mixart_BA1_read_5082 snd_mixart_BA1_read 5 5082 NULL
-+il_dbgfs_qos_read_33615 il_dbgfs_qos_read 3 33615 NULL
-+sel_write_enforce_48998 sel_write_enforce 3 48998 NULL
-+kfifo_copy_from_user_5091 kfifo_copy_from_user 3 5091 NULL
-+netdev_alloc_skb_62437 netdev_alloc_skb 2 62437 NULL
-+dma_memcpy_pg_to_iovec_1725 dma_memcpy_pg_to_iovec 6 1725 NULL
-+platform_device_add_resources_13289 platform_device_add_resources 3 13289 NULL
-+xfs_dir2_block_to_sf_37868 xfs_dir2_block_to_sf 3 37868 NULL
-+xfs_dir2_sf_addname_hard_54254 xfs_dir2_sf_addname_hard 3 54254 NULL
-+read_file_xmit_21487 read_file_xmit 3 21487 NULL
-+e1000_check_copybreak_62448 e1000_check_copybreak 3 62448 NULL
-+ceph_msgpool_get_54258 ceph_msgpool_get 2 54258 NULL
-+irda_recvmsg_dgram_32631 irda_recvmsg_dgram 4 32631 NULL
-+wusb_prf_54261 wusb_prf 7 54261 NULL nohasharray
-+audio_write_54261 audio_write 4 54261 &wusb_prf_54261
-+sys_setxattr_37880 sys_setxattr 4 37880 NULL
-+dvb_net_sec_37884 dvb_net_sec 3 37884 NULL
-+mwifiex_getlog_read_54269 mwifiex_getlog_read 3 54269 NULL
-+isr_tx_procs_read_23084 isr_tx_procs_read 3 23084 NULL
-+mmc_alloc_sg_21504 mmc_alloc_sg 1 21504 NULL
-+qlcnic_alloc_sds_rings_26795 qlcnic_alloc_sds_rings 2 26795 NULL
-+v9fs_file_readn_36353 v9fs_file_readn 4 36353 NULL nohasharray
-+xz_dec_lzma2_create_36353 xz_dec_lzma2_create 2 36353 &v9fs_file_readn_36353
-+vfio_config_do_rw_46091 vfio_config_do_rw 3 46091 NULL
-+dma_skb_copy_datagram_iovec_21516 dma_skb_copy_datagram_iovec 3-5 21516 NULL
-+ata_host_alloc_46094 ata_host_alloc 2 46094 NULL
-+probes_write_29711 probes_write 3 29711 NULL
-+btrfs_file_aio_write_21520 btrfs_file_aio_write 4 21520 NULL
-+us122l_ctl_msg_13330 us122l_ctl_msg 8 13330 NULL
-+altera_set_dr_post_54291 altera_set_dr_post 2 54291 NULL
-+dlm_alloc_pagevec_54296 dlm_alloc_pagevec 1 54296 NULL
-+kvm_read_nested_guest_page_13337 kvm_read_nested_guest_page 5 13337 NULL
-+il_dbgfs_stations_read_21532 il_dbgfs_stations_read 3 21532 NULL
-+il3945_ucode_general_stats_read_46111 il3945_ucode_general_stats_read 3 46111 NULL
-+tipc_link_send_sections_fast_37920 tipc_link_send_sections_fast 4 37920 NULL
-+mlx4_en_create_rx_ring_62498 mlx4_en_create_rx_ring 3 62498 NULL
-+emi62_writememory_29731 emi62_writememory 4 29731 NULL
-+iwl_dbgfs_current_sleep_command_read_2081 iwl_dbgfs_current_sleep_command_read 3 2081 NULL
-+mlx4_ib_alloc_fast_reg_page_list_46119 mlx4_ib_alloc_fast_reg_page_list 2 46119 NULL
-+pkt_alloc_packet_data_37928 pkt_alloc_packet_data 1 37928 NULL
-+hscx_empty_fifo_13360 hscx_empty_fifo 2 13360 NULL
-+rxrpc_send_data_21553 rxrpc_send_data 5 21553 NULL
++snd_emu10k1_ptr20_read_5087 snd_emu10k1_ptr20_read 0 5087 NULL
++get_random_bytes_5091 get_random_bytes 2 5091 NULL nohasharray
++kfifo_copy_from_user_5091 kfifo_copy_from_user 3 5091 &get_random_bytes_5091 nohasharray
++blk_rq_sectors_5091 blk_rq_sectors 0 5091 &kfifo_copy_from_user_5091
++mpol_to_str_5093 mpol_to_str 2 5093 NULL
++sound_write_5102 sound_write 3 5102 NULL
++ufs_add_fragments_5144 ufs_add_fragments 2 5144 NULL
++compat_ptr_5159 compat_ptr 0-1 5159 NULL
++__uwb_addr_print_5161 __uwb_addr_print 2 5161 NULL
 +iwl_dbgfs_status_read_5171 iwl_dbgfs_status_read 3 5171 NULL
-+hfcsusb_rx_frame_52745 hfcsusb_rx_frame 3 52745 NULL
-+pn_raw_send_54330 pn_raw_send 2 54330 NULL
-+pep_sendmsg_62524 pep_sendmsg 4 62524 NULL
-+tomoyo_update_policy_40458 tomoyo_update_policy 2 40458 NULL
++acpi_pcc_get_sqty_5176 acpi_pcc_get_sqty 0 5176 NULL
 +sfi_map_memory_5183 sfi_map_memory 1-2 5183 NULL
-+iso_sched_alloc_13377 iso_sched_alloc 1 13377 NULL nohasharray
-+wep_key_not_found_read_13377 wep_key_not_found_read 3 13377 &iso_sched_alloc_13377
-+test_iso_queue_62534 test_iso_queue 5 62534 NULL
-+__alloc_dev_table_54343 __alloc_dev_table 2 54343 NULL
-+ddp_clear_map_46152 ddp_clear_map 4 46152 NULL
-+cxio_hal_init_resource_29771 cxio_hal_init_resource 2-6-7 29771 NULL nohasharray
-+ip_vs_conn_fill_param_sync_29771 ip_vs_conn_fill_param_sync 6 29771 &cxio_hal_init_resource_29771
-+__netlink_change_ngroups_46156 __netlink_change_ngroups 2 46156 NULL
-+sco_sock_sendmsg_62542 sco_sock_sendmsg 4 62542 NULL
-+_osd_realloc_seg_54352 _osd_realloc_seg 3 54352 NULL
++skb_network_header_5203 skb_network_header 0 5203 NULL
 +pipe_set_size_5204 pipe_set_size 2 5204 NULL
-+tcf_hash_create_54360 tcf_hash_create 4 54360 NULL
 +ppp_cp_parse_cr_5214 ppp_cp_parse_cr 4 5214 NULL
-+isdn_read_50021 isdn_read 3 50021 NULL
-+vfs_readlink_54368 vfs_readlink 3 54368 NULL
-+pep_recvmsg_19402 pep_recvmsg 4 19402 NULL
-+ocfs2_acl_from_xattr_21604 ocfs2_acl_from_xattr 2 21604 NULL
-+subsystem_filter_read_62310 subsystem_filter_read 3 62310 NULL
 +ath6kl_debug_roam_tbl_event_5224 ath6kl_debug_roam_tbl_event 3 5224 NULL
-+netxen_alloc_sds_rings_13417 netxen_alloc_sds_rings 2 13417 NULL
-+ah_alloc_tmp_54378 ah_alloc_tmp 3-2 54378 NULL
 +ssb_ioremap_5228 ssb_ioremap 2 5228 NULL
-+xfrm_user_policy_62573 xfrm_user_policy 4 62573 NULL
-+xlog_do_recovery_pass_21618 xlog_do_recovery_pass 3 21618 NULL
 +isdn_ppp_skb_push_5236 isdn_ppp_skb_push 2 5236 NULL
-+get_subdir_62581 get_subdir 3 62581 NULL
-+iwl_dbgfs_power_save_status_read_54392 iwl_dbgfs_power_save_status_read 3 54392 NULL
-+sctp_abort_pkt_new_5241 sctp_abort_pkt_new 6 5241 NULL
-+vfs_readv_38011 vfs_readv 3 38011 NULL
-+keyring_read_13438 keyring_read 3 13438 NULL
-+sctp_setsockopt_peer_primary_addr_13440 sctp_setsockopt_peer_primary_addr 3 13440 NULL nohasharray
-+set_tap_pwup_pfs_13440 set_tap_pwup_pfs 3 13440 &sctp_setsockopt_peer_primary_addr_13440
-+ath6kl_cfg80211_connect_event_13443 ath6kl_cfg80211_connect_event 7-8-9 13443 NULL
-+crypto_shash_setkey_60483 crypto_shash_setkey 3 60483 NULL
-+tm6000_i2c_recv_regs_46215 tm6000_i2c_recv_regs 5 46215 NULL
-+packet_alloc_skb_62602 packet_alloc_skb 2-5-4 62602 NULL
-+prism2_send_mgmt_62605 prism2_send_mgmt 4 62605 NULL nohasharray
-+nfsd_vfs_read_62605 nfsd_vfs_read 6 62605 &prism2_send_mgmt_62605
-+__probe_kernel_write_29842 __probe_kernel_write 3 29842 NULL
-+aggr_recv_addba_req_evt_38037 aggr_recv_addba_req_evt 4 38037 NULL
-+kvm_read_hva_atomic_29848 kvm_read_hva_atomic 3 29848 NULL
-+ftrace_write_29551 ftrace_write 3 29551 NULL
-+il_dbgfs_chain_noise_read_38044 il_dbgfs_chain_noise_read 3 38044 NULL
-+iscsi_post_host_event_13473 iscsi_post_host_event 4 13473 NULL
-+ems_pcmcia_add_card_62627 ems_pcmcia_add_card 2 62627 NULL
-+mpi_read_raw_data_46248 mpi_read_raw_data 2 46248 NULL
-+dev_write_7708 dev_write 3 7708 NULL
-+_xfs_buf_alloc_38058 _xfs_buf_alloc 3 38058 NULL
-+nsm_create_handle_38060 nsm_create_handle 4 38060 NULL
-+atalk_sendmsg_21677 atalk_sendmsg 4 21677 NULL
-+ipv6_setsockopt_29871 ipv6_setsockopt 5 29871 NULL
-+sisusb_copy_memory_35016 sisusb_copy_memory 4 35016 NULL
-+lpfc_sli4_queue_alloc_62646 lpfc_sli4_queue_alloc 3 62646 NULL
-+alloc_ltalkdev_38071 alloc_ltalkdev 1 38071 NULL
-+nf_nat_ftp_46265 nf_nat_ftp 6 46265 NULL
-+nfc_targets_found_29886 nfc_targets_found 3 29886 NULL
-+mwifiex_alloc_sdio_mpa_buffers_60961 mwifiex_alloc_sdio_mpa_buffers 2-3 60961 NULL
-+evdev_ioctl_handler_21705 evdev_ioctl_handler 2 21705 NULL
-+request_key_auth_new_38092 request_key_auth_new 3 38092 NULL
-+proc_self_readlink_38094 proc_self_readlink 3 38094 NULL
-+smk_write_mapped_13519 smk_write_mapped 3 13519 NULL
-+isr_host_acknowledges_read_54136 isr_host_acknowledges_read 3 54136 NULL
-+bm_init_13529 bm_init 2 13529 NULL
-+check586_29914 check586 2 29914 NULL
-+snd_pcm_oss_write_38108 snd_pcm_oss_write 3 38108 NULL
-+pep_alloc_skb_46303 pep_alloc_skb 3 46303 NULL
-+reiserfs_allocate_list_bitmaps_21732 reiserfs_allocate_list_bitmaps 3 21732 NULL
-+ioremap_wc_62695 ioremap_wc 1-2 62695 NULL
-+pg_read_17276 pg_read 3 17276 NULL
-+edt_ft5x06_debugfs_raw_data_read_28002 edt_ft5x06_debugfs_raw_data_read 3 28002 NULL
-+ep0_read_38095 ep0_read 3 38095 NULL
-+batadv_iv_ogm_queue_add_46319 batadv_iv_ogm_queue_add 3 46319 NULL
-+__nf_nat_mangle_tcp_packet_21744 __nf_nat_mangle_tcp_packet 8-6 21744 NULL
++do_atmif_sioc_5247 do_atmif_sioc 3 5247 NULL
++pwr_elp_enter_read_5324 pwr_elp_enter_read 3 5324 NULL
++allocate_cnodes_5329 allocate_cnodes 1 5329 NULL
 +ps_pspoll_utilization_read_5361 ps_pspoll_utilization_read 3 5361 NULL
-+cgroup_write_X64_54514 cgroup_write_X64 5 54514 NULL
-+bioset_integrity_create_62708 bioset_integrity_create 2 62708 NULL
-+rfc4106_set_key_54519 rfc4106_set_key 3 54519 NULL
 +cciss_allocate_sg_chain_blocks_5368 cciss_allocate_sg_chain_blocks 3-2 5368 NULL
-+mthca_alloc_init_21754 mthca_alloc_init 2 21754 NULL
-+l2down_create_21755 l2down_create 4 21755 NULL
-+alloc_tio_13564 alloc_tio 3 13564 NULL
-+viacam_read_54526 viacam_read 3 54526 NULL
-+btrfs_mksubvol_58240 btrfs_mksubvol 3 58240 NULL
-+tunables_read_36385 tunables_read 3 36385 NULL
-+opera1_usb_i2c_msgxfer_64521 opera1_usb_i2c_msgxfer 4 64521 NULL
-+iio_debugfs_write_reg_22742 iio_debugfs_write_reg 3 22742 NULL
-+read_file_antenna_13574 read_file_antenna 3 13574 NULL
-+__ntfs_copy_from_user_iovec_inatomic_38153 __ntfs_copy_from_user_iovec_inatomic 3-4 38153 NULL
-+setsockopt_54539 setsockopt 5 54539 NULL
-+gen_pool_add_21776 gen_pool_add 3 21776 NULL
-+iwl_dbgfs_chain_noise_read_46355 iwl_dbgfs_chain_noise_read 3 46355 NULL
-+tty_register_device_4544 tty_register_device 2 4544 NULL
-+cache_write_13589 cache_write 3 13589 NULL
-+mpt_lan_receive_post_turbo_13592 mpt_lan_receive_post_turbo 2 13592 NULL
-+xfs_da_grow_inode_int_21785 xfs_da_grow_inode_int 3 21785 NULL
-+key_replays_read_62746 key_replays_read 3 62746 NULL
-+smk_write_direct_46363 smk_write_direct 3 46363 NULL
-+aac_sa_ioremap_13596 aac_sa_ioremap 2 13596 NULL nohasharray
-+irias_new_octseq_value_13596 irias_new_octseq_value 2 13596 &aac_sa_ioremap_13596
-+mwifiex_usb_submit_rx_urb_54558 mwifiex_usb_submit_rx_urb 2 54558 NULL
-+irias_add_octseq_attrib_29983 irias_add_octseq_attrib 4 29983 NULL
-+cdev_add_38176 cdev_add 2-3 38176 NULL
-+brcmf_sdcard_recv_buf_38179 brcmf_sdcard_recv_buf 6 38179 NULL
-+__ioremap_caller_21800 __ioremap_caller 1-2 21800 NULL
-+alloc_and_copy_ftrace_hash_29368 alloc_and_copy_ftrace_hash 1 29368 NULL
-+ubi_dump_flash_46381 ubi_dump_flash 4 46381 NULL
-+swap_cgroup_swapon_13614 swap_cgroup_swapon 2 13614 NULL
-+wm8994_bulk_write_13615 wm8994_bulk_write 3 13615 NULL
-+init_chip_wc_pat_62768 init_chip_wc_pat 2 62768 NULL
-+nfsd_vfs_write_54577 nfsd_vfs_write 6 54577 NULL
-+ax25_sendmsg_62770 ax25_sendmsg 4 62770 NULL
-+rt2x00debug_write_rf_38195 rt2x00debug_write_rf 3 38195 NULL
-+fw_iso_buffer_init_54582 fw_iso_buffer_init 3 54582 NULL
-+vmalloc_user_32308 vmalloc_user 1 32308 NULL
-+get_ucode_user_38202 get_ucode_user 3 38202 NULL
-+ath6kl_wmi_startscan_cmd_33674 ath6kl_wmi_startscan_cmd 8 33674 NULL
-+fuse_file_aio_write_46399 fuse_file_aio_write 4 46399 NULL
-+mem_fwlog_free_mem_blks_read_59616 mem_fwlog_free_mem_blks_read 3 59616 NULL
-+packet_snd_13634 packet_snd 3 13634 NULL
-+alloc_netdev_mqs_30030 alloc_netdev_mqs 1 30030 NULL
-+osd_req_list_partition_collections_38223 osd_req_list_partition_collections 5 38223 NULL
++bitmap_fold_5396 bitmap_fold 4 5396 NULL
++nilfs_palloc_entries_per_group_5418 nilfs_palloc_entries_per_group 0 5418 NULL
 +sfi_map_table_5462 sfi_map_table 1 5462 NULL
-+blk_msg_write_13655 blk_msg_write 3 13655 NULL
-+scsi_vpd_inquiry_30040 scsi_vpd_inquiry 4 30040 NULL
-+fwSendNullPacket_54618 fwSendNullPacket 2 54618 NULL
-+drp_wmove_30043 drp_wmove 4 30043 NULL
-+tracing_total_entries_read_62817 tracing_total_entries_read 3 62817 NULL
-+cache_downcall_13666 cache_downcall 3 13666 NULL
++xfs_efd_init_5463 xfs_efd_init 3 5463 NULL
 +xfs_efi_init_5476 xfs_efi_init 2 5476 NULL
 +ubi_leb_write_5478 ubi_leb_write 4-5 5478 NULL
 +cifs_security_flags_proc_write_5484 cifs_security_flags_proc_write 3 5484 NULL
-+cp210x_set_config_46447 cp210x_set_config 4 46447 NULL
-+sisusbcon_bmove_21873 sisusbcon_bmove 6-5-7 21873 NULL
-+debug_debug3_read_56894 debug_debug3_read 3 56894 NULL
 +tty_write_5494 tty_write 3 5494 NULL
-+iscsi_ping_comp_event_38263 iscsi_ping_comp_event 5 38263 NULL
-+tomoyo_update_domain_5498 tomoyo_update_domain 2 5498 NULL
-+rx_fcs_err_read_62844 rx_fcs_err_read 3 62844 NULL
-+irq_timeout_read_54653 irq_timeout_read 3 54653 NULL
-+teiup_create_43201 teiup_create 3 43201 NULL
-+dns_resolver_read_54658 dns_resolver_read 3 54658 NULL
-+filldir64_46469 filldir64 3 46469 NULL
-+line6_alloc_sysex_buffer_28225 line6_alloc_sysex_buffer 4 28225 NULL nohasharray
-+set_dis_disc_pfs_28225 set_dis_disc_pfs 3 28225 &line6_alloc_sysex_buffer_28225
-+fw_iso_buffer_alloc_13704 fw_iso_buffer_alloc 2 13704 NULL
-+ablkcipher_copy_iv_64140 ablkcipher_copy_iv 3 64140 NULL
-+cxgbi_ddp_reserve_30091 cxgbi_ddp_reserve 4 30091 NULL
-+snd_midi_channel_init_set_30092 snd_midi_channel_init_set 1 30092 NULL
-+tg3_run_loopback_30093 tg3_run_loopback 2 30093 NULL
++tomoyo_update_domain_5498 tomoyo_update_domain 2 5498 NULL nohasharray
++ieee80211_if_fmt_last_beacon_5498 ieee80211_if_fmt_last_beacon 3 5498 &tomoyo_update_domain_5498
++__max_nr_grant_frames_5505 __max_nr_grant_frames 0 5505 NULL
 +spidev_message_5518 spidev_message 3 5518 NULL
-+vmemmap_alloc_block_43245 vmemmap_alloc_block 1 43245 NULL
-+bio_kmalloc_54672 bio_kmalloc 2 54672 NULL
-+ezusb_writememory_45976 ezusb_writememory 4 45976 NULL
-+evm_read_key_54674 evm_read_key 3 54674 NULL
-+sctp_make_op_error_space_5528 sctp_make_op_error_space 3 5528 NULL
-+l2tp_ip6_recvmsg_62874 l2tp_ip6_recvmsg 4 62874 NULL
-+qsfp_1_read_21915 qsfp_1_read 3 21915 NULL
-+do_proc_readlink_14096 do_proc_readlink 3 14096 NULL
-+em28xx_init_isoc_62883 em28xx_init_isoc 4 62883 NULL nohasharray
-+aoechr_write_62883 aoechr_write 3 62883 &em28xx_init_isoc_62883
-+resize_info_buffer_62889 resize_info_buffer 2 62889 NULL
-+if_spi_host_to_card_62890 if_spi_host_to_card 4 62890 NULL
-+u32_array_read_2219 u32_array_read 3 2219 NULL
-+pin_code_reply_46510 pin_code_reply 4 46510 NULL
-+mthca_alloc_cq_buf_46512 mthca_alloc_cq_buf 3 46512 NULL
-+sys_add_key_61288 sys_add_key 4 61288 NULL
-+kmsg_read_46514 kmsg_read 3 46514 NULL
-+audit_unpack_string_13748 audit_unpack_string 3 13748 NULL
-+isr_rx_headers_read_38325 isr_rx_headers_read 3 38325 NULL
-+rfkill_fop_read_54711 rfkill_fop_read 3 54711 NULL
-+recv_stream_30138 recv_stream 4 30138 NULL
-+u_memcpya_30139 u_memcpya 2-3 30139 NULL
-+getdqbuf_62908 getdqbuf 1 62908 NULL
-+bdx_rxdb_create_46525 bdx_rxdb_create 1 46525 NULL
-+pwr_connection_out_of_sync_read_35061 pwr_connection_out_of_sync_read 3 35061 NULL
-+_add_sg_continuation_descriptor_54721 _add_sg_continuation_descriptor 3 54721 NULL
-+fc_frame_alloc_fill_59394 fc_frame_alloc_fill 2 59394 NULL
++ieee80211_if_fmt_auto_open_plinks_5534 ieee80211_if_fmt_auto_open_plinks 3 5534 NULL
++brcmu_pkt_buf_get_skb_5556 brcmu_pkt_buf_get_skb 1 5556 NULL
++le_readq_5557 le_readq 0 5557 NULL
++inw_5558 inw 0 5558 NULL
++__first_dma_cap_5560 __first_dma_cap 0 5560 NULL
 +fir16_create_5574 fir16_create 3 5574 NULL
-+ieee802154_alloc_device_13767 ieee802154_alloc_device 1 13767 NULL
-+pt_write_40159 pt_write 3 40159 NULL
 +bioset_create_5580 bioset_create 1 5580 NULL
-+ocfs2_control_write_54737 ocfs2_control_write 3 54737 NULL
-+fb_sys_read_13778 fb_sys_read 3 13778 NULL
 +oz_ep_alloc_5587 oz_ep_alloc 2 5587 NULL
-+kzalloc_54740 kzalloc 1 54740 NULL
-+ipath_reg_phys_mr_23918 ipath_reg_phys_mr 3 23918 NULL nohasharray
-+mpihelp_mul_karatsuba_case_23918 mpihelp_mul_karatsuba_case 5-3 23918 &ipath_reg_phys_mr_23918
 +do_msgrcv_5590 do_msgrcv 4 5590 NULL
-+wep_iv_read_54744 wep_iv_read 3 54744 NULL
-+link_send_sections_long_46556 link_send_sections_long 4 46556 NULL
-+ath6kl_mgmt_powersave_ap_13791 ath6kl_mgmt_powersave_ap 6 13791 NULL
-+iio_event_chrdev_read_54757 iio_event_chrdev_read 3 54757 NULL
-+batadv_iv_ogm_aggregate_new_54761 batadv_iv_ogm_aggregate_new 2 54761 NULL
++usb_dump_device_descriptor_5599 usb_dump_device_descriptor 0 5599 NULL
 +ldm_frag_add_5611 ldm_frag_add 2 5611 NULL
-+cx25821_video_ioctl_30188 cx25821_video_ioctl 2 30188 NULL
-+mempool_create_page_pool_30189 mempool_create_page_pool 1 30189 NULL
-+rxpipe_descr_host_int_trig_rx_data_read_22001 rxpipe_descr_host_int_trig_rx_data_read 3 22001 NULL nohasharray
-+compat_rw_copy_check_uvector_22001 compat_rw_copy_check_uvector 3 22001 &rxpipe_descr_host_int_trig_rx_data_read_22001
-+drm_property_create_bitmask_30195 drm_property_create_bitmask 5 30195 NULL
-+dn_sendmsg_38390 dn_sendmsg 4 38390 NULL
-+usblp_ioctl_30203 usblp_ioctl 2 30203 NULL
-+hsi_register_board_info_13820 hsi_register_board_info 2 13820 NULL
-+hidp_output_raw_report_5629 hidp_output_raw_report 3 5629 NULL
-+nfs_idmap_request_key_30208 nfs_idmap_request_key 3 30208 NULL
-+read_4k_modal_eeprom_30212 read_4k_modal_eeprom 3 30212 NULL
-+flexcop_device_kmalloc_54793 flexcop_device_kmalloc 1 54793 NULL
-+snd_ac97_pcm_assign_30218 snd_ac97_pcm_assign 2 30218 NULL
-+ti_recv_22027 ti_recv 4 22027 NULL
-+ttm_dma_page_pool_free_34135 ttm_dma_page_pool_free 2 34135 NULL
-+ieee80211_if_read_dtim_count_38419 ieee80211_if_read_dtim_count 3 38419 NULL
-+nfsd_write_54809 nfsd_write 6 54809 NULL
-+evdev_ioctl_compat_13851 evdev_ioctl_compat 2 13851 NULL
-+pcnet32_realloc_tx_ring_38428 pcnet32_realloc_tx_ring 3 38428 NULL
++compat_copy_entries_5617 compat_copy_entries 0 5617 NULL
++ext4_xattr_get_5661 ext4_xattr_get 0 5661 NULL
 +posix_clock_register_5662 posix_clock_register 2 5662 NULL
-+pmcraid_copy_sglist_38431 pmcraid_copy_sglist 3 38431 NULL
-+get_skb_63008 get_skb 2 63008 NULL
-+zd_usb_read_fw_22049 zd_usb_read_fw 4 22049 NULL
-+netlink_send_38434 netlink_send 5 38434 NULL
-+atalk_recvmsg_22053 atalk_recvmsg 4 22053 NULL
-+compat_ip_setsockopt_13870 compat_ip_setsockopt 5 13870 NULL nohasharray
-+alloc_trace_uprobe_13870 alloc_trace_uprobe 3 13870 &compat_ip_setsockopt_13870
-+aircable_process_packet_46639 aircable_process_packet 5 46639 NULL
-+generic_perform_write_54832 generic_perform_write 3 54832 NULL
-+write_rio_54837 write_rio 3 54837 NULL
-+nouveau_engctx_create__54839 nouveau_engctx_create_ 8 54839 NULL
-+__vb2_perform_fileio_63033 __vb2_perform_fileio 3 63033 NULL
-+pipeline_defrag_to_csum_swi_read_63037 pipeline_defrag_to_csum_swi_read 3 63037 NULL
++mthca_map_reg_5664 mthca_map_reg 2-3 5664 NULL
++__videobuf_alloc_vb_5665 __videobuf_alloc_vb 1 5665 NULL
 +get_arg_5694 get_arg 3 5694 NULL
-+isr_pci_pm_read_30271 isr_pci_pm_read 3 30271 NULL
-+ufx_ops_write_54848 ufx_ops_write 3 54848 NULL
-+compat_readv_30273 compat_readv 3 30273 NULL
-+printer_read_54851 printer_read 3 54851 NULL
-+mem_rw_22085 mem_rw 3 22085 NULL
-+i915_min_freq_read_38470 i915_min_freq_read 3 38470 NULL
-+alloc_ep_req_54860 alloc_ep_req 2 54860 NULL
-+lowpan_fragment_xmit_22095 lowpan_fragment_xmit 3-4 22095 NULL
-+broadsheet_spiflash_rewrite_sector_54864 broadsheet_spiflash_rewrite_sector 2 54864 NULL
-+skcipher_sendmsg_30290 skcipher_sendmsg 4 30290 NULL
-+unlink1_63059 unlink1 3 63059 NULL
-+picolcd_fb_write_2318 picolcd_fb_write 3 2318 NULL
-+pipeline_sec_frag_swi_read_30294 pipeline_sec_frag_swi_read 3 30294 NULL
-+__do_krealloc_54389 __do_krealloc 2 54389 NULL
-+tcp_sendmsg_30296 tcp_sendmsg 4 30296 NULL
-+tcf_csum_ipv6_tcp_54877 tcf_csum_ipv6_tcp 4 54877 NULL
 +vmw_kms_readback_5727 vmw_kms_readback 6 5727 NULL
-+replay_log_leb_18704 replay_log_leb 3 18704 NULL
 +rts51x_transfer_data_partial_5735 rts51x_transfer_data_partial 6 5735 NULL
-+rx_decrypt_key_not_found_read_37820 rx_decrypt_key_not_found_read 3 37820 NULL
-+alloc_data_packet_46698 alloc_data_packet 1 46698 NULL
-+dev_names_read_38509 dev_names_read 3 38509 NULL
-+iscsi_create_iface_38510 iscsi_create_iface 5 38510 NULL
-+sep_prepare_input_output_dma_table_in_dcb_63087 sep_prepare_input_output_dma_table_in_dcb 4-5-2-3 63087 NULL
-+get_packet_5747 get_packet 3 5747 NULL
-+ieee80211_if_read_dot11MeshForwarding_13940 ieee80211_if_read_dot11MeshForwarding 3 13940 NULL
-+drm_malloc_ab_16831 drm_malloc_ab 1-2 16831 NULL
-+event_rx_mismatch_read_38518 event_rx_mismatch_read 3 38518 NULL
-+iwl_dbgfs_protection_mode_read_13943 iwl_dbgfs_protection_mode_read 3 13943 NULL
-+ieee80211_if_read_min_discovery_timeout_13946 ieee80211_if_read_min_discovery_timeout 3 13946 NULL
-+erst_dbg_write_46715 erst_dbg_write 3 46715 NULL
-+ath6kl_lrssi_roam_read_61022 ath6kl_lrssi_roam_read 3 61022 NULL
-+lpfc_idiag_queacc_read_13950 lpfc_idiag_queacc_read 3 13950 NULL
-+xfs_buf_get_uncached_51477 xfs_buf_get_uncached 2 51477 NULL
-+iscsi_pool_init_54913 iscsi_pool_init 2-4 54913 NULL
-+_l2_alloc_skb_11883 _l2_alloc_skb 1 11883 NULL
-+resource_from_user_30341 resource_from_user 3 30341 NULL
-+scsi_dispatch_cmd_entry_49848 scsi_dispatch_cmd_entry 3 49848 NULL
-+sound_write_5102 sound_write 3 5102 NULL
-+pn533_dep_link_up_22154 pn533_dep_link_up 5 22154 NULL
-+iwl_dbgfs_sensitivity_read_63116 iwl_dbgfs_sensitivity_read 3 63116 NULL
-+irq_domain_add_simple_46734 irq_domain_add_simple 2 46734 NULL
++ubi_cdev_compat_ioctl_5746 ubi_cdev_compat_ioctl 3 5746 NULL
 +sctp_setsockopt_autoclose_5775 sctp_setsockopt_autoclose 3 5775 NULL
-+__vmalloc_node_flags_30352 __vmalloc_node_flags 1 30352 NULL
-+btrfs_discard_extent_38547 btrfs_discard_extent 2 38547 NULL
-+tx_frag_init_called_read_48377 tx_frag_init_called_read 3 48377 NULL
-+com90xx_found_13974 com90xx_found 3 13974 NULL
 +compat_sys_writev_5784 compat_sys_writev 3 5784 NULL
-+qcam_read_13977 qcam_read 3 13977 NULL
 +__vxge_hw_blockpool_malloc_5786 __vxge_hw_blockpool_malloc 2 5786 NULL
-+dvb_demux_read_13981 dvb_demux_read 3 13981 NULL
-+virtblk_add_buf_wait_54943 virtblk_add_buf_wait 3-4 54943 NULL
-+wl12xx_cmd_build_probe_req_54946 wl12xx_cmd_build_probe_req 6-8 54946 NULL
-+irda_sendmsg_dgram_38563 irda_sendmsg_dgram 4 38563 NULL
-+il4965_rs_sta_dbgfs_scale_table_read_38564 il4965_rs_sta_dbgfs_scale_table_read 3 38564 NULL
-+generic_readlink_32654 generic_readlink 3 32654 NULL
-+ieee80211_bss_info_update_13991 ieee80211_bss_info_update 4 13991 NULL
-+sys_get_mempolicy_30379 sys_get_mempolicy 3 30379 NULL
-+iwl_dbgfs_ucode_rx_stats_read_58023 iwl_dbgfs_ucode_rx_stats_read 3 58023 NULL
 +skb_copy_datagram_iovec_5806 skb_copy_datagram_iovec 2-4 5806 NULL
-+wacom_set_device_mode_26280 wacom_set_device_mode 3 26280 NULL
-+trace_options_core_read_47390 trace_options_core_read 3 47390 NULL
-+int_hw_irq_en_46776 int_hw_irq_en 3 46776 NULL
-+c4iw_init_resource_30393 c4iw_init_resource 2-3 30393 NULL
-+__alloc_bootmem_node_nopanic_6432 __alloc_bootmem_node_nopanic 2 6432 NULL
-+__proc_file_read_54978 __proc_file_read 3 54978 NULL
-+concat_writev_21451 concat_writev 3 21451 NULL
-+smk_write_revoke_subj_63173 smk_write_revoke_subj 3 63173 NULL
-+_queue_data_54983 _queue_data 4 54983 NULL
-+_sys_packet_req_46793 _sys_packet_req 4 46793 NULL
-+pfkey_sendmsg_47394 pfkey_sendmsg 4 47394 NULL
-+extend_netdev_table_21453 extend_netdev_table 2 21453 NULL
-+rfcomm_sock_recvmsg_22227 rfcomm_sock_recvmsg 4 22227 NULL
-+vb2_fop_write_30420 vb2_fop_write 3 30420 NULL
++nv50_disp_pioc_create__5812 nv50_disp_pioc_create_ 5 5812 NULL
++ceph_x_encrypt_buflen_5829 ceph_x_encrypt_buflen 0-1 5829 NULL
++autofs4_root_compat_ioctl_5838 autofs4_root_compat_ioctl 3 5838 NULL
 +ceph_msg_new_5846 ceph_msg_new 2 5846 NULL
 +ixgb_check_copybreak_5847 ixgb_check_copybreak 3 5847 NULL
 +setup_req_5848 setup_req 3 5848 NULL
-+read_def_modal_eeprom_14041 read_def_modal_eeprom 3 14041 NULL
 +rx_filter_max_arp_queue_dep_read_5851 rx_filter_max_arp_queue_dep_read 3 5851 NULL
-+rds_ib_inc_copy_to_user_55007 rds_ib_inc_copy_to_user 3 55007 NULL
-+alloc_ctrl_packet_44667 alloc_ctrl_packet 1 44667 NULL
-+rbd_create_rw_ops_55297 rbd_create_rw_ops 1 55297 NULL
-+compat_sys_move_pages_5861 compat_sys_move_pages 2 5861 NULL
-+cx231xx_v4l2_read_55014 cx231xx_v4l2_read 3 55014 NULL
-+sta_agg_status_read_14058 sta_agg_status_read 3 14058 NULL
-+compat_process_vm_rw_22254 compat_process_vm_rw 3-5 22254 NULL
-+ext2_readpages_38640 ext2_readpages 4 38640 NULL
-+cma_create_area_38642 cma_create_area 2 38642 NULL
-+audit_init_entry_38644 audit_init_entry 1 38644 NULL
-+sriov_enable_59689 sriov_enable 2 59689 NULL
-+enable_write_30456 enable_write 3 30456 NULL
-+shmem_pwrite_fast_46842 shmem_pwrite_fast 3 46842 NULL
-+tx_tx_template_programmed_read_30461 tx_tx_template_programmed_read 3 30461 NULL
-+mmc_send_cxd_data_38655 mmc_send_cxd_data 5 38655 NULL
-+zoran_ioctl_30465 zoran_ioctl 2 30465 NULL
-+tcp_manip_pkt_16563 tcp_manip_pkt 4 16563 NULL
-+qla2x00_adjust_sdev_qdepth_up_20097 qla2x00_adjust_sdev_qdepth_up 2 20097 NULL
-+nouveau_instmem_create__38664 nouveau_instmem_create_ 4 38664 NULL
-+ieee80211_mgmt_tx_46860 ieee80211_mgmt_tx 9 46860 NULL
++compat_sys_move_pages_5861 compat_sys_move_pages 2 5861 NULL nohasharray
++uinput_compat_ioctl_5861 uinput_compat_ioctl 3 5861 &compat_sys_move_pages_5861
 +port_show_regs_5904 port_show_regs 3 5904 NULL
-+nvme_alloc_queue_46865 nvme_alloc_queue 3 46865 NULL
-+ptp_read_63251 ptp_read 4 63251 NULL
++rbd_segment_length_5907 rbd_segment_length 0-3-2 5907 NULL
 +uhci_debug_read_5911 uhci_debug_read 3 5911 NULL
-+compat_sys_pselect6_14105 compat_sys_pselect6 1 14105 NULL
-+iscsit_dump_data_payload_38683 iscsit_dump_data_payload 2 38683 NULL
-+__tun_chr_ioctl_22300 __tun_chr_ioctl 4 22300 NULL
-+stk_allocate_buffers_16291 stk_allocate_buffers 2 16291 NULL
-+mesh_table_alloc_22305 mesh_table_alloc 1 22305 NULL
++qla82xx_pci_mem_read_2M_5912 qla82xx_pci_mem_read_2M 2 5912 NULL
 +ttm_bo_kmap_ttm_5922 ttm_bo_kmap_ttm 3 5922 NULL
-+o2hb_debug_read_37851 o2hb_debug_read 3 37851 NULL
-+bitmap_storage_alloc_55077 bitmap_storage_alloc 2 55077 NULL
-+iscsi_iser_recv_41948 iscsi_iser_recv 4 41948 NULL
 +lbs_highsnr_read_5931 lbs_highsnr_read 3 5931 NULL
-+em28xx_alloc_isoc_46892 em28xx_alloc_isoc 4 46892 NULL
-+read_dma_55086 read_dma 3 55086 NULL
-+isr_irqs_read_9181 isr_irqs_read 3 9181 NULL
-+dwc3_testmode_write_30516 dwc3_testmode_write 3 30516 NULL
++ps_poll_ps_poll_timeouts_read_5934 ps_poll_ps_poll_timeouts_read 3 5934 NULL
 +edac_device_alloc_ctl_info_5941 edac_device_alloc_ctl_info 1 5941 NULL
-+ntfs_rl_replace_14136 ntfs_rl_replace 2-4 14136 NULL
-+ip_send_unicast_reply_38714 ip_send_unicast_reply 6 38714 NULL
-+tcp_collapse_63294 tcp_collapse 6-5 63294 NULL
-+alloc_trace_probe_38720 alloc_trace_probe 6 38720 NULL
-+isdn_ppp_ccp_xmit_reset_63297 isdn_ppp_ccp_xmit_reset 6 63297 NULL
-+rxpipe_beacon_buffer_thres_host_int_trig_rx_data_read_55106 rxpipe_beacon_buffer_thres_host_int_trig_rx_data_read 3 55106 NULL
 +tipc_subseq_alloc_5957 tipc_subseq_alloc 1 5957 NULL
-+em_canid_change_14150 em_canid_change 3 14150 NULL
-+tracing_ctrl_read_46922 tracing_ctrl_read 3 46922 NULL
-+gsm_dlci_data_14155 gsm_dlci_data 3 14155 NULL
-+fb_write_46924 fb_write 3 46924 NULL
-+btmrvl_curpsmode_read_46939 btmrvl_curpsmode_read 3 46939 NULL
-+wlcore_alloc_hw_22365 wlcore_alloc_hw 1 22365 NULL
-+crypto_ahash_setkey_55134 crypto_ahash_setkey 3 55134 NULL
-+br_send_bpdu_29669 br_send_bpdu 3 29669 NULL
-+disk_expand_part_tbl_30561 disk_expand_part_tbl 2 30561 NULL
-+evdev_ioctl_22371 evdev_ioctl 2 22371 NULL
-+__sctp_setsockopt_connectx_46949 __sctp_setsockopt_connectx 3 46949 NULL
-+udf_readpages_38761 udf_readpages 4 38761 NULL
-+reada_add_block_54247 reada_add_block 2 54247 NULL
-+ieee80211_if_read_uapsd_queues_55150 ieee80211_if_read_uapsd_queues 3 55150 NULL
-+proc_info_read_63344 proc_info_read 3 63344 NULL
-+pep_indicate_38611 pep_indicate 5 38611 NULL
-+set_le_30581 set_le 4 30581 NULL
-+alloc_large_system_hash_22391 alloc_large_system_hash 2 22391 NULL
-+btmrvl_psmode_read_22395 btmrvl_psmode_read 3 22395 NULL
-+alloc_private_22399 alloc_private 2 22399 NULL
-+snd_gus_dram_write_38784 snd_gus_dram_write 4 38784 NULL
-+ps_upsd_max_sptime_read_63362 ps_upsd_max_sptime_read 3 63362 NULL
-+zoran_write_22404 zoran_write 3 22404 NULL
-+dma_tx_errors_read_46060 dma_tx_errors_read 3 46060 NULL
-+idmouse_read_63374 idmouse_read 3 63374 NULL
-+queue_reply_22416 queue_reply 3 22416 NULL
-+sgl_map_user_pages_30610 sgl_map_user_pages 2 30610 NULL
-+sel_write_bool_46996 sel_write_bool 3 46996 NULL
++__apu_get_register_5967 __apu_get_register 0 5967 NULL
++ieee80211_if_fmt_rc_rateidx_mask_5ghz_5971 ieee80211_if_fmt_rc_rateidx_mask_5ghz 3 5971 NULL
 +ntfs_rl_append_6037 ntfs_rl_append 2-4 6037 NULL
-+dfs_global_file_read_7787 dfs_global_file_read 3 7787 NULL
-+ttm_bo_io_47000 ttm_bo_io 5 47000 NULL
-+ieee80211_if_write_uapsd_max_sp_len_14233 ieee80211_if_write_uapsd_max_sp_len 3 14233 NULL
-+sel_write_relabel_55195 sel_write_relabel 3 55195 NULL
-+edac_pci_alloc_ctl_info_63388 edac_pci_alloc_ctl_info 1 63388 NULL
-+ipv6_renew_option_38813 ipv6_renew_option 3 38813 NULL
-+sched_feat_write_55202 sched_feat_write 3 55202 NULL
-+dma_declare_coherent_memory_14244 dma_declare_coherent_memory 4-2 14244 NULL
-+snd_soc_hw_bulk_write_raw_14245 snd_soc_hw_bulk_write_raw 4 14245 NULL
-+ht40allow_map_read_55209 ht40allow_map_read 3 55209 NULL nohasharray
-+isdn_net_ciscohdlck_alloc_skb_55209 isdn_net_ciscohdlck_alloc_skb 2 55209 &ht40allow_map_read_55209
-+compat_raw_setsockopt_30634 compat_raw_setsockopt 5 30634 NULL
-+sys_select_38827 sys_select 1 38827 NULL
-+rxpipe_missed_beacon_host_int_trig_rx_data_read_63405 rxpipe_missed_beacon_host_int_trig_rx_data_read 3 63405 NULL
-+do_raw_setsockopt_55215 do_raw_setsockopt 5 55215 NULL
-+cx231xx_init_bulk_47024 cx231xx_init_bulk 3-2 47024 NULL
-+direct_entry_38836 direct_entry 3 38836 NULL
-+__hwahc_op_set_ptk_36510 __hwahc_op_set_ptk 5 36510 NULL
-+gntdev_alloc_map_35145 gntdev_alloc_map 2 35145 NULL
-+compat_udp_setsockopt_38840 compat_udp_setsockopt 5 38840 NULL
-+handle_received_packet_22457 handle_received_packet 3 22457 NULL
-+ath6kl_connect_event_14267 ath6kl_connect_event 7-8-9 14267 NULL
-+write_head_30481 write_head 4 30481 NULL
-+mem_cgroup_read_22461 mem_cgroup_read 5 22461 NULL
-+set_dis_bypass_pfs_47038 set_dis_bypass_pfs 3 47038 NULL
-+add_numbered_child_14273 add_numbered_child 5 14273 NULL
-+l2cap_sock_sendmsg_63427 l2cap_sock_sendmsg 4 63427 NULL
-+OS_mem_token_alloc_14276 OS_mem_token_alloc 1 14276 NULL
-+sep_prepare_input_output_dma_table_63429 sep_prepare_input_output_dma_table 2-4-3 63429 NULL
-+register_unifi_sdio_55239 register_unifi_sdio 2 55239 NULL
-+ath6kl_wmi_get_new_buf_52304 ath6kl_wmi_get_new_buf 1 52304 NULL
-+agp_remap_30665 agp_remap 2 30665 NULL
-+interfaces_38859 interfaces 2 38859 NULL
-+memcpy_fromiovec_55247 memcpy_fromiovec 3 55247 NULL
-+nfsd_symlink_63442 nfsd_symlink 6 63442 NULL
-+ieee80211_if_read_dot11MeshHWMPpreqMinInterval_24208 ieee80211_if_read_dot11MeshHWMPpreqMinInterval 3 24208 NULL
-+cache_write_procfs_22491 cache_write_procfs 3 22491 NULL
-+qc_capture_19298 qc_capture 3 19298 NULL
-+read_default_ldt_14302 read_default_ldt 2 14302 NULL
++da9052_request_irq_6058 da9052_request_irq 2 6058 NULL
++sctp_setsockopt_connectx_6073 sctp_setsockopt_connectx 3 6073 NULL
++rts51x_ms_rw_multi_sector_6076 rts51x_ms_rw_multi_sector 3-4 6076 NULL
++ipmi_addr_length_6110 ipmi_addr_length 0 6110 NULL
 +dfs_global_file_write_6112 dfs_global_file_write 3 6112 NULL
-+alloc_dca_provider_59670 alloc_dca_provider 2 59670 NULL
-+pipeline_dec_packet_in_read_47076 pipeline_dec_packet_in_read 3 47076 NULL
-+rtl_port_map_2385 rtl_port_map 1-2 2385 NULL
-+dccp_setsockopt_ccid_30701 dccp_setsockopt_ccid 4 30701 NULL
-+dbgfs_state_38894 dbgfs_state 3 38894 NULL
-+sel_commit_bools_write_46077 sel_commit_bools_write 3 46077 NULL
-+snd_info_entry_write_63474 snd_info_entry_write 3 63474 NULL
++matrix_keypad_build_keymap_6129 matrix_keypad_build_keymap 3 6129 NULL
 +nouveau_parent_create__6131 nouveau_parent_create_ 7 6131 NULL
-+process_bulk_data_command_38906 process_bulk_data_command 4 38906 NULL
-+rx_streaming_interval_read_55291 rx_streaming_interval_read 3 55291 NULL
-+reada_find_extent_63486 reada_find_extent 2 63486 NULL
-+read_kcore_63488 read_kcore 3 63488 NULL
-+lbs_debugfs_read_30721 lbs_debugfs_read 3 30721 NULL
-+__skb_cow_39254 __skb_cow 2 39254 NULL
-+gsm_control_modem_55303 gsm_control_modem 3 55303 NULL
-+__get_vm_area_node_55305 __get_vm_area_node 1 55305 NULL
-+ffs_epfile_read_18775 ffs_epfile_read 3 18775 NULL
-+rsc_mgr_init_16299 rsc_mgr_init 3 16299 NULL
 +ivtv_copy_buf_to_user_6159 ivtv_copy_buf_to_user 4 6159 NULL
-+pskb_may_pull_22546 pskb_may_pull 2 22546 NULL
-+mousedev_read_47123 mousedev_read 3 47123 NULL
-+rawv6_recvmsg_30265 rawv6_recvmsg 4 30265 NULL
-+agp_alloc_page_array_22554 agp_alloc_page_array 1 22554 NULL
 +vdma_mem_alloc_6171 vdma_mem_alloc 1 6171 NULL
 +wl1251_cmd_template_set_6172 wl1251_cmd_template_set 4 6172 NULL
-+ses_recv_diag_47143 ses_recv_diag 4 47143 NULL nohasharray
-+acpi_ut_initialize_buffer_47143 acpi_ut_initialize_buffer 2 47143 &ses_recv_diag_47143
-+alloc_fcdev_18780 alloc_fcdev 1 18780 NULL
-+vme_user_read_55338 vme_user_read 3 55338 NULL
-+sctp_datamsg_from_user_55342 sctp_datamsg_from_user 4 55342 NULL
-+cxio_init_resource_fifo_random_47151 cxio_init_resource_fifo_random 3 47151 NULL
-+persistent_ram_iomap_47156 persistent_ram_iomap 1-2 47156 NULL
-+ath6kl_regdump_read_14393 ath6kl_regdump_read 3 14393 NULL
-+__ath6kl_wmi_send_mgmt_cmd_38971 __ath6kl_wmi_send_mgmt_cmd 7 38971 NULL
-+__hidp_send_ctrl_message_28303 __hidp_send_ctrl_message 4 28303 NULL
-+rs_sta_dbgfs_rate_scale_data_read_47165 rs_sta_dbgfs_rate_scale_data_read 3 47165 NULL
-+append_to_buffer_63550 append_to_buffer 3 63550 NULL
-+smk_write_onlycap_14400 smk_write_onlycap 3 14400 NULL
-+acpi_system_read_event_55362 acpi_system_read_event 3 55362 NULL
-+dbg_leb_write_63555 dbg_leb_write 4-5 63555 NULL nohasharray
-+kvm_write_guest_page_63555 kvm_write_guest_page 5 63555 &dbg_leb_write_63555
-+snapshot_read_22601 snapshot_read 3 22601 NULL
-+OSDSetBlock_38986 OSDSetBlock 4-2 38986 NULL
++mxt_show_instance_6207 mxt_show_instance 2-0 6207 NULL
 +v4l2_ctrl_new_std_menu_6221 v4l2_ctrl_new_std_menu 4 6221 NULL
-+mtd_concat_create_14416 mtd_concat_create 2 14416 NULL
 +mqueue_read_file_6228 mqueue_read_file 3 6228 NULL
-+ioremap_cache_47189 ioremap_cache 1-2 47189 NULL
-+__send_to_port_55383 __send_to_port 3 55383 NULL
-+rproc_alloc_63577 rproc_alloc 5 63577 NULL
-+nf_nat_ipv4_manip_pkt_55387 nf_nat_ipv4_manip_pkt 2 55387 NULL
-+smk_read_doi_30813 smk_read_doi 3 30813 NULL
 +f_hidg_read_6238 f_hidg_read 3 6238 NULL
-+proc_pid_attr_write_63845 proc_pid_attr_write 3 63845 NULL
-+sctp_getsockopt_delayed_ack_9232 sctp_getsockopt_delayed_ack 2 9232 NULL
-+get_nodes_39012 get_nodes 3 39012 NULL
 +fbcon_prepare_logo_6246 fbcon_prepare_logo 5 6246 NULL
-+sctp_setsockopt_connectx_old_22631 sctp_setsockopt_connectx_old 3 22631 NULL
-+ide_core_cp_entry_22636 ide_core_cp_entry 3 22636 NULL
-+iwl_dbgfs_plcp_delta_read_55407 iwl_dbgfs_plcp_delta_read 3 55407 NULL
-+pwr_wake_on_timer_exp_read_22640 pwr_wake_on_timer_exp_read 3 22640 NULL
-+create_subvol_30836 create_subvol 4 30836 NULL
-+mthca_map_reg_5664 mthca_map_reg 2-3 5664 NULL
-+ci13xxx_add_device_14456 ci13xxx_add_device 3 14456 NULL
-+iwl_dbgfs_calib_disabled_read_22649 iwl_dbgfs_calib_disabled_read 3 22649 NULL
-+_zd_iowrite32v_async_locked_39034 _zd_iowrite32v_async_locked 3 39034 NULL
-+sctp_setsockopt_auth_chunk_30843 sctp_setsockopt_auth_chunk 3 30843 NULL
-+read_oldmem_55658 read_oldmem 3 55658 NULL
++pcpu_next_pop_6277 pcpu_next_pop 4 6277 NULL
 +tx_tx_start_null_frame_read_6281 tx_tx_start_null_frame_read 3 6281 NULL
-+xenbus_file_write_6282 xenbus_file_write 3 6282 NULL
-+options_write_47243 options_write 3 47243 NULL
-+module_alloc_63630 module_alloc 1 63630 NULL
-+alloc_skb_55439 alloc_skb 1 55439 NULL
++snd_hda_override_conn_list_6282 snd_hda_override_conn_list 0 6282 NULL nohasharray
++xenbus_file_write_6282 xenbus_file_write 3 6282 &snd_hda_override_conn_list_6282
++posix_acl_fix_xattr_to_user_6283 posix_acl_fix_xattr_to_user 2 6283 NULL
 +nf_nat_ipv6_manip_pkt_6289 nf_nat_ipv6_manip_pkt 2 6289 NULL
-+portcntrs_1_read_47253 portcntrs_1_read 3 47253 NULL
-+ieee80211_if_read_dot11MeshGateAnnouncementProtocol_14486 ieee80211_if_read_dot11MeshGateAnnouncementProtocol 3 14486 NULL
-+ubifs_leb_write_22679 ubifs_leb_write 4-5 22679 NULL
 +nf_nat_sack_adjust_6297 nf_nat_sack_adjust 2 6297 NULL
-+proc_loginuid_write_63648 proc_loginuid_write 3 63648 NULL
 +mid_get_vbt_data_r10_6308 mid_get_vbt_data_r10 2 6308 NULL
-+vmemmap_alloc_block_buf_61126 vmemmap_alloc_block_buf 1 61126 NULL
-+__vxge_hw_channel_allocate_55462 __vxge_hw_channel_allocate 3 55462 NULL
-+pn_recvmsg_30887 pn_recvmsg 4 30887 NULL
-+rx_rx_timeout_wa_read_50204 rx_rx_timeout_wa_read 3 50204 NULL
-+hidraw_ioctl_63658 hidraw_ioctl 2 63658 NULL
-+ocfs2_debug_read_14507 ocfs2_debug_read 3 14507 NULL
-+lbs_threshold_read_21046 lbs_threshold_read 5 21046 NULL
-+tty_audit_log_47280 tty_audit_log 8 47280 NULL
-+alloc_libipw_22708 alloc_libipw 1 22708 NULL
-+gfs2_readpages_47285 gfs2_readpages 4 47285 NULL
-+fc_host_post_vendor_event_30903 fc_host_post_vendor_event 3 30903 NULL
-+vbi_read_63673 vbi_read 3 63673 NULL
-+tun_get_user_39099 tun_get_user 4 39099 NULL
-+i2o_pool_alloc_55485 i2o_pool_alloc 4 55485 NULL
-+alloc_tty_driver_63681 alloc_tty_driver 1 63681 NULL
-+read_flush_pipefs_20171 read_flush_pipefs 3 20171 NULL
-+tx_internal_desc_overflow_read_47300 tx_internal_desc_overflow_read 3 47300 NULL
-+long_retry_limit_read_59766 long_retry_limit_read 3 59766 NULL
-+nfc_hci_hcp_message_tx_14534 nfc_hci_hcp_message_tx 6 14534 NULL
-+iommu_map_mmio_space_30919 iommu_map_mmio_space 1 30919 NULL
-+ep0_write_14536 ep0_write 3 14536 NULL nohasharray
-+dataflash_read_user_otp_14536 dataflash_read_user_otp 2-3 14536 &ep0_write_14536
-+dvb_ringbuffer_pkt_read_user_4303 dvb_ringbuffer_pkt_read_user 2-3-5 4303 NULL
-+cx18_copy_buf_to_user_22735 cx18_copy_buf_to_user 4 22735 NULL
-+ax25_output_22736 ax25_output 2 22736 NULL
-+__kfifo_to_user_r_39123 __kfifo_to_user_r 3 39123 NULL
-+l2cap_send_cmd_14548 l2cap_send_cmd 4 14548 NULL
-+picolcd_debug_eeprom_read_14549 picolcd_debug_eeprom_read 3 14549 NULL
-+drm_vmalloc_dma_14550 drm_vmalloc_dma 1 14550 NULL
-+cfpkt_pad_trail_55511 cfpkt_pad_trail 2 55511 NULL nohasharray
-+tx_tx_done_int_template_read_55511 tx_tx_done_int_template_read 3 55511 &cfpkt_pad_trail_55511
-+cmtp_add_msgpart_9252 cmtp_add_msgpart 4 9252 NULL
-+sctp_setsockopt_rtoinfo_30941 sctp_setsockopt_rtoinfo 3 30941 NULL
-+nouveau_object_create__63715 nouveau_object_create_ 5 63715 NULL
-+hid_input_report_32458 hid_input_report 4 32458 NULL
 +_proc_do_string_6376 _proc_do_string 2 6376 NULL
 +osd_req_read_sg_kern_6378 osd_req_read_sg_kern 5 6378 NULL
-+read_cis_cache_29735 read_cis_cache 4 29735 NULL
-+ieee80211_if_read_dot11MeshTTL_58307 ieee80211_if_read_dot11MeshTTL 3 58307 NULL
-+alloc_ring_39151 alloc_ring 2-4 39151 NULL
-+proc_coredump_filter_read_39153 proc_coredump_filter_read 3 39153 NULL
-+create_bounce_buffer_39155 create_bounce_buffer 3 39155 NULL
-+tty_port_register_device_55543 tty_port_register_device 3 55543 NULL
-+tty_insert_flip_string_flags_30969 tty_insert_flip_string_flags 4 30969 NULL
-+asix_read_cmd_13245 asix_read_cmd 5 13245 NULL
-+ieee80211_if_read_dot11MeshHoldingTimeout_47356 ieee80211_if_read_dot11MeshHoldingTimeout 3 47356 NULL
-+idmap_pipe_downcall_14591 idmap_pipe_downcall 3 14591 NULL
-+selinux_secctx_to_secid_63744 selinux_secctx_to_secid 2 63744 NULL
-+isdn_add_channels_40905 isdn_add_channels 3 40905 NULL
-+bt_skb_alloc_6404 bt_skb_alloc 1 6404 NULL
-+get_info_55681 get_info 3 55681 NULL
-+setkey_14987 setkey 3 14987 NULL
-+__bio_map_kern_47379 __bio_map_kern 3 47379 NULL
-+init_list_set_39188 init_list_set 2-3 39188 NULL
-+ubi_more_update_data_39189 ubi_more_update_data 4 39189 NULL
-+snd_pcm_oss_read1_63771 snd_pcm_oss_read1 3 63771 NULL
-+l2up_create_6430 l2up_create 3 6430 NULL
++posix_acl_fix_xattr_userns_6420 posix_acl_fix_xattr_userns 4 6420 NULL
 +ipr_change_queue_depth_6431 ipr_change_queue_depth 2 6431 NULL
-+dgrp_net_write_47392 dgrp_net_write 3 47392 NULL
-+spidev_compat_ioctl_63778 spidev_compat_ioctl 2 63778 NULL
-+add_partition_55588 add_partition 2 55588 NULL
-+lbs_host_sleep_read_31013 lbs_host_sleep_read 3 31013 NULL
-+snd_pcm_aio_read_13900 snd_pcm_aio_read 3 13900 NULL
-+depth_read_31112 depth_read 3 31112 NULL
-+macvtap_put_user_55609 macvtap_put_user 4 55609 NULL
-+ivtv_v4l2_write_39226 ivtv_v4l2_write 3 39226 NULL
++__alloc_bootmem_node_nopanic_6432 __alloc_bootmem_node_nopanic 2 6432 NULL
++ext4_compat_ioctl_6471 ext4_compat_ioctl 3 6471 NULL
++ieee80211_if_fmt_dot11MeshMaxRetries_6476 ieee80211_if_fmt_dot11MeshMaxRetries 3 6476 NULL
++cipso_v4_map_lvl_hton_6490 cipso_v4_map_lvl_hton 0 6490 NULL
++dbg_intr_buf_6501 dbg_intr_buf 2 6501 NULL
++mei_read_6507 mei_read 3 6507 NULL
++cpumask_next_and_6516 cpumask_next_and 1 6516 NULL
++read_file_disable_ani_6536 read_file_disable_ani 3 6536 NULL
++rndis_set_oid_6547 rndis_set_oid 4 6547 NULL
++wdm_read_6549 wdm_read 3 6549 NULL
++fb_alloc_cmap_6554 fb_alloc_cmap 2 6554 NULL
++usb_dump_config_descriptor_6572 usb_dump_config_descriptor 0 6572 NULL
++snd_pcm_hw_refine_old_user_6586 snd_pcm_hw_refine_old_user 0 6586 NULL
++usemap_size_6601 usemap_size 0-1 6601 NULL
++snmp_mib_init_6604 snmp_mib_init 2-3 6604 NULL
++ecryptfs_filldir_6622 ecryptfs_filldir 3 6622 NULL
++virtscsi_alloc_tgt_6643 virtscsi_alloc_tgt 2 6643 NULL
++aac_srcv_ioremap_6659 aac_srcv_ioremap 2 6659 NULL
++process_rcvd_data_6679 process_rcvd_data 3 6679 NULL
++ql_process_mac_rx_skb_6689 ql_process_mac_rx_skb 4 6689 NULL
++ieee80211_build_preq_ies_6691 ieee80211_build_preq_ies 0-4 6691 NULL
++btrfs_lookup_csums_range_6696 btrfs_lookup_csums_range 2 6696 NULL
++ps_pspoll_max_apturn_read_6699 ps_pspoll_max_apturn_read 3 6699 NULL
++bnad_debugfs_write_regrd_6706 bnad_debugfs_write_regrd 3 6706 NULL
++mpeg_read_6708 mpeg_read 3 6708 NULL
++video_proc_write_6724 video_proc_write 3 6724 NULL
++posix_acl_xattr_count_6725 posix_acl_xattr_count 0-1 6725 NULL
++rds_rdma_pages_6735 rds_rdma_pages 0 6735 NULL
++sfi_check_table_6772 sfi_check_table 1 6772 NULL
++iwl_dbgfs_channels_read_6784 iwl_dbgfs_channels_read 3 6784 NULL
++ieee80211_if_read_6785 ieee80211_if_read 3 6785 NULL
++hdlcdrv_register_6792 hdlcdrv_register 2 6792 NULL
++tx_tx_done_data_read_6799 tx_tx_done_data_read 3 6799 NULL
++make_8259A_irq_6828 make_8259A_irq 1 6828 NULL
++calc_pages_for_6838 calc_pages_for 0-1-2 6838 NULL
++mon_bin_read_6841 mon_bin_read 3 6841 NULL
++snd_cs4281_BA0_read_6847 snd_cs4281_BA0_read 5 6847 NULL
++ieee80211_if_fmt_path_refresh_time_6888 ieee80211_if_fmt_path_refresh_time 3 6888 NULL nohasharray
++raw_seticmpfilter_6888 raw_seticmpfilter 3 6888 &ieee80211_if_fmt_path_refresh_time_6888
++dlmfs_file_write_6892 dlmfs_file_write 3 6892 NULL
++spi_show_regs_6911 spi_show_regs 3 6911 NULL nohasharray
++proc_sessionid_read_6911 proc_sessionid_read 3 6911 &spi_show_regs_6911 nohasharray
++acm_alloc_minor_6911 acm_alloc_minor 0 6911 &proc_sessionid_read_6911
++__kfifo_dma_in_finish_r_6913 __kfifo_dma_in_finish_r 2-3 6913 NULL
++ieee80211_rx_mgmt_probe_resp_6918 ieee80211_rx_mgmt_probe_resp 3 6918 NULL
++do_msgrcv_6921 do_msgrcv 3 6921 NULL
++cache_do_downcall_6926 cache_do_downcall 3 6926 NULL
++qsfp_cks_6945 qsfp_cks 0-2 6945 NULL
++pch_uart_hal_read_6961 pch_uart_hal_read 0 6961 NULL
++videobuf_dma_init_kernel_6963 videobuf_dma_init_kernel 3 6963 NULL
++rsa_extract_mpi_6973 rsa_extract_mpi 5 6973 NULL
++crypto_authenc_esn_setkey_6985 crypto_authenc_esn_setkey 3 6985 NULL
++request_key_async_6990 request_key_async 4 6990 NULL
++r871x_set_wpa_ie_7000 r871x_set_wpa_ie 3 7000 NULL
++cipso_v4_gentag_enum_7006 cipso_v4_gentag_enum 0 7006 NULL
++tracing_cpumask_read_7010 tracing_cpumask_read 3 7010 NULL
++wimax_msg_7030 wimax_msg 4 7030 NULL
++ipath_get_base_info_7043 ipath_get_base_info 3 7043 NULL
++snd_pcm_oss_bytes_7051 snd_pcm_oss_bytes 2 7051 NULL
++event_enable_read_7074 event_enable_read 3 7074 NULL
++beacon_interval_read_7091 beacon_interval_read 3 7091 NULL
++lp_compat_ioctl_7098 lp_compat_ioctl 3 7098 NULL
++pipeline_enc_rx_stat_fifo_int_read_7107 pipeline_enc_rx_stat_fifo_int_read 3 7107 NULL
++check_header_7108 check_header 0 7108 NULL
++utf16_strsize_7203 utf16_strsize 0 7203 NULL nohasharray
++__alloc_objio_seg_7203 __alloc_objio_seg 1 7203 &utf16_strsize_7203
++sys32_ipc_7238 sys32_ipc 3-5-6-4 7238 NULL
++get_param_h_7247 get_param_h 0 7247 NULL
++vm_mmap_pgoff_7259 vm_mmap_pgoff 0 7259 NULL
++dma_ops_alloc_addresses_7272 dma_ops_alloc_addresses 3-4-5 7272 NULL
++rx_rate_rx_frames_per_rates_read_7282 rx_rate_rx_frames_per_rates_read 3 7282 NULL
++mgmt_control_7349 mgmt_control 3 7349 NULL
++ext3_free_blocks_7362 ext3_free_blocks 3-4 7362 NULL
++ieee80211_if_read_dot11MeshHWMPactivePathTimeout_7368 ieee80211_if_read_dot11MeshHWMPactivePathTimeout 3 7368 NULL
++hweight_long_7388 hweight_long 0-1 7388 NULL
++vhost_scsi_compat_ioctl_7393 vhost_scsi_compat_ioctl 3 7393 NULL
++sl_change_mtu_7396 sl_change_mtu 2 7396 NULL
++readb_7401 readb 0 7401 NULL
++drm_property_create_blob_7414 drm_property_create_blob 2 7414 NULL
++ip_options_get_alloc_7448 ip_options_get_alloc 1 7448 NULL
++ms_rw_multi_sector_7459 ms_rw_multi_sector 3-4 7459 NULL
++__mutex_lock_common_7469 __mutex_lock_common 0 7469 NULL nohasharray
++wm8996_gpio_direction_out_7469 wm8996_gpio_direction_out 2 7469 &__mutex_lock_common_7469
++garp_request_join_7471 garp_request_join 4 7471 NULL
++compat_sys_msgrcv_7482 compat_sys_msgrcv 2 7482 NULL
++snd_pcm_lib_read1_7491 snd_pcm_lib_read1 0-3 7491 NULL
++sdhci_alloc_host_7509 sdhci_alloc_host 2 7509 NULL nohasharray
++ahash_instance_headroom_7509 ahash_instance_headroom 0 7509 &sdhci_alloc_host_7509
++array_zalloc_7519 array_zalloc 1-2 7519 NULL
++setup_usemap_7524 setup_usemap 3 7524 NULL
++goal_in_my_reservation_7553 goal_in_my_reservation 3 7553 NULL
++smk_read_mapped_7562 smk_read_mapped 3 7562 NULL
++ext3_try_to_allocate_7590 ext3_try_to_allocate 5-3 7590 NULL
++groups_alloc_7614 groups_alloc 1 7614 NULL
++sg_virt_7616 sg_virt 0 7616 NULL
++cpumask_first_7648 cpumask_first 0 7648 NULL
++skb_copy_expand_7685 skb_copy_expand 2-3 7685 NULL nohasharray
++acpi_ex_allocate_name_string_7685 acpi_ex_allocate_name_string 2-1 7685 &skb_copy_expand_7685
++acpi_ns_get_pathname_length_7699 acpi_ns_get_pathname_length 0 7699 NULL
++dev_write_7708 dev_write 3 7708 NULL
++tps65090_set_bits_7709 tps65090_set_bits 2 7709 NULL
++brcmf_sdcard_send_buf_7713 brcmf_sdcard_send_buf 6 7713 NULL nohasharray
++dbg_check_cats_7713 dbg_check_cats 0 7713 &brcmf_sdcard_send_buf_7713
++set_bypass_pwup_pfs_7742 set_bypass_pwup_pfs 3 7742 NULL
++vxge_device_register_7752 vxge_device_register 4 7752 NULL
++osdv2_attr_list_elem_size_7763 osdv2_attr_list_elem_size 0-1 7763 NULL
++ubi_io_read_vid_hdr_7766 ubi_io_read_vid_hdr 0 7766 NULL
++alloc_candev_7776 alloc_candev 1-2 7776 NULL
++dfs_global_file_read_7787 dfs_global_file_read 3 7787 NULL
++bnx2_nvram_write_7790 bnx2_nvram_write 4-2 7790 NULL
++diva_os_copy_from_user_7792 diva_os_copy_from_user 4 7792 NULL
++ubifs_leb_read_7828 ubifs_leb_read 0 7828 NULL
++da9052_reg_update_7858 da9052_reg_update 2 7858 NULL
++tps6586x_clr_bits_7889 tps6586x_clr_bits 2 7889 NULL
++dvb_dmxdev_read_sec_7892 dvb_dmxdev_read_sec 4 7892 NULL
++xfs_trans_get_efi_7898 xfs_trans_get_efi 2 7898 NULL
++gfs2_tune_get_i_7903 gfs2_tune_get_i 0 7903 NULL
++ext3_group_extend_7911 ext3_group_extend 3 7911 NULL
++libfc_host_alloc_7917 libfc_host_alloc 2 7917 NULL
++f_hidg_write_7932 f_hidg_write 3 7932 NULL
++io_apic_setup_irq_pin_once_7934 io_apic_setup_irq_pin_once 1 7934 NULL
++smk_write_load_self_7958 smk_write_load_self 3 7958 NULL
++sys_mbind_7990 sys_mbind 5 7990 NULL
++tt3650_ci_msg_locked_8013 tt3650_ci_msg_locked 4 8013 NULL
++vcs_read_8017 vcs_read 3 8017 NULL
++normalize_up_8037 normalize_up 0-1-2 8037 NULL
++vhost_add_used_and_signal_n_8038 vhost_add_used_and_signal_n 4 8038 NULL
++ms_read_multiple_pages_8052 ms_read_multiple_pages 5-4 8052 NULL
++dgrp_mon_read_8065 dgrp_mon_read 3 8065 NULL
++leb_read_lock_8070 leb_read_lock 0 8070 NULL
++alloc_targets_8074 alloc_targets 2 8074 NULL nohasharray
++qla4xxx_post_ping_evt_work_8074 qla4xxx_post_ping_evt_work 4 8074 &alloc_targets_8074
++venus_lookup_8121 venus_lookup 4 8121 NULL
++lm3533_als_set_threshold_8125 lm3533_als_set_threshold 2 8125 NULL
++ieee80211_if_fmt_num_buffered_multicast_8127 ieee80211_if_fmt_num_buffered_multicast 3 8127 NULL
++ext_sd_execute_write_data_8175 ext_sd_execute_write_data 9 8175 NULL
++dma_map_area_8178 dma_map_area 5-2-3 8178 NULL
++__sk_mem_schedule_8185 __sk_mem_schedule 2 8185 NULL
++ieee80211_if_fmt_dot11MeshHoldingTimeout_8187 ieee80211_if_fmt_dot11MeshHoldingTimeout 3 8187 NULL
++recent_mt_proc_write_8206 recent_mt_proc_write 3 8206 NULL
++rt2x00debug_write_bbp_8212 rt2x00debug_write_bbp 3 8212 NULL
++ad7879_spi_multi_read_8218 ad7879_spi_multi_read 3 8218 NULL
++play_iframe_8219 play_iframe 3 8219 NULL
++create_log_8225 create_log 2 8225 NULL nohasharray
++kvm_mmu_page_set_gfn_8225 kvm_mmu_page_set_gfn 2 8225 &create_log_8225
++sctp_ssnmap_size_8228 sctp_ssnmap_size 0-1-2 8228 NULL
++check_xattr_ref_inode_8244 check_xattr_ref_inode 0 8244 NULL
++add_rx_skb_8257 add_rx_skb 3 8257 NULL
++t3_init_l2t_8261 t3_init_l2t 1 8261 NULL
++init_cdev_8274 init_cdev 1 8274 NULL
++rproc_recovery_write_8281 rproc_recovery_write 3 8281 NULL
++qib_decode_7220_err_8315 qib_decode_7220_err 3 8315 NULL
++snd_pcm_update_state_8320 snd_pcm_update_state 0 8320 NULL
++lm3533_led_get_pattern_8321 lm3533_led_get_pattern 0 8321 NULL nohasharray
++construct_key_and_link_8321 construct_key_and_link 4 8321 &lm3533_led_get_pattern_8321
++ipwireless_send_packet_8328 ipwireless_send_packet 4 8328 NULL
++tracing_entries_read_8345 tracing_entries_read 3 8345 NULL
++ieee80211_if_fmt_ht_opmode_8347 ieee80211_if_fmt_ht_opmode 3 8347 NULL
++ping_getfrag_8360 ping_getfrag 4-3 8360 NULL
++uvc_v4l2_compat_ioctl32_8375 uvc_v4l2_compat_ioctl32 3 8375 NULL
++xdi_copy_from_user_8395 xdi_copy_from_user 4 8395 NULL
++zd_rf_scnprint_id_8406 zd_rf_scnprint_id 0-3 8406 NULL
++uvc_v4l2_ioctl_8411 uvc_v4l2_ioctl 2 8411 NULL
++snd_usb_ctl_msg_8436 snd_usb_ctl_msg 8 8436 NULL
++irq_create_mapping_8437 irq_create_mapping 2 8437 NULL
++afs_cell_lookup_8482 afs_cell_lookup 2 8482 NULL
++_irq_to_enable_addr_8485 _irq_to_enable_addr 0-1 8485 NULL
++batadv_tt_len_8502 batadv_tt_len 0-1 8502 NULL
++dev_config_8506 dev_config 3 8506 NULL
++ACL_to_cifs_posix_8509 ACL_to_cifs_posix 3 8509 NULL
++utf16_strnlen_8513 utf16_strnlen 0 8513 NULL
++opticon_process_data_packet_8524 opticon_process_data_packet 3 8524 NULL
++pnp_resource_len_8532 pnp_resource_len 0 8532 NULL
++alloc_pg_vec_8533 alloc_pg_vec 2 8533 NULL
++ocfs2_read_virt_blocks_8538 ocfs2_read_virt_blocks 2-3 8538 NULL
++profile_remove_8556 profile_remove 3 8556 NULL
++cache_slow_downcall_8570 cache_slow_downcall 2 8570 NULL
++mga_ioremap_8571 mga_ioremap 1-2 8571 NULL
++isr_dma0_done_read_8574 isr_dma0_done_read 3 8574 NULL
++tower_write_8580 tower_write 3 8580 NULL
++rtllib_MFIE_rate_len_8606 rtllib_MFIE_rate_len 0 8606 NULL
++shash_setkey_unaligned_8620 shash_setkey_unaligned 3 8620 NULL
++it821x_firmware_command_8628 it821x_firmware_command 3 8628 NULL
++scsi_dma_map_8632 scsi_dma_map 0 8632 NULL
++fuse_send_write_pages_8636 fuse_send_write_pages 0 8636 NULL
++generic_acl_set_8658 generic_acl_set 4 8658 NULL
++dio_bio_alloc_8677 dio_bio_alloc 5 8677 NULL
++lbs_bcnmiss_read_8678 lbs_bcnmiss_read 3 8678 NULL
++tc3589x_gpio_irq_unmap_8680 tc3589x_gpio_irq_unmap 2 8680 NULL
++rproc_trace_read_8686 rproc_trace_read 3 8686 NULL
++skb_frag_size_8695 skb_frag_size 0 8695 NULL
++arcfb_write_8702 arcfb_write 3 8702 NULL
++i_size_read_8703 i_size_read 0 8703 NULL nohasharray
++init_header_8703 init_header 0 8703 &i_size_read_8703
++ctrl_out_8712 ctrl_out 3-5 8712 NULL
++jffs2_acl_count_8729 jffs2_acl_count 0-1 8729 NULL nohasharray
++snapshot_status_8729 snapshot_status 5 8729 &jffs2_acl_count_8729
++f_dupfd_8730 f_dupfd 1 8730 NULL
++tx_tx_exch_expiry_read_8749 tx_tx_exch_expiry_read 3 8749 NULL
++joydev_compat_ioctl_8765 joydev_compat_ioctl 2 8765 NULL
++sys_prctl_8766 sys_prctl 4 8766 NULL
++x32_arch_ptrace_8767 x32_arch_ptrace 3-4 8767 NULL
++paging32_prefetch_gpte_8783 paging32_prefetch_gpte 4 8783 NULL
++ext4_try_to_write_inline_data_8785 ext4_try_to_write_inline_data 3-4 8785 NULL
++__bitmap_weight_8796 __bitmap_weight 0-2 8796 NULL
++cpuset_common_file_read_8800 cpuset_common_file_read 5 8800 NULL
++metronomefb_write_8823 metronomefb_write 3 8823 NULL
++icmpv6_manip_pkt_8833 icmpv6_manip_pkt 4 8833 NULL nohasharray
++get_queue_depth_8833 get_queue_depth 0 8833 &icmpv6_manip_pkt_8833
++dvb_ringbuffer_pkt_next_8834 dvb_ringbuffer_pkt_next 0-2 8834 NULL
++usb_ep_queue_8839 usb_ep_queue 0 8839 NULL
++debug_debug1_read_8856 debug_debug1_read 3 8856 NULL
++wa_nep_queue_8858 wa_nep_queue 2 8858 NULL
++send_pages_8872 send_pages 3 8872 NULL
++compressed_bio_size_8887 compressed_bio_size 0-2 8887 NULL
++tracing_max_lat_read_8890 tracing_max_lat_read 3 8890 NULL
++sdio_max_byte_size_8907 sdio_max_byte_size 0 8907 NULL
++layout_commit_8926 layout_commit 3 8926 NULL
++adjust_priv_size_8935 adjust_priv_size 0-1 8935 NULL
++driver_stats_read_8944 driver_stats_read 3 8944 NULL
++read_file_tgt_stats_8959 read_file_tgt_stats 3 8959 NULL
++seq_bitmap_list_8963 seq_bitmap_list 3 8963 NULL
++usb_allocate_stream_buffers_8964 usb_allocate_stream_buffers 3 8964 NULL
++qib_qsfp_dump_8966 qib_qsfp_dump 0-3 8966 NULL
++venus_mkdir_8967 venus_mkdir 4 8967 NULL
++vol_cdev_read_8968 vol_cdev_read 3 8968 NULL nohasharray
++seq_open_net_8968 seq_open_net 4 8968 &vol_cdev_read_8968
++bio_integrity_get_tag_8974 bio_integrity_get_tag 3 8974 NULL
++btrfs_alloc_free_block_8986 btrfs_alloc_free_block 3 8986 NULL
++palmas_ldo_write_9012 palmas_ldo_write 2 9012 NULL
++snd_emu10k1_ptr_read_9026 snd_emu10k1_ptr_read 0-2 9026 NULL
++__pskb_copy_9038 __pskb_copy 2 9038 NULL
++nla_put_9042 nla_put 3 9042 NULL
++snd_emu10k1_synth_copy_from_user_9061 snd_emu10k1_synth_copy_from_user 3-5 9061 NULL
++snd_gus_dram_peek_9062 snd_gus_dram_peek 4 9062 NULL
++fib_info_hash_alloc_9075 fib_info_hash_alloc 1 9075 NULL
++string_9080 string 0 9080 NULL
++create_queues_9088 create_queues 2-3 9088 NULL
++ftdi_prepare_write_buffer_9093 ftdi_prepare_write_buffer 3 9093 NULL
++caif_stream_sendmsg_9110 caif_stream_sendmsg 4 9110 NULL nohasharray
++gfn_to_rmap_9110 gfn_to_rmap 2-3 9110 &caif_stream_sendmsg_9110
++pmcraid_change_queue_depth_9116 pmcraid_change_queue_depth 2 9116 NULL
++ext4_list_backups_9138 ext4_list_backups 0 9138 NULL
++dbg_command_buf_9165 dbg_command_buf 2 9165 NULL
++isr_irqs_read_9181 isr_irqs_read 3 9181 NULL
++count_leading_zeros_9183 count_leading_zeros 0 9183 NULL
++alloc_group_attrs_9194 alloc_group_attrs 2 9194 NULL nohasharray
++altera_swap_ir_9194 altera_swap_ir 2 9194 &alloc_group_attrs_9194
++gx1_gx_base_9198 gx1_gx_base 0 9198 NULL
++snd_m3_get_pointer_9206 snd_m3_get_pointer 0 9206 NULL
++tx_tx_prepared_descs_read_9221 tx_tx_prepared_descs_read 3 9221 NULL
++sctp_getsockopt_delayed_ack_9232 sctp_getsockopt_delayed_ack 2 9232 NULL
++ocfs2_clear_ext_refcount_9256 ocfs2_clear_ext_refcount 4 9256 NULL
++tcf_csum_ipv4_icmp_9258 tcf_csum_ipv4_icmp 3 9258 NULL
++sparse_early_usemaps_alloc_node_9269 sparse_early_usemaps_alloc_node 4 9269 NULL
++hdpvr_read_9273 hdpvr_read 3 9273 NULL
++flakey_status_9274 flakey_status 5 9274 NULL
++qla82xx_pci_set_window_9303 qla82xx_pci_set_window 0-2 9303 NULL
++iwl_dbgfs_stations_read_9309 iwl_dbgfs_stations_read 3 9309 NULL
++ceph_sync_setxattr_9310 ceph_sync_setxattr 4 9310 NULL
++ieee80211_if_fmt_txpower_9334 ieee80211_if_fmt_txpower 3 9334 NULL
++ocfs2_orphan_for_truncate_9342 ocfs2_orphan_for_truncate 4 9342 NULL
++read_9397 read 3 9397 NULL
++nf_nat_sip_expect_9418 nf_nat_sip_expect 8 9418 NULL
++cfg80211_report_obss_beacon_9422 cfg80211_report_obss_beacon 3 9422 NULL
++bm_realloc_pages_9431 bm_realloc_pages 2 9431 NULL
++ffs_ep0_write_9438 ffs_ep0_write 3 9438 NULL
++kmalloc_array_9444 kmalloc_array 1-2 9444 NULL
++ieee80211_if_fmt_fwded_unicast_9454 ieee80211_if_fmt_fwded_unicast 3 9454 NULL
++mcs_unwrap_mir_9455 mcs_unwrap_mir 3 9455 NULL
++ext3_xattr_set_acl_9467 ext3_xattr_set_acl 4 9467 NULL
++agp_generic_alloc_user_9470 agp_generic_alloc_user 1 9470 NULL
++rbd_coll_end_req_9472 rbd_coll_end_req 3 9472 NULL
++__alloc_preds_9492 __alloc_preds 2 9492 NULL nohasharray
++crypt_status_9492 crypt_status 5 9492 &__alloc_preds_9492
++lp_write_9511 lp_write 3 9511 NULL
++scsi_tgt_kspace_exec_9522 scsi_tgt_kspace_exec 8 9522 NULL
++lm3533_update_9529 lm3533_update 2 9529 NULL
++read_file_dma_9530 read_file_dma 3 9530 NULL
++ext3_alloc_branch_9534 ext3_alloc_branch 5 9534 NULL
++tps65910_gpio_output_9539 tps65910_gpio_output 2 9539 NULL
++audit_log_n_untrustedstring_9548 audit_log_n_untrustedstring 3 9548 NULL
++readl_9557 readl 0 9557 NULL
++fw_node_create_9559 fw_node_create 2 9559 NULL
++kobj_map_9566 kobj_map 2-3 9566 NULL
++f2fs_read_data_pages_9574 f2fs_read_data_pages 4 9574 NULL
++biovec_create_pools_9575 biovec_create_pools 2 9575 NULL
++ieee80211_tdls_mgmt_9581 ieee80211_tdls_mgmt 8 9581 NULL
++do_sync_9604 do_sync 1 9604 NULL
++snd_emu10k1_fx8010_read_9605 snd_emu10k1_fx8010_read 5-6 9605 NULL
++saa7164_buffer_alloc_user_9627 saa7164_buffer_alloc_user 2 9627 NULL
++compat_sys_keyctl_9639 compat_sys_keyctl 4-2-3 9639 NULL
++ocfs2_xattr_get_rec_9652 ocfs2_xattr_get_rec 0 9652 NULL
++uvc_alloc_buffers_9656 uvc_alloc_buffers 2-3 9656 NULL
++queue_received_packet_9657 queue_received_packet 5 9657 NULL
++snd_opl4_mem_proc_write_9670 snd_opl4_mem_proc_write 5 9670 NULL
++ks8842_read16_9676 ks8842_read16 0 9676 NULL nohasharray
++dns_query_9676 dns_query 3 9676 &ks8842_read16_9676
++qib_7322_handle_hwerrors_9678 qib_7322_handle_hwerrors 3 9678 NULL
++__erst_read_from_storage_9690 __erst_read_from_storage 0 9690 NULL
++x25_asy_compat_ioctl_9694 x25_asy_compat_ioctl 4 9694 NULL nohasharray
++is_hole_9694 is_hole 2 9694 &x25_asy_compat_ioctl_9694
++fnb_9703 fnb 2-3 9703 NULL
++ieee80211_if_read_aid_9705 ieee80211_if_read_aid 3 9705 NULL
++ieee80211_if_fmt_num_mcast_sta_9738 ieee80211_if_fmt_num_mcast_sta 3 9738 NULL
++ddb_input_read_9743 ddb_input_read 3 9743 NULL
++sta_last_ack_signal_read_9751 sta_last_ack_signal_read 3 9751 NULL
++btrfs_super_root_9763 btrfs_super_root 0 9763 NULL
++__alloc_percpu_9764 __alloc_percpu 1-2 9764 NULL
++do_sigpending_9766 do_sigpending 2 9766 NULL
++__blk_queue_init_tags_9778 __blk_queue_init_tags 2 9778 NULL
++snd_mem_proc_write_9786 snd_mem_proc_write 3 9786 NULL
++_regmap_write_9803 _regmap_write 2 9803 NULL
++ttm_bo_fbdev_io_9805 ttm_bo_fbdev_io 4 9805 NULL
++ieee80211_if_read_state_9813 ieee80211_if_read_state 3 9813 NULL
++pnp_mem_start_9817 pnp_mem_start 0 9817 NULL
++kernel_physical_mapping_init_9818 kernel_physical_mapping_init 0-2-1 9818 NULL
++dvb_dvr_set_buffer_size_9840 dvb_dvr_set_buffer_size 2 9840 NULL
++cfg80211_send_deauth_9862 cfg80211_send_deauth 3 9862 NULL
++pmcraid_alloc_sglist_9864 pmcraid_alloc_sglist 1 9864 NULL
++btrfs_free_reserved_extent_9867 btrfs_free_reserved_extent 2 9867 NULL
++f1x_translate_sysaddr_to_cs_9868 f1x_translate_sysaddr_to_cs 2 9868 NULL
++mlx4_bitmap_alloc_range_9876 mlx4_bitmap_alloc_range 2-3 9876 NULL
++wil_read_file_ioblob_9878 wil_read_file_ioblob 3 9878 NULL
++bm_register_write_9893 bm_register_write 3 9893 NULL nohasharray
++snd_midi_event_new_9893 snd_midi_event_new 1 9893 &bm_register_write_9893
++snd_gf1_pcm_playback_copy_9895 snd_gf1_pcm_playback_copy 3-5 9895 NULL
++receive_DataRequest_9904 receive_DataRequest 3 9904 NULL
++nonpaging_page_fault_9908 nonpaging_page_fault 2 9908 NULL
++pstore_ftrace_knob_read_9947 pstore_ftrace_knob_read 3 9947 NULL
++read_file_misc_9948 read_file_misc 3 9948 NULL
++set_rxd_buffer_pointer_9950 set_rxd_buffer_pointer 8 9950 NULL
++ext2_new_blocks_9954 ext2_new_blocks 2 9954 NULL
++csum_partial_copy_fromiovecend_9957 csum_partial_copy_fromiovecend 3-4 9957 NULL
++get_free_serial_index_9969 get_free_serial_index 0 9969 NULL
++btrfs_add_link_9973 btrfs_add_link 5 9973 NULL
++ath6kl_usb_submit_ctrl_out_9978 ath6kl_usb_submit_ctrl_out 6 9978 NULL
++twl6040_clear_bits_9985 twl6040_clear_bits 2 9985 NULL
++aat2870_dump_reg_10019 aat2870_dump_reg 0 10019 NULL
++handle_request_10024 handle_request 9 10024 NULL
++batadv_orig_hash_add_if_10033 batadv_orig_hash_add_if 2 10033 NULL
++ieee80211_probereq_get_10040 ieee80211_probereq_get 4-5 10040 NULL
++rbd_coll_end_req_index_10041 rbd_coll_end_req_index 5 10041 NULL
++ieee80211_set_probe_resp_10077 ieee80211_set_probe_resp 3 10077 NULL
++wm831x_gpio_direction_in_10099 wm831x_gpio_direction_in 2 10099 NULL
++ufs_bitmap_search_10105 ufs_bitmap_search 0-3 10105 NULL
++get_elem_size_10110 get_elem_size 0-2 10110 NULL nohasharray
++dynamic_ps_timeout_read_10110 dynamic_ps_timeout_read 3 10110 &get_elem_size_10110
++gfs2_meta_read_10112 gfs2_meta_read 0 10112 NULL
++offset_to_bit_10134 offset_to_bit 0 10134 NULL
++aes_decrypt_packets_read_10155 aes_decrypt_packets_read 3 10155 NULL
++rx_out_of_mem_read_10157 rx_out_of_mem_read 3 10157 NULL
++hidg_alloc_ep_req_10159 hidg_alloc_ep_req 2 10159 NULL nohasharray
++ol_chunk_entries_10159 ol_chunk_entries 0 10159 &hidg_alloc_ep_req_10159
++stmpe_irq_unmap_10164 stmpe_irq_unmap 2 10164 NULL
++asd_store_update_bios_10165 asd_store_update_bios 4 10165 NULL
++proc_pid_attr_read_10173 proc_pid_attr_read 3 10173 NULL
++jffs2_user_setxattr_10182 jffs2_user_setxattr 4 10182 NULL
++do_ioctl_trans_10194 do_ioctl_trans 3 10194 NULL
++cciss_proc_write_10259 cciss_proc_write 3 10259 NULL
++snd_rme9652_capture_copy_10287 snd_rme9652_capture_copy 5 10287 NULL
++ubi_leb_change_10289 ubi_leb_change 4 10289 NULL
++lm3533_led_delay_set_10291 lm3533_led_delay_set 2 10291 NULL
++read_emulate_10310 read_emulate 2-4 10310 NULL
++ttm_object_device_init_10321 ttm_object_device_init 2 10321 NULL
++ubi_leb_read_10328 ubi_leb_read 0 10328 NULL
++tun_sendmsg_10337 tun_sendmsg 4 10337 NULL
++ufx_alloc_urb_list_10349 ufx_alloc_urb_list 3 10349 NULL
++dbAllocAny_10354 dbAllocAny 0 10354 NULL
++ath6kl_listen_int_read_10355 ath6kl_listen_int_read 3 10355 NULL
++ms_write_multiple_pages_10362 ms_write_multiple_pages 6-5 10362 NULL
++sta_ht_capa_read_10366 sta_ht_capa_read 3 10366 NULL
++ecryptfs_decode_and_decrypt_filename_10379 ecryptfs_decode_and_decrypt_filename 5 10379 NULL
++do_compat_pselect_10398 do_compat_pselect 1 10398 NULL
++fwtty_rx_10434 fwtty_rx 3 10434 NULL
++event_phy_transmit_error_read_10471 event_phy_transmit_error_read 3 10471 NULL
++ca91cx42_alloc_resource_10502 ca91cx42_alloc_resource 2 10502 NULL
++qib_alloc_fast_reg_page_list_10507 qib_alloc_fast_reg_page_list 2 10507 NULL
++sel_write_disable_10511 sel_write_disable 3 10511 NULL
++osd_req_write_sg_kern_10514 osd_req_write_sg_kern 5 10514 NULL
++rds_message_alloc_10517 rds_message_alloc 1 10517 NULL
++snd_pcm_hw_params_user_10520 snd_pcm_hw_params_user 0 10520 NULL
++ocfs2_add_refcounted_extent_10526 ocfs2_add_refcounted_extent 6 10526 NULL
++get_vm_area_caller_10527 get_vm_area_caller 1 10527 NULL
++snd_pcm_lib_read_10536 snd_pcm_lib_read 0-3 10536 NULL
++ext4_write_begin_10576 ext4_write_begin 3-4 10576 NULL
++scrub_remap_extent_10588 scrub_remap_extent 2 10588 NULL
++otp_read_10594 otp_read 2-4-5 10594 NULL
++supply_map_read_file_10608 supply_map_read_file 3 10608 NULL
++mc13783_set_fmt_10616 mc13783_set_fmt 3 10616 NULL
++ima_show_htable_violations_10619 ima_show_htable_violations 3 10619 NULL
++alloc_coherent_10632 alloc_coherent 2 10632 NULL
++nfs_idmap_lookup_id_10660 nfs_idmap_lookup_id 2 10660 NULL
++parport_write_10669 parport_write 0 10669 NULL
++inl_10708 inl 0 10708 NULL nohasharray
++selinux_inode_setxattr_10708 selinux_inode_setxattr 4 10708 &inl_10708
++pvr2_ioread_read_10720 pvr2_ioread_read 3 10720 NULL nohasharray
++shash_async_setkey_10720 shash_async_setkey 3 10720 &pvr2_ioread_read_10720
++spi_sync_10731 spi_sync 0 10731 NULL
++sctp_getsockopt_maxseg_10737 sctp_getsockopt_maxseg 2 10737 NULL nohasharray
++apu_get_register_10737 apu_get_register 0 10737 &sctp_getsockopt_maxseg_10737
++compat_sys_msgsnd_10738 compat_sys_msgsnd 2 10738 NULL
++sys_syslog_10746 sys_syslog 3 10746 NULL
++alloc_one_pg_vec_page_10747 alloc_one_pg_vec_page 1 10747 NULL
++vhost_add_used_n_10760 vhost_add_used_n 3 10760 NULL
++kvm_read_guest_atomic_10765 kvm_read_guest_atomic 4 10765 NULL
++sys_bind_10799 sys_bind 3 10799 NULL
++compat_put_int_10828 compat_put_int 1 10828 NULL
++lbs_sleepparams_read_10840 lbs_sleepparams_read 3 10840 NULL
++ida_get_new_above_10853 ida_get_new_above 2 10853 NULL
++fuse_conn_max_background_read_10855 fuse_conn_max_background_read 3 10855 NULL
++ol_chunk_blocks_10864 ol_chunk_blocks 0 10864 NULL
++batadv_check_unicast_packet_10866 batadv_check_unicast_packet 2 10866 NULL
++snd_pcm_oss_write1_10872 snd_pcm_oss_write1 3 10872 NULL
++mid_get_vbt_data_r0_10876 mid_get_vbt_data_r0 2 10876 NULL
++bl_mark_for_commit_10879 bl_mark_for_commit 2-3 10879 NULL
++get_scq_10897 get_scq 2 10897 NULL
++cgroup_write_string_10900 cgroup_write_string 5 10900 NULL
++tifm_alloc_adapter_10903 tifm_alloc_adapter 1 10903 NULL
++__copy_from_user_10918 __copy_from_user 3 10918 NULL
++da9052_map_irq_10952 da9052_map_irq 2 10952 NULL
++bm_entry_read_10976 bm_entry_read 3 10976 NULL
++i915_min_freq_write_10981 i915_min_freq_write 3 10981 NULL
++sched_autogroup_write_10984 sched_autogroup_write 3 10984 NULL
++__hci_num_ctrl_10985 __hci_num_ctrl 0 10985 NULL
++xfrm_hash_alloc_10997 xfrm_hash_alloc 1 10997 NULL
++rx_filter_accum_arp_pend_requests_read_11003 rx_filter_accum_arp_pend_requests_read 3 11003 NULL
++SetLineNumber_11023 SetLineNumber 0 11023 NULL
++mb_find_next_bit_11037 mb_find_next_bit 2-3-0 11037 NULL
++nouveau_gpio_create__11048 nouveau_gpio_create_ 4 11048 NULL
++tda10048_writeregbulk_11050 tda10048_writeregbulk 4 11050 NULL
++carl9170_handle_mpdu_11056 carl9170_handle_mpdu 3 11056 NULL
++tcp_send_mss_11079 tcp_send_mss 0 11079 NULL
++snd_pcm_delay_11081 snd_pcm_delay 0 11081 NULL
++count_argc_11083 count_argc 0 11083 NULL
++kvm_write_guest_cached_11106 kvm_write_guest_cached 4 11106 NULL
++stmpe_gpio_to_irq_11110 stmpe_gpio_to_irq 2 11110 NULL
++tw_change_queue_depth_11116 tw_change_queue_depth 2 11116 NULL
++page_offset_11120 page_offset 0 11120 NULL
++tracing_buffers_read_11124 tracing_buffers_read 3 11124 NULL
++alloc_alien_cache_11127 alloc_alien_cache 2 11127 NULL
++acpi_os_map_memory_11161 acpi_os_map_memory 1-2 11161 NULL
++ioat2_alloc_ring_11172 ioat2_alloc_ring 2 11172 NULL nohasharray
++snd_gf1_pcm_playback_silence_11172 snd_gf1_pcm_playback_silence 3-4 11172 &ioat2_alloc_ring_11172
++__swab16p_11220 __swab16p 0 11220 NULL
++il_dbgfs_rx_queue_read_11221 il_dbgfs_rx_queue_read 3 11221 NULL
++of_irq_count_11253 of_irq_count 0 11253 NULL
++ubifs_write_node_11258 ubifs_write_node 5-3 11258 NULL
++hugetlbfs_read_11268 hugetlbfs_read 3 11268 NULL
++cru_detect_11272 cru_detect 1 11272 NULL
++ext4_xattr_check_names_11314 ext4_xattr_check_names 0 11314 NULL
++tcp_send_rcvq_11316 tcp_send_rcvq 3 11316 NULL
++construct_key_11329 construct_key 3 11329 NULL nohasharray
++__kfifo_out_peek_11329 __kfifo_out_peek 0-3 11329 &construct_key_11329
++next_segment_11330 next_segment 0-2-1 11330 NULL
++persistent_ram_buffer_map_11332 persistent_ram_buffer_map 1-2 11332 NULL
++ext4_get_inline_size_11349 ext4_get_inline_size 0 11349 NULL
++i915_max_freq_write_11350 i915_max_freq_write 3 11350 NULL
++sel_write_create_11353 sel_write_create 3 11353 NULL
++handle_unit_11355 handle_unit 0-1 11355 NULL
++batadv_skb_head_push_11360 batadv_skb_head_push 2 11360 NULL
++drm_vblank_init_11362 drm_vblank_init 2 11362 NULL
++qib_get_base_info_11369 qib_get_base_info 3 11369 NULL
++dev_irnet_write_11398 dev_irnet_write 3 11398 NULL
++___alloc_bootmem_11410 ___alloc_bootmem 1 11410 NULL
++str_to_user_11411 str_to_user 2 11411 NULL
++mem_fw_gen_free_mem_blks_read_11413 mem_fw_gen_free_mem_blks_read 3 11413 NULL
++ath6kl_wmi_test_rx_11414 ath6kl_wmi_test_rx 3 11414 NULL
++adis16480_show_firmware_revision_11417 adis16480_show_firmware_revision 3 11417 NULL
++trace_options_read_11419 trace_options_read 3 11419 NULL
++xd_read_multiple_pages_11422 xd_read_multiple_pages 5-4 11422 NULL
++prepare_image_11424 prepare_image 0 11424 NULL
++vring_size_11426 vring_size 0-1-2 11426 NULL
++bttv_read_11432 bttv_read 3 11432 NULL
++create_zero_mask_11453 create_zero_mask 0-1 11453 NULL
++swp_offset_11475 swp_offset 0 11475 NULL
++sca3000_read_first_n_hw_rb_11479 sca3000_read_first_n_hw_rb 2 11479 NULL
++xfs_file_buffered_aio_write_11492 xfs_file_buffered_aio_write 4 11492 NULL
++sd_do_mode_sense_11507 sd_do_mode_sense 5 11507 NULL
++kmem_zalloc_11510 kmem_zalloc 1 11510 NULL
++twl_direction_in_11527 twl_direction_in 2 11527 NULL
++setup_IO_APIC_irq_extra_11537 setup_IO_APIC_irq_extra 1 11537 NULL
++skb_cow_data_11565 skb_cow_data 0-2 11565 NULL
++mlx4_init_cmpt_table_11569 mlx4_init_cmpt_table 3 11569 NULL
++oprofilefs_ulong_to_user_11582 oprofilefs_ulong_to_user 3 11582 NULL
++snd_pcm_action_11589 snd_pcm_action 0 11589 NULL
++fw_device_op_ioctl_11595 fw_device_op_ioctl 2 11595 NULL
++sisusb_send_bridge_packet_11649 sisusb_send_bridge_packet 2 11649 NULL
++nla_total_size_11658 nla_total_size 0-1 11658 NULL
++ide_queue_pc_tail_11673 ide_queue_pc_tail 5 11673 NULL
++btrfs_alloc_delayed_item_11678 btrfs_alloc_delayed_item 1 11678 NULL
++da9055_gpio_direction_output_11680 da9055_gpio_direction_output 2 11680 NULL
++dsp_buffer_alloc_11684 dsp_buffer_alloc 2 11684 NULL
++sctp_setsockopt_hmac_ident_11687 sctp_setsockopt_hmac_ident 3 11687 NULL
++split_11691 split 2 11691 NULL
++snd_ctl_elem_user_tlv_11695 snd_ctl_elem_user_tlv 3 11695 NULL
++blk_rq_cur_bytes_11723 blk_rq_cur_bytes 0 11723 NULL
++tcf_csum_ipv6_icmp_11738 tcf_csum_ipv6_icmp 4 11738 NULL
++nfsd4_get_drc_mem_11748 nfsd4_get_drc_mem 0-1-2 11748 NULL
++dm_bio_prison_create_11749 dm_bio_prison_create 1 11749 NULL
++iwl_dbgfs_qos_read_11753 iwl_dbgfs_qos_read 3 11753 NULL
++ps_pspoll_timeouts_read_11776 ps_pspoll_timeouts_read 3 11776 NULL
++ebt_buf_add_11779 ebt_buf_add 0 11779 NULL
++btrfs_key_blockptr_11786 btrfs_key_blockptr 0 11786 NULL
++pcpu_fc_alloc_11818 pcpu_fc_alloc 2 11818 NULL
++zerocopy_sg_from_iovec_11828 zerocopy_sg_from_iovec 3 11828 NULL
++sctp_setsockopt_maxseg_11829 sctp_setsockopt_maxseg 3 11829 NULL
++rts51x_read_status_11830 rts51x_read_status 4 11830 NULL
++unix_stream_connect_11844 unix_stream_connect 3 11844 NULL
++nf_nat_sdp_media_11863 nf_nat_sdp_media 9 11863 NULL
++ecryptfs_copy_filename_11868 ecryptfs_copy_filename 4 11868 NULL
++kmalloc_slab_11917 kmalloc_slab 1 11917 NULL
++fs_devrw_entry_11924 fs_devrw_entry 3 11924 NULL
++bitmap_remap_11929 bitmap_remap 5 11929 NULL
++atomic_sub_return_11939 atomic_sub_return 0-1 11939 NULL
++dccp_feat_clone_sp_val_11942 dccp_feat_clone_sp_val 3 11942 NULL
++kvm_set_msr_common_11953 kvm_set_msr_common 3 11953 NULL
++f1x_swap_interleaved_region_11970 f1x_swap_interleaved_region 0-2 11970 NULL
++atmel_read16_11981 atmel_read16 0 11981 NULL
++read_and_add_raw_conns_11987 read_and_add_raw_conns 0 11987 NULL
++mwifiex_cfg80211_mgmt_tx_12022 mwifiex_cfg80211_mgmt_tx 9 12022 NULL
++ftdi_elan_total_command_size_12045 ftdi_elan_total_command_size 0 12045 NULL
++ieee80211_if_read_user_power_level_12050 ieee80211_if_read_user_power_level 3 12050 NULL
++il4965_ucode_tx_stats_read_12064 il4965_ucode_tx_stats_read 3 12064 NULL
++ptc_proc_write_12076 ptc_proc_write 3 12076 NULL
++ubifs_recover_log_leb_12079 ubifs_recover_log_leb 3 12079 NULL
++da9052_gpio_direction_output_12120 da9052_gpio_direction_output 2 12120 NULL
++alloc_bulk_urbs_generic_12127 alloc_bulk_urbs_generic 5 12127 NULL
++set_powered_12129 set_powered 4 12129 NULL
++nfs_writedata_alloc_12133 nfs_writedata_alloc 2 12133 NULL
++ramoops_init_prz_12134 ramoops_init_prz 5 12134 NULL
++xfs_handle_to_dentry_12135 xfs_handle_to_dentry 3 12135 NULL
++batadv_add_packet_12136 batadv_add_packet 3 12136 NULL
++rawv6_seticmpfilter_12137 rawv6_seticmpfilter 5 12137 NULL
++vmw_fifo_reserve_12141 vmw_fifo_reserve 2 12141 NULL
++get_idx_gc_leb_12148 get_idx_gc_leb 0 12148 NULL
++btmrvl_sdio_host_to_card_12152 btmrvl_sdio_host_to_card 3 12152 NULL
++vmbus_open_12154 vmbus_open 2-3 12154 NULL
++wil_rxdesc_phy_length_12165 wil_rxdesc_phy_length 0 12165 NULL
++dma_memcpy_to_iovec_12173 dma_memcpy_to_iovec 5 12173 NULL
++ddp_make_gl_12179 ddp_make_gl 1 12179 NULL
++compat_do_arpt_set_ctl_12184 compat_do_arpt_set_ctl 4 12184 NULL
++ip_generic_getfrag_12187 ip_generic_getfrag 3-4 12187 NULL
++bl_is_sector_init_12199 bl_is_sector_init 2 12199 NULL
++receive_copy_12216 receive_copy 3 12216 NULL
++snd_pcm_kernel_ioctl_12219 snd_pcm_kernel_ioctl 0 12219 NULL
++aat2870_reg_read_file_12221 aat2870_reg_read_file 3 12221 NULL
++ib_uverbs_unmarshall_recv_12251 ib_uverbs_unmarshall_recv 5 12251 NULL
++ath_descdma_setup_12257 ath_descdma_setup 5 12257 NULL
++shash_compat_setkey_12267 shash_compat_setkey 3 12267 NULL
++add_sctp_bind_addr_12269 add_sctp_bind_addr 3 12269 NULL
++note_last_dentry_12285 note_last_dentry 3 12285 NULL
++roundup_to_multiple_of_64_12288 roundup_to_multiple_of_64 0-1 12288 NULL nohasharray
++il_dbgfs_nvm_read_12288 il_dbgfs_nvm_read 3 12288 &roundup_to_multiple_of_64_12288
++vxge_get_num_vfs_12302 vxge_get_num_vfs 0 12302 NULL
++split_bvec_12312 split_bvec 6 12312 NULL
++tipc_msg_build_12326 tipc_msg_build 4 12326 NULL
++pcbit_writecmd_12332 pcbit_writecmd 2 12332 NULL
++mptctl_ioctl_12355 mptctl_ioctl 2 12355 NULL
++__nf_ct_ext_add_length_12364 __nf_ct_ext_add_length 3 12364 NULL
++receive_packet_12367 receive_packet 2 12367 NULL
++xfs_iext_inline_to_direct_12384 xfs_iext_inline_to_direct 2 12384 NULL
++btrfs_file_extent_ram_bytes_12391 btrfs_file_extent_ram_bytes 0 12391 NULL
++ntfs_get_size_for_mapping_pairs_12413 ntfs_get_size_for_mapping_pairs 0 12413 NULL
++ieee80211_if_read_num_mcast_sta_12419 ieee80211_if_read_num_mcast_sta 3 12419 NULL
++skb_do_copy_data_nocache_12465 skb_do_copy_data_nocache 5 12465 NULL
++qla4_82xx_pci_mem_write_direct_12479 qla4_82xx_pci_mem_write_direct 2 12479 NULL
++x25_sendmsg_12487 x25_sendmsg 4 12487 NULL
++rtllib_auth_challenge_12493 rtllib_auth_challenge 3 12493 NULL
++nfs_readdir_make_qstr_12509 nfs_readdir_make_qstr 3 12509 NULL
++qib_alloc_fast_reg_mr_12526 qib_alloc_fast_reg_mr 2 12526 NULL
++arizona_gpio_direction_out_12564 arizona_gpio_direction_out 2 12564 NULL
++hvc_alloc_12579 hvc_alloc 4 12579 NULL
++snd_pcm_plugin_alloc_12580 snd_pcm_plugin_alloc 2 12580 NULL
++macvtap_compat_ioctl_12587 macvtap_compat_ioctl 3 12587 NULL
++pcpu_extend_area_map_12589 pcpu_extend_area_map 2 12589 NULL
++ipv6_get_l4proto_12600 ipv6_get_l4proto 2 12600 NULL
++vhci_put_user_12604 vhci_put_user 4 12604 NULL
++fc_fcp_frame_alloc_12624 fc_fcp_frame_alloc 2 12624 NULL
++pwr_rcvd_awake_bcns_cnt_read_12632 pwr_rcvd_awake_bcns_cnt_read 3 12632 NULL
++ctrl_cdev_compat_ioctl_12634 ctrl_cdev_compat_ioctl 3 12634 NULL
++pn_sendmsg_12640 pn_sendmsg 4 12640 NULL
++dwc3_link_state_write_12641 dwc3_link_state_write 3 12641 NULL
++ocfs2_read_block_12659 ocfs2_read_block 0 12659 NULL
++sel_read_class_12669 sel_read_class 3 12669 NULL nohasharray
++sparse_mem_maps_populate_node_12669 sparse_mem_maps_populate_node 4 12669 &sel_read_class_12669
++ieee80211_if_read_num_buffered_multicast_12716 ieee80211_if_read_num_buffered_multicast 3 12716 NULL
++ivtv_write_12721 ivtv_write 3 12721 NULL
++key_rx_spec_read_12736 key_rx_spec_read 3 12736 NULL
++__videobuf_alloc_cached_12740 __videobuf_alloc_cached 1 12740 NULL
++ieee80211_if_read_dot11MeshMaxRetries_12756 ieee80211_if_read_dot11MeshMaxRetries 3 12756 NULL
++listxattr_12769 listxattr 3 12769 NULL
++sctp_ssnmap_init_12772 sctp_ssnmap_init 2-3 12772 NULL
++platform_create_bundle_12785 platform_create_bundle 4-6 12785 NULL
++scsi_adjust_queue_depth_12802 scsi_adjust_queue_depth 3 12802 NULL
++xfs_inumbers_fmt_12817 xfs_inumbers_fmt 3 12817 NULL
++readq_12825 readq 0 12825 NULL
++TSS_authhmac_12839 TSS_authhmac 3 12839 NULL
++ath6kl_wmi_add_wow_pattern_cmd_12842 ath6kl_wmi_add_wow_pattern_cmd 4 12842 NULL nohasharray
++spidev_sync_12842 spidev_sync 0 12842 &ath6kl_wmi_add_wow_pattern_cmd_12842
++spidev_ioctl_12846 spidev_ioctl 2 12846 NULL
++get_leb_cnt_12892 get_leb_cnt 0-2 12892 NULL
++ocfs2_hamming_encode_block_12904 ocfs2_hamming_encode_block 2 12904 NULL
++get_virtual_node_size_12908 get_virtual_node_size 0 12908 NULL
++rds_pages_in_vec_12922 rds_pages_in_vec 0 12922 NULL
++ci_ll_init_12930 ci_ll_init 3 12930 NULL
++tps65910_reg_update_bits_12934 tps65910_reg_update_bits 2 12934 NULL
++do_inode_permission_12946 do_inode_permission 0 12946 NULL
++bm_status_write_12964 bm_status_write 3 12964 NULL
++_drbd_md_first_sector_12984 _drbd_md_first_sector 0 12984 NULL
++acpi_tb_install_table_12988 acpi_tb_install_table 1 12988 NULL
++TransmitTcb_12989 TransmitTcb 4 12989 NULL
++sk_peek_offset_12991 sk_peek_offset 0 12991 NULL
++subsystem_filter_write_13022 subsystem_filter_write 3 13022 NULL
++generic_segment_checks_13041 generic_segment_checks 0 13041 NULL
++ocfs2_write_begin_13045 ocfs2_write_begin 3-4 13045 NULL
++__dn_setsockopt_13060 __dn_setsockopt 5 13060 NULL
++irq_set_chip_and_handler_13088 irq_set_chip_and_handler 1 13088 NULL
++tps6586x_set_bits_13089 tps6586x_set_bits 2 13089 NULL
++xattr_getsecurity_13090 xattr_getsecurity 0 13090 NULL
++blk_rq_map_sg_13092 blk_rq_map_sg 0 13092 NULL
++mb_find_next_zero_bit_13100 mb_find_next_zero_bit 2-3 13100 NULL
++ubifs_compat_ioctl_13108 ubifs_compat_ioctl 3 13108 NULL
++snd_rme96_playback_copy_13111 snd_rme96_playback_copy 5 13111 NULL
++xen_allocate_irq_dynamic_13116 xen_allocate_irq_dynamic 0 13116 NULL
++bfad_debugfs_read_13119 bfad_debugfs_read 3 13119 NULL
++blk_update_request_13146 blk_update_request 3 13146 NULL
++caif_stream_recvmsg_13173 caif_stream_recvmsg 4 13173 NULL
++pwr_disable_ps_read_13176 pwr_disable_ps_read 3 13176 NULL
++dgrp_net_ioctl_13183 dgrp_net_ioctl 2 13183 NULL
++create_trace_uprobe_13184 create_trace_uprobe 1 13184 NULL
++compat_put_ulong_13186 compat_put_ulong 1 13186 NULL
++comedi_read_13199 comedi_read 3 13199 NULL
++mmc_ext_csd_read_13205 mmc_ext_csd_read 3 13205 NULL
++__nodes_fold_13215 __nodes_fold 4 13215 NULL
++get_unaligned_le64_13219 get_unaligned_le64 0 13219 NULL
++svm_msrpm_offset_13220 svm_msrpm_offset 0-1 13220 NULL
++asix_read_cmd_13245 asix_read_cmd 5 13245 NULL
++fw_download_code_13249 fw_download_code 3 13249 NULL
++init_tid_tabs_13252 init_tid_tabs 2-3-4 13252 NULL
++hostap_80211_get_hdrlen_13255 hostap_80211_get_hdrlen 0 13255 NULL
++bio_integrity_trim_13259 bio_integrity_trim 3 13259 NULL
++carl9170_rx_13272 carl9170_rx 3 13272 NULL
++pmcraid_notify_aen_13274 pmcraid_notify_aen 3 13274 NULL
++il4965_stats_flag_13281 il4965_stats_flag 0-3 13281 NULL
++lpfc_idiag_mbxacc_get_setup_13282 lpfc_idiag_mbxacc_get_setup 0 13282 NULL
++platform_device_add_resources_13289 platform_device_add_resources 3 13289 NULL
++us122l_ctl_msg_13330 us122l_ctl_msg 8 13330 NULL
++kvm_read_nested_guest_page_13337 kvm_read_nested_guest_page 5 13337 NULL
++mthca_alloc_mtt_range_13371 mthca_alloc_mtt_range 2 13371 NULL
++iso_sched_alloc_13377 iso_sched_alloc 1 13377 NULL nohasharray
++wep_key_not_found_read_13377 wep_key_not_found_read 3 13377 &iso_sched_alloc_13377
++carl9170_rx_untie_data_13405 carl9170_rx_untie_data 3 13405 NULL
++sky2_receive_13407 sky2_receive 2 13407 NULL
++netxen_alloc_sds_rings_13417 netxen_alloc_sds_rings 2 13417 NULL
++keyring_read_13438 keyring_read 3 13438 NULL
++sctp_setsockopt_peer_primary_addr_13440 sctp_setsockopt_peer_primary_addr 3 13440 NULL nohasharray
++set_tap_pwup_pfs_13440 set_tap_pwup_pfs 3 13440 &sctp_setsockopt_peer_primary_addr_13440
++ath6kl_cfg80211_connect_event_13443 ath6kl_cfg80211_connect_event 7-8-9 13443 NULL
++mthca_buddy_alloc_13454 mthca_buddy_alloc 2 13454 NULL
++ocfs2_align_bytes_to_blocks_13512 ocfs2_align_bytes_to_blocks 2 13512 NULL
++core_status_13515 core_status 4 13515 NULL
++smk_write_mapped_13519 smk_write_mapped 3 13519 NULL
++bm_init_13529 bm_init 2 13529 NULL
++llcp_sock_recvmsg_13556 llcp_sock_recvmsg 4 13556 NULL
++ieee80211_if_read_ap_power_level_13558 ieee80211_if_read_ap_power_level 3 13558 NULL
++alloc_tio_13564 alloc_tio 3 13564 NULL
++ubifs_get_idx_gc_leb_13566 ubifs_get_idx_gc_leb 0 13566 NULL
++read_file_antenna_13574 read_file_antenna 3 13574 NULL
++pm860x_set_bits_13582 pm860x_set_bits 2 13582 NULL
++cache_write_13589 cache_write 3 13589 NULL
++mpt_lan_receive_post_turbo_13592 mpt_lan_receive_post_turbo 2 13592 NULL
++aac_sa_ioremap_13596 aac_sa_ioremap 2 13596 NULL nohasharray
++irias_new_octseq_value_13596 irias_new_octseq_value 2 13596 &aac_sa_ioremap_13596
++usb_dump_interface_descriptor_13603 usb_dump_interface_descriptor 0 13603 NULL
++swap_cgroup_swapon_13614 swap_cgroup_swapon 2 13614 NULL
++wm8994_bulk_write_13615 wm8994_bulk_write 3-2 13615 NULL
++pmcraid_get_minor_13619 pmcraid_get_minor 0 13619 NULL
++iio_device_add_event_sysfs_13627 iio_device_add_event_sysfs 0 13627 NULL
++packet_snd_13634 packet_snd 3 13634 NULL
++blk_msg_write_13655 blk_msg_write 3 13655 NULL
++cache_downcall_13666 cache_downcall 3 13666 NULL
++fw_iso_buffer_alloc_13704 fw_iso_buffer_alloc 2 13704 NULL
++audit_unpack_string_13748 audit_unpack_string 3 13748 NULL
++ufs_dtog_13750 ufs_dtog 0-2 13750 NULL
++ieee802154_alloc_device_13767 ieee802154_alloc_device 1 13767 NULL
++fb_sys_read_13778 fb_sys_read 3 13778 NULL
++ath6kl_mgmt_powersave_ap_13791 ath6kl_mgmt_powersave_ap 6 13791 NULL
++random_read_13815 random_read 3 13815 NULL
++hsi_register_board_info_13820 hsi_register_board_info 2 13820 NULL
++evdev_ioctl_compat_13851 evdev_ioctl_compat 2-3 13851 NULL
++compat_ip_setsockopt_13870 compat_ip_setsockopt 5 13870 NULL nohasharray
++alloc_trace_uprobe_13870 alloc_trace_uprobe 3 13870 &compat_ip_setsockopt_13870
++snd_pcm_aio_read_13900 snd_pcm_aio_read 3 13900 NULL
++ext3_xattr_block_get_13936 ext3_xattr_block_get 0 13936 NULL
++ieee80211_if_read_dot11MeshForwarding_13940 ieee80211_if_read_dot11MeshForwarding 3 13940 NULL nohasharray
++ocfs2_xa_value_truncate_13940 ocfs2_xa_value_truncate 2 13940 &ieee80211_if_read_dot11MeshForwarding_13940
++iwl_dbgfs_protection_mode_read_13943 iwl_dbgfs_protection_mode_read 3 13943 NULL
++compat_chaninfo_13945 compat_chaninfo 2 13945 NULL
++ieee80211_if_read_min_discovery_timeout_13946 ieee80211_if_read_min_discovery_timeout 3 13946 NULL
++lpfc_idiag_queacc_read_13950 lpfc_idiag_queacc_read 3 13950 NULL
++snd_pcm_plug_slave_size_13967 snd_pcm_plug_slave_size 0-2 13967 NULL
++com90xx_found_13974 com90xx_found 3 13974 NULL
++qcam_read_13977 qcam_read 3 13977 NULL
++dsp_read_13980 dsp_read 2 13980 NULL
++bm_block_bits_13981 bm_block_bits 0 13981 NULL nohasharray
++dvb_demux_read_13981 dvb_demux_read 3 13981 &bm_block_bits_13981
++ieee80211_bss_info_update_13991 ieee80211_bss_info_update 4 13991 NULL
++btrfs_get_blocks_direct_14016 btrfs_get_blocks_direct 2 14016 NULL
++_rtl92s_firmware_downloadcode_14021 _rtl92s_firmware_downloadcode 3 14021 NULL
++dvb_usercopy_14036 dvb_usercopy 2 14036 NULL
++read_def_modal_eeprom_14041 read_def_modal_eeprom 3 14041 NULL
++ieee80211_if_fmt_aid_14055 ieee80211_if_fmt_aid 3 14055 NULL
++sta_agg_status_read_14058 sta_agg_status_read 3 14058 NULL
++do_proc_readlink_14096 do_proc_readlink 3 14096 NULL
++compat_sys_pselect6_14105 compat_sys_pselect6 1 14105 NULL
++nlmsg_len_14115 nlmsg_len 0 14115 NULL
++vfio_fops_compat_ioctl_14130 vfio_fops_compat_ioctl 3 14130 NULL
++ntfs_rl_replace_14136 ntfs_rl_replace 2-4 14136 NULL
++em_canid_change_14150 em_canid_change 3 14150 NULL
++gsm_dlci_data_14155 gsm_dlci_data 3 14155 NULL
++print_input_mask_14168 print_input_mask 3-0 14168 NULL
++ocfs2_xattr_value_truncate_14183 ocfs2_xattr_value_truncate 3 14183 NULL
++alloc_async_14208 alloc_async 1 14208 NULL
++sys_kexec_load_14222 sys_kexec_load 2 14222 NULL
++pool_status_14230 pool_status 5 14230 NULL
++ieee80211_if_write_uapsd_max_sp_len_14233 ieee80211_if_write_uapsd_max_sp_len 3 14233 NULL
++inode_to_path_14235 inode_to_path 2 14235 NULL
++dma_declare_coherent_memory_14244 dma_declare_coherent_memory 4-2 14244 NULL
++snd_soc_hw_bulk_write_raw_14245 snd_soc_hw_bulk_write_raw 4-2 14245 NULL
++reiserfs_compat_ioctl_14265 reiserfs_compat_ioctl 3 14265 NULL
++ath6kl_connect_event_14267 ath6kl_connect_event 7-8-9 14267 NULL
++add_numbered_child_14273 add_numbered_child 5 14273 NULL
++OS_mem_token_alloc_14276 OS_mem_token_alloc 1 14276 NULL
++snd_seq_oss_readq_new_14283 snd_seq_oss_readq_new 2 14283 NULL
++rr_status_14293 rr_status 5 14293 NULL
++lp8788_write_byte_14299 lp8788_write_byte 2 14299 NULL
++read_default_ldt_14302 read_default_ldt 2 14302 NULL
++oo_objects_14319 oo_objects 0 14319 NULL
++p9_client_zc_rpc_14345 p9_client_zc_rpc 7 14345 NULL
++snd_pcm_lib_readv_14363 snd_pcm_lib_readv 0-3 14363 NULL
++acpi_get_override_irq_14381 acpi_get_override_irq 1 14381 NULL
++ath6kl_regdump_read_14393 ath6kl_regdump_read 3 14393 NULL
++smk_write_onlycap_14400 smk_write_onlycap 3 14400 NULL
++mtd_concat_create_14416 mtd_concat_create 2 14416 NULL
++get_kcore_size_14425 get_kcore_size 0 14425 NULL
++check_lpt_crc_14442 check_lpt_crc 0 14442 NULL
++block_size_14443 block_size 0 14443 NULL
++ci13xxx_add_device_14456 ci13xxx_add_device 3 14456 NULL
++snd_emu10k1_proc_spdif_status_14457 snd_emu10k1_proc_spdif_status 4-5 14457 NULL
++udplite_getfrag_14479 udplite_getfrag 3-4 14479 NULL
++ieee80211_if_read_dot11MeshGateAnnouncementProtocol_14486 ieee80211_if_read_dot11MeshGateAnnouncementProtocol 3 14486 NULL
++stripe_status_14506 stripe_status 5 14506 NULL
++ocfs2_debug_read_14507 ocfs2_debug_read 3 14507 NULL
++dataflash_read_user_otp_14536 dataflash_read_user_otp 2-3 14536 NULL nohasharray
++ep0_write_14536 ep0_write 3 14536 &dataflash_read_user_otp_14536
++picolcd_debug_eeprom_read_14549 picolcd_debug_eeprom_read 3 14549 NULL
++drm_vmalloc_dma_14550 drm_vmalloc_dma 1 14550 NULL
++usb_dump_desc_14553 usb_dump_desc 0 14553 NULL
++idmap_pipe_downcall_14591 idmap_pipe_downcall 3 14591 NULL
++ocfs2_trim_group_14641 ocfs2_trim_group 4-3 14641 NULL
++dbJoin_14644 dbJoin 0 14644 NULL
++profile_replace_14652 profile_replace 3 14652 NULL
++pipeline_enc_tx_stat_fifo_int_read_14680 pipeline_enc_tx_stat_fifo_int_read 3 14680 NULL
++ieee80211_if_fmt_rc_rateidx_mask_2ghz_14683 ieee80211_if_fmt_rc_rateidx_mask_2ghz 3 14683 NULL
++tsi148_master_set_14685 tsi148_master_set 4 14685 NULL
++u_audio_playback_14709 u_audio_playback 3 14709 NULL
++vfd_write_14717 vfd_write 3 14717 NULL
++__blk_end_request_14729 __blk_end_request 3 14729 NULL
++raid1_resize_14740 raid1_resize 2 14740 NULL
++btrfs_inode_extref_name_len_14752 btrfs_inode_extref_name_len 0 14752 NULL
++rx_rx_cmplt_read_14753 rx_rx_cmplt_read 3 14753 NULL
++qla82xx_pci_mem_write_2M_14765 qla82xx_pci_mem_write_2M 2 14765 NULL
++regmap_range_read_file_14775 regmap_range_read_file 3 14775 NULL
++lm3533_als_get_hysteresis_14776 lm3533_als_get_hysteresis 2 14776 NULL
++sta_dev_read_14782 sta_dev_read 3 14782 NULL
++ext4_kvmalloc_14796 ext4_kvmalloc 1 14796 NULL
++hpet_readl_14801 hpet_readl 0 14801 NULL nohasharray
++snd_als300_gcr_read_14801 snd_als300_gcr_read 0 14801 &hpet_readl_14801
++bcma_scan_read32_14802 bcma_scan_read32 0 14802 NULL
++do_tune_cpucache_14828 do_tune_cpucache 2 14828 NULL
++__mutex_fastpath_lock_retval_14844 __mutex_fastpath_lock_retval 0 14844 NULL
++lcd_write_14857 lcd_write 3 14857 NULL nohasharray
++__krealloc_14857 __krealloc 2 14857 &lcd_write_14857
++get_user_cpu_mask_14861 get_user_cpu_mask 2 14861 NULL
++sriov_enable_migration_14889 sriov_enable_migration 2 14889 NULL
++acpi_os_allocate_14892 acpi_os_allocate 1 14892 NULL
++unifi_read_14899 unifi_read 3 14899 NULL
++krealloc_14908 krealloc 2 14908 NULL
++regmap_irq_get_virq_14910 regmap_irq_get_virq 2 14910 NULL
++__arch_hweight64_14923 __arch_hweight64 0 14923 NULL
++ocfs2_expand_nonsparse_inode_14936 ocfs2_expand_nonsparse_inode 3-4 14936 NULL
++queue_cnt_14951 queue_cnt 0 14951 NULL
++videobuf_read_stream_14956 videobuf_read_stream 3 14956 NULL
++mce_flush_rx_buffer_14976 mce_flush_rx_buffer 2 14976 NULL
++setkey_14987 setkey 3 14987 NULL nohasharray
++gpio_twl4030_write_14987 gpio_twl4030_write 1 14987 &setkey_14987
++vmap_15025 vmap 2 15025 NULL
++blk_integrity_tuple_size_15027 blk_integrity_tuple_size 0 15027 NULL
++irq_get_next_irq_15053 irq_get_next_irq 1 15053 NULL
++cld_pipe_downcall_15058 cld_pipe_downcall 3 15058 NULL
++ieee80211_if_read_uapsd_max_sp_len_15067 ieee80211_if_read_uapsd_max_sp_len 3 15067 NULL
++nfs4_write_cached_acl_15070 nfs4_write_cached_acl 4 15070 NULL
++ntfs_copy_from_user_15072 ntfs_copy_from_user 3-5 15072 NULL
++__alloc_extent_buffer_15093 __alloc_extent_buffer 3 15093 NULL
++hex_dump_to_buffer_15121 hex_dump_to_buffer 6 15121 NULL
++start_port_15124 start_port 0 15124 NULL
++memchr_15126 memchr 0 15126 NULL
++ipwireless_ppp_mru_15153 ipwireless_ppp_mru 0 15153 NULL
++self_check_not_bad_15175 self_check_not_bad 0 15175 NULL
++iscsi_create_endpoint_15193 iscsi_create_endpoint 1 15193 NULL
++reserve_resources_15194 reserve_resources 3 15194 NULL
++bfad_debugfs_write_regrd_15218 bfad_debugfs_write_regrd 3 15218 NULL
++variax_alloc_sysex_buffer_15237 variax_alloc_sysex_buffer 3 15237 NULL
++il_dbgfs_rx_stats_read_15243 il_dbgfs_rx_stats_read 3 15243 NULL
++compat_raw_ioctl_15290 compat_raw_ioctl 3 15290 NULL
++sys_connect_15291 sys_connect 3 15291 NULL nohasharray
++xlate_dev_mem_ptr_15291 xlate_dev_mem_ptr 1 15291 &sys_connect_15291
++arch_enable_uv_irq_15294 arch_enable_uv_irq 2 15294 NULL
++acpi_ev_create_gpe_block_15297 acpi_ev_create_gpe_block 5 15297 NULL
++tpm_tis_init_15304 tpm_tis_init 2-3 15304 NULL
++fcoe_ctlr_send_keep_alive_15308 fcoe_ctlr_send_keep_alive 3 15308 NULL
++__ocfs2_remove_xattr_range_15330 __ocfs2_remove_xattr_range 4-5-3 15330 NULL
++kovaplus_sysfs_read_15337 kovaplus_sysfs_read 6 15337 NULL
++ioread16_15342 ioread16 0 15342 NULL
++alloc_ring_15345 alloc_ring 2-4 15345 NULL
++acpi_ut_create_string_object_15360 acpi_ut_create_string_object 1 15360 NULL
++compat_sys_process_vm_readv_15374 compat_sys_process_vm_readv 3-5 15374 NULL
++fq_codel_zalloc_15378 fq_codel_zalloc 1 15378 NULL
++domain_flush_pages_15379 domain_flush_pages 2-3 15379 NULL
++alloc_fddidev_15382 alloc_fddidev 1 15382 NULL
++btrfs_level_size_15392 btrfs_level_size 0 15392 NULL
++pipeline_csum_to_rx_xfer_swi_read_15403 pipeline_csum_to_rx_xfer_swi_read 3 15403 NULL
++get_modalias_15406 get_modalias 2 15406 NULL
++__videobuf_copy_to_user_15423 __videobuf_copy_to_user 4 15423 NULL
++tcp_mtu_to_mss_15438 tcp_mtu_to_mss 0-2 15438 NULL
++hpsa_change_queue_depth_15449 hpsa_change_queue_depth 2 15449 NULL
++memweight_15450 memweight 2 15450 NULL
++vmalloc_15464 vmalloc 1 15464 NULL
++insert_old_idx_znode_15500 insert_old_idx_znode 0 15500 NULL
++zd_chip_is_zd1211b_15518 zd_chip_is_zd1211b 0 15518 NULL
++da9052_bat_irq_15533 da9052_bat_irq 1 15533 NULL
++p9_check_zc_errors_15534 p9_check_zc_errors 4 15534 NULL
++ql_process_mac_rx_page_15543 ql_process_mac_rx_page 4 15543 NULL
++ieee80211_amsdu_to_8023s_15561 ieee80211_amsdu_to_8023s 5 15561 NULL
++snd_pcm_channel_info_15572 snd_pcm_channel_info 0 15572 NULL
++persistent_status_15574 persistent_status 4 15574 NULL
++bnx2fc_process_unsol_compl_15576 bnx2fc_process_unsol_compl 2 15576 NULL
++vme_user_write_15587 vme_user_write 3 15587 NULL
++ocfs2_truncate_rec_15595 ocfs2_truncate_rec 7 15595 NULL
++sx150x_install_irq_chip_15609 sx150x_install_irq_chip 3 15609 NULL
++iommu_device_max_index_15620 iommu_device_max_index 0-3-2-1 15620 NULL nohasharray
++compat_fillonedir_15620 compat_fillonedir 3 15620 &iommu_device_max_index_15620
++set_dis_tap_pfs_15621 set_dis_tap_pfs 3 15621 NULL
++proc_loginuid_read_15631 proc_loginuid_read 3 15631 NULL
++tomoyo_scan_bprm_15642 tomoyo_scan_bprm 2-4 15642 NULL nohasharray
++sk_memory_allocated_add_15642 sk_memory_allocated_add 2 15642 &tomoyo_scan_bprm_15642 nohasharray
++pipeline_hs_tx_stat_fifo_int_read_15642 pipeline_hs_tx_stat_fifo_int_read 3 15642 &sk_memory_allocated_add_15642
++fs_path_add_15648 fs_path_add 3 15648 NULL
++xsd_read_15653 xsd_read 3 15653 NULL
++compat_sys_fcntl_15654 compat_sys_fcntl 3 15654 NULL
++unix_bind_15668 unix_bind 3 15668 NULL
++dm_read_15674 dm_read 3 15674 NULL
++pstore_mkfile_15675 pstore_mkfile 6 15675 NULL
++uf_sme_queue_message_15697 uf_sme_queue_message 3 15697 NULL
++ocfs2_split_tree_15716 ocfs2_split_tree 5 15716 NULL
++HiSax_readstatus_15752 HiSax_readstatus 2 15752 NULL
++bitmap_search_next_usable_block_15762 bitmap_search_next_usable_block 3-1 15762 NULL
++do_test_15766 do_test 1 15766 NULL
++set_std_nic_pfs_15792 set_std_nic_pfs 3 15792 NULL
++smk_read_direct_15803 smk_read_direct 3 15803 NULL
++snd_pcm_ioctl_compat_15804 snd_pcm_ioctl_compat 3 15804 NULL
++gx1_read_conf_reg_15817 gx1_read_conf_reg 0 15817 NULL nohasharray
++nameseq_list_15817 nameseq_list 3 15817 &gx1_read_conf_reg_15817 nohasharray
++gnttab_expand_15817 gnttab_expand 1 15817 &nameseq_list_15817
++afs_proc_rootcell_write_15822 afs_proc_rootcell_write 3 15822 NULL
++brcmf_sdbrcm_died_dump_15841 brcmf_sdbrcm_died_dump 3 15841 NULL
++table_size_15851 table_size 0-1-2 15851 NULL
++ubi_io_write_15870 ubi_io_write 5-4 15870 NULL nohasharray
++media_entity_init_15870 media_entity_init 2-4 15870 &ubi_io_write_15870
++__mptctl_ioctl_15875 __mptctl_ioctl 2 15875 NULL
++ERR_PTR_15881 ERR_PTR 0 15881 NULL
++nfs_map_group_to_gid_15892 nfs_map_group_to_gid 3 15892 NULL
++native_read_msr_15905 native_read_msr 0 15905 NULL
++wm5100_gpio_direction_in_15934 wm5100_gpio_direction_in 2 15934 NULL
++parse_audio_stream_data_15937 parse_audio_stream_data 3 15937 NULL
++power_read_15939 power_read 3 15939 NULL
++lpfc_idiag_drbacc_read_15948 lpfc_idiag_drbacc_read 3 15948 NULL
++snd_pcm_lib_read_transfer_15952 snd_pcm_lib_read_transfer 4-2-5 15952 NULL
++remap_pci_mem_15966 remap_pci_mem 1-2 15966 NULL
++set_spte_15977 set_spte 7-6 15977 NULL
++frame_alloc_15981 frame_alloc 4 15981 NULL
++alloc_vm_area_15989 alloc_vm_area 1 15989 NULL
++hdpvr_register_videodev_16010 hdpvr_register_videodev 3 16010 NULL
++viafb_vt1636_proc_write_16018 viafb_vt1636_proc_write 3 16018 NULL
++got_frame_16028 got_frame 2 16028 NULL
++isr_tx_exch_complete_read_16103 isr_tx_exch_complete_read 3 16103 NULL
++dma_tx_requested_read_16110 dma_tx_requested_read 3 16110 NULL nohasharray
++isr_hw_pm_mode_changes_read_16110 isr_hw_pm_mode_changes_read 3 16110 &dma_tx_requested_read_16110
++irq_set_chip_and_handler_name_16111 irq_set_chip_and_handler_name 1 16111 NULL
++snd_dma_pointer_16126 snd_dma_pointer 0-2 16126 NULL
++compat_sys_select_16131 compat_sys_select 1 16131 NULL
++fsm_init_16134 fsm_init 2 16134 NULL
++hysdn_rx_netpkt_16136 hysdn_rx_netpkt 3 16136 NULL
++ext4_xattr_block_get_16148 ext4_xattr_block_get 0 16148 NULL
++bnx2i_get_cid_num_16166 bnx2i_get_cid_num 0 16166 NULL
++mapping_level_16188 mapping_level 2 16188 NULL
++cipso_v4_map_cat_rng_hton_16203 cipso_v4_map_cat_rng_hton 0 16203 NULL
++create_table_16213 create_table 2 16213 NULL
++atomic_read_file_16227 atomic_read_file 3 16227 NULL
++BcmGetSectionValStartOffset_16235 BcmGetSectionValStartOffset 0 16235 NULL
++btrfs_dev_extent_chunk_offset_16247 btrfs_dev_extent_chunk_offset 0 16247 NULL
++mark_written_sectors_16262 mark_written_sectors 2 16262 NULL
++reiserfs_acl_count_16265 reiserfs_acl_count 0-1 16265 NULL
++set_disc_pfs_16270 set_disc_pfs 3 16270 NULL
++ocfs2_xattr_bucket_value_truncate_16279 ocfs2_xattr_bucket_value_truncate 4 16279 NULL
++drbd_setsockopt_16280 drbd_setsockopt 5 16280 NULL nohasharray
++nand_bch_init_16280 nand_bch_init 3-2 16280 &drbd_setsockopt_16280
++account_16283 account 0-2-4 16283 NULL nohasharray
++mirror_status_16283 mirror_status 5 16283 &account_16283
++stk_allocate_buffers_16291 stk_allocate_buffers 2 16291 NULL
++rbd_segment_offset_16293 rbd_segment_offset 0-2 16293 NULL
++rsc_mgr_init_16299 rsc_mgr_init 3 16299 NULL
++vmw_cursor_update_image_16332 vmw_cursor_update_image 3-4 16332 NULL
++tps80031_update_16360 tps80031_update 3 16360 NULL
++total_ps_buffered_read_16365 total_ps_buffered_read 3 16365 NULL
++rbd_add_16366 rbd_add 3 16366 NULL
++iscsi_tcp_conn_setup_16376 iscsi_tcp_conn_setup 2 16376 NULL
++nl80211_send_unprot_deauth_16378 nl80211_send_unprot_deauth 4 16378 NULL
++diva_os_malloc_16406 diva_os_malloc 2 16406 NULL
++ieee80211_if_read_tsf_16420 ieee80211_if_read_tsf 3 16420 NULL
++rxrpc_server_keyring_16431 rxrpc_server_keyring 3 16431 NULL
++netlink_change_ngroups_16457 netlink_change_ngroups 2 16457 NULL
++tracing_readme_read_16493 tracing_readme_read 3 16493 NULL
++snd_interval_max_16529 snd_interval_max 0 16529 NULL
++raid10_resize_16537 raid10_resize 2 16537 NULL
++tcp_manip_pkt_16563 tcp_manip_pkt 4 16563 NULL
++lpfc_debugfs_read_16566 lpfc_debugfs_read 3 16566 NULL
++agp_allocate_memory_wrap_16576 agp_allocate_memory_wrap 1 16576 NULL
++btrfs_get_token_32_16651 btrfs_get_token_32 0 16651 NULL
++mfd_add_devices_16668 mfd_add_devices 4 16668 NULL
++da9052_reg_write_16685 da9052_reg_write 2 16685 NULL
++em28xx_v4l2_read_16701 em28xx_v4l2_read 3 16701 NULL
++arcmsr_adjust_disk_queue_depth_16756 arcmsr_adjust_disk_queue_depth 2 16756 NULL
++compat_blkdev_driver_ioctl_16769 compat_blkdev_driver_ioctl 4 16769 NULL
++blk_rq_map_user_iov_16772 blk_rq_map_user_iov 5 16772 NULL
++i2o_parm_issue_16790 i2o_parm_issue 0 16790 NULL
++get_server_iovec_16804 get_server_iovec 2 16804 NULL
++tipc_send2name_16809 tipc_send2name 6 16809 NULL
++dm_vcalloc_16814 dm_vcalloc 1-2 16814 NULL
++drm_malloc_ab_16831 drm_malloc_ab 1-2 16831 NULL
++scsi_mode_sense_16835 scsi_mode_sense 5 16835 NULL
++hfsplus_min_io_size_16859 hfsplus_min_io_size 0 16859 NULL
++alloc_idx_lebs_16872 alloc_idx_lebs 2 16872 NULL
++carl9170_debugfs_ampdu_state_read_16873 carl9170_debugfs_ampdu_state_read 3 16873 NULL
++st_write_16874 st_write 3 16874 NULL
++__kfifo_peek_n_16877 __kfifo_peek_n 0 16877 NULL
++wm8350_set_bits_16911 wm8350_set_bits 2 16911 NULL
++psb_unlocked_ioctl_16926 psb_unlocked_ioctl 2 16926 NULL nohasharray
++snd_gf1_mem_proc_dump_16926 snd_gf1_mem_proc_dump 5 16926 &psb_unlocked_ioctl_16926
++random32_16937 random32 0 16937 NULL
++_sp2d_alloc_16944 _sp2d_alloc 1-2-3 16944 NULL
++squashfs_read_table_16945 squashfs_read_table 3 16945 NULL
++cfg80211_send_unprot_disassoc_16951 cfg80211_send_unprot_disassoc 3 16951 NULL
++keyctl_instantiate_key_iov_16969 keyctl_instantiate_key_iov 3 16969 NULL
++ceph_read_dir_17005 ceph_read_dir 3 17005 NULL
++copy_counters_to_user_17027 copy_counters_to_user 5 17027 NULL
++jffs2_trusted_setxattr_17048 jffs2_trusted_setxattr 4 17048 NULL
++__arch_hweight32_17060 __arch_hweight32 0 17060 NULL
++dvb_dvr_read_17073 dvb_dvr_read 3 17073 NULL
++simple_transaction_read_17076 simple_transaction_read 3 17076 NULL
++__kmalloc_reserve_17080 __kmalloc_reserve 1 17080 NULL
++carl9170_debugfs_mem_usage_read_17084 carl9170_debugfs_mem_usage_read 3 17084 NULL
++mac_address_string_17091 mac_address_string 0 17091 NULL
++entry_length_17093 entry_length 0 17093 NULL
++sys_preadv_17100 sys_preadv 3 17100 NULL
++pvr2_hdw_state_report_17121 pvr2_hdw_state_report 3 17121 NULL
++mwifiex_get_common_rates_17131 mwifiex_get_common_rates 3 17131 NULL
++nouveau_instobj_create__17144 nouveau_instobj_create_ 4 17144 NULL
++sep_read_17161 sep_read 3 17161 NULL
++befs_nls2utf_17163 befs_nls2utf 3 17163 NULL
++tx_tx_start_templates_read_17164 tx_tx_start_templates_read 3 17164 NULL
++UniStrnlen_17169 UniStrnlen 0 17169 NULL
++access_remote_vm_17189 access_remote_vm 0-2-4 17189 NULL
++driver_state_read_17194 driver_state_read 3 17194 NULL nohasharray
++iscsit_find_cmd_from_itt_or_dump_17194 iscsit_find_cmd_from_itt_or_dump 3 17194 &driver_state_read_17194
++dn_recvmsg_17213 dn_recvmsg 4 17213 NULL
++ms_rw_17220 ms_rw 3-4 17220 NULL
++__be16_to_cpup_17261 __be16_to_cpup 0 17261 NULL
++error_error_frame_cts_nul_flid_read_17262 error_error_frame_cts_nul_flid_read 3 17262 NULL
++alloc_ep_17269 alloc_ep 1 17269 NULL
++pg_read_17276 pg_read 3 17276 NULL
++raw_recvmsg_17277 raw_recvmsg 4 17277 NULL
++hmac_sha256_17278 hmac_sha256 2 17278 NULL
++neigh_hash_grow_17283 neigh_hash_grow 2 17283 NULL
++minstrel_stats_read_17290 minstrel_stats_read 3 17290 NULL
++ieee80211_if_fmt_dot11MeshForwarding_17301 ieee80211_if_fmt_dot11MeshForwarding 3 17301 NULL
++skb_pad_17302 skb_pad 2 17302 NULL
++mb_cache_create_17307 mb_cache_create 2 17307 NULL
++gnttab_map_frames_v2_17314 gnttab_map_frames_v2 2 17314 NULL
++ata_host_alloc_pinfo_17325 ata_host_alloc_pinfo 3 17325 NULL
++ieee80211_if_read_dot11MeshHWMPperrMinInterval_17346 ieee80211_if_read_dot11MeshHWMPperrMinInterval 3 17346 NULL
++ath6kl_wmi_send_mgmt_cmd_17347 ath6kl_wmi_send_mgmt_cmd 7 17347 NULL
++lpfc_debugfs_dif_err_write_17424 lpfc_debugfs_dif_err_write 3 17424 NULL
++sta_connected_time_read_17435 sta_connected_time_read 3 17435 NULL
++nla_get_u32_17455 nla_get_u32 0 17455 NULL
++__ref_totlen_17461 __ref_totlen 0 17461 NULL
++compat_cmd_17465 compat_cmd 2 17465 NULL
++probe_bios_17467 probe_bios 1 17467 NULL
++probe_kernel_write_17481 probe_kernel_write 3 17481 NULL
++__alloc_session_17485 __alloc_session 2-1 17485 NULL
++TSS_rawhmac_17486 TSS_rawhmac 3 17486 NULL
++bitmap_pos_to_ord_17503 bitmap_pos_to_ord 3 17503 NULL
++arizona_apply_fll_17538 arizona_apply_fll 2 17538 NULL
++xlog_do_log_recovery_17550 xlog_do_log_recovery 3 17550 NULL
++__copy_to_user_17551 __copy_to_user 0-3 17551 NULL
++copy_from_user_17559 copy_from_user 3 17559 NULL
++snd_pcm_action_lock_irq_17569 snd_pcm_action_lock_irq 0 17569 NULL
++acpi_ut_create_package_object_17594 acpi_ut_create_package_object 1 17594 NULL
++neigh_hash_alloc_17595 neigh_hash_alloc 1 17595 NULL
++rts51x_write_mem_17598 rts51x_write_mem 4 17598 NULL
++iwl_dump_nic_event_log_17601 iwl_dump_nic_event_log 0 17601 NULL
++wm8994_gpio_to_irq_17604 wm8994_gpio_to_irq 2 17604 NULL
++osst_execute_17607 osst_execute 7-6 17607 NULL
++ocfs2_mark_extent_written_17615 ocfs2_mark_extent_written 6 17615 NULL
++ieee80211_if_read_dot11MeshHWMPactivePathToRootTimeout_17618 ieee80211_if_read_dot11MeshHWMPactivePathToRootTimeout 3 17618 NULL
++twl4030_set_gpio_direction_17645 twl4030_set_gpio_direction 1 17645 NULL
++packet_setsockopt_17662 packet_setsockopt 5 17662 NULL nohasharray
++ubi_io_read_data_17662 ubi_io_read_data 0 17662 &packet_setsockopt_17662
++pwr_enable_ps_read_17686 pwr_enable_ps_read 3 17686 NULL
++__einj_error_trigger_17707 __einj_error_trigger 1 17707 NULL nohasharray
++venus_rename_17707 venus_rename 5-4 17707 &__einj_error_trigger_17707
++exofs_read_lookup_dev_table_17733 exofs_read_lookup_dev_table 3 17733 NULL
++sctpprobe_read_17741 sctpprobe_read 3 17741 NULL
++mark_unsafe_pages_17759 mark_unsafe_pages 0 17759 NULL
++brcmf_usb_attach_17766 brcmf_usb_attach 2-3 17766 NULL
++ubifs_leb_change_17789 ubifs_leb_change 4 17789 NULL
++get_unaligned_be64_17794 get_unaligned_be64 0 17794 NULL
++_snd_pcm_lib_alloc_vmalloc_buffer_17820 _snd_pcm_lib_alloc_vmalloc_buffer 2 17820 NULL
++gnet_stats_copy_app_17821 gnet_stats_copy_app 3 17821 NULL
++cipso_v4_gentag_rbm_17836 cipso_v4_gentag_rbm 0 17836 NULL
++count_leafs_17842 count_leafs 0 17842 NULL
++sisusb_send_bulk_msg_17864 sisusb_send_bulk_msg 3 17864 NULL
++alloc_sja1000dev_17868 alloc_sja1000dev 1 17868 NULL
++ray_cs_essid_proc_write_17875 ray_cs_essid_proc_write 3 17875 NULL
++orinoco_set_key_17878 orinoco_set_key 5-7 17878 NULL
++init_per_cpu_17880 init_per_cpu 1 17880 NULL
++ieee80211_if_fmt_dot11MeshMaxPeerLinks_17883 ieee80211_if_fmt_dot11MeshMaxPeerLinks 3 17883 NULL
++compat_sys_pwritev_17886 compat_sys_pwritev 3 17886 NULL
++ieee80211_if_fmt_dot11MeshHWMPRootMode_17890 ieee80211_if_fmt_dot11MeshHWMPRootMode 3 17890 NULL
++ocfs2_clusters_to_blocks_17896 ocfs2_clusters_to_blocks 0-2 17896 NULL
++wm8400_set_bits_17898 wm8400_set_bits 2 17898 NULL
++recover_head_17904 recover_head 3 17904 NULL
++dccp_feat_register_sp_17914 dccp_feat_register_sp 5 17914 NULL
++xfs_buf_associate_memory_17915 xfs_buf_associate_memory 3 17915 NULL
++srp_iu_pool_alloc_17920 srp_iu_pool_alloc 2 17920 NULL
++scsi_bufflen_17933 scsi_bufflen 0 17933 NULL
++ufs_free_blocks_17963 ufs_free_blocks 2-3 17963 NULL
++calc_nr_buckets_17976 calc_nr_buckets 0 17976 NULL
++smk_write_cipso_17989 smk_write_cipso 3 17989 NULL
++gnttab_max_grant_frames_17993 gnttab_max_grant_frames 0 17993 NULL
++ext4_num_overhead_clusters_18001 ext4_num_overhead_clusters 2 18001 NULL
++pvr2_v4l2_read_18006 pvr2_v4l2_read 3 18006 NULL
++prandom32_18007 prandom32 0 18007 NULL
++alloc_rx_desc_ring_18016 alloc_rx_desc_ring 2 18016 NULL
++fill_read_18019 fill_read 0 18019 NULL
++o2hb_highest_node_18034 o2hb_highest_node 2 18034 NULL
++cryptd_alloc_instance_18048 cryptd_alloc_instance 2-3 18048 NULL
++find_next_inuse_18051 find_next_inuse 2-3 18051 NULL
++ddebug_proc_write_18055 ddebug_proc_write 3 18055 NULL
++lua_sysfs_read_18062 lua_sysfs_read 6 18062 NULL
++hex_byte_pack_18064 hex_byte_pack 0 18064 NULL
++packet_came_18072 packet_came 3 18072 NULL
++kvm_read_guest_page_18074 kvm_read_guest_page 5 18074 NULL
++get_vm_area_18080 get_vm_area 1 18080 NULL
++mpi_alloc_18094 mpi_alloc 1 18094 NULL
++tps65910_gpio_input_18110 tps65910_gpio_input 2 18110 NULL
++dfs_file_read_18116 dfs_file_read 3 18116 NULL
++svc_getnl_18120 svc_getnl 0 18120 NULL
++paging32_gpte_to_gfn_lvl_18131 paging32_gpte_to_gfn_lvl 0-1-2 18131 NULL
++vmw_surface_dma_size_18132 vmw_surface_dma_size 0 18132 NULL
++tps65910_gpio_set_18135 tps65910_gpio_set 2 18135 NULL
++selinux_inode_setsecurity_18148 selinux_inode_setsecurity 4 18148 NULL
++is_idx_node_in_use_18165 is_idx_node_in_use 0 18165 NULL
++_has_tag_18169 _has_tag 2 18169 NULL
++pccard_store_cis_18176 pccard_store_cis 6 18176 NULL
++snd_pcm_hw_refine_user_18204 snd_pcm_hw_refine_user 0 18204 NULL
++orinoco_add_extscan_result_18207 orinoco_add_extscan_result 3 18207 NULL
++gsm_control_message_18209 gsm_control_message 4 18209 NULL
++do_ipv6_setsockopt_18215 do_ipv6_setsockopt 5 18215 NULL
++gnttab_alloc_grant_references_18240 gnttab_alloc_grant_references 1 18240 NULL
++snd_ctl_ioctl_compat_18250 snd_ctl_ioctl_compat 3 18250 NULL
++qdisc_class_hash_alloc_18262 qdisc_class_hash_alloc 1 18262 NULL
++gfs2_alloc_sort_buffer_18275 gfs2_alloc_sort_buffer 1 18275 NULL
++alloc_ring_18278 alloc_ring 2-4 18278 NULL
++find_dirty_idx_leb_18280 find_dirty_idx_leb 0 18280 NULL
++nouveau_subdev_create__18281 nouveau_subdev_create_ 7 18281 NULL nohasharray
++bio_phys_segments_18281 bio_phys_segments 0 18281 &nouveau_subdev_create__18281
++ext4_readpages_18283 ext4_readpages 4 18283 NULL
++mmc_send_bus_test_18285 mmc_send_bus_test 4 18285 NULL
++um_idi_write_18293 um_idi_write 3 18293 NULL
++ip6ip6_err_18308 ip6ip6_err 5 18308 NULL
++vga_r_18310 vga_r 0 18310 NULL
++ecryptfs_send_message_18322 ecryptfs_send_message 2 18322 NULL
++bio_integrity_advance_18324 bio_integrity_advance 2 18324 NULL
++wm8994_gpio_direction_out_18337 wm8994_gpio_direction_out 2 18337 NULL
++pwr_power_save_off_read_18355 pwr_power_save_off_read 3 18355 NULL
++xlbd_reserve_minors_18365 xlbd_reserve_minors 1-2 18365 NULL
++ep_io_18367 ep_io 0 18367 NULL
++lp872x_update_bits_18368 lp872x_update_bits 2 18368 NULL
++irq_find_mapping_18388 irq_find_mapping 0-2 18388 NULL
++__video_register_device_18399 __video_register_device 3 18399 NULL
++reada_tree_block_flagged_18402 reada_tree_block_flagged 3 18402 NULL nohasharray
++adis16136_show_serial_18402 adis16136_show_serial 3 18402 &reada_tree_block_flagged_18402
++crystalhd_user_data_18407 crystalhd_user_data 3 18407 NULL
++usbnet_write_cmd_nopm_18426 usbnet_write_cmd_nopm 7 18426 NULL
++batadv_orig_node_add_if_18433 batadv_orig_node_add_if 2 18433 NULL
++snd_hda_get_connections_18437 snd_hda_get_connections 0 18437 NULL
++fuse_perform_write_18457 fuse_perform_write 4 18457 NULL
++regset_tls_set_18459 regset_tls_set 4 18459 NULL
++dma_alloc_from_contiguous_18466 dma_alloc_from_contiguous 3-2 18466 NULL
++pci_vpd_lrdt_size_18479 pci_vpd_lrdt_size 0 18479 NULL
++udpv6_setsockopt_18487 udpv6_setsockopt 5 18487 NULL
++snd_gus_dram_poke_18525 snd_gus_dram_poke 4 18525 NULL
++nouveau_fifo_channel_create__18530 nouveau_fifo_channel_create_ 5-6-9 18530 NULL
++seq_copy_in_user_18543 seq_copy_in_user 3 18543 NULL
++acpi_register_gsi_ioapic_18550 acpi_register_gsi_ioapic 2 18550 NULL
++sas_change_queue_depth_18555 sas_change_queue_depth 2 18555 NULL
++smk_write_rules_list_18565 smk_write_rules_list 3 18565 NULL
++debug_output_18575 debug_output 3 18575 NULL
++check_lpt_type_18577 check_lpt_type 0 18577 NULL
++__netdev_alloc_skb_18595 __netdev_alloc_skb 2 18595 NULL
++filemap_fdatawait_range_18600 filemap_fdatawait_range 0 18600 NULL nohasharray
++slabinfo_write_18600 slabinfo_write 3 18600 &filemap_fdatawait_range_18600
++iowarrior_write_18604 iowarrior_write 3 18604 NULL
++batadv_arp_get_type_18609 batadv_arp_get_type 3 18609 NULL
++from_buffer_18625 from_buffer 3 18625 NULL
++f1x_map_sysaddr_to_csrow_18628 f1x_map_sysaddr_to_csrow 2 18628 NULL
++snd_pcm_oss_write3_18657 snd_pcm_oss_write3 0-3 18657 NULL
++ieee80211_if_fmt_rssi_threshold_18664 ieee80211_if_fmt_rssi_threshold 3 18664 NULL
++unmap_page_18665 unmap_page 2-3 18665 NULL
++edge_tty_recv_18667 edge_tty_recv 4 18667 NULL nohasharray
++xfs_iext_insert_18667 xfs_iext_insert 3 18667 &edge_tty_recv_18667
++replay_log_leb_18704 replay_log_leb 3 18704 NULL
++iwl_dbgfs_rx_handlers_read_18708 iwl_dbgfs_rx_handlers_read 3 18708 NULL
++ceph_alloc_page_vector_18710 ceph_alloc_page_vector 1 18710 NULL
++ocfs2_trim_extent_18711 ocfs2_trim_extent 4-3 18711 NULL
++blk_rq_bytes_18715 blk_rq_bytes 0 18715 NULL
++snd_als4k_gcr_read_addr_18741 snd_als4k_gcr_read_addr 0 18741 NULL
++o2hb_debug_create_18744 o2hb_debug_create 4 18744 NULL
++__erst_read_to_erange_from_nvram_18748 __erst_read_to_erange_from_nvram 0 18748 NULL
++wep_packets_read_18751 wep_packets_read 3 18751 NULL
++md_compat_ioctl_18764 md_compat_ioctl 4 18764 NULL
++read_file_dump_nfcal_18766 read_file_dump_nfcal 3 18766 NULL
++ffs_epfile_read_18775 ffs_epfile_read 3 18775 NULL
++alloc_fcdev_18780 alloc_fcdev 1 18780 NULL
++fat_compat_dir_ioctl_18800 fat_compat_dir_ioctl 3 18800 NULL
++ieee80211_auth_challenge_18810 ieee80211_auth_challenge 3 18810 NULL
++setup_ioapic_irq_18813 setup_ioapic_irq 1 18813 NULL
++sys_modify_ldt_18824 sys_modify_ldt 3 18824 NULL
++mtf_test_write_18844 mtf_test_write 3 18844 NULL
++drm_ht_create_18853 drm_ht_create 2 18853 NULL
++sctp_setsockopt_events_18862 sctp_setsockopt_events 3 18862 NULL
++ieee80211_if_read_element_ttl_18869 ieee80211_if_read_element_ttl 3 18869 NULL
++xlog_find_verify_log_record_18870 xlog_find_verify_log_record 2 18870 NULL
++width_to_agaw_18883 width_to_agaw 0-1 18883 NULL
++ceph_setxattr_18913 ceph_setxattr 4 18913 NULL
++mangle_packet_18920 mangle_packet 7-9 18920 NULL
++snapshot_write_next_18937 snapshot_write_next 0 18937 NULL
++__nla_reserve_18974 __nla_reserve 3 18974 NULL
++alc_auto_create_extra_outs_18975 alc_auto_create_extra_outs 2 18975 NULL
++find_dirtiest_idx_leb_19001 find_dirtiest_idx_leb 0 19001 NULL
++layout_in_gaps_19006 layout_in_gaps 2 19006 NULL
++huge_page_size_19008 huge_page_size 0 19008 NULL
++usbdev_compat_ioctl_19026 usbdev_compat_ioctl 3 19026 NULL
++prepare_highmem_image_19028 prepare_highmem_image 0 19028 NULL
++revalidate_19043 revalidate 2 19043 NULL
++drm_fb_helper_init_19044 drm_fb_helper_init 3-4 19044 NULL
++create_gpadl_header_19064 create_gpadl_header 2 19064 NULL
++ieee80211_key_alloc_19065 ieee80211_key_alloc 3 19065 NULL
++copy_and_check_19089 copy_and_check 3 19089 NULL
++sys_process_vm_readv_19090 sys_process_vm_readv 3-5 19090 NULL nohasharray
++brcmf_usbdev_qinit_19090 brcmf_usbdev_qinit 2 19090 &sys_process_vm_readv_19090
++sta_last_seq_ctrl_read_19106 sta_last_seq_ctrl_read 3 19106 NULL
++cifs_readv_from_socket_19109 cifs_readv_from_socket 3 19109 NULL
++skb_gro_offset_19123 skb_gro_offset 0 19123 NULL
++ext4_inode_table_19125 ext4_inode_table 0 19125 NULL
++snd_als4k_iobase_readl_19136 snd_als4k_iobase_readl 0 19136 NULL
++alloc_irdadev_19140 alloc_irdadev 1 19140 NULL
++sleep_auth_read_19159 sleep_auth_read 3 19159 NULL
++smk_write_access2_19170 smk_write_access2 3 19170 NULL
++iwl_dbgfs_reply_tx_error_read_19205 iwl_dbgfs_reply_tx_error_read 3 19205 NULL
++vmw_unlocked_ioctl_19212 vmw_unlocked_ioctl 2 19212 NULL
++__copy_to_user_inatomic_19214 __copy_to_user_inatomic 3 19214 NULL
++dev_counters_read_19216 dev_counters_read 3 19216 NULL
++wbcir_tx_19219 wbcir_tx 3 19219 NULL
++gsi_to_irq_19220 gsi_to_irq 0-1 19220 NULL
++snd_mask_max_19224 snd_mask_max 0 19224 NULL
++snd_pcm_capture_rewind_19229 snd_pcm_capture_rewind 0-2 19229 NULL
++bio_alloc_mddev_19238 bio_alloc_mddev 2 19238 NULL
++sys_fcntl_19267 sys_fcntl 3 19267 NULL
++il_dbgfs_rxon_filter_flags_read_19281 il_dbgfs_rxon_filter_flags_read 3 19281 NULL
++io_mapping_map_wc_19284 io_mapping_map_wc 2 19284 NULL
++qc_capture_19298 qc_capture 3 19298 NULL
++ocfs2_prepare_inode_for_refcount_19303 ocfs2_prepare_inode_for_refcount 3-4 19303 NULL
++event_tx_stuck_read_19305 event_tx_stuck_read 3 19305 NULL
++debug_read_19322 debug_read 3 19322 NULL
++cfg80211_inform_bss_19332 cfg80211_inform_bss 8 19332 NULL
++read_zero_19366 read_zero 3 19366 NULL
++interpret_user_input_19393 interpret_user_input 2 19393 NULL
++get_unaligned_be16_19400 get_unaligned_be16 0 19400 NULL
++get_n_events_by_type_19401 get_n_events_by_type 0 19401 NULL
++dvbdmx_write_19423 dvbdmx_write 3 19423 NULL
++__phys_addr_19434 __phys_addr 0 19434 NULL
++xfrm_alg_auth_len_19454 xfrm_alg_auth_len 0 19454 NULL
++hpet_compat_ioctl_19455 hpet_compat_ioctl 3 19455 NULL
++gnet_stats_copy_19458 gnet_stats_copy 4 19458 NULL
++sky2_read16_19475 sky2_read16 0 19475 NULL
++efivar_create_sysfs_entry_19485 efivar_create_sysfs_entry 2 19485 NULL
++ext4_add_new_descs_19509 ext4_add_new_descs 3 19509 NULL
++skb_realloc_headroom_19516 skb_realloc_headroom 2 19516 NULL
++dev_alloc_skb_19517 dev_alloc_skb 1 19517 NULL
++nfc_llcp_build_tlv_19536 nfc_llcp_build_tlv 3 19536 NULL
++gfn_to_index_19558 gfn_to_index 0-1-3-2 19558 NULL
++ocfs2_control_message_19564 ocfs2_control_message 3 19564 NULL
++ieee80211_if_read_tkip_mic_test_19565 ieee80211_if_read_tkip_mic_test 3 19565 NULL nohasharray
++wlcore_hw_get_rx_packet_len_19565 wlcore_hw_get_rx_packet_len 0 19565 &ieee80211_if_read_tkip_mic_test_19565
++nfsd_read_19568 nfsd_read 5 19568 NULL
++cgroup_read_s64_19570 cgroup_read_s64 5 19570 NULL
++bm_status_read_19583 bm_status_read 3 19583 NULL
++batadv_tt_update_orig_19586 batadv_tt_update_orig 4 19586 NULL
++load_xattr_datum_19594 load_xattr_datum 0 19594 NULL
++usbvision_rvmalloc_19655 usbvision_rvmalloc 1 19655 NULL
++LoadBitmap_19658 LoadBitmap 2 19658 NULL
++usbnet_write_cmd_19679 usbnet_write_cmd 7 19679 NULL
++read_reg_19723 read_reg 0 19723 NULL
++wm8350_block_write_19727 wm8350_block_write 3-2 19727 NULL
++memcpy_toiovecend_19736 memcpy_toiovecend 4-3 19736 NULL
++snd_es1968_get_dma_ptr_19747 snd_es1968_get_dma_ptr 0 19747 NULL
++p9_client_read_19750 p9_client_read 5 19750 NULL
++pnpbios_proc_write_19758 pnpbios_proc_write 3 19758 NULL
++ocfs2_readpages_19759 ocfs2_readpages 4 19759 NULL
++jffs2_acl_from_medium_19762 jffs2_acl_from_medium 2 19762 NULL
++__set_print_fmt_19776 __set_print_fmt 0 19776 NULL
++saa7146_vmalloc_build_pgtable_19780 saa7146_vmalloc_build_pgtable 2 19780 NULL
++irda_setsockopt_19824 irda_setsockopt 5 19824 NULL
++pcpu_next_unpop_19831 pcpu_next_unpop 4 19831 NULL
++vip_read_19832 vip_read 3 19832 NULL nohasharray
++vfs_getxattr_19832 vfs_getxattr 0 19832 &vip_read_19832
++security_context_to_sid_19839 security_context_to_sid 2 19839 NULL
++crypt_alloc_buffer_19846 crypt_alloc_buffer 2 19846 NULL
++cfg80211_mlme_register_mgmt_19852 cfg80211_mlme_register_mgmt 5 19852 NULL
++__nla_put_19857 __nla_put 3 19857 NULL
++ip6gre_err_19869 ip6gre_err 5 19869 NULL
++aes_decrypt_interrupt_read_19910 aes_decrypt_interrupt_read 3 19910 NULL
++ps_upsd_max_apturn_read_19918 ps_upsd_max_apturn_read 3 19918 NULL
++cgroup_task_count_19930 cgroup_task_count 0 19930 NULL
++iwl_dbgfs_rx_queue_read_19943 iwl_dbgfs_rx_queue_read 3 19943 NULL
++attach_hdlc_protocol_19986 attach_hdlc_protocol 3 19986 NULL
++diva_um_idi_read_20003 diva_um_idi_read 0 20003 NULL
++split_scan_timeout_read_20029 split_scan_timeout_read 3 20029 NULL
++__be32_to_cpup_20056 __be32_to_cpup 0 20056 NULL
++alloc_ieee80211_20063 alloc_ieee80211 1 20063 NULL
++rawv6_sendmsg_20080 rawv6_sendmsg 4 20080 NULL
++fuse_conn_limit_read_20084 fuse_conn_limit_read 3 20084 NULL
++team_options_register_20091 team_options_register 3 20091 NULL
++qla2x00_adjust_sdev_qdepth_up_20097 qla2x00_adjust_sdev_qdepth_up 2 20097 NULL
++hptiop_adjust_disk_queue_depth_20122 hptiop_adjust_disk_queue_depth 2 20122 NULL
++tomoyo_commit_ok_20167 tomoyo_commit_ok 2 20167 NULL
++read_flush_pipefs_20171 read_flush_pipefs 3 20171 NULL
++wep_addr_key_count_read_20174 wep_addr_key_count_read 3 20174 NULL
++create_trace_probe_20175 create_trace_probe 1 20175 NULL
++udf_bitmap_new_block_20214 udf_bitmap_new_block 4 20214 NULL
++pvr2_ctrl_value_to_sym_20229 pvr2_ctrl_value_to_sym 5 20229 NULL
++rose_sendmsg_20249 rose_sendmsg 4 20249 NULL
++tm6000_i2c_send_regs_20250 tm6000_i2c_send_regs 5 20250 NULL
++pcpu_alloc_20255 pcpu_alloc 1-2 20255 NULL
++resource_size_20256 resource_size 0 20256 NULL
++_rtl92s_get_h2c_cmdlen_20312 _rtl92s_get_h2c_cmdlen 0 20312 NULL
++tx_tx_burst_programmed_read_20320 tx_tx_burst_programmed_read 3 20320 NULL
++snd_cs4281_BA1_read_20323 snd_cs4281_BA1_read 5 20323 NULL
++gfs2_glock_nq_m_20347 gfs2_glock_nq_m 1 20347 NULL
++qla82xx_pci_mem_read_direct_20368 qla82xx_pci_mem_read_direct 2 20368 NULL
++snd_pcm_stop_20376 snd_pcm_stop 0 20376 NULL
++smk_set_cipso_20379 smk_set_cipso 3 20379 NULL
++u64_to_uptr_20384 u64_to_uptr 1 20384 NULL
++snd_nm256_readl_20394 snd_nm256_readl 0 20394 NULL
++__kfifo_from_user_20399 __kfifo_from_user 3 20399 NULL
++pm860x_write_reg_cache_20448 pm860x_write_reg_cache 2 20448 NULL
++nfs3_setxattr_20458 nfs3_setxattr 4 20458 NULL
++ip_vs_icmp_xmit_v6_20464 ip_vs_icmp_xmit_v6 4 20464 NULL
++compat_ipv6_setsockopt_20468 compat_ipv6_setsockopt 5 20468 NULL
++read_buf_20469 read_buf 2 20469 NULL
++btrfs_get_32_20476 btrfs_get_32 0 20476 NULL
++fast_user_write_20494 fast_user_write 5 20494 NULL
++ocfs2_db_frozen_trigger_20503 ocfs2_db_frozen_trigger 4 20503 NULL nohasharray
++hidraw_report_event_20503 hidraw_report_event 3 20503 &ocfs2_db_frozen_trigger_20503
++pcpu_alloc_area_20511 pcpu_alloc_area 0-3 20511 NULL
++pcpu_depopulate_chunk_20517 pcpu_depopulate_chunk 2-3 20517 NULL
++xfs_iext_realloc_direct_20521 xfs_iext_realloc_direct 2 20521 NULL
++drbd_bm_resize_20522 drbd_bm_resize 2 20522 NULL
++amd_create_gatt_pages_20537 amd_create_gatt_pages 1 20537 NULL
++scsi_report_opcode_20551 scsi_report_opcode 3 20551 NULL
++venus_create_20555 venus_create 4 20555 NULL
++btrfs_super_log_root_20565 btrfs_super_log_root 0 20565 NULL
++crypto_ahash_reqsize_20569 crypto_ahash_reqsize 0 20569 NULL
++rc5t583_set_bits_20573 rc5t583_set_bits 2 20573 NULL
++i915_max_freq_read_20581 i915_max_freq_read 3 20581 NULL
++batadv_tt_append_diff_20588 batadv_tt_append_diff 4 20588 NULL
++lirc_write_20604 lirc_write 3 20604 NULL
++qib_qsfp_write_20614 qib_qsfp_write 0-4-2 20614 NULL
++snd_pcm_oss_prepare_20641 snd_pcm_oss_prepare 0 20641 NULL
++kfifo_copy_to_user_20646 kfifo_copy_to_user 3 20646 NULL
++cpulist_scnprintf_20648 cpulist_scnprintf 0-2 20648 NULL
++oz_add_farewell_20652 oz_add_farewell 5 20652 NULL
++ceph_osdc_new_request_20654 ceph_osdc_new_request 15-4 20654 NULL
++oz_cdev_read_20659 oz_cdev_read 3 20659 NULL
++sec_reg_write_20667 sec_reg_write 2 20667 NULL
++tps65910_reg_clear_bits_20672 tps65910_reg_clear_bits 2 20672 NULL
++snd_hdsp_playback_copy_20676 snd_hdsp_playback_copy 5 20676 NULL
++dvb_dmxdev_buffer_read_20682 dvb_dmxdev_buffer_read 0-4 20682 NULL
++cpumask_size_20683 cpumask_size 0 20683 NULL
++btrfs_node_blockptr_20685 btrfs_node_blockptr 0 20685 NULL
++read_file_tgt_int_stats_20697 read_file_tgt_int_stats 3 20697 NULL
++__maestro_read_20700 __maestro_read 0 20700 NULL
++cipso_v4_gentag_rng_20703 cipso_v4_gentag_rng 0 20703 NULL
++pcpu_page_first_chunk_20712 pcpu_page_first_chunk 1 20712 NULL
++ocfs2_read_xattr_bucket_20722 ocfs2_read_xattr_bucket 0 20722 NULL
++security_context_to_sid_force_20724 security_context_to_sid_force 2 20724 NULL
++vring_add_indirect_20737 vring_add_indirect 3-4 20737 NULL
++io_apic_set_pci_routing_20740 io_apic_set_pci_routing 2 20740 NULL
++vol_cdev_direct_write_20751 vol_cdev_direct_write 3 20751 NULL
++ocfs2_align_bytes_to_clusters_20754 ocfs2_align_bytes_to_clusters 2 20754 NULL
++ubi_io_read_20767 ubi_io_read 0 20767 NULL
++fb_alloc_cmap_gfp_20792 fb_alloc_cmap_gfp 2 20792 NULL
++iommu_range_alloc_20794 iommu_range_alloc 3 20794 NULL
++iwl_dbgfs_rxon_flags_read_20795 iwl_dbgfs_rxon_flags_read 3 20795 NULL
++sys_sendto_20809 sys_sendto 6 20809 NULL
++strndup_user_20819 strndup_user 2 20819 NULL
++wl1271_format_buffer_20834 wl1271_format_buffer 2 20834 NULL
++uvc_alloc_entity_20836 uvc_alloc_entity 4-3 20836 NULL
++snd_pcm_capture_avail_20867 snd_pcm_capture_avail 0 20867 NULL
++ocfs2_bmap_20874 ocfs2_bmap 2 20874 NULL
++sisusb_send_packet_20891 sisusb_send_packet 2 20891 NULL
++key_icverrors_read_20895 key_icverrors_read 3 20895 NULL
++vfio_msi_enable_20906 vfio_msi_enable 2 20906 NULL
++compat_sys_readv_20911 compat_sys_readv 3 20911 NULL
++htable_bits_20933 htable_bits 0 20933 NULL
++altera_set_ir_post_20948 altera_set_ir_post 2 20948 NULL
++rx_rx_phy_hdr_read_20950 rx_rx_phy_hdr_read 3 20950 NULL
++snd_rme9652_playback_copy_20970 snd_rme9652_playback_copy 5 20970 NULL
++brcmf_tx_frame_20978 brcmf_tx_frame 3 20978 NULL
++alg_setsockopt_20985 alg_setsockopt 5 20985 NULL
++ocfs2_free_clusters_21001 ocfs2_free_clusters 4 21001 NULL
++btrfs_inode_ref_name_len_21024 btrfs_inode_ref_name_len 0 21024 NULL
++rx_defrag_tkip_called_read_21031 rx_defrag_tkip_called_read 3 21031 NULL
++lbs_threshold_read_21046 lbs_threshold_read 5 21046 NULL
++proc_fault_inject_write_21058 proc_fault_inject_write 3 21058 NULL
++event_calibration_read_21083 event_calibration_read 3 21083 NULL
++compat_sock_ioctl_trans_21092 compat_sock_ioctl_trans 4 21092 NULL
++multipath_status_21094 multipath_status 5 21094 NULL
++__cfg80211_send_disassoc_21096 __cfg80211_send_disassoc 3 21096 NULL
++ext2_valid_block_bitmap_21101 ext2_valid_block_bitmap 3 21101 NULL
++ath6kl_send_go_probe_resp_21113 ath6kl_send_go_probe_resp 3 21113 NULL
++i2400m_rx_trace_21127 i2400m_rx_trace 3 21127 NULL
++tps6586x_irq_init_21144 tps6586x_irq_init 3 21144 NULL
++ocfs2_block_check_validate_21149 ocfs2_block_check_validate 2 21149 NULL
++ath6kl_mgmt_tx_21153 ath6kl_mgmt_tx 9 21153 NULL
++setup_msi_irq_21169 setup_msi_irq 3 21169 NULL
++cx18_v4l2_read_21196 cx18_v4l2_read 3 21196 NULL
++ipc_rcu_alloc_21208 ipc_rcu_alloc 1 21208 NULL
++_ocfs2_free_clusters_21220 _ocfs2_free_clusters 4 21220 NULL
++get_numpages_21227 get_numpages 0-1-2 21227 NULL
++input_ff_create_21240 input_ff_create 2 21240 NULL
++cfg80211_notify_new_peer_candidate_21242 cfg80211_notify_new_peer_candidate 4 21242 NULL
++ocfs2_blocks_for_bytes_21268 ocfs2_blocks_for_bytes 0-2 21268 NULL
++ip_vs_icmp_xmit_21269 ip_vs_icmp_xmit 4 21269 NULL
++rc5t583_clear_bits_21300 rc5t583_clear_bits 2 21300 NULL
++vmw_gmr2_bind_21305 vmw_gmr2_bind 3 21305 NULL
++do_msg_fill_21307 do_msg_fill 3 21307 NULL
++add_res_range_21310 add_res_range 4 21310 NULL
++get_zeroed_page_21322 get_zeroed_page 0 21322 NULL
++ftrace_profile_read_21327 ftrace_profile_read 3 21327 NULL
++gfs2_ea_get_copy_21353 gfs2_ea_get_copy 0 21353 NULL
++max77693_irq_domain_map_21357 max77693_irq_domain_map 2 21357 NULL
++alloc_orinocodev_21371 alloc_orinocodev 1 21371 NULL
++video_ioctl2_21380 video_ioctl2 2 21380 NULL
++diva_get_driver_dbg_mask_21399 diva_get_driver_dbg_mask 0 21399 NULL
++snd_m3_inw_21406 snd_m3_inw 0 21406 NULL
++snapshot_read_next_21426 snapshot_read_next 0 21426 NULL
++tcp_bound_to_half_wnd_21429 tcp_bound_to_half_wnd 0-2 21429 NULL
++tracing_saved_cmdlines_read_21434 tracing_saved_cmdlines_read 3 21434 NULL
++aggr_size_tx_agg_vs_rate_read_21438 aggr_size_tx_agg_vs_rate_read 3 21438 NULL
++btrfs_iref_to_path_21445 btrfs_iref_to_path 7 21445 NULL
++__ertm_hdr_size_21450 __ertm_hdr_size 0 21450 NULL
++concat_writev_21451 concat_writev 3 21451 NULL
++extend_netdev_table_21453 extend_netdev_table 2 21453 NULL
++read_file_xmit_21487 read_file_xmit 3 21487 NULL
++mmc_alloc_sg_21504 mmc_alloc_sg 1 21504 NULL
++btrfs_file_aio_write_21520 btrfs_file_aio_write 4 21520 NULL
++il_dbgfs_stations_read_21532 il_dbgfs_stations_read 3 21532 NULL
++cipso_v4_map_cat_enum_hton_21540 cipso_v4_map_cat_enum_hton 0 21540 NULL
++rxrpc_send_data_21553 rxrpc_send_data 5 21553 NULL
++rx_rx_beacon_early_term_read_21559 rx_rx_beacon_early_term_read 3 21559 NULL
++xfs_buf_read_uncached_21585 xfs_buf_read_uncached 3 21585 NULL
++ocfs2_acl_from_xattr_21604 ocfs2_acl_from_xattr 2 21604 NULL
++xlog_do_recovery_pass_21618 xlog_do_recovery_pass 3 21618 NULL
++__jfs_getxattr_21631 __jfs_getxattr 0 21631 NULL
++rbd_req_sync_op_21632 rbd_req_sync_op 7-8 21632 NULL
++validate_nnode_21638 validate_nnode 0 21638 NULL
++__irq_alloc_descs_21639 __irq_alloc_descs 2-1-3 21639 NULL
++carl9170_rx_copy_data_21656 carl9170_rx_copy_data 2 21656 NULL
++hpet_setup_msi_irq_21662 hpet_setup_msi_irq 1 21662 NULL
++atalk_sendmsg_21677 atalk_sendmsg 4 21677 NULL
++ocfs2_xattr_get_nolock_21678 ocfs2_xattr_get_nolock 0 21678 NULL
++regmap_register_patch_21681 regmap_register_patch 3 21681 NULL
++rtllib_alloc_txb_21687 rtllib_alloc_txb 1-2 21687 NULL
++evdev_ioctl_handler_21705 evdev_ioctl_handler 2 21705 NULL
++reiserfs_allocate_list_bitmaps_21732 reiserfs_allocate_list_bitmaps 3 21732 NULL
++__nf_nat_mangle_tcp_packet_21744 __nf_nat_mangle_tcp_packet 8-6 21744 NULL
++mthca_alloc_init_21754 mthca_alloc_init 2 21754 NULL
++gen_pool_add_21776 gen_pool_add 3 21776 NULL
++xfs_da_grow_inode_int_21785 xfs_da_grow_inode_int 3 21785 NULL
++__ioremap_caller_21800 __ioremap_caller 1-2 21800 NULL
++dvb_generic_ioctl_21810 dvb_generic_ioctl 2 21810 NULL
++wm8994_request_irq_21822 wm8994_request_irq 2 21822 NULL
++oom_adj_read_21847 oom_adj_read 3 21847 NULL
++acpi_tb_check_xsdt_21862 acpi_tb_check_xsdt 1 21862 NULL
++lpfc_idiag_extacc_avail_get_21865 lpfc_idiag_extacc_avail_get 0-3 21865 NULL
++brcms_debugfs_hardware_read_21867 brcms_debugfs_hardware_read 3 21867 NULL
++sisusbcon_bmove_21873 sisusbcon_bmove 6-5-7 21873 NULL nohasharray
++tcp_cookie_size_check_21873 tcp_cookie_size_check 0-1 21873 &sisusbcon_bmove_21873
++__alloc_reserved_percpu_21895 __alloc_reserved_percpu 1-2 21895 NULL
++rio_destid_first_21900 rio_destid_first 0 21900 NULL
++dbAllocCtl_21911 dbAllocCtl 0 21911 NULL
++qsfp_1_read_21915 qsfp_1_read 3 21915 NULL
++rbd_req_read_21952 rbd_req_read 4-5 21952 NULL
++security_mmap_addr_21970 security_mmap_addr 0 21970 NULL
++alloc_ldt_21972 alloc_ldt 2 21972 NULL
++rxpipe_descr_host_int_trig_rx_data_read_22001 rxpipe_descr_host_int_trig_rx_data_read 3 22001 NULL nohasharray
++compat_rw_copy_check_uvector_22001 compat_rw_copy_check_uvector 0-3 22001 &rxpipe_descr_host_int_trig_rx_data_read_22001
++btrfs_get_16_22023 btrfs_get_16 0 22023 NULL
++ti_recv_22027 ti_recv 4 22027 NULL
++pcf50633_irq_unmask_22034 pcf50633_irq_unmask 2 22034 NULL
++zd_usb_read_fw_22049 zd_usb_read_fw 4 22049 NULL
++ieee80211_if_fmt_dropped_frames_ttl_22054 ieee80211_if_fmt_dropped_frames_ttl 3 22054 NULL
++btrfs_reloc_clone_csums_22077 btrfs_reloc_clone_csums 2 22077 NULL
++mem_rw_22085 mem_rw 3 22085 NULL
++snd_pcm_xrun_22088 snd_pcm_xrun 0 22088 NULL
++lowpan_fragment_xmit_22095 lowpan_fragment_xmit 3-4 22095 NULL
++sys_remap_file_pages_22124 sys_remap_file_pages 1 22124 NULL
++__bitmap_size_22138 __bitmap_size 0 22138 NULL
++compat_insn_22142 compat_insn 2 22142 NULL
++pn533_dep_link_up_22154 pn533_dep_link_up 5 22154 NULL
++do_tcp_sendpages_22155 do_tcp_sendpages 4 22155 NULL
++__kfifo_alloc_22173 __kfifo_alloc 2-3 22173 NULL
++fls_22210 fls 0 22210 NULL
++bio_chain_clone_22227 bio_chain_clone 4 22227 NULL
++mem_write_22232 mem_write 3 22232 NULL
++p9_virtio_zc_request_22240 p9_virtio_zc_request 6-5 22240 NULL
++atomic64_xchg_22246 atomic64_xchg 0 22246 NULL
++compat_process_vm_rw_22254 compat_process_vm_rw 3-5 22254 NULL
++__btrfs_direct_write_22273 __btrfs_direct_write 4 22273 NULL
++queue_max_sectors_22280 queue_max_sectors 0 22280 NULL
++pci_vpd_srdt_size_22300 pci_vpd_srdt_size 0 22300 NULL nohasharray
++__tun_chr_ioctl_22300 __tun_chr_ioctl 4 22300 &pci_vpd_srdt_size_22300
++mesh_table_alloc_22305 mesh_table_alloc 1 22305 NULL
++get_segment_base_22324 get_segment_base 0 22324 NULL
++radix_tree_find_next_bit_22334 radix_tree_find_next_bit 2-3 22334 NULL
++atomic_read_22342 atomic_read 0 22342 NULL
++mlx4_db_alloc_22358 mlx4_db_alloc 3 22358 NULL
++irq_reserve_irq_22360 irq_reserve_irq 1 22360 NULL
++snd_pcm_alsa_frames_22363 snd_pcm_alsa_frames 2 22363 NULL
++wlcore_alloc_hw_22365 wlcore_alloc_hw 1 22365 NULL nohasharray
++tps6586x_gpio_to_irq_22365 tps6586x_gpio_to_irq 2 22365 &wlcore_alloc_hw_22365
++evdev_ioctl_22371 evdev_ioctl 2 22371 NULL
++alloc_large_system_hash_22391 alloc_large_system_hash 2 22391 NULL
++btmrvl_psmode_read_22395 btmrvl_psmode_read 3 22395 NULL
++zoran_write_22404 zoran_write 3 22404 NULL
++queue_reply_22416 queue_reply 3 22416 NULL
++__set_enter_print_fmt_22431 __set_enter_print_fmt 0 22431 NULL
++queue_max_segments_22441 queue_max_segments 0 22441 NULL
++handle_received_packet_22457 handle_received_packet 3 22457 NULL
++mem_cgroup_read_22461 mem_cgroup_read 5 22461 NULL
++cache_write_procfs_22491 cache_write_procfs 3 22491 NULL
++mp_find_ioapic_pin_22499 mp_find_ioapic_pin 0-2 22499 NULL
++mutex_lock_interruptible_22505 mutex_lock_interruptible 0 22505 NULL
++ip4_addr_string_22511 ip4_addr_string 0 22511 NULL
++pskb_may_pull_22546 pskb_may_pull 2 22546 NULL
++ocfs2_read_extent_block_22550 ocfs2_read_extent_block 0 22550 NULL
++atomic_long_read_unchecked_22551 atomic_long_read_unchecked 0 22551 NULL
++agp_alloc_page_array_22554 agp_alloc_page_array 1 22554 NULL
++dbFindCtl_22587 dbFindCtl 0 22587 NULL
++snapshot_read_22601 snapshot_read 3 22601 NULL
++sctp_setsockopt_connectx_old_22631 sctp_setsockopt_connectx_old 3 22631 NULL
++ide_core_cp_entry_22636 ide_core_cp_entry 3 22636 NULL
++wl1271_rx_filter_get_fields_size_22638 wl1271_rx_filter_get_fields_size 0 22638 NULL
++pwr_wake_on_timer_exp_read_22640 pwr_wake_on_timer_exp_read 3 22640 NULL
++iwl_dbgfs_calib_disabled_read_22649 iwl_dbgfs_calib_disabled_read 3 22649 NULL
++ubifs_leb_write_22679 ubifs_leb_write 4-5 22679 NULL
++fill_gap_22681 fill_gap 0 22681 NULL
++ocfs2_get_block_22687 ocfs2_get_block 2 22687 NULL
++compat_fd_ioctl_22694 compat_fd_ioctl 4 22694 NULL
++alloc_libipw_22708 alloc_libipw 1 22708 NULL
++brcmf_sdbrcm_read_control_22721 brcmf_sdbrcm_read_control 3 22721 NULL
++cx18_copy_buf_to_user_22735 cx18_copy_buf_to_user 4 22735 NULL
++ceph_decode_32_22738 ceph_decode_32 0 22738 NULL
++iio_debugfs_write_reg_22742 iio_debugfs_write_reg 3 22742 NULL
++print_frame_22769 print_frame 0 22769 NULL
++ftrace_arch_read_dyn_info_22773 ftrace_arch_read_dyn_info 0 22773 NULL
++retu_write_22800 retu_write 2 22800 NULL
++compat_blkdev_ioctl_22841 compat_blkdev_ioctl 3 22841 NULL
++can_nocow_odirect_22854 can_nocow_odirect 3 22854 NULL nohasharray
++read_file_rcstat_22854 read_file_rcstat 3 22854 &can_nocow_odirect_22854
++do_atm_iobuf_22857 do_atm_iobuf 3 22857 NULL
++nfs4_realloc_slot_table_22859 nfs4_realloc_slot_table 2 22859 NULL
++create_attr_set_22861 create_attr_set 1 22861 NULL
++vmw_execbuf_process_22885 vmw_execbuf_process 5 22885 NULL
++usblp_new_writeurb_22894 usblp_new_writeurb 2 22894 NULL
++mdc800_device_read_22896 mdc800_device_read 3 22896 NULL
++pcpu_mem_zalloc_22948 pcpu_mem_zalloc 1 22948 NULL
++alloc_sglist_22960 alloc_sglist 1-2-3 22960 NULL
++caif_seqpkt_sendmsg_22961 caif_seqpkt_sendmsg 4 22961 NULL
++vme_get_size_22964 vme_get_size 0 22964 NULL
++tx_frag_key_not_found_read_22971 tx_frag_key_not_found_read 3 22971 NULL
++usb_get_langid_22983 usb_get_langid 0 22983 NULL
++remote_settings_file_write_22987 remote_settings_file_write 3 22987 NULL
++viafb_dvp0_proc_write_23023 viafb_dvp0_proc_write 3 23023 NULL
++cifs_local_to_utf16_bytes_23025 cifs_local_to_utf16_bytes 0 23025 NULL
++st_status_23032 st_status 5 23032 NULL
++nv50_disp_chan_create__23056 nv50_disp_chan_create_ 5 23056 NULL
++reiserfs_add_entry_23062 reiserfs_add_entry 4 23062 NULL
++vm_map_ram_23078 vm_map_ram 2 23078 NULL nohasharray
++raw_sendmsg_23078 raw_sendmsg 4 23078 &vm_map_ram_23078
++qla4_82xx_pci_mem_read_2M_23081 qla4_82xx_pci_mem_read_2M 2 23081 NULL
++isr_tx_procs_read_23084 isr_tx_procs_read 3 23084 NULL
++lnw_gpio_irq_map_23087 lnw_gpio_irq_map 2 23087 NULL
++rt2x00debug_write_eeprom_23091 rt2x00debug_write_eeprom 3 23091 NULL
++fls_long_23096 fls_long 0 23096 NULL
++ntfs_ucstonls_23097 ntfs_ucstonls 3-5 23097 NULL
++pipe_iov_copy_from_user_23102 pipe_iov_copy_from_user 3 23102 NULL
++mwl8k_cmd_set_beacon_23110 mwl8k_cmd_set_beacon 4 23110 NULL
++nl80211_send_rx_auth_23111 nl80211_send_rx_auth 4 23111 NULL
++__clear_user_23118 __clear_user 0 23118 NULL
++dm_write_async_23120 dm_write_async 3 23120 NULL
++drm_mode_create_tv_properties_23122 drm_mode_create_tv_properties 2 23122 NULL
++ca91cx42_master_set_23146 ca91cx42_master_set 4 23146 NULL
++wm831x_set_bits_23158 wm831x_set_bits 2 23158 NULL
++read_file_ani_23161 read_file_ani 3 23161 NULL
++ioremap_23172 ioremap 1-2 23172 NULL
++usblp_write_23178 usblp_write 3 23178 NULL
++msnd_fifo_alloc_23179 msnd_fifo_alloc 2 23179 NULL
++gss_pipe_downcall_23182 gss_pipe_downcall 3 23182 NULL
++ieee80211_get_mesh_hdrlen_23183 ieee80211_get_mesh_hdrlen 0 23183 NULL
++fix_unclean_leb_23188 fix_unclean_leb 3 23188 NULL
++mpi_alloc_limb_space_23190 mpi_alloc_limb_space 1 23190 NULL
++__next_dma_cap_23195 __next_dma_cap 1 23195 NULL
++convert_ip_to_linear_23198 convert_ip_to_linear 0 23198 NULL
++pm80x_free_irq_23210 pm80x_free_irq 2 23210 NULL nohasharray
++compat_rawv6_ioctl_23210 compat_rawv6_ioctl 3 23210 &pm80x_free_irq_23210
++tty_buffer_request_room_23228 tty_buffer_request_room 2 23228 NULL
++xlog_get_bp_23229 xlog_get_bp 2 23229 NULL
++rxrpc_client_sendmsg_23236 rxrpc_client_sendmsg 5 23236 NULL
++__gfn_to_rmap_23240 __gfn_to_rmap 1-2 23240 NULL
++uwb_dev_addr_print_23282 uwb_dev_addr_print 2 23282 NULL
++ipv6_skip_exthdr_23283 ipv6_skip_exthdr 0-2 23283 NULL
++doc_probe_23285 doc_probe 1 23285 NULL
++diva_get_trace_filter_23286 diva_get_trace_filter 0 23286 NULL
++i2cdev_write_23310 i2cdev_write 3 23310 NULL
++mc13xxx_get_num_regulators_dt_23344 mc13xxx_get_num_regulators_dt 0 23344 NULL
++page_readlink_23346 page_readlink 3 23346 NULL
++get_dst_timing_23358 get_dst_timing 0 23358 NULL
++iscsi_change_queue_depth_23416 iscsi_change_queue_depth 2 23416 NULL
++vga_mm_r_23419 vga_mm_r 0 23419 NULL
++vzalloc_node_23424 vzalloc_node 1 23424 NULL
++__cxio_init_resource_fifo_23447 __cxio_init_resource_fifo 3 23447 NULL nohasharray
++ocfs2_zero_tail_23447 ocfs2_zero_tail 3 23447 &__cxio_init_resource_fifo_23447
++hidraw_send_report_23449 hidraw_send_report 3 23449 NULL
++linear_conf_23485 linear_conf 2 23485 NULL nohasharray
++divasa_remap_pci_bar_23485 divasa_remap_pci_bar 3-4 23485 &linear_conf_23485
++event_filter_read_23494 event_filter_read 3 23494 NULL
++ima_show_measurements_count_23536 ima_show_measurements_count 3 23536 NULL
++xen_allocate_irq_gsi_23546 xen_allocate_irq_gsi 1-0 23546 NULL
++tcp_current_mss_23552 tcp_current_mss 0 23552 NULL
++dbg_leb_change_23555 dbg_leb_change 4 23555 NULL
++venus_symlink_23570 venus_symlink 4-6 23570 NULL
++iwl_dbgfs_interrupt_read_23574 iwl_dbgfs_interrupt_read 3 23574 NULL
++snd_interval_min_23590 snd_interval_min 0 23590 NULL
++_alloc_cdb_cont_23609 _alloc_cdb_cont 2 23609 NULL
++islpci_mgt_transaction_23610 islpci_mgt_transaction 5 23610 NULL
++__i2400mu_send_barker_23652 __i2400mu_send_barker 3 23652 NULL
++ext3_compat_ioctl_23659 ext3_compat_ioctl 3 23659 NULL
++sInW_23663 sInW 0 23663 NULL
++proc_ioctl_compat_23682 proc_ioctl_compat 2 23682 NULL
++nftl_partscan_23688 nftl_partscan 0 23688 NULL
++cx18_read_23699 cx18_read 3 23699 NULL
++mp_config_acpi_gsi_23728 mp_config_acpi_gsi 2 23728 NULL
++pack_sg_list_p_23739 pack_sg_list_p 0-2 23739 NULL
++rx_rx_dropped_frame_read_23748 rx_rx_dropped_frame_read 3 23748 NULL
++__kfifo_max_r_23768 __kfifo_max_r 0-2-1 23768 NULL
++security_inode_getxattr_23781 security_inode_getxattr 0 23781 NULL
++diva_alloc_dma_map_23798 diva_alloc_dma_map 2 23798 NULL
++rx_path_reset_read_23801 rx_path_reset_read 3 23801 NULL
++__earlyonly_bootmem_alloc_23824 __earlyonly_bootmem_alloc 2 23824 NULL
++xfs_dir2_leaf_getdents_23841 xfs_dir2_leaf_getdents 3 23841 NULL
++iwl_dbgfs_nvm_read_23845 iwl_dbgfs_nvm_read 3 23845 NULL
++p54_init_common_23850 p54_init_common 1 23850 NULL
++gart_alloc_coherent_23852 gart_alloc_coherent 2 23852 NULL
++bin_to_hex_dup_23853 bin_to_hex_dup 2 23853 NULL
++ocfs2_xattr_get_clusters_23857 ocfs2_xattr_get_clusters 0 23857 NULL
++ieee80211_if_read_dot11MeshMaxPeerLinks_23878 ieee80211_if_read_dot11MeshMaxPeerLinks 3 23878 NULL
++ieee80211_if_read_channel_type_23884 ieee80211_if_read_channel_type 3 23884 NULL
++nes_alloc_resource_23891 nes_alloc_resource 3 23891 NULL
++tipc_snprintf_23893 tipc_snprintf 2 23893 NULL
++add_new_gdb_meta_bg_23911 add_new_gdb_meta_bg 3 23911 NULL nohasharray
++ieee80211_if_read_hw_queues_23911 ieee80211_if_read_hw_queues 3 23911 &add_new_gdb_meta_bg_23911
++f2fs_getxattr_23917 f2fs_getxattr 0 23917 NULL
++ipath_reg_phys_mr_23918 ipath_reg_phys_mr 3 23918 NULL nohasharray
++mpihelp_mul_karatsuba_case_23918 mpihelp_mul_karatsuba_case 5-3 23918 &ipath_reg_phys_mr_23918
++kvm_read_guest_23928 kvm_read_guest 4-2 23928 NULL
++__alloc_skb_23940 __alloc_skb 1 23940 NULL
++uvc_endpoint_max_bpi_23944 uvc_endpoint_max_bpi 0 23944 NULL
++cifs_setxattr_23957 cifs_setxattr 4 23957 NULL
++zd_usb_iowrite16v_async_23984 zd_usb_iowrite16v_async 3 23984 NULL
++cxgb_alloc_mem_24007 cxgb_alloc_mem 1 24007 NULL
++dgrp_send_24028 dgrp_send 0-2 24028 NULL
++ocfs2_mark_extent_refcounted_24035 ocfs2_mark_extent_refcounted 6 24035 NULL
++afs_cell_alloc_24052 afs_cell_alloc 2 24052 NULL
++blkcipher_copy_iv_24075 blkcipher_copy_iv 3 24075 NULL
++vb2_fop_read_24080 vb2_fop_read 3 24080 NULL
++pipeline_post_proc_swi_read_24108 pipeline_post_proc_swi_read 3 24108 NULL
++request_key_auth_read_24109 request_key_auth_read 3 24109 NULL
++ieee80211_send_auth_24121 ieee80211_send_auth 5 24121 NULL
++mpu401_read_24126 mpu401_read 3 24126 NULL
++irnet_ctrl_write_24139 irnet_ctrl_write 3 24139 NULL
++trim_bitmaps_24158 trim_bitmaps 3 24158 NULL
++adu_read_24177 adu_read 3 24177 NULL
++safe_prepare_write_buffer_24187 safe_prepare_write_buffer 3 24187 NULL
++ieee80211_if_read_dot11MeshHWMPpreqMinInterval_24208 ieee80211_if_read_dot11MeshHWMPpreqMinInterval 3 24208 NULL
++efx_vf_size_24213 efx_vf_size 0 24213 NULL
++tcpprobe_sprint_24222 tcpprobe_sprint 0-2 24222 NULL
++pcpu_embed_first_chunk_24224 pcpu_embed_first_chunk 1-2-3 24224 NULL nohasharray
++mei_amthif_read_24224 mei_amthif_read 4 24224 &pcpu_embed_first_chunk_24224
++pci_num_vf_24235 pci_num_vf 0 24235 NULL
++sel_read_bool_24236 sel_read_bool 3 24236 NULL
++thin_status_24278 thin_status 5 24278 NULL
++compat_sys_preadv64_24283 compat_sys_preadv64 3 24283 NULL
++msg_size_24288 msg_size 0 24288 NULL
++ext2_free_blocks_24292 ext2_free_blocks 2-3 24292 NULL
++map_page_24298 map_page 3-4 24298 NULL
++btmrvl_pscmd_read_24308 btmrvl_pscmd_read 3 24308 NULL
++ath6kl_add_bss_if_needed_24317 ath6kl_add_bss_if_needed 6 24317 NULL
++ocfs2_direct_IO_get_blocks_24333 ocfs2_direct_IO_get_blocks 2 24333 NULL
++kzalloc_node_24352 kzalloc_node 1 24352 NULL
++qla2x00_handle_queue_full_24365 qla2x00_handle_queue_full 2 24365 NULL
++cfi_read_pri_24366 cfi_read_pri 3 24366 NULL
++btrfs_item_size_nr_24367 btrfs_item_size_nr 0 24367 NULL
++igetword_24373 igetword 0 24373 NULL
++pvr2_v4l2_ioctl_24398 pvr2_v4l2_ioctl 2 24398 NULL nohasharray
++getxattr_24398 getxattr 4 24398 &pvr2_v4l2_ioctl_24398
++blk_update_bidi_request_24415 blk_update_bidi_request 3-4 24415 NULL
++b43_debugfs_read_24425 b43_debugfs_read 3 24425 NULL
++ieee80211_rx_mgmt_beacon_24430 ieee80211_rx_mgmt_beacon 3 24430 NULL
++ixgbe_alloc_q_vector_24439 ixgbe_alloc_q_vector 4-6 24439 NULL
++smk_user_access_24440 smk_user_access 3 24440 NULL
++page_address_24444 page_address 0 24444 NULL
++evdev_do_ioctl_24459 evdev_do_ioctl 2 24459 NULL
++ocfs2_write_cluster_by_desc_24466 ocfs2_write_cluster_by_desc 5-6 24466 NULL
++pd_video_read_24510 pd_video_read 3 24510 NULL
++request_key_with_auxdata_24515 request_key_with_auxdata 4 24515 NULL
++xfs_buf_get_map_24522 xfs_buf_get_map 3 24522 NULL
++named_prepare_buf_24532 named_prepare_buf 2 24532 NULL
++do_mpage_readpage_24536 do_mpage_readpage 3 24536 NULL
++write_cache_pages_24562 write_cache_pages 0 24562 NULL
++tsi148_alloc_resource_24563 tsi148_alloc_resource 2 24563 NULL
++udf_compute_nr_groups_24594 udf_compute_nr_groups 0 24594 NULL
++palmas_smps_write_24600 palmas_smps_write 2 24600 NULL nohasharray
++count_preds_24600 count_preds 0 24600 &palmas_smps_write_24600
++sensor_hub_get_physical_device_count_24605 sensor_hub_get_physical_device_count 0 24605 NULL
++context_alloc_24645 context_alloc 3 24645 NULL
++blk_rq_err_bytes_24650 blk_rq_err_bytes 0 24650 NULL
++unifi_net_data_malloc_24716 unifi_net_data_malloc 3 24716 NULL
++simple_attr_read_24738 simple_attr_read 3 24738 NULL
++qla2x00_change_queue_depth_24742 qla2x00_change_queue_depth 2 24742 NULL
++ath_rxbuf_alloc_24745 ath_rxbuf_alloc 2 24745 NULL
++get_dma_residue_24749 get_dma_residue 0 24749 NULL
++kgdb_hex2mem_24755 kgdb_hex2mem 3 24755 NULL
++nfsd4_sanitize_slot_size_24756 nfsd4_sanitize_slot_size 0-1 24756 NULL
++i915_cache_sharing_read_24775 i915_cache_sharing_read 3 24775 NULL
++ocfs2_read_blocks_24777 ocfs2_read_blocks 0 24777 NULL
++skb_make_writable_24783 skb_make_writable 2 24783 NULL
++datablob_hmac_verify_24786 datablob_hmac_verify 4 24786 NULL
++cache_read_24790 cache_read 3 24790 NULL
++unpack_str_24798 unpack_str 0 24798 NULL
++__next_cpu_nr_24805 __next_cpu_nr 1 24805 NULL
++comedi_buf_alloc_24822 comedi_buf_alloc 3 24822 NULL
++snd_als4k_gcr_read_24840 snd_als4k_gcr_read 0 24840 NULL
++snd_pcm_lib_buffer_bytes_24865 snd_pcm_lib_buffer_bytes 0 24865 NULL
++pnp_alloc_24869 pnp_alloc 1 24869 NULL nohasharray
++l2cap_create_basic_pdu_24869 l2cap_create_basic_pdu 3 24869 &pnp_alloc_24869
++bnx2fc_cmd_mgr_alloc_24873 bnx2fc_cmd_mgr_alloc 3-2 24873 NULL
++queues_read_24877 queues_read 3 24877 NULL
++codec_list_read_file_24910 codec_list_read_file 3 24910 NULL
++v4l2_ctrl_new_24927 v4l2_ctrl_new 7 24927 NULL
++next_token_24929 next_token 0 24929 NULL
++uf_create_device_nodes_24948 uf_create_device_nodes 2 24948 NULL
++ocfs2_fiemap_24949 ocfs2_fiemap 3-4 24949 NULL
++packet_sendmsg_24954 packet_sendmsg 4 24954 NULL
++sys_rt_sigpending_24961 sys_rt_sigpending 2 24961 NULL
++ensure_wear_leveling_24971 ensure_wear_leveling 0 24971 NULL
++twl_i2c_write_u8_24976 twl_i2c_write_u8 3 24976 NULL
++nf_nat_sdp_port_24977 nf_nat_sdp_port 7 24977 NULL
++llc_ui_sendmsg_24987 llc_ui_sendmsg 4 24987 NULL
++key_conf_hw_key_idx_read_25003 key_conf_hw_key_idx_read 3 25003 NULL
++il_dbgfs_channels_read_25005 il_dbgfs_channels_read 3 25005 NULL
++ni_660x_num_counters_25031 ni_660x_num_counters 0 25031 NULL
++nfs_dns_resolve_name_25036 nfs_dns_resolve_name 3 25036 NULL
++gs_buf_alloc_25067 gs_buf_alloc 2 25067 NULL
++gfs2_iter_unstuffed_25099 gfs2_iter_unstuffed 0 25099 NULL
++cxio_hal_init_rhdl_resource_25104 cxio_hal_init_rhdl_resource 1 25104 NULL
++snd_rawmidi_kernel_write_25106 snd_rawmidi_kernel_write 3 25106 NULL
++fs32_to_cpu_25143 fs32_to_cpu 0 25143 NULL
++sys_fgetxattr_25166 sys_fgetxattr 4 25166 NULL
++ipath_init_qp_table_25167 ipath_init_qp_table 2 25167 NULL
++mmu_set_spte_25177 mmu_set_spte 8-9 25177 NULL
++sctp_getsockopt_local_addrs_25178 sctp_getsockopt_local_addrs 2 25178 NULL
++ks8851_rdreg32_25187 ks8851_rdreg32 0 25187 NULL
++ocfs2_block_check_compute_25223 ocfs2_block_check_compute 2 25223 NULL
++mon_stat_read_25238 mon_stat_read 3 25238 NULL
++tcf_csum_ipv6_udp_25241 tcf_csum_ipv6_udp 4 25241 NULL
++nilfs_palloc_find_available_slot_25245 nilfs_palloc_find_available_slot 3-5 25245 NULL
++stripe_status_25259 stripe_status 5 25259 NULL
++snd_pcm_start_25273 snd_pcm_start 0 25273 NULL
++crypto_alloc_instance2_25277 crypto_alloc_instance2 3 25277 NULL
++vfs_writev_25278 vfs_writev 3 25278 NULL
++l2tp_session_create_25286 l2tp_session_create 1 25286 NULL
++snd_seq_ioctl_compat_25307 snd_seq_ioctl_compat 3 25307 NULL
++help_25316 help 5 25316 NULL nohasharray
++ath9k_debugfs_read_buf_25316 ath9k_debugfs_read_buf 3 25316 &help_25316
++rng_buffer_size_25348 rng_buffer_size 0 25348 NULL
++i915_gem_execbuffer_relocate_slow_25355 i915_gem_execbuffer_relocate_slow 7 25355 NULL
++rio_destid_next_25368 rio_destid_next 2 25368 NULL nohasharray
++unix_mkname_25368 unix_mkname 0-2 25368 &rio_destid_next_25368
++sel_read_mls_25369 sel_read_mls 3 25369 NULL
++tc3589x_gpio_to_irq_25371 tc3589x_gpio_to_irq 2 25371 NULL
++ebt_buf_add_pad_25413 ebt_buf_add_pad 0 25413 NULL
++dai_list_read_file_25421 dai_list_read_file 3 25421 NULL
++ath6kl_wmi_beginscan_cmd_25462 ath6kl_wmi_beginscan_cmd 8 25462 NULL
++generic_file_buffered_write_25464 generic_file_buffered_write 4 25464 NULL
++crypto_hash_digestsize_25469 crypto_hash_digestsize 0 25469 NULL
++ocfs2_hamming_encode_25501 ocfs2_hamming_encode 3 25501 NULL
++ivtv_buf_copy_from_user_25502 ivtv_buf_copy_from_user 4 25502 NULL
++snd_pcm_plugin_build_25505 snd_pcm_plugin_build 5 25505 NULL
++sb_permission_25523 sb_permission 0 25523 NULL
++ext3_get_inode_loc_25542 ext3_get_inode_loc 0 25542 NULL
++ieee80211_if_read_path_refresh_time_25545 ieee80211_if_read_path_refresh_time 3 25545 NULL
++wimax_addr_scnprint_25548 wimax_addr_scnprint 2 25548 NULL
++ht_print_chan_25556 ht_print_chan 0 25556 NULL
++skb_tailroom_25567 skb_tailroom 0 25567 NULL
++__devres_alloc_25598 __devres_alloc 2 25598 NULL
++copy_user_generic_25611 copy_user_generic 0 25611 NULL
++proc_coredump_filter_write_25625 proc_coredump_filter_write 3 25625 NULL
++__get_user_pages_25628 __get_user_pages 0 25628 NULL nohasharray
++befs_utf2nls_25628 befs_utf2nls 3 25628 &__get_user_pages_25628
++__direct_map_25647 __direct_map 5-6 25647 NULL
++ext2_try_to_allocate_25667 ext2_try_to_allocate 4-2 25667 NULL
++aircable_prepare_write_buffer_25669 aircable_prepare_write_buffer 3 25669 NULL
++sta_inactive_ms_read_25690 sta_inactive_ms_read 3 25690 NULL
++ebitmap_start_positive_25703 ebitmap_start_positive 0 25703 NULL
++rx_filter_mc_filter_read_25712 rx_filter_mc_filter_read 3 25712 NULL
++ibmasm_new_command_25714 ibmasm_new_command 2 25714 NULL
++sel_write_context_25726 sel_write_context 3 25726 NULL nohasharray
++__alloc_bootmem_low_node_25726 __alloc_bootmem_low_node 2 25726 &sel_write_context_25726
++mcs_unwrap_fir_25733 mcs_unwrap_fir 3 25733 NULL
++ext2_find_near_25734 ext2_find_near 0 25734 NULL
++cxgbi_device_portmap_create_25747 cxgbi_device_portmap_create 3 25747 NULL
++event_rx_pool_read_25792 event_rx_pool_read 3 25792 NULL
++sg_read_25799 sg_read 3 25799 NULL
++sys32_rt_sigpending_25814 sys32_rt_sigpending 2 25814 NULL
++system_enable_read_25815 system_enable_read 3 25815 NULL
++realloc_buffer_25816 realloc_buffer 2 25816 NULL
++pwr_missing_bcns_read_25824 pwr_missing_bcns_read 3 25824 NULL
++parport_read_25855 parport_read 0 25855 NULL
++xfs_dir2_sf_hdr_size_25858 xfs_dir2_sf_hdr_size 0 25858 NULL
++uf_ap_process_data_pdu_25860 uf_ap_process_data_pdu 7 25860 NULL
++ath6kl_regread_read_25884 ath6kl_regread_read 3 25884 NULL
++run_delalloc_nocow_25896 run_delalloc_nocow 3 25896 NULL
++sisusbcon_scroll_area_25899 sisusbcon_scroll_area 4-3 25899 NULL
++lpfc_change_queue_depth_25905 lpfc_change_queue_depth 2 25905 NULL
++do_jffs2_setxattr_25910 do_jffs2_setxattr 5 25910 NULL
++utf16_strlen_25913 utf16_strlen 0 25913 NULL
++rcname_read_25919 rcname_read 3 25919 NULL
++snd_es1938_capture_copy_25930 snd_es1938_capture_copy 5 25930 NULL
++key_flags_read_25931 key_flags_read 3 25931 NULL
++copy_play_buf_25932 copy_play_buf 3 25932 NULL
++tps80031_clr_bits_25942 tps80031_clr_bits 3 25942 NULL
++flush_25957 flush 2 25957 NULL
++video_register_device_25971 video_register_device 3 25971 NULL
++udp_setsockopt_25985 udp_setsockopt 5 25985 NULL
++ebt_compat_entry_padsize_26001 ebt_compat_entry_padsize 0 26001 NULL
++lpfc_sli_probe_sriov_nr_virtfn_26004 lpfc_sli_probe_sriov_nr_virtfn 2 26004 NULL
++mirror_status_26010 mirror_status 5 26010 NULL
++irq_create_strict_mappings_26025 irq_create_strict_mappings 2-4 26025 NULL
++xfs_xattr_acl_set_26028 xfs_xattr_acl_set 4 26028 NULL
++skb_mac_header_26034 skb_mac_header 0 26034 NULL
++mptscsih_change_queue_depth_26036 mptscsih_change_queue_depth 2 26036 NULL
++selinux_inode_post_setxattr_26037 selinux_inode_post_setxattr 4 26037 NULL
++tun_do_read_26047 tun_do_read 5 26047 NULL
++keyctl_update_key_26061 keyctl_update_key 3 26061 NULL
++rx_rx_wa_density_dropped_frame_read_26095 rx_rx_wa_density_dropped_frame_read 3 26095 NULL
++cpumask_next_26096 cpumask_next 1 26096 NULL
++skb_cow_26138 skb_cow 2 26138 NULL
++usb_dump_device_strings_26146 usb_dump_device_strings 0 26146 NULL
++__fswab64_26155 __fswab64 0 26155 NULL
++copy_oldmem_page_26164 copy_oldmem_page 3-1 26164 NULL
++gfs2_xattr_acl_get_26166 gfs2_xattr_acl_get 0 26166 NULL nohasharray
++ath6kl_roam_table_read_26166 ath6kl_roam_table_read 3 26166 &gfs2_xattr_acl_get_26166
++mid_get_vbt_data_r1_26170 mid_get_vbt_data_r1 2 26170 NULL
++disk_devt_26180 disk_devt 0 26180 NULL
++get_registers_26187 get_registers 3 26187 NULL
++cgroup_setxattr_26188 cgroup_setxattr 4 26188 NULL
++ieee80211_if_fmt_dot11MeshTTL_26198 ieee80211_if_fmt_dot11MeshTTL 3 26198 NULL
++xfs_idata_realloc_26199 xfs_idata_realloc 2 26199 NULL
++mce_write_26201 mce_write 3 26201 NULL
++_scsih_change_queue_depth_26230 _scsih_change_queue_depth 2 26230 NULL
++cxio_num_stags_26233 cxio_num_stags 0 26233 NULL
++bio_split_26235 bio_split 2 26235 NULL
++crypto_ctxsize_26278 crypto_ctxsize 0 26278 NULL
++wacom_set_device_mode_26280 wacom_set_device_mode 3 26280 NULL
++ext2_find_goal_26306 ext2_find_goal 0 26306 NULL
++snd_pcm_plug_client_channels_buf_26309 snd_pcm_plug_client_channels_buf 0-3 26309 NULL nohasharray
++pax_get_random_long_26309 pax_get_random_long 0 26309 &snd_pcm_plug_client_channels_buf_26309
++pwr_wake_on_host_read_26321 pwr_wake_on_host_read 3 26321 NULL
++ocfs2_duplicate_clusters_by_page_26357 ocfs2_duplicate_clusters_by_page 5 26357 NULL
++cifs_readdata_alloc_26360 cifs_readdata_alloc 1 26360 NULL
++dup_to_netobj_26363 dup_to_netobj 3 26363 NULL
++invalidate_inode_pages2_range_26403 invalidate_inode_pages2_range 0 26403 NULL
++virtio_has_feature_26467 virtio_has_feature 0 26467 NULL
++ib_alloc_device_26483 ib_alloc_device 1 26483 NULL
++ulong_write_file_26485 ulong_write_file 3 26485 NULL
++dvb_ca_en50221_io_ioctl_26490 dvb_ca_en50221_io_ioctl 2 26490 NULL
++read_vmcore_26501 read_vmcore 3 26501 NULL
++vfio_pci_set_msi_trigger_26507 vfio_pci_set_msi_trigger 3-4 26507 NULL
++iwl_dbgfs_rf_reset_read_26512 iwl_dbgfs_rf_reset_read 3 26512 NULL
++rds_message_inc_copy_to_user_26540 rds_message_inc_copy_to_user 3 26540 NULL
++__vhost_add_used_n_26554 __vhost_add_used_n 3 26554 NULL
++ip6_addr_string_26568 ip6_addr_string 0 26568 NULL
++rts51x_read_mem_26577 rts51x_read_mem 4 26577 NULL nohasharray
++batadv_receive_server_sync_packet_26577 batadv_receive_server_sync_packet 3 26577 &rts51x_read_mem_26577
++cirrusfb_get_memsize_26597 cirrusfb_get_memsize 0 26597 NULL
++__unmap_single_26604 __unmap_single 2-3 26604 NULL
++iommu_alloc_26621 iommu_alloc 4 26621 NULL
++pwr_fix_tsf_ps_read_26627 pwr_fix_tsf_ps_read 3 26627 NULL
++mmap_region_26649 mmap_region 0-2 26649 NULL
++irq_alloc_generic_chip_26650 irq_alloc_generic_chip 2 26650 NULL nohasharray
++inb_p_26650 inb_p 0 26650 &irq_alloc_generic_chip_26650
++cipso_v4_map_cat_rbm_hton_26680 cipso_v4_map_cat_rbm_hton 0 26680 NULL
++__alloc_pred_stack_26687 __alloc_pred_stack 2 26687 NULL
++rtllib_authentication_req_26713 rtllib_authentication_req 3 26713 NULL
++aty_ld_le32_26720 aty_ld_le32 0 26720 NULL
++nouveau_namedb_create__26732 nouveau_namedb_create_ 7 26732 NULL
++pipeline_tcp_rx_stat_fifo_int_read_26745 pipeline_tcp_rx_stat_fifo_int_read 3 26745 NULL
++srp_ring_alloc_26760 srp_ring_alloc 2 26760 NULL
++snd_hda_get_raw_connections_26762 snd_hda_get_raw_connections 0 26762 NULL
++ntfs_are_rl_mergeable_26777 ntfs_are_rl_mergeable 0 26777 NULL
++qlcnic_alloc_sds_rings_26795 qlcnic_alloc_sds_rings 2 26795 NULL
++cipso_v4_genopt_26812 cipso_v4_genopt 0 26812 NULL
++smk_write_load_26829 smk_write_load 3 26829 NULL
++slgt_compat_ioctl_26834 slgt_compat_ioctl 3 26834 NULL
++__nodes_onto_26838 __nodes_onto 4 26838 NULL
++scnprint_id_26842 scnprint_id 3 26842 NULL
++ecryptfs_miscdev_write_26847 ecryptfs_miscdev_write 3 26847 NULL
++netxen_nic_hw_read_wx_128M_26858 netxen_nic_hw_read_wx_128M 2 26858 NULL
++svc_print_xprts_26881 svc_print_xprts 0 26881 NULL
++ext2_compat_ioctl_26883 ext2_compat_ioctl 3 26883 NULL
++slhc_uncompress_26905 slhc_uncompress 0-3 26905 NULL
++wm8994_reg_write_26919 wm8994_reg_write 2 26919 NULL
++x25_asy_change_mtu_26928 x25_asy_change_mtu 2 26928 NULL
++compat_mtw_from_user_26932 compat_mtw_from_user 0 26932 NULL
++scsi_tgt_copy_sense_26933 scsi_tgt_copy_sense 3 26933 NULL
++pwr_ps_enter_read_26935 pwr_ps_enter_read 3 26935 NULL nohasharray
++sctp_setsockopt_adaptation_layer_26935 sctp_setsockopt_adaptation_layer 3 26935 &pwr_ps_enter_read_26935
++carl9170_handle_mpdu_26940 carl9170_handle_mpdu 3 26940 NULL nohasharray
++create_bm_block_list_26940 create_bm_block_list 0 26940 &carl9170_handle_mpdu_26940
++hecubafb_write_26942 hecubafb_write 3 26942 NULL
++extract_entropy_user_26952 extract_entropy_user 3 26952 NULL nohasharray
++do_trimming_26952 do_trimming 3 26952 &extract_entropy_user_26952
++pcf857x_irq_domain_map_26998 pcf857x_irq_domain_map 2 26998 NULL
++rbd_do_op_27025 rbd_do_op 7-8 27025 NULL
++ufs_alloc_fragments_27059 ufs_alloc_fragments 3-0-2 27059 NULL
++__videobuf_alloc_vb_27062 __videobuf_alloc_vb 1 27062 NULL
++snd_pcm_lib_period_bytes_27071 snd_pcm_lib_period_bytes 0 27071 NULL
++paravirt_read_msr_27077 paravirt_read_msr 0 27077 NULL
++alloc_fdmem_27083 alloc_fdmem 1 27083 NULL
++find_first_bit_27088 find_first_bit 0-2 27088 NULL
++btmrvl_hscmd_write_27089 btmrvl_hscmd_write 3 27089 NULL
++__devcgroup_inode_permission_27108 __devcgroup_inode_permission 0 27108 NULL
++get_kernel_page_27133 get_kernel_page 0 27133 NULL
++drbd_get_capacity_27141 drbd_get_capacity 0 27141 NULL
++pms_capture_27142 pms_capture 4 27142 NULL
++btmrvl_hscfgcmd_write_27143 btmrvl_hscfgcmd_write 3 27143 NULL
++snd_compr_calc_avail_27165 snd_compr_calc_avail 0 27165 NULL
++mc13xxx_irq_handle_27166 mc13xxx_irq_handle 3 27166 NULL
++i2400m_net_rx_27170 i2400m_net_rx 5 27170 NULL
++ieee80211_if_read_rc_rateidx_mask_5ghz_27183 ieee80211_if_read_rc_rateidx_mask_5ghz 3 27183 NULL
++get_unaligned_be32_27184 get_unaligned_be32 0 27184 NULL
++mmc_blk_compat_ioctl_27194 mmc_blk_compat_ioctl 4 27194 NULL
++dbAllocAG_27228 dbAllocAG 0 27228 NULL
++rxrpc_request_key_27235 rxrpc_request_key 3 27235 NULL
++cfpkt_add_trail_27260 cfpkt_add_trail 3 27260 NULL
++__dma_map_cont_27289 __dma_map_cont 5 27289 NULL
++hpi_read_reg_27302 hpi_read_reg 0 27302 NULL
++copy_from_buf_27308 copy_from_buf 4-2 27308 NULL
++ath6kl_wmi_test_cmd_27312 ath6kl_wmi_test_cmd 3 27312 NULL
++rbd_req_sync_exec_27320 rbd_req_sync_exec 8 27320 NULL
++ocfs2_blocks_to_clusters_27327 ocfs2_blocks_to_clusters 0-2 27327 NULL
++snd_pcm_oss_write2_27332 snd_pcm_oss_write2 3-0 27332 NULL
++afs_cell_create_27346 afs_cell_create 2 27346 NULL
++pcbit_stat_27364 pcbit_stat 2 27364 NULL
++init_memory_mapping_27395 init_memory_mapping 0 27395 NULL
++phys_pte_init_27411 phys_pte_init 0-3-2 27411 NULL
++ib_dma_map_sg_27413 ib_dma_map_sg 0 27413 NULL
++acpi_os_get_root_pointer_27416 acpi_os_get_root_pointer 0 27416 NULL nohasharray
++ieee80211_if_read_smps_27416 ieee80211_if_read_smps 3 27416 &acpi_os_get_root_pointer_27416
++pack_sg_list_27425 pack_sg_list 0-2 27425 NULL
++tps65910_reg_set_bits_27468 tps65910_reg_set_bits 2 27468 NULL
++rtsx_write_cfg_seq_27485 rtsx_write_cfg_seq 5-3 27485 NULL
++v4l2_ctrl_new_std_menu_items_27487 v4l2_ctrl_new_std_menu_items 4 27487 NULL
++set_tpl_pfs_27490 set_tpl_pfs 3 27490 NULL
++hcd_buffer_alloc_27495 hcd_buffer_alloc 2 27495 NULL
++qib_create_cq_27497 qib_create_cq 2 27497 NULL
++ip_set_get_h32_27498 ip_set_get_h32 0 27498 NULL
++btrfs_get_64_27499 btrfs_get_64 0 27499 NULL
++__usbnet_write_cmd_27500 __usbnet_write_cmd 7 27500 NULL
++garmin_read_process_27509 garmin_read_process 3 27509 NULL
++ib_copy_to_udata_27525 ib_copy_to_udata 3 27525 NULL
++snd_sonicvibes_getdmaa_27552 snd_sonicvibes_getdmaa 0 27552 NULL
++libipw_alloc_txb_27579 libipw_alloc_txb 1-2-3 27579 NULL
++read_flush_procfs_27642 read_flush_procfs 3 27642 NULL nohasharray
++nl80211_send_connect_result_27642 nl80211_send_connect_result 5-7 27642 &read_flush_procfs_27642 nohasharray
++ocfs2_xattr_ibody_get_27642 ocfs2_xattr_ibody_get 0 27642 &nl80211_send_connect_result_27642
++add_new_gdb_27643 add_new_gdb 3 27643 NULL
++qnx6_readpages_27657 qnx6_readpages 4 27657 NULL
++cdrom_read_cdda_old_27664 cdrom_read_cdda_old 4 27664 NULL
++set_bypass_pwoff_pfs_27669 set_bypass_pwoff_pfs 3 27669 NULL
++qword_get_27670 qword_get 0 27670 NULL
++ocfs2_extend_dir_27695 ocfs2_extend_dir 4 27695 NULL
++__tty_buffer_request_room_27700 __tty_buffer_request_room 2 27700 NULL
++fs_path_add_from_extent_buffer_27702 fs_path_add_from_extent_buffer 4 27702 NULL
++evm_write_key_27715 evm_write_key 3 27715 NULL
++ieee80211_if_fmt_dot11MeshGateAnnouncementProtocol_27722 ieee80211_if_fmt_dot11MeshGateAnnouncementProtocol 3 27722 NULL
++reg_w_buf_27724 reg_w_buf 3 27724 NULL
++xfs_dir2_block_sfsize_27727 xfs_dir2_block_sfsize 0 27727 NULL
++a4t_cs_init_27734 a4t_cs_init 3 27734 NULL
++kcalloc_27770 kcalloc 1-2 27770 NULL
++twl4030_set_gpio_dataout_27792 twl4030_set_gpio_dataout 1 27792 NULL
++DivaSTraceGetMemotyRequirement_27797 DivaSTraceGetMemotyRequirement 0-1 27797 NULL
++ttm_object_file_init_27804 ttm_object_file_init 2 27804 NULL
++mpihelp_mul_27805 mpihelp_mul 5-3 27805 NULL
++fwtty_buffer_rx_27821 fwtty_buffer_rx 3 27821 NULL
++init_header_complete_27833 init_header_complete 0 27833 NULL nohasharray
++sys_listxattr_27833 sys_listxattr 3 27833 &init_header_complete_27833
++read_profile_27859 read_profile 3 27859 NULL
++sky2_pci_read16_27863 sky2_pci_read16 0 27863 NULL
++ieee80211_if_read_dot11MeshHWMProotInterval_27873 ieee80211_if_read_dot11MeshHWMProotInterval 3 27873 NULL
++unix_seqpacket_sendmsg_27893 unix_seqpacket_sendmsg 4 27893 NULL
++gluebi_write_27905 gluebi_write 3 27905 NULL
++mc13783_set_sysclk_27914 mc13783_set_sysclk 5 27914 NULL
++bm_find_next_27929 bm_find_next 2 27929 NULL
++tracing_clock_write_27961 tracing_clock_write 3 27961 NULL
++tipc_media_addr_printf_27971 tipc_media_addr_printf 2 27971 NULL
++mic_rx_pkts_read_27972 mic_rx_pkts_read 3 27972 NULL
++f2fs_bio_alloc_27983 f2fs_bio_alloc 2 27983 NULL
++edt_ft5x06_debugfs_raw_data_read_28002 edt_ft5x06_debugfs_raw_data_read 3 28002 NULL
++snd_rawmidi_write_28008 snd_rawmidi_write 3 28008 NULL
++serial8250_port_size_28019 serial8250_port_size 0 28019 NULL
++sctp_setsockopt_maxburst_28041 sctp_setsockopt_maxburst 3 28041 NULL
++rts51x_xd_rw_28046 rts51x_xd_rw 3-4 28046 NULL
++cx231xx_init_vbi_isoc_28053 cx231xx_init_vbi_isoc 3-2 28053 NULL
++pool_status_28055 pool_status 5 28055 NULL
++lpfc_idiag_mbxacc_read_28061 lpfc_idiag_mbxacc_read 3 28061 NULL
++tx_frag_bad_mblk_num_read_28064 tx_frag_bad_mblk_num_read 3 28064 NULL
++ext4_read_block_bitmap_nowait_28078 ext4_read_block_bitmap_nowait 2 28078 NULL
++GetRecvByte_28082 GetRecvByte 0 28082 NULL
++platform_get_irq_28088 platform_get_irq 0 28088 NULL
++gdth_init_isa_28091 gdth_init_isa 1 28091 NULL
++mmc_test_alloc_mem_28102 mmc_test_alloc_mem 3-2 28102 NULL
++rx_defrag_need_defrag_read_28117 rx_defrag_need_defrag_read 3 28117 NULL
++vgacon_adjust_height_28124 vgacon_adjust_height 2 28124 NULL
++video_read_28148 video_read 3 28148 NULL
++snd_midi_channel_alloc_set_28153 snd_midi_channel_alloc_set 1 28153 NULL
++stats_dot11FCSErrorCount_read_28154 stats_dot11FCSErrorCount_read 3 28154 NULL
++vread_28173 vread 0 28173 NULL
++macvtap_get_user_28185 macvtap_get_user 4 28185 NULL
++d_path_28198 d_path 0 28198 NULL
++nouveau_mxm_create__28200 nouveau_mxm_create_ 4 28200 NULL
++line6_alloc_sysex_buffer_28225 line6_alloc_sysex_buffer 4 28225 NULL nohasharray
++set_dis_disc_pfs_28225 set_dis_disc_pfs 3 28225 &line6_alloc_sysex_buffer_28225
++amd_nb_num_28228 amd_nb_num 0 28228 NULL
++ext4_validate_block_bitmap_28243 ext4_validate_block_bitmap 3 28243 NULL
++usemap_size_28281 usemap_size 0 28281 NULL
++dma_map_sg_attrs_28289 dma_map_sg_attrs 0 28289 NULL
++acpi_register_gsi_xen_28305 acpi_register_gsi_xen 2 28305 NULL nohasharray
++nouveau_compat_ioctl_28305 nouveau_compat_ioctl 2 28305 &acpi_register_gsi_xen_28305
++snd_pcm_oss_read_28317 snd_pcm_oss_read 3 28317 NULL
++bm_entry_write_28338 bm_entry_write 3 28338 NULL
++snapshot_write_28351 snapshot_write 3 28351 NULL
++__next_wq_cpu_28352 __next_wq_cpu 1 28352 NULL
++sys_writev_28384 sys_writev 3 28384 NULL
++dlmfs_file_read_28385 dlmfs_file_read 3 28385 NULL
++tx_frag_cache_miss_read_28394 tx_frag_cache_miss_read 3 28394 NULL
++set_bypass_pfs_28395 set_bypass_pfs 3 28395 NULL
++subdev_ioctl_28417 subdev_ioctl 2 28417 NULL
++mpage_readpages_28436 mpage_readpages 3 28436 NULL
++snd_emu10k1_efx_read_28452 snd_emu10k1_efx_read 2 28452 NULL
++key_mic_failures_read_28457 key_mic_failures_read 3 28457 NULL
++alloc_irq_cpu_rmap_28459 alloc_irq_cpu_rmap 1 28459 NULL
++vmw_du_crtc_cursor_set_28479 vmw_du_crtc_cursor_set 4-5 28479 NULL
++ocfs2_backup_super_blkno_28484 ocfs2_backup_super_blkno 0-2 28484 NULL
++max_response_pages_28492 max_response_pages 0 28492 NULL
++ps_poll_upsd_utilization_read_28519 ps_poll_upsd_utilization_read 3 28519 NULL
++__next_node_28521 __next_node 1 28521 NULL
++i2400m_tx_stats_read_28527 i2400m_tx_stats_read 3 28527 NULL
++early_init_dt_alloc_memory_arch_28528 early_init_dt_alloc_memory_arch 1 28528 NULL
++sel_read_policycap_28544 sel_read_policycap 3 28544 NULL
++run_delalloc_range_28545 run_delalloc_range 3 28545 NULL nohasharray
++mptctl_getiocinfo_28545 mptctl_getiocinfo 2 28545 &run_delalloc_range_28545
++b43legacy_debugfs_write_28556 b43legacy_debugfs_write 3 28556 NULL
++i2o_msg_post_wait_mem_28558 i2o_msg_post_wait_mem 0 28558 NULL
++phys_pud_init_28574 phys_pud_init 0-3-2 28574 NULL
++cfg80211_send_rx_auth_28580 cfg80211_send_rx_auth 3 28580 NULL
++oxygen_read32_28582 oxygen_read32 0 28582 NULL
++ocfs2_read_dir_block_28587 ocfs2_read_dir_block 2 28587 NULL
++wm8350_clear_bits_28596 wm8350_clear_bits 2 28596 NULL
++extract_entropy_28604 extract_entropy 3-5 28604 NULL
++kfifo_unused_28612 kfifo_unused 0 28612 NULL
++mp_override_legacy_irq_28618 mp_override_legacy_irq 4 28618 NULL
++snd_nm256_capture_copy_28622 snd_nm256_capture_copy 5-3 28622 NULL
++_set_range_28627 _set_range 3 28627 NULL
++v4l2_compat_ioctl32_28630 v4l2_compat_ioctl32 3 28630 NULL
++setup_usemap_28636 setup_usemap 3-4 28636 NULL
++blk_queue_resize_tags_28670 blk_queue_resize_tags 2 28670 NULL
++__dev_alloc_skb_28681 __dev_alloc_skb 1 28681 NULL
++nl80211_send_new_peer_candidate_28692 nl80211_send_new_peer_candidate 5 28692 NULL nohasharray
++kvm_mmu_get_page_28692 kvm_mmu_get_page 2 28692 &nl80211_send_new_peer_candidate_28692
++drm_plane_init_28731 drm_plane_init 6 28731 NULL
++spi_execute_28736 spi_execute 5 28736 NULL
++snd_pcm_aio_write_28738 snd_pcm_aio_write 3 28738 NULL nohasharray
++phantom_compat_ioctl_28738 phantom_compat_ioctl 3 28738 &snd_pcm_aio_write_28738
++read_file_btcoex_28743 read_file_btcoex 3 28743 NULL
++cxio_init_resource_fifo_28764 cxio_init_resource_fifo 3 28764 NULL
++ath6kl_get_num_reg_28780 ath6kl_get_num_reg 0 28780 NULL
++dvb_net_sec_callback_28786 dvb_net_sec_callback 2 28786 NULL
++sel_write_member_28800 sel_write_member 3 28800 NULL
++cgroup_file_read_28804 cgroup_file_read 3 28804 NULL
++btrfs_ref_to_path_28809 btrfs_ref_to_path 0-8-3 28809 NULL
++memory_bm_create_28814 memory_bm_create 0 28814 NULL
++iwl_dbgfs_rxon_filter_flags_read_28832 iwl_dbgfs_rxon_filter_flags_read 3 28832 NULL
++vp_request_msix_vectors_28849 vp_request_msix_vectors 2 28849 NULL
++ipv6_renew_options_28867 ipv6_renew_options 5 28867 NULL
++packet_sendmsg_spkt_28885 packet_sendmsg_spkt 4 28885 NULL
++tps6586x_update_28898 tps6586x_update 2 28898 NULL
++da9055_group_write_28904 da9055_group_write 2-3 28904 NULL
++ps_upsd_timeouts_read_28924 ps_upsd_timeouts_read 3 28924 NULL
++ocfs2_frozen_trigger_28929 ocfs2_frozen_trigger 4 28929 NULL
++push_rx_28939 push_rx 3 28939 NULL
++btrfs_trim_block_group_28963 btrfs_trim_block_group 3 28963 NULL
++alloc_sched_domains_28972 alloc_sched_domains 1 28972 NULL
++ext4_mb_add_groupinfo_28988 ext4_mb_add_groupinfo 2 28988 NULL
++bin_uuid_28999 bin_uuid 3 28999 NULL
++xz_dec_init_29029 xz_dec_init 2 29029 NULL
++sys_fcntl64_29031 sys_fcntl64 3 29031 NULL
++ieee80211_if_read_ht_opmode_29044 ieee80211_if_read_ht_opmode 3 29044 NULL
++rxrpc_sendmsg_29049 rxrpc_sendmsg 4 29049 NULL
++iso_packets_buffer_init_29061 iso_packets_buffer_init 3-4 29061 NULL
++lpfc_idiag_extacc_drivr_get_29067 lpfc_idiag_extacc_drivr_get 0-3 29067 NULL
++ieee80211_probereq_get_29069 ieee80211_probereq_get 4-6 29069 NULL
++sctp_getsockopt_assoc_stats_29074 sctp_getsockopt_assoc_stats 2 29074 NULL
++mark_extents_written_29082 mark_extents_written 2 29082 NULL
++isdn_ppp_write_29109 isdn_ppp_write 4 29109 NULL
++snprintf_29125 snprintf 0 29125 NULL
++iov_shorten_29130 iov_shorten 0 29130 NULL
++pm860x_reg_write_29141 pm860x_reg_write 2 29141 NULL
++proc_scsi_write_29142 proc_scsi_write 3 29142 NULL
++reshape_ring_29147 reshape_ring 2 29147 NULL
++drm_property_create_enum_29201 drm_property_create_enum 5 29201 NULL
++wusb_prf_256_29203 wusb_prf_256 7 29203 NULL nohasharray
++alloc_group_attrs_29203 alloc_group_attrs 3 29203 &wusb_prf_256_29203
++comedi_alloc_subdevices_29207 comedi_alloc_subdevices 2 29207 NULL
++do_shrinker_shrink_29208 do_shrinker_shrink 0 29208 NULL
++rds_iw_inc_copy_to_user_29214 rds_iw_inc_copy_to_user 3 29214 NULL
++iwl_dbgfs_temperature_read_29224 iwl_dbgfs_temperature_read 3 29224 NULL
++devm_ioremap_29235 devm_ioremap 2-3 29235 NULL
++irq_domain_add_linear_29236 irq_domain_add_linear 2 29236 NULL
++recover_peb_29238 recover_peb 6-7 29238 NULL
++security_context_to_sid_core_29248 security_context_to_sid_core 2 29248 NULL
++prism2_set_genericelement_29277 prism2_set_genericelement 3 29277 NULL
++bitmap_ord_to_pos_29279 bitmap_ord_to_pos 3 29279 NULL
++sn9c102_read_29305 sn9c102_read 3 29305 NULL
++fd_do_writev_29329 fd_do_writev 3 29329 NULL
++lo_compat_ioctl_29336 lo_compat_ioctl 4 29336 NULL
++tun_put_user_29337 tun_put_user 5 29337 NULL
++__alloc_ei_netdev_29338 __alloc_ei_netdev 1 29338 NULL
++alloc_and_copy_ftrace_hash_29368 alloc_and_copy_ftrace_hash 1 29368 NULL
++mwifiex_cfg80211_mgmt_tx_29387 mwifiex_cfg80211_mgmt_tx 7 29387 NULL
++pca953x_irq_setup_29407 pca953x_irq_setup 3 29407 NULL
++mempool_create_29437 mempool_create 1 29437 NULL
++crypto_ahash_alignmask_29445 crypto_ahash_alignmask 0 29445 NULL
++apei_exec_ctx_get_output_29457 apei_exec_ctx_get_output 0 29457 NULL
++validate_scan_freqs_29462 validate_scan_freqs 0 29462 NULL
++do_register_entry_29478 do_register_entry 4 29478 NULL
++simple_strtoul_29480 simple_strtoul 0 29480 NULL
++btmrvl_pscmd_write_29504 btmrvl_pscmd_write 3 29504 NULL
++btrfs_file_extent_disk_bytenr_29505 btrfs_file_extent_disk_bytenr 0 29505 NULL
++atk_debugfs_ggrp_read_29522 atk_debugfs_ggrp_read 3 29522 NULL
++ftrace_write_29551 ftrace_write 3 29551 NULL
++idetape_queue_rw_tail_29562 idetape_queue_rw_tail 3 29562 NULL
++leaf_dealloc_29566 leaf_dealloc 3 29566 NULL nohasharray
++alloc_empty_pages_29566 alloc_empty_pages 2 29566 &leaf_dealloc_29566
++lbs_lowsnr_read_29571 lbs_lowsnr_read 3 29571 NULL
++pvr2_hdw_report_unlocked_29589 pvr2_hdw_report_unlocked 4 29589 NULL
++wm8903_gpio_set_29597 wm8903_gpio_set 2 29597 NULL
++slots_per_page_29601 slots_per_page 0 29601 NULL
++qla4_82xx_pci_set_window_29605 qla4_82xx_pci_set_window 0-2 29605 NULL
++nla_get_u16_29624 nla_get_u16 0 29624 NULL
++tx_frag_cache_hit_read_29639 tx_frag_cache_hit_read 3 29639 NULL
++lowmem_page_address_29649 lowmem_page_address 0 29649 NULL
++sctp_make_abort_user_29654 sctp_make_abort_user 3 29654 NULL
++br_send_bpdu_29669 br_send_bpdu 3 29669 NULL
++sisusb_write_mem_bulk_29678 sisusb_write_mem_bulk 4 29678 NULL
++sd_alloc_ctl_entry_29708 sd_alloc_ctl_entry 1 29708 NULL nohasharray
++posix_acl_from_xattr_29708 posix_acl_from_xattr 3 29708 &sd_alloc_ctl_entry_29708
++probes_write_29711 probes_write 3 29711 NULL
++emi62_writememory_29731 emi62_writememory 4 29731 NULL
++read_cis_cache_29735 read_cis_cache 4 29735 NULL
++da9055_gpio_direction_input_29742 da9055_gpio_direction_input 2 29742 NULL
++cxio_hal_init_resource_29771 cxio_hal_init_resource 2-6-7 29771 NULL nohasharray
++ip_vs_conn_fill_param_sync_29771 ip_vs_conn_fill_param_sync 6 29771 &cxio_hal_init_resource_29771
++dbAlloc_29794 dbAlloc 0 29794 NULL
++ext4_trim_all_free_29806 ext4_trim_all_free 4-3-2 29806 NULL
++arizona_gpio_set_29823 arizona_gpio_set 2 29823 NULL
++tcp_sendpage_29829 tcp_sendpage 4 29829 NULL
++scan_bitmap_block_29840 scan_bitmap_block 4 29840 NULL
++__probe_kernel_write_29842 __probe_kernel_write 3 29842 NULL
++kvm_read_hva_atomic_29848 kvm_read_hva_atomic 3 29848 NULL
++ipv6_setsockopt_29871 ipv6_setsockopt 5 29871 NULL
++scsi_end_request_29876 scsi_end_request 3 29876 NULL
++crypto_aead_alignmask_29885 crypto_aead_alignmask 0 29885 NULL
++nfc_targets_found_29886 nfc_targets_found 3 29886 NULL
++tps6586x_write_29894 tps6586x_write 2 29894 NULL
++check586_29914 check586 2 29914 NULL
++ext4_xattr_set_acl_29930 ext4_xattr_set_acl 4 29930 NULL
++__btrfs_getxattr_29947 __btrfs_getxattr 0 29947 NULL
++irias_add_octseq_attrib_29983 irias_add_octseq_attrib 4 29983 NULL nohasharray
++diva_os_get_context_size_29983 diva_os_get_context_size 0 29983 &irias_add_octseq_attrib_29983
++arch_setup_dmar_msi_29992 arch_setup_dmar_msi 1 29992 NULL
++utf32_to_utf8_30028 utf32_to_utf8 0 30028 NULL
++alloc_netdev_mqs_30030 alloc_netdev_mqs 1 30030 NULL
++scsi_vpd_inquiry_30040 scsi_vpd_inquiry 4 30040 NULL
++drp_wmove_30043 drp_wmove 4 30043 NULL
++cxgbi_ddp_reserve_30091 cxgbi_ddp_reserve 4 30091 NULL
++snd_midi_channel_init_set_30092 snd_midi_channel_init_set 1 30092 NULL
++tg3_run_loopback_30093 tg3_run_loopback 2 30093 NULL
++rx_filter_data_filter_read_30098 rx_filter_data_filter_read 3 30098 NULL
++skb_pagelen_30113 skb_pagelen 0 30113 NULL
++spi_async_locked_30117 spi_async_locked 0 30117 NULL
++calgary_unmap_page_30130 calgary_unmap_page 2-3 30130 NULL
++_osd_req_sizeof_alist_header_30134 _osd_req_sizeof_alist_header 0 30134 NULL
++u_memcpya_30139 u_memcpya 2-3 30139 NULL
++cx25821_video_ioctl_30188 cx25821_video_ioctl 2 30188 NULL
++mempool_create_page_pool_30189 mempool_create_page_pool 1 30189 NULL
++drm_property_create_bitmask_30195 drm_property_create_bitmask 5 30195 NULL
++snd_pcm_playback_forward_30201 snd_pcm_playback_forward 0-2 30201 NULL
++usblp_ioctl_30203 usblp_ioctl 2 30203 NULL
++nfs_idmap_request_key_30208 nfs_idmap_request_key 3 30208 NULL
++read_4k_modal_eeprom_30212 read_4k_modal_eeprom 3 30212 NULL
++snd_ac97_pcm_assign_30218 snd_ac97_pcm_assign 2 30218 NULL
++isr_pci_pm_read_30271 isr_pci_pm_read 3 30271 NULL
++compat_readv_30273 compat_readv 3 30273 NULL
++lapic_register_intr_30279 lapic_register_intr 1 30279 NULL
++__be64_to_cpup_30283 __be64_to_cpup 0 30283 NULL
++skcipher_sendmsg_30290 skcipher_sendmsg 4 30290 NULL
++pipeline_sec_frag_swi_read_30294 pipeline_sec_frag_swi_read 3 30294 NULL
++tcp_sendmsg_30296 tcp_sendmsg 4 30296 NULL
++ext4_acl_from_disk_30320 ext4_acl_from_disk 2 30320 NULL
++generic_ptrace_pokedata_30338 generic_ptrace_pokedata 2 30338 NULL
++resource_from_user_30341 resource_from_user 3 30341 NULL
++__vmalloc_node_flags_30352 __vmalloc_node_flags 1 30352 NULL
++sys_get_mempolicy_30379 sys_get_mempolicy 3 30379 NULL
++mangle_sdp_packet_30381 mangle_sdp_packet 10 30381 NULL
++c4iw_init_resource_30393 c4iw_init_resource 2-3 30393 NULL
++get_kernel_pages_30397 get_kernel_pages 0 30397 NULL
++_drbd_bm_find_next_zero_30415 _drbd_bm_find_next_zero 2 30415 NULL
++vb2_fop_write_30420 vb2_fop_write 3 30420 NULL
++tx_tx_template_prepared_read_30424 tx_tx_template_prepared_read 3 30424 NULL
++enable_write_30456 enable_write 3 30456 NULL
++tx_tx_template_programmed_read_30461 tx_tx_template_programmed_read 3 30461 NULL
++urandom_read_30462 urandom_read 3 30462 NULL
++zoran_ioctl_30465 zoran_ioctl 2 30465 NULL
++write_head_30481 write_head 4 30481 NULL
++adu_write_30487 adu_write 3 30487 NULL
++dwc3_testmode_write_30516 dwc3_testmode_write 3 30516 NULL
++debug_debug2_read_30526 debug_debug2_read 3 30526 NULL
++batadv_dat_snoop_incoming_arp_request_30548 batadv_dat_snoop_incoming_arp_request 3 30548 NULL
++disk_expand_part_tbl_30561 disk_expand_part_tbl 2 30561 NULL
++set_le_30581 set_le 4 30581 NULL
++blk_init_tags_30592 blk_init_tags 1 30592 NULL
++i2c_hid_get_report_length_30598 i2c_hid_get_report_length 0 30598 NULL
++sgl_map_user_pages_30610 sgl_map_user_pages 2 30610 NULL
++macvtap_sendmsg_30629 macvtap_sendmsg 4 30629 NULL
++compat_raw_setsockopt_30634 compat_raw_setsockopt 5 30634 NULL
++nfsd_nrpools_30651 nfsd_nrpools 0 30651 NULL
++agp_remap_30665 agp_remap 2 30665 NULL
++jffs2_flash_read_30667 jffs2_flash_read 0 30667 NULL
++dccp_setsockopt_ccid_30701 dccp_setsockopt_ccid 4 30701 NULL
++lbs_debugfs_read_30721 lbs_debugfs_read 3 30721 NULL
++snd_nm256_playback_silence_30727 snd_nm256_playback_silence 4-3 30727 NULL
++snapshot_status_30744 snapshot_status 5 30744 NULL
++max77693_update_reg_30747 max77693_update_reg 2 30747 NULL
++tcf_csum_ipv4_udp_30777 tcf_csum_ipv4_udp 4 30777 NULL
++wm8350_read_auxadc_30780 wm8350_read_auxadc 2 30780 NULL
++smk_read_doi_30813 smk_read_doi 3 30813 NULL
++get_kobj_path_length_30831 get_kobj_path_length 0 30831 NULL
++create_subvol_30836 create_subvol 4 30836 NULL
++sctp_setsockopt_auth_chunk_30843 sctp_setsockopt_auth_chunk 3 30843 NULL
++cfg80211_rx_mgmt_30844 cfg80211_rx_mgmt 5 30844 NULL nohasharray
++twl6040_set_bits_30844 twl6040_set_bits 2 30844 &cfg80211_rx_mgmt_30844
++hda_hwdep_ioctl_compat_30847 hda_hwdep_ioctl_compat 4 30847 NULL
++ieee80211_if_fmt_dropped_frames_no_route_30884 ieee80211_if_fmt_dropped_frames_no_route 3 30884 NULL
++f1x_match_to_this_node_30888 f1x_match_to_this_node 3 30888 NULL
++regmap_update_bits_check_30894 regmap_update_bits_check 2 30894 NULL
++iommu_map_mmio_space_30919 iommu_map_mmio_space 1 30919 NULL
++sctp_setsockopt_rtoinfo_30941 sctp_setsockopt_rtoinfo 3 30941 NULL
++tty_insert_flip_string_flags_30969 tty_insert_flip_string_flags 4 30969 NULL
++huge_page_mask_30981 huge_page_mask 0 30981 NULL
++i2400mu_rx_size_grow_30989 i2400mu_rx_size_grow 0 30989 NULL
++lbs_host_sleep_read_31013 lbs_host_sleep_read 3 31013 NULL
++phys_pmd_init_31024 phys_pmd_init 0-3-2 31024 NULL
++compat_sys_mq_timedsend_31060 compat_sys_mq_timedsend 3 31060 NULL
++lbs_failcount_read_31063 lbs_failcount_read 3 31063 NULL
++find_next_bit_le_31064 find_next_bit_le 0-2-3 31064 NULL
++sys_mincore_31079 sys_mincore 1 31079 NULL
++ttm_bo_ioremap_31082 ttm_bo_ioremap 2-3 31082 NULL
++sctp_setsockopt_context_31091 sctp_setsockopt_context 3 31091 NULL
++compat_sys_get_mempolicy_31109 compat_sys_get_mempolicy 3 31109 NULL
++depth_read_31112 depth_read 3 31112 NULL
++ssb_read16_31139 ssb_read16 0 31139 NULL
++kimage_normal_alloc_31140 kimage_normal_alloc 3 31140 NULL
++size_inside_page_31141 size_inside_page 0 31141 NULL
++w9966_v4l_read_31148 w9966_v4l_read 3 31148 NULL
++ch_do_scsi_31171 ch_do_scsi 4 31171 NULL
++acpi_ex_system_memory_space_handler_31192 acpi_ex_system_memory_space_handler 2 31192 NULL
++r592_read_fifo_pio_31198 r592_read_fifo_pio 3 31198 NULL
++mtdchar_readoob_31200 mtdchar_readoob 4 31200 NULL
++__btrfs_free_reserved_extent_31207 __btrfs_free_reserved_extent 2 31207 NULL
++cpumask_weight_31215 cpumask_weight 0 31215 NULL
++__read_reg_31216 __read_reg 0 31216 NULL
++atm_get_addr_31221 atm_get_addr 3 31221 NULL
++cyy_readb_31240 cyy_readb 0 31240 NULL
++_create_sg_bios_31244 _create_sg_bios 4 31244 NULL
++ieee80211_if_read_last_beacon_31257 ieee80211_if_read_last_beacon 3 31257 NULL
++ceph_copy_page_vector_to_user_31270 ceph_copy_page_vector_to_user 3-4 31270 NULL
++sctp_tsnmap_find_gap_ack_31272 sctp_tsnmap_find_gap_ack 3-2 31272 NULL
++uvc_simplify_fraction_31303 uvc_simplify_fraction 3 31303 NULL
++sisusbcon_scroll_31315 sisusbcon_scroll 5-2-3 31315 NULL
++futex_uaddr_31316 futex_uaddr 2 31316 NULL
++command_file_write_31318 command_file_write 3 31318 NULL
++__cpu_to_node_31345 __cpu_to_node 0 31345 NULL
++xprt_rdma_allocate_31372 xprt_rdma_allocate 2 31372 NULL
++vb2_vmalloc_get_userptr_31374 vb2_vmalloc_get_userptr 3 31374 NULL
++trace_parser_get_init_31379 trace_parser_get_init 2 31379 NULL
++inb_31388 inb 0 31388 NULL
++key_ifindex_read_31411 key_ifindex_read 3 31411 NULL
++mcs7830_set_reg_31413 mcs7830_set_reg 3 31413 NULL
++TSS_checkhmac1_31429 TSS_checkhmac1 5 31429 NULL
++snd_aw2_saa7146_get_hw_ptr_capture_31431 snd_aw2_saa7146_get_hw_ptr_capture 0 31431 NULL
++acpi_sci_ioapic_setup_31445 acpi_sci_ioapic_setup 4 31445 NULL
++opera1_xilinx_rw_31453 opera1_xilinx_rw 5 31453 NULL
++_regmap_update_bits_31456 _regmap_update_bits 2 31456 NULL
++input_get_new_minor_31464 input_get_new_minor 1 31464 NULL
++do_fcntl_31468 do_fcntl 3 31468 NULL
++xfs_btree_get_numrecs_31477 xfs_btree_get_numrecs 0 31477 NULL
++alg_setkey_31485 alg_setkey 3 31485 NULL
++rds_message_map_pages_31487 rds_message_map_pages 2 31487 NULL
++qsfp_2_read_31491 qsfp_2_read 3 31491 NULL
++__alloc_bootmem_31498 __alloc_bootmem 1 31498 NULL
++hidraw_write_31536 hidraw_write 3 31536 NULL
++mtd_div_by_eb_31543 mtd_div_by_eb 0-1 31543 NULL
++usbvision_read_31555 usbvision_read 3 31555 NULL
++normalize_31566 normalize 0-1-2 31566 NULL
++tx_frag_tkip_called_read_31575 tx_frag_tkip_called_read 3 31575 NULL
++get_max_inline_xattr_value_size_31578 get_max_inline_xattr_value_size 0 31578 NULL
++osst_write_31581 osst_write 3 31581 NULL
++snd_compr_get_avail_31584 snd_compr_get_avail 0 31584 NULL
++iwl_dbgfs_ucode_tx_stats_read_31611 iwl_dbgfs_ucode_tx_stats_read 3 31611 NULL
++mtd_get_user_prot_info_31616 mtd_get_user_prot_info 0 31616 NULL
++arvo_sysfs_read_31617 arvo_sysfs_read 6 31617 NULL
++videobuf_read_one_31637 videobuf_read_one 3 31637 NULL
++pod_alloc_sysex_buffer_31651 pod_alloc_sysex_buffer 3 31651 NULL
++xfer_secondary_pool_31661 xfer_secondary_pool 2 31661 NULL
++__lgread_31668 __lgread 4 31668 NULL
++symbol_string_31670 symbol_string 0 31670 NULL
++_usb_writeN_sync_31682 _usb_writeN_sync 4 31682 NULL
++forced_ps_read_31685 forced_ps_read 3 31685 NULL
++reiserfs_in_journal_31689 reiserfs_in_journal 3 31689 NULL
++audit_log_n_string_31705 audit_log_n_string 3 31705 NULL
++ath6kl_wmi_send_probe_response_cmd_31728 ath6kl_wmi_send_probe_response_cmd 6 31728 NULL
++utf16s_to_utf8s_31735 utf16s_to_utf8s 0 31735 NULL
++shmem_pwrite_slow_31741 shmem_pwrite_slow 3 31741 NULL
++NCR_700_change_queue_depth_31742 NCR_700_change_queue_depth 2 31742 NULL nohasharray
++input_abs_get_max_31742 input_abs_get_max 0 31742 &NCR_700_change_queue_depth_31742
++bcm_char_read_31750 bcm_char_read 3 31750 NULL
++lm3533_led_get_pattern_reg_31752 lm3533_led_get_pattern_reg 0-2 31752 NULL
++snd_seq_device_new_31753 snd_seq_device_new 4 31753 NULL
++usblp_cache_device_id_string_31790 usblp_cache_device_id_string 0 31790 NULL
++get_count_order_31800 get_count_order 0 31800 NULL
++ecryptfs_send_message_locked_31801 ecryptfs_send_message_locked 2 31801 NULL
++isr_rx_procs_read_31804 isr_rx_procs_read 3 31804 NULL
++strnlen_user_31815 strnlen_user 0-2 31815 NULL
++sta_last_signal_read_31818 sta_last_signal_read 3 31818 NULL
++drm_mode_crtc_set_gamma_size_31881 drm_mode_crtc_set_gamma_size 2 31881 NULL
++ddb_output_write_31902 ddb_output_write 3 31902 NULL
++xattr_permission_31907 xattr_permission 0 31907 NULL
++new_dir_31919 new_dir 3 31919 NULL
++kmem_alloc_31920 kmem_alloc 1 31920 NULL
++guestwidth_to_adjustwidth_31937 guestwidth_to_adjustwidth 0-1 31937 NULL
++iov_iter_copy_from_user_31942 iov_iter_copy_from_user 4 31942 NULL
++vb2_write_31948 vb2_write 3 31948 NULL
++pvr2_ctrl_get_valname_31951 pvr2_ctrl_get_valname 4 31951 NULL
++regcache_rbtree_sync_31964 regcache_rbtree_sync 2 31964 NULL
++copy_from_user_toio_31966 copy_from_user_toio 3 31966 NULL
++mtd_add_partition_31971 mtd_add_partition 3 31971 NULL
++find_next_zero_bit_31990 find_next_zero_bit 0-2-3 31990 NULL
++tps6586x_irq_map_32002 tps6586x_irq_map 2 32002 NULL
++calc_hmac_32010 calc_hmac 3 32010 NULL
++aead_len_32021 aead_len 0 32021 NULL
++ocfs2_remove_extent_32032 ocfs2_remove_extent 4-3 32032 NULL
++posix_acl_set_32037 posix_acl_set 4 32037 NULL
++vmw_cursor_update_dmabuf_32045 vmw_cursor_update_dmabuf 3-4 32045 NULL
++sys_sched_setaffinity_32046 sys_sched_setaffinity 2 32046 NULL
++proc_scsi_devinfo_write_32064 proc_scsi_devinfo_write 3 32064 NULL
++cfg80211_send_unprot_deauth_32080 cfg80211_send_unprot_deauth 3 32080 NULL
++bio_alloc_32095 bio_alloc 2 32095 NULL
++alloc_pwms_32100 alloc_pwms 1-2 32100 NULL
++ath6kl_fwlog_read_32101 ath6kl_fwlog_read 3 32101 NULL
++disk_status_32120 disk_status 4 32120 NULL
++rc5t583_write_32124 rc5t583_write 2 32124 NULL
++venus_link_32165 venus_link 5 32165 NULL
++drbd_new_dev_size_32171 drbd_new_dev_size 0 32171 NULL
++do_writepages_32173 do_writepages 0 32173 NULL nohasharray
++ntfs_rl_realloc_nofail_32173 ntfs_rl_realloc_nofail 3 32173 &do_writepages_32173
++load_header_32183 load_header 0 32183 NULL
++ubi_wl_scrub_peb_32196 ubi_wl_scrub_peb 0 32196 NULL
++wusb_ccm_mac_32199 wusb_ccm_mac 7 32199 NULL
++riva_get_cmap_len_32218 riva_get_cmap_len 0 32218 NULL
++lm3533_write_32236 lm3533_write 2 32236 NULL
++lbs_lowrssi_read_32242 lbs_lowrssi_read 3 32242 NULL
++ocfs2_xattr_find_entry_32260 ocfs2_xattr_find_entry 0 32260 NULL
++fb_compat_ioctl_32265 fb_compat_ioctl 3 32265 NULL
++vmalloc_user_32308 vmalloc_user 1 32308 NULL
++hex_string_32310 hex_string 0 32310 NULL
++flakey_status_32315 flakey_status 5 32315 NULL
++nouveau_bar_create__32332 nouveau_bar_create_ 4 32332 NULL
++nl80211_send_mlme_event_32337 nl80211_send_mlme_event 4 32337 NULL
++t4_alloc_mem_32342 t4_alloc_mem 1 32342 NULL
++dispatch_ioctl_32357 dispatch_ioctl 2 32357 NULL
++f1x_translate_sysaddr_to_cs_32359 f1x_translate_sysaddr_to_cs 2 32359 NULL
++sel_read_initcon_32362 sel_read_initcon 3 32362 NULL
++_drbd_bm_find_next_32372 _drbd_bm_find_next 2 32372 NULL
++variax_set_raw2_32374 variax_set_raw2 4 32374 NULL
++usbtmc_read_32377 usbtmc_read 3 32377 NULL
++qla4_82xx_pci_mem_write_2M_32398 qla4_82xx_pci_mem_write_2M 2 32398 NULL
++xfs_iext_add_indirect_multi_32400 xfs_iext_add_indirect_multi 3 32400 NULL
++log_text_32428 log_text 0 32428 NULL
++regmap_irq_map_32429 regmap_irq_map 2 32429 NULL
++hid_input_report_32458 hid_input_report 4 32458 NULL
++snd_pcm_sync_ptr_32461 snd_pcm_sync_ptr 0 32461 NULL
++ieee80211_fill_mesh_addresses_32465 ieee80211_fill_mesh_addresses 0 32465 NULL
++ide_driver_proc_write_32493 ide_driver_proc_write 3 32493 NULL
++ctrl_std_val_to_sym_32516 ctrl_std_val_to_sym 5 32516 NULL
++disconnect_32521 disconnect 4 32521 NULL
++qsfp_read_32522 qsfp_read 0-4-2 32522 NULL
++ilo_read_32531 ilo_read 3 32531 NULL
++ieee80211_if_read_estab_plinks_32533 ieee80211_if_read_estab_plinks 3 32533 NULL nohasharray
++crypt_status_32533 crypt_status 5 32533 &ieee80211_if_read_estab_plinks_32533
++format_devstat_counter_32550 format_devstat_counter 3 32550 NULL
++__first_node_32558 __first_node 0 32558 NULL
++aes_encrypt_fail_read_32562 aes_encrypt_fail_read 3 32562 NULL
++pnp_mem_len_32584 pnp_mem_len 0 32584 NULL
++mem_swapout_entry_32586 mem_swapout_entry 3 32586 NULL
++pipeline_tcp_tx_stat_fifo_int_read_32589 pipeline_tcp_tx_stat_fifo_int_read 3 32589 NULL
++read_file_beacon_32595 read_file_beacon 3 32595 NULL
++ieee80211_if_read_dropped_frames_congestion_32603 ieee80211_if_read_dropped_frames_congestion 3 32603 NULL
++sys_set_mempolicy_32608 sys_set_mempolicy 3 32608 NULL
++cfg80211_roamed_32632 cfg80211_roamed 5-7 32632 NULL
++ieee80211_hdrlen_32637 ieee80211_hdrlen 0 32637 NULL
++ite_decode_bytes_32642 ite_decode_bytes 3 32642 NULL
++kvmalloc_32646 kvmalloc 1 32646 NULL
++ib_sg_dma_len_32649 ib_sg_dma_len 0 32649 NULL
++generic_readlink_32654 generic_readlink 3 32654 NULL
++move_addr_to_kernel_32673 move_addr_to_kernel 2 32673 NULL
++tps80031_set_bits_32686 tps80031_set_bits 3 32686 NULL
++jfs_readpages_32702 jfs_readpages 4 32702 NULL
++snd_hwdep_ioctl_compat_32736 snd_hwdep_ioctl_compat 3 32736 NULL
++megasas_change_queue_depth_32747 megasas_change_queue_depth 2 32747 NULL
++stats_read_ul_32751 stats_read_ul 3 32751 NULL
++tty_compat_ioctl_32761 tty_compat_ioctl 3 32761 NULL
++sctp_tsnmap_grow_32784 sctp_tsnmap_grow 2 32784 NULL
++firmwareUpload_32794 firmwareUpload 3 32794 NULL
++rproc_name_read_32805 rproc_name_read 3 32805 NULL
++vga_rseq_32848 vga_rseq 0 32848 NULL
++new_tape_buffer_32866 new_tape_buffer 2 32866 NULL
++io_apic_setup_irq_pin_32868 io_apic_setup_irq_pin 1 32868 NULL
++ath6kl_usb_submit_ctrl_in_32880 ath6kl_usb_submit_ctrl_in 6 32880 NULL nohasharray
++cifs_writedata_alloc_32880 cifs_writedata_alloc 1 32880 &ath6kl_usb_submit_ctrl_in_32880
++ath6kl_usb_post_recv_transfers_32892 ath6kl_usb_post_recv_transfers 2 32892 NULL
++il_dbgfs_tx_stats_read_32913 il_dbgfs_tx_stats_read 3 32913 NULL
++zlib_inflate_workspacesize_32927 zlib_inflate_workspacesize 0 32927 NULL
++rmap_recycle_32938 rmap_recycle 3 32938 NULL
++irq_reserve_irqs_32946 irq_reserve_irqs 1-2 32946 NULL
++ext4_valid_block_bitmap_32958 ext4_valid_block_bitmap 3 32958 NULL
++arch_ptrace_32981 arch_ptrace 3 32981 NULL
++compat_filldir_32999 compat_filldir 3 32999 NULL
++ext3_alloc_blocks_33007 ext3_alloc_blocks 3 33007 NULL
++snd_pcm_prepare_33036 snd_pcm_prepare 0 33036 NULL
++pipeline_dec_packet_in_fifo_full_read_33052 pipeline_dec_packet_in_fifo_full_read 3 33052 NULL
++ebt_compat_match_offset_33053 ebt_compat_match_offset 0-2 33053 NULL
++bitmap_resize_33054 bitmap_resize 2 33054 NULL
++stats_dot11RTSSuccessCount_read_33065 stats_dot11RTSSuccessCount_read 3 33065 NULL
++sel_read_checkreqprot_33068 sel_read_checkreqprot 3 33068 NULL
++acl_permission_check_33083 acl_permission_check 0 33083 NULL
++ieee80211_fragment_33112 ieee80211_fragment 4 33112 NULL
++write_node_33121 write_node 4 33121 NULL
++calc_patch_size_33124 calc_patch_size 0 33124 NULL
++fb_sys_write_33130 fb_sys_write 3 33130 NULL
++debug_debug6_read_33168 debug_debug6_read 3 33168 NULL
++dataflash_read_fact_otp_33204 dataflash_read_fact_otp 2-3 33204 NULL
++pp_read_33210 pp_read 3 33210 NULL
++xfs_file_aio_write_33234 xfs_file_aio_write 4 33234 NULL
++snd_pcm_plug_client_size_33267 snd_pcm_plug_client_size 0-2 33267 NULL
++sched_find_first_bit_33270 sched_find_first_bit 0 33270 NULL
++cachefiles_cook_key_33274 cachefiles_cook_key 2 33274 NULL
++mei_compat_ioctl_33275 mei_compat_ioctl 3 33275 NULL
++pcf50633_irq_mask_33280 pcf50633_irq_mask 2 33280 NULL
++mcs7830_get_reg_33308 mcs7830_get_reg 3 33308 NULL
++ath6kl_usb_ctrl_msg_exchange_33327 ath6kl_usb_ctrl_msg_exchange 4 33327 NULL
++gsm_mux_rx_netchar_33336 gsm_mux_rx_netchar 3 33336 NULL
++joydev_ioctl_33343 joydev_ioctl 2 33343 NULL
++create_xattr_datum_33356 create_xattr_datum 5 33356 NULL nohasharray
++irq_pkt_threshold_read_33356 irq_pkt_threshold_read 3 33356 &create_xattr_datum_33356
++read_file_regidx_33370 read_file_regidx 3 33370 NULL
++ceph_osdc_writepages_33375 ceph_osdc_writepages 5 33375 NULL
++ocfs2_quota_read_33382 ocfs2_quota_read 5 33382 NULL
++ieee80211_if_read_dropped_frames_no_route_33383 ieee80211_if_read_dropped_frames_no_route 3 33383 NULL
++scsi_varlen_cdb_length_33385 scsi_varlen_cdb_length 0 33385 NULL
++ocfs2_allocate_unwritten_extents_33394 ocfs2_allocate_unwritten_extents 2-3 33394 NULL
++ext4_meta_bg_first_block_no_33408 ext4_meta_bg_first_block_no 2 33408 NULL nohasharray
++snd_pcm_capture_ioctl1_33408 snd_pcm_capture_ioctl1 0 33408 &ext4_meta_bg_first_block_no_33408
++ufs_getfrag_block_33409 ufs_getfrag_block 2 33409 NULL
++ubh_scanc_33436 ubh_scanc 0-4-3 33436 NULL
++ovs_vport_alloc_33475 ovs_vport_alloc 1 33475 NULL
++create_entry_33479 create_entry 2 33479 NULL
++ip_setsockopt_33487 ip_setsockopt 5 33487 NULL nohasharray
++elf_map_33487 elf_map 0-2 33487 &ip_setsockopt_33487
++netxen_nic_hw_write_wx_128M_33488 netxen_nic_hw_write_wx_128M 2 33488 NULL
++ol_dqblk_chunk_off_33489 ol_dqblk_chunk_off 2 33489 NULL
++res_counter_read_33499 res_counter_read 4 33499 NULL
++fb_read_33506 fb_read 3 33506 NULL
++musb_test_mode_write_33518 musb_test_mode_write 3 33518 NULL
++ahash_setkey_unaligned_33521 ahash_setkey_unaligned 3 33521 NULL
++nes_alloc_fast_reg_page_list_33523 nes_alloc_fast_reg_page_list 2 33523 NULL
++aggr_size_rx_size_read_33526 aggr_size_rx_size_read 3 33526 NULL
++acpi_gsi_to_irq_33533 acpi_gsi_to_irq 1 33533 NULL
++tomoyo_read_self_33539 tomoyo_read_self 3 33539 NULL
++dup_array_33551 dup_array 3 33551 NULL
++solo_enc_read_33553 solo_enc_read 3 33553 NULL
++count_subheaders_33591 count_subheaders 0 33591 NULL
++scsi_execute_33596 scsi_execute 5 33596 NULL
++comedi_buf_write_n_allocated_33604 comedi_buf_write_n_allocated 0 33604 NULL
++xt_compat_target_offset_33608 xt_compat_target_offset 0 33608 NULL nohasharray
++ip6_find_1stfragopt_33608 ip6_find_1stfragopt 0 33608 &xt_compat_target_offset_33608
++il_dbgfs_qos_read_33615 il_dbgfs_qos_read 3 33615 NULL
++irq_blk_threshold_read_33666 irq_blk_threshold_read 3 33666 NULL
++inw_p_33668 inw_p 0 33668 NULL
++arp_hdr_len_33671 arp_hdr_len 0 33671 NULL
++i2c_hid_alloc_buffers_33673 i2c_hid_alloc_buffers 2 33673 NULL
++ath6kl_wmi_startscan_cmd_33674 ath6kl_wmi_startscan_cmd 8 33674 NULL
++rbd_alloc_coll_33678 rbd_alloc_coll 1 33678 NULL
++nv50_disp_dmac_create__33696 nv50_disp_dmac_create_ 6 33696 NULL
++compat_insnlist_33706 compat_insnlist 2 33706 NULL
++sys_keyctl_33708 sys_keyctl 4 33708 NULL nohasharray
++netlink_sendmsg_33708 netlink_sendmsg 4 33708 &sys_keyctl_33708
++tipc_link_stats_33716 tipc_link_stats 3 33716 NULL
++pvr2_stream_buffer_count_33719 pvr2_stream_buffer_count 2 33719 NULL
++ocfs2_extent_map_get_blocks_33720 ocfs2_extent_map_get_blocks 2 33720 NULL
++__mutex_lock_interruptible_slowpath_33735 __mutex_lock_interruptible_slowpath 0 33735 NULL
++Read_hfc_33755 Read_hfc 0 33755 NULL
++vifs_state_read_33762 vifs_state_read 3 33762 NULL
++hashtab_create_33769 hashtab_create 3 33769 NULL
++midibuf_message_length_33770 midibuf_message_length 0 33770 NULL
++if_sdio_read_rx_len_33800 if_sdio_read_rx_len 0 33800 NULL
++find_next_offset_33804 find_next_offset 3 33804 NULL
++sky2_rx_pad_33819 sky2_rx_pad 0 33819 NULL
++sep_create_msgarea_context_33829 sep_create_msgarea_context 4 33829 NULL
++scrub_setup_recheck_block_33831 scrub_setup_recheck_block 5-4 33831 NULL
++udplite_manip_pkt_33832 udplite_manip_pkt 4 33832 NULL
++snd_pcm_action_nonatomic_33844 snd_pcm_action_nonatomic 0 33844 NULL
++usb_dump_endpoint_descriptor_33849 usb_dump_endpoint_descriptor 0 33849 NULL
++calgary_alloc_coherent_33851 calgary_alloc_coherent 2 33851 NULL
++oz_cdev_write_33852 oz_cdev_write 3 33852 NULL
++cap_mmap_addr_33853 cap_mmap_addr 0 33853 NULL
++config_proc_write_33878 config_proc_write 3 33878 NULL
++get_user_pages_33908 get_user_pages 0 33908 NULL
++queue_logical_block_size_33918 queue_logical_block_size 0 33918 NULL
++sel_read_avc_cache_threshold_33942 sel_read_avc_cache_threshold 3 33942 NULL
++lpfc_idiag_ctlacc_read_33943 lpfc_idiag_ctlacc_read 3 33943 NULL
++read_file_tgt_rx_stats_33944 read_file_tgt_rx_stats 3 33944 NULL
++vga_switcheroo_debugfs_write_33984 vga_switcheroo_debugfs_write 3 33984 NULL
++__ntfs_malloc_34022 __ntfs_malloc 1 34022 NULL
++ppp_write_34034 ppp_write 3 34034 NULL
++tty_insert_flip_string_34042 tty_insert_flip_string 3 34042 NULL
++__domain_flush_pages_34045 __domain_flush_pages 2-3 34045 NULL
++acpi_dev_get_irqresource_34064 acpi_dev_get_irqresource 2 34064 NULL
++memcg_update_all_caches_34068 memcg_update_all_caches 1 34068 NULL
++read_file_ant_diversity_34071 read_file_ant_diversity 3 34071 NULL
++show_risefalltime_34084 show_risefalltime 4 34084 NULL
++compat_hdio_ioctl_34088 compat_hdio_ioctl 4 34088 NULL
++pipeline_pipeline_fifo_full_read_34095 pipeline_pipeline_fifo_full_read 3 34095 NULL
++islpci_mgt_transmit_34133 islpci_mgt_transmit 5 34133 NULL
++ttm_dma_page_pool_free_34135 ttm_dma_page_pool_free 2 34135 NULL
++cdc_mbim_process_dgram_34136 cdc_mbim_process_dgram 3 34136 NULL
++ixgbe_dbg_netdev_ops_write_34141 ixgbe_dbg_netdev_ops_write 3 34141 NULL
++shmem_pread_fast_34147 shmem_pread_fast 3 34147 NULL
++skb_to_sgvec_34171 skb_to_sgvec 0 34171 NULL
++ext4_da_write_begin_34215 ext4_da_write_begin 3-4 34215 NULL
++bl_pipe_downcall_34264 bl_pipe_downcall 3 34264 NULL
++pcf857x_to_irq_34273 pcf857x_to_irq 2 34273 NULL
++zone_spanned_pages_in_node_34299 zone_spanned_pages_in_node 0 34299 NULL
++iov_iter_single_seg_count_34326 iov_iter_single_seg_count 0 34326 NULL nohasharray
++pcpu_need_to_extend_34326 pcpu_need_to_extend 0 34326 &iov_iter_single_seg_count_34326
++crypto_ablkcipher_ivsize_34363 crypto_ablkcipher_ivsize 0 34363 NULL
++rngapi_reset_34366 rngapi_reset 3 34366 NULL nohasharray
++p54_alloc_skb_34366 p54_alloc_skb 3 34366 &rngapi_reset_34366
++reiserfs_resize_34377 reiserfs_resize 2 34377 NULL
++ea_read_34378 ea_read 0 34378 NULL
++av7110_vbi_write_34384 av7110_vbi_write 3 34384 NULL
++usbvision_v4l2_read_34386 usbvision_v4l2_read 3 34386 NULL
++read_rbu_image_type_34387 read_rbu_image_type 6 34387 NULL
++ivtv_read_pos_34400 ivtv_read_pos 3 34400 NULL nohasharray
++iwl_calib_set_34400 iwl_calib_set 3 34400 &ivtv_read_pos_34400
++nl80211_send_disassoc_34424 nl80211_send_disassoc 4 34424 NULL
++usbtest_alloc_urb_34446 usbtest_alloc_urb 3-5 34446 NULL
++mwifiex_regrdwr_read_34472 mwifiex_regrdwr_read 3 34472 NULL
++line6_dumpreq_init_34473 line6_dumpreq_init 3 34473 NULL
++skcipher_sndbuf_34476 skcipher_sndbuf 0 34476 NULL
++i2o_parm_field_get_34477 i2o_parm_field_get 5 34477 NULL
++security_inode_permission_34488 security_inode_permission 0 34488 NULL
++alloc_buf_34532 alloc_buf 1 34532 NULL
++tracing_stats_read_34537 tracing_stats_read 3 34537 NULL
++hugetlbfs_read_actor_34547 hugetlbfs_read_actor 0-2-5-4 34547 NULL
++dbBackSplit_34561 dbBackSplit 0 34561 NULL
++alloc_ieee80211_rsl_34564 alloc_ieee80211_rsl 1 34564 NULL
++velocity_rx_copy_34583 velocity_rx_copy 2 34583 NULL
++init_send_hfcd_34586 init_send_hfcd 1 34586 NULL
++inet6_ifla6_size_34591 inet6_ifla6_size 0 34591 NULL
++ceph_msgpool_init_34599 ceph_msgpool_init 4 34599 NULL
++__jffs2_ref_totlen_34609 __jffs2_ref_totlen 0 34609 NULL
++__cfg80211_disconnected_34622 __cfg80211_disconnected 3 34622 NULL
++cnic_alloc_dma_34641 cnic_alloc_dma 3 34641 NULL
++nf_nat_mangle_udp_packet_34661 nf_nat_mangle_udp_packet 8-6 34661 NULL
++isr_fiqs_read_34687 isr_fiqs_read 3 34687 NULL
++port_print_34704 port_print 3 34704 NULL
++alloc_irq_and_cfg_at_34706 alloc_irq_and_cfg_at 1 34706 NULL
++ieee80211_if_read_num_sta_ps_34722 ieee80211_if_read_num_sta_ps 3 34722 NULL
++platform_list_read_file_34734 platform_list_read_file 3 34734 NULL
++reg_w_ixbuf_34736 reg_w_ixbuf 4 34736 NULL
++qib_cdev_init_34778 qib_cdev_init 1 34778 NULL
++ssd1307fb_write_array_34779 ssd1307fb_write_array 4 34779 NULL
++__copy_in_user_34790 __copy_in_user 3 34790 NULL
++drbd_get_max_capacity_34804 drbd_get_max_capacity 0 34804 NULL
++b43_debugfs_write_34838 b43_debugfs_write 3 34838 NULL
++nl_portid_hash_zalloc_34843 nl_portid_hash_zalloc 1 34843 NULL
++acpi_system_write_wakeup_device_34853 acpi_system_write_wakeup_device 3 34853 NULL
++usb_serial_generic_prepare_write_buffer_34857 usb_serial_generic_prepare_write_buffer 3 34857 NULL
++ieee80211_if_read_txpower_34871 ieee80211_if_read_txpower 3 34871 NULL
++lm3533_ctrlbank_get_reg_34886 lm3533_ctrlbank_get_reg 0-2 34886 NULL
++msg_print_text_34889 msg_print_text 0 34889 NULL
++ieee80211_if_write_34894 ieee80211_if_write 3 34894 NULL
++compat_put_uint_34905 compat_put_uint 1 34905 NULL
++__inode_permission_34925 __inode_permission 0 34925 NULL nohasharray
++btrfs_super_chunk_root_34925 btrfs_super_chunk_root 0 34925 &__inode_permission_34925
++skb_gro_header_slow_34958 skb_gro_header_slow 2 34958 NULL
++Realloc_34961 Realloc 2 34961 NULL
++rx_rx_hdr_overflow_read_35002 rx_rx_hdr_overflow_read 3 35002 NULL
++l2cap_skbuff_fromiovec_35003 l2cap_skbuff_fromiovec 4-3 35003 NULL
++sisusb_copy_memory_35016 sisusb_copy_memory 4 35016 NULL
++coda_psdev_read_35029 coda_psdev_read 3 35029 NULL
++btmrvl_gpiogap_write_35053 btmrvl_gpiogap_write 3 35053 NULL
++pwr_connection_out_of_sync_read_35061 pwr_connection_out_of_sync_read 3 35061 NULL
++store_ifalias_35088 store_ifalias 4 35088 NULL
++__kfifo_uint_must_check_helper_35097 __kfifo_uint_must_check_helper 0-1 35097 NULL
++capi_write_35104 capi_write 3 35104 NULL nohasharray
++tx_tx_done_template_read_35104 tx_tx_done_template_read 3 35104 &capi_write_35104
++ide_settings_proc_write_35110 ide_settings_proc_write 3 35110 NULL
++pointer_35138 pointer 0 35138 NULL
++gntdev_alloc_map_35145 gntdev_alloc_map 2 35145 NULL
++iscsi_conn_setup_35159 iscsi_conn_setup 2 35159 NULL
++ieee80211_if_read_bssid_35161 ieee80211_if_read_bssid 3 35161 NULL
++unix_stream_recvmsg_35210 unix_stream_recvmsg 4 35210 NULL
++_osd_req_alist_elem_size_35216 _osd_req_alist_elem_size 0-2 35216 NULL
++striped_read_35218 striped_read 0-2-8-3 35218 NULL nohasharray
++security_key_getsecurity_35218 security_key_getsecurity 0 35218 &striped_read_35218
++video_register_device_no_warn_35226 video_register_device_no_warn 3 35226 NULL nohasharray
++rx_rx_cmplt_task_read_35226 rx_rx_cmplt_task_read 3 35226 &video_register_device_no_warn_35226
++set_fd_set_35249 set_fd_set 1 35249 NULL
++ioapic_setup_resources_35255 ioapic_setup_resources 1 35255 NULL
++dma_show_regs_35266 dma_show_regs 3 35266 NULL
++irda_recvmsg_stream_35280 irda_recvmsg_stream 4 35280 NULL
++i2o_block_end_request_35282 i2o_block_end_request 3 35282 NULL
++isr_rx_rdys_read_35283 isr_rx_rdys_read 3 35283 NULL
++brcmf_sdio_forensic_read_35311 brcmf_sdio_forensic_read 3 35311 NULL nohasharray
++__btrfs_buffered_write_35311 __btrfs_buffered_write 3 35311 &brcmf_sdio_forensic_read_35311
++tracing_read_pipe_35312 tracing_read_pipe 3 35312 NULL
++sys_setsockopt_35320 sys_setsockopt 5 35320 NULL
++new_bind_ctl_35324 new_bind_ctl 2 35324 NULL
++irq_domain_disassociate_many_35325 irq_domain_disassociate_many 2-3 35325 NULL
++fallback_on_nodma_alloc_35332 fallback_on_nodma_alloc 2 35332 NULL
++pskb_network_may_pull_35336 pskb_network_may_pull 2 35336 NULL
++ieee80211_if_fmt_ap_power_level_35347 ieee80211_if_fmt_ap_power_level 3 35347 NULL
++nouveau_devinit_create__35348 nouveau_devinit_create_ 4 35348 NULL
++hpi_alloc_control_cache_35351 hpi_alloc_control_cache 1 35351 NULL
++compat_filldir64_35354 compat_filldir64 3 35354 NULL
++rawv6_send_hdrinc_35425 rawv6_send_hdrinc 3 35425 NULL
++__set_test_and_free_35436 __set_test_and_free 2 35436 NULL
++buffer_to_user_35439 buffer_to_user 3 35439 NULL
++rdev_get_id_35454 rdev_get_id 0 35454 NULL
++i915_wedged_read_35474 i915_wedged_read 3 35474 NULL
++do_atm_ioctl_35519 do_atm_ioctl 3 35519 NULL
++async_setkey_35521 async_setkey 3 35521 NULL
++__filemap_fdatawrite_range_35528 __filemap_fdatawrite_range 0 35528 NULL
++iwl_dbgfs_bt_traffic_read_35534 iwl_dbgfs_bt_traffic_read 3 35534 NULL
++rxpipe_tx_xfr_host_int_trig_rx_data_read_35538 rxpipe_tx_xfr_host_int_trig_rx_data_read 3 35538 NULL
++ibnl_put_attr_35541 ibnl_put_attr 3 35541 NULL
++ieee80211_if_write_smps_35550 ieee80211_if_write_smps 3 35550 NULL
++ext2_acl_from_disk_35580 ext2_acl_from_disk 2 35580 NULL
++ReadZReg_35604 ReadZReg 0 35604 NULL
++kernel_readv_35617 kernel_readv 3 35617 NULL
++reiserfs_readpages_35629 reiserfs_readpages 4 35629 NULL
++scrub_stripe_35637 scrub_stripe 4-3 35637 NULL
++spi_register_board_info_35651 spi_register_board_info 2 35651 NULL
++store_debug_level_35652 store_debug_level 3 35652 NULL
++regmap_update_bits_35668 regmap_update_bits 2 35668 NULL
++rdmaltWithLock_35669 rdmaltWithLock 0 35669 NULL
++compat_sys_kexec_load_35674 compat_sys_kexec_load 2 35674 NULL
++dm_table_create_35687 dm_table_create 3 35687 NULL
++rds_page_copy_user_35691 rds_page_copy_user 4 35691 NULL
++pci_enable_sriov_35745 pci_enable_sriov 2 35745 NULL
++iwl_dbgfs_disable_ht40_read_35761 iwl_dbgfs_disable_ht40_read 3 35761 NULL
++udf_alloc_i_data_35786 udf_alloc_i_data 2 35786 NULL
++read_file_stations_35795 read_file_stations 3 35795 NULL
++pvr2_hdw_cpufw_get_35824 pvr2_hdw_cpufw_get 0-4-2 35824 NULL
++tx_tx_cmplt_read_35854 tx_tx_cmplt_read 3 35854 NULL
++mthca_buf_alloc_35861 mthca_buf_alloc 2 35861 NULL
++fls64_35862 fls64 0 35862 NULL
++kvm_dirty_bitmap_bytes_35886 kvm_dirty_bitmap_bytes 0 35886 NULL
++ieee80211_if_fmt_dot11MeshRetryTimeout_35890 ieee80211_if_fmt_dot11MeshRetryTimeout 3 35890 NULL
++uwb_rc_cmd_done_35892 uwb_rc_cmd_done 4 35892 NULL
++kernel_setsockopt_35913 kernel_setsockopt 5 35913 NULL
++vol_cdev_compat_ioctl_35923 vol_cdev_compat_ioctl 3 35923 NULL
++sctp_tsnmap_mark_35929 sctp_tsnmap_mark 2 35929 NULL
++rx_defrag_init_called_read_35935 rx_defrag_init_called_read 3 35935 NULL
++put_cmsg_compat_35937 put_cmsg_compat 4 35937 NULL
++wm8350_reg_write_35967 wm8350_reg_write 2 35967 NULL
++ext_rts51x_sd_execute_write_data_35971 ext_rts51x_sd_execute_write_data 9 35971 NULL
++ceph_buffer_new_35974 ceph_buffer_new 1 35974 NULL
++acl_alloc_35979 acl_alloc 1 35979 NULL
++generic_file_aio_read_35987 generic_file_aio_read 0 35987 NULL
++koneplus_sysfs_write_35993 koneplus_sysfs_write 6 35993 NULL
++il3945_ucode_tx_stats_read_36016 il3945_ucode_tx_stats_read 3 36016 NULL
++ubi_eba_write_leb_36029 ubi_eba_write_leb 5-6 36029 NULL
++sys_init_module_36047 sys_init_module 2 36047 NULL
++account_shadowed_36048 account_shadowed 2 36048 NULL
++gpio_power_read_36059 gpio_power_read 3 36059 NULL
++snd_pcm_playback_hw_avail_36061 snd_pcm_playback_hw_avail 0 36061 NULL
++write_emulate_36065 write_emulate 2-4 36065 NULL
++radeon_vm_num_pdes_36070 radeon_vm_num_pdes 0 36070 NULL
++ieee80211_if_fmt_peer_36071 ieee80211_if_fmt_peer 3 36071 NULL
++ext3_new_blocks_36073 ext3_new_blocks 3 36073 NULL
++ieee80211_if_write_tsf_36077 ieee80211_if_write_tsf 3 36077 NULL
++snd_pcm_plug_read_transfer_36080 snd_pcm_plug_read_transfer 0-3 36080 NULL
++vga_arb_write_36112 vga_arb_write 3 36112 NULL
++simple_xattr_alloc_36118 simple_xattr_alloc 2 36118 NULL
++compat_ptrace_request_36131 compat_ptrace_request 3-4 36131 NULL
++vmalloc_exec_36132 vmalloc_exec 1 36132 NULL
++ext3_readpages_36144 ext3_readpages 4 36144 NULL
++iwl_trans_txq_alloc_36147 iwl_trans_txq_alloc 3 36147 NULL
++alloc_vm_area_36149 alloc_vm_area 1 36149 NULL
++twl_set_36154 twl_set 2 36154 NULL
++b1_alloc_card_36155 b1_alloc_card 1 36155 NULL
++btrfs_file_extent_inline_len_36158 btrfs_file_extent_inline_len 0 36158 NULL
++snd_korg1212_copy_from_36169 snd_korg1212_copy_from 6 36169 NULL
++ubifs_read_nnode_36221 ubifs_read_nnode 0 36221 NULL
++nfqnl_mangle_36226 nfqnl_mangle 4-2 36226 NULL
++atomic_stats_read_36228 atomic_stats_read 3 36228 NULL
++viafb_iga1_odev_proc_write_36241 viafb_iga1_odev_proc_write 3 36241 NULL
++rproc_recovery_read_36245 rproc_recovery_read 3 36245 NULL
++scrub_stripe_36248 scrub_stripe 5-4 36248 NULL
++compat_sys_mbind_36256 compat_sys_mbind 5 36256 NULL
++usb_buffer_alloc_36276 usb_buffer_alloc 2 36276 NULL
++codec_reg_read_file_36280 codec_reg_read_file 3 36280 NULL
++crypto_shash_digestsize_36284 crypto_shash_digestsize 0 36284 NULL
++readahead_tree_block_36285 readahead_tree_block 3 36285 NULL
++nouveau_cli_create_36293 nouveau_cli_create 3 36293 NULL
++lpfc_debugfs_dif_err_read_36303 lpfc_debugfs_dif_err_read 3 36303 NULL
++ad7879_spi_xfer_36311 ad7879_spi_xfer 3 36311 NULL
++fat_compat_ioctl_filldir_36328 fat_compat_ioctl_filldir 3 36328 NULL
++lc_create_36332 lc_create 4 36332 NULL
++jbd2_journal_init_revoke_table_36336 jbd2_journal_init_revoke_table 1 36336 NULL
++v9fs_file_readn_36353 v9fs_file_readn 4 36353 NULL nohasharray
++xz_dec_lzma2_create_36353 xz_dec_lzma2_create 2 36353 &v9fs_file_readn_36353
++to_sector_36361 to_sector 0-1 36361 NULL
++tunables_read_36385 tunables_read 3 36385 NULL
++afs_alloc_flat_call_36399 afs_alloc_flat_call 2-3 36399 NULL
++sctp_tsnmap_init_36446 sctp_tsnmap_init 2 36446 NULL
++alloc_etherdev_mqs_36450 alloc_etherdev_mqs 1 36450 NULL
++b43_nphy_load_samples_36481 b43_nphy_load_samples 3 36481 NULL
++tx_tx_checksum_result_read_36490 tx_tx_checksum_result_read 3 36490 NULL
++__hwahc_op_set_ptk_36510 __hwahc_op_set_ptk 5 36510 NULL
++mcam_v4l_read_36513 mcam_v4l_read 3 36513 NULL
++get_param_l_36518 get_param_l 0 36518 NULL
++ieee80211_if_read_fwded_frames_36520 ieee80211_if_read_fwded_frames 3 36520 NULL
++lguest_setup_irq_36531 lguest_setup_irq 1 36531 NULL
++crypto_aead_authsize_36537 crypto_aead_authsize 0 36537 NULL
++ssd1307fb_write_data_array_36538 ssd1307fb_write_data_array 3 36538 NULL
++cpu_type_read_36540 cpu_type_read 3 36540 NULL
++get_entry_len_36549 get_entry_len 0 36549 NULL
++__kfifo_to_user_36555 __kfifo_to_user 3 36555 NULL nohasharray
++macvtap_do_read_36555 macvtap_do_read 4 36555 &__kfifo_to_user_36555
++btrfs_get_token_64_36572 btrfs_get_token_64 0 36572 NULL
++ssb_bus_scan_36578 ssb_bus_scan 2 36578 NULL
++__erst_read_36579 __erst_read 0 36579 NULL
++put_cmsg_36589 put_cmsg 4 36589 NULL
++pcnet32_realloc_rx_ring_36598 pcnet32_realloc_rx_ring 3 36598 NULL
++fat_ioctl_filldir_36621 fat_ioctl_filldir 3 36621 NULL
++vxge_config_vpaths_36636 vxge_config_vpaths 0 36636 NULL
++format_decode_36638 format_decode 0 36638 NULL
++ced_ioctl_36647 ced_ioctl 2 36647 NULL
++lpfc_idiag_extacc_alloc_get_36648 lpfc_idiag_extacc_alloc_get 0-3 36648 NULL
++osd_req_list_collection_objects_36664 osd_req_list_collection_objects 5 36664 NULL
++iscsi_host_alloc_36671 iscsi_host_alloc 2 36671 NULL
++ptr_to_compat_36680 ptr_to_compat 0 36680 NULL
++ext4_mb_discard_group_preallocations_36685 ext4_mb_discard_group_preallocations 2 36685 NULL
++snd_soc_update_bits_36714 snd_soc_update_bits 2 36714 NULL
++extract_icmp6_fields_36732 extract_icmp6_fields 2 36732 NULL
++snd_rawmidi_kernel_read1_36740 snd_rawmidi_kernel_read1 4 36740 NULL
++cxgbi_device_register_36746 cxgbi_device_register 1-2 36746 NULL
++ps_poll_upsd_timeouts_read_36755 ps_poll_upsd_timeouts_read 3 36755 NULL
++snd_soc_update_bits_locked_36766 snd_soc_update_bits_locked 2 36766 NULL
++ip4ip6_err_36772 ip4ip6_err 5 36772 NULL
++ptp_filter_init_36780 ptp_filter_init 2 36780 NULL
++proc_fault_inject_read_36802 proc_fault_inject_read 3 36802 NULL
++hiddev_ioctl_36816 hiddev_ioctl 2 36816 NULL
++int_hardware_entry_36833 int_hardware_entry 3 36833 NULL
++pcf50633_reg_write_36841 pcf50633_reg_write 2 36841 NULL nohasharray
++fc_change_queue_depth_36841 fc_change_queue_depth 2 36841 &pcf50633_reg_write_36841
++keyctl_describe_key_36853 keyctl_describe_key 3 36853 NULL
++cm_write_36858 cm_write 3 36858 NULL
++tx_tx_data_programmed_read_36871 tx_tx_data_programmed_read 3 36871 NULL
++svc_setsockopt_36876 svc_setsockopt 5 36876 NULL
++ib_ucm_alloc_data_36885 ib_ucm_alloc_data 3 36885 NULL
++selinux_inode_notifysecctx_36896 selinux_inode_notifysecctx 3 36896 NULL
++lm3533_als_get_target_36905 lm3533_als_get_target 2-3 36905 NULL
++OS_kmalloc_36909 OS_kmalloc 1 36909 NULL
++crypto_blkcipher_ivsize_36944 crypto_blkcipher_ivsize 0 36944 NULL
++div_u64_36951 div_u64 0 36951 NULL
++write_leb_36957 write_leb 5 36957 NULL
++ntfs_external_attr_find_36963 ntfs_external_attr_find 0 36963 NULL
++sparse_early_mem_maps_alloc_node_36971 sparse_early_mem_maps_alloc_node 4 36971 NULL
++mc13xxx_reg_rmw_36997 mc13xxx_reg_rmw 2 36997 NULL
++drbd_new_dev_size_36998 drbd_new_dev_size 0-3 36998 NULL
++auok190xfb_write_37001 auok190xfb_write 3 37001 NULL
++setxattr_37006 setxattr 4 37006 NULL
++ieee80211_if_read_drop_unencrypted_37053 ieee80211_if_read_drop_unencrypted 3 37053 NULL
++parse_command_37079 parse_command 2 37079 NULL
++wm8994_gpio_set_37082 wm8994_gpio_set 2 37082 NULL
++pipeline_cs_rx_packet_in_read_37089 pipeline_cs_rx_packet_in_read 3 37089 NULL
++tun_get_user_37094 tun_get_user 5 37094 NULL
++has_wrprotected_page_37123 has_wrprotected_page 2-3 37123 NULL
++msg_word_37164 msg_word 0 37164 NULL
++can_set_xattr_37182 can_set_xattr 4 37182 NULL
++crypto_shash_descsize_37212 crypto_shash_descsize 0 37212 NULL
++regmap_access_read_file_37223 regmap_access_read_file 3 37223 NULL
++__do_replace_37227 __do_replace 5 37227 NULL
++rx_filter_dup_filter_read_37238 rx_filter_dup_filter_read 3 37238 NULL
++prot_queue_del_37258 prot_queue_del 0 37258 NULL
++ath6kl_wmi_set_ie_cmd_37260 ath6kl_wmi_set_ie_cmd 6 37260 NULL
++exofs_max_io_pages_37263 exofs_max_io_pages 0-2 37263 NULL
++c101_run_37279 c101_run 2 37279 NULL
++srp_target_alloc_37288 srp_target_alloc 3 37288 NULL
++jffs2_write_dirent_37311 jffs2_write_dirent 5 37311 NULL
++send_msg_37323 send_msg 4 37323 NULL
++brcmf_sdbrcm_membytes_37324 brcmf_sdbrcm_membytes 3-5 37324 NULL
++l2cap_create_connless_pdu_37327 l2cap_create_connless_pdu 3 37327 NULL
++scsi_mode_select_37330 scsi_mode_select 6 37330 NULL
++rxrpc_server_sendmsg_37331 rxrpc_server_sendmsg 4 37331 NULL
++security_inode_getsecurity_37354 security_inode_getsecurity 0 37354 NULL
++iommu_num_pages_37391 iommu_num_pages 0-1-3-2 37391 NULL
++sys_getxattr_37418 sys_getxattr 4 37418 NULL
++hci_sock_sendmsg_37420 hci_sock_sendmsg 4 37420 NULL
++acpi_os_allocate_zeroed_37422 acpi_os_allocate_zeroed 1 37422 NULL nohasharray
++find_next_bit_37422 find_next_bit 0-2-3 37422 &acpi_os_allocate_zeroed_37422
++tty_insert_flip_string_fixed_flag_37428 tty_insert_flip_string_fixed_flag 4 37428 NULL
++iwl_print_last_event_logs_37433 iwl_print_last_event_logs 0-7-9 37433 NULL
++tcp_established_options_37450 tcp_established_options 0 37450 NULL
++brcmf_sdio_dump_console_37455 brcmf_sdio_dump_console 4 37455 NULL
++ufs_data_ptr_to_cpu_37475 ufs_data_ptr_to_cpu 0 37475 NULL
++get_est_timing_37484 get_est_timing 0 37484 NULL
++xfs_trans_read_buf_map_37487 xfs_trans_read_buf_map 5 37487 NULL
++kmem_realloc_37489 kmem_realloc 2 37489 NULL
++kvm_vcpu_compat_ioctl_37500 kvm_vcpu_compat_ioctl 3 37500 NULL
++vmalloc_32_user_37519 vmalloc_32_user 1 37519 NULL
++fault_inject_read_37534 fault_inject_read 3 37534 NULL
++hdr_size_37536 hdr_size 0 37536 NULL
++sep_create_dcb_dmatables_context_37551 sep_create_dcb_dmatables_context 6 37551 NULL nohasharray
++nf_nat_mangle_tcp_packet_37551 nf_nat_mangle_tcp_packet 6-8 37551 &sep_create_dcb_dmatables_context_37551
++xhci_alloc_streams_37586 xhci_alloc_streams 5 37586 NULL
++mlx4_get_mgm_entry_size_37607 mlx4_get_mgm_entry_size 0 37607 NULL
++kvm_read_guest_page_mmu_37611 kvm_read_guest_page_mmu 6 37611 NULL
++alloc_fd_37637 alloc_fd 1 37637 NULL
++bio_copy_user_iov_37660 bio_copy_user_iov 4 37660 NULL
++rfcomm_sock_sendmsg_37661 rfcomm_sock_sendmsg 4 37661 NULL nohasharray
++vmw_framebuffer_dmabuf_dirty_37661 vmw_framebuffer_dmabuf_dirty 6 37661 &rfcomm_sock_sendmsg_37661
++lnw_gpio_to_irq_37665 lnw_gpio_to_irq 2 37665 NULL
++ieee80211_if_read_rc_rateidx_mcs_mask_2ghz_37675 ieee80211_if_read_rc_rateidx_mcs_mask_2ghz 3 37675 NULL
++regmap_map_read_file_37685 regmap_map_read_file 3 37685 NULL
++nametbl_header_37698 nametbl_header 2 37698 NULL
++__le32_to_cpup_37702 __le32_to_cpup 0 37702 NULL
++soc_widget_update_bits_locked_37715 soc_widget_update_bits_locked 2 37715 NULL
++read_enabled_file_bool_37744 read_enabled_file_bool 3 37744 NULL
++ocfs2_duplicate_clusters_by_jbd_37749 ocfs2_duplicate_clusters_by_jbd 6-4-5 37749 NULL
++ocfs2_control_cfu_37750 ocfs2_control_cfu 2 37750 NULL
++ipath_cdev_init_37752 ipath_cdev_init 1 37752 NULL
++dccp_setsockopt_cscov_37766 dccp_setsockopt_cscov 2 37766 NULL
++il4965_rs_sta_dbgfs_rate_scale_data_read_37792 il4965_rs_sta_dbgfs_rate_scale_data_read 3 37792 NULL
++smk_read_logging_37804 smk_read_logging 3 37804 NULL
++deny_write_access_37813 deny_write_access 0 37813 NULL
++rx_decrypt_key_not_found_read_37820 rx_decrypt_key_not_found_read 3 37820 NULL
++bitmap_find_next_zero_area_37827 bitmap_find_next_zero_area 2-3-5-4 37827 NULL
++o2hb_debug_read_37851 o2hb_debug_read 3 37851 NULL
++xfs_dir2_block_to_sf_37868 xfs_dir2_block_to_sf 3 37868 NULL
++sys_setxattr_37880 sys_setxattr 4 37880 NULL
++lm3533_als_get_target_reg_37881 lm3533_als_get_target_reg 0-1-2 37881 NULL
++dvb_net_sec_37884 dvb_net_sec 3 37884 NULL
++max77686_irq_domain_map_37897 max77686_irq_domain_map 2 37897 NULL
++tipc_link_send_sections_fast_37920 tipc_link_send_sections_fast 4 37920 NULL
++pkt_alloc_packet_data_37928 pkt_alloc_packet_data 1 37928 NULL
++read_rbu_packet_size_37939 read_rbu_packet_size 6 37939 NULL
++fifo_alloc_37961 fifo_alloc 1 37961 NULL
++ext3_free_blocks_sb_37967 ext3_free_blocks_sb 3-4 37967 NULL
++rds_rdma_extra_size_37990 rds_rdma_extra_size 0 37990 NULL
++persistent_ram_old_size_37997 persistent_ram_old_size 0 37997 NULL
++vfs_readv_38011 vfs_readv 3 38011 NULL
++aggr_recv_addba_req_evt_38037 aggr_recv_addba_req_evt 4 38037 NULL
++klsi_105_prepare_write_buffer_38044 klsi_105_prepare_write_buffer 3 38044 NULL nohasharray
++il_dbgfs_chain_noise_read_38044 il_dbgfs_chain_noise_read 3 38044 &klsi_105_prepare_write_buffer_38044
++_xfs_buf_alloc_38058 _xfs_buf_alloc 3 38058 NULL
++nsm_create_handle_38060 nsm_create_handle 4 38060 NULL
++alloc_ltalkdev_38071 alloc_ltalkdev 1 38071 NULL
++xfs_buf_readahead_map_38081 xfs_buf_readahead_map 3 38081 NULL
++uwb_mac_addr_print_38085 uwb_mac_addr_print 2 38085 NULL
++request_key_auth_new_38092 request_key_auth_new 3 38092 NULL
++proc_self_readlink_38094 proc_self_readlink 3 38094 NULL
++ep0_read_38095 ep0_read 3 38095 NULL
++sk_wmem_schedule_38096 sk_wmem_schedule 2 38096 NULL
++snd_pcm_oss_write_38108 snd_pcm_oss_write 3 38108 NULL
++vmw_kms_present_38130 vmw_kms_present 9 38130 NULL
++__ntfs_copy_from_user_iovec_inatomic_38153 __ntfs_copy_from_user_iovec_inatomic 3-4 38153 NULL
++kvm_clear_guest_38164 kvm_clear_guest 3-2 38164 NULL
++cdev_add_38176 cdev_add 2-3 38176 NULL
++brcmf_sdcard_recv_buf_38179 brcmf_sdcard_recv_buf 6 38179 NULL
++rt2x00debug_write_rf_38195 rt2x00debug_write_rf 3 38195 NULL
++get_ucode_user_38202 get_ucode_user 3 38202 NULL
++ext3_new_block_38208 ext3_new_block 3 38208 NULL
++stmpe_gpio_irq_map_38222 stmpe_gpio_irq_map 3 38222 NULL
++osd_req_list_partition_collections_38223 osd_req_list_partition_collections 5 38223 NULL
++vhost_net_compat_ioctl_38237 vhost_net_compat_ioctl 3 38237 NULL
++_ipw_read_reg32_38245 _ipw_read_reg32 0 38245 NULL
++snd_pcm_playback_rewind_38249 snd_pcm_playback_rewind 0-2 38249 NULL
++ieee80211_if_read_auto_open_plinks_38268 ieee80211_if_read_auto_open_plinks 3 38268 NULL nohasharray
++mthca_alloc_icm_table_38268 mthca_alloc_icm_table 4-3 38268 &ieee80211_if_read_auto_open_plinks_38268
++verity_status_38273 verity_status 5 38273 NULL
++xfs_bmbt_to_bmdr_38275 xfs_bmbt_to_bmdr 3 38275 NULL nohasharray
++xfs_bmdr_to_bmbt_38275 xfs_bmdr_to_bmbt 5 38275 &xfs_bmbt_to_bmdr_38275
++zd_mac_rx_38296 zd_mac_rx 3 38296 NULL
++ieee80211_send_probe_req_38307 ieee80211_send_probe_req 6-4 38307 NULL
++isr_rx_headers_read_38325 isr_rx_headers_read 3 38325 NULL
++ida_simple_get_38326 ida_simple_get 2 38326 NULL
++__snd_gf1_look8_38333 __snd_gf1_look8 0 38333 NULL
++pyra_sysfs_write_38370 pyra_sysfs_write 6 38370 NULL
++dn_sendmsg_38390 dn_sendmsg 4 38390 NULL
++get_valid_node_allowed_38412 get_valid_node_allowed 1-0 38412 NULL
++ocfs2_which_cluster_group_38413 ocfs2_which_cluster_group 2 38413 NULL
++ht_destroy_irq_38418 ht_destroy_irq 1 38418 NULL
++ieee80211_if_read_dtim_count_38419 ieee80211_if_read_dtim_count 3 38419 NULL
++asix_write_cmd_async_38420 asix_write_cmd_async 5 38420 NULL
++pcnet32_realloc_tx_ring_38428 pcnet32_realloc_tx_ring 3 38428 NULL
++pmcraid_copy_sglist_38431 pmcraid_copy_sglist 3 38431 NULL
++kvm_write_guest_38454 kvm_write_guest 4-2 38454 NULL
++i915_min_freq_read_38470 i915_min_freq_read 3 38470 NULL
++blk_end_bidi_request_38482 blk_end_bidi_request 3-4 38482 NULL
++cpu_to_mem_38501 cpu_to_mem 0 38501 NULL
++dev_names_read_38509 dev_names_read 3 38509 NULL
++iscsi_create_iface_38510 iscsi_create_iface 5 38510 NULL
++event_rx_mismatch_read_38518 event_rx_mismatch_read 3 38518 NULL
++set_queue_count_38519 set_queue_count 0 38519 NULL
++ubifs_idx_node_sz_38546 ubifs_idx_node_sz 0-2 38546 NULL
++btrfs_discard_extent_38547 btrfs_discard_extent 2 38547 NULL
++cpu_to_node_38561 cpu_to_node 0 38561 NULL
++irda_sendmsg_dgram_38563 irda_sendmsg_dgram 4 38563 NULL
++il4965_rs_sta_dbgfs_scale_table_read_38564 il4965_rs_sta_dbgfs_scale_table_read 3 38564 NULL
++_ipw_read32_38565 _ipw_read32 0 38565 NULL
++snd_nm256_playback_copy_38567 snd_nm256_playback_copy 5-3 38567 NULL
++copy_ctl_value_to_user_38587 copy_ctl_value_to_user 4 38587 NULL
++cosa_net_setup_rx_38594 cosa_net_setup_rx 2 38594 NULL
++compat_sys_ptrace_38595 compat_sys_ptrace 3-4 38595 NULL
++delay_status_38606 delay_status 5 38606 NULL
++icn_writecmd_38629 icn_writecmd 2 38629 NULL
++ext2_readpages_38640 ext2_readpages 4 38640 NULL
++cma_create_area_38642 cma_create_area 2 38642 NULL
++audit_init_entry_38644 audit_init_entry 1 38644 NULL
++mmc_send_cxd_data_38655 mmc_send_cxd_data 5 38655 NULL
++nouveau_instmem_create__38664 nouveau_instmem_create_ 4 38664 NULL
++cfg80211_send_disassoc_38678 cfg80211_send_disassoc 3 38678 NULL
++iscsit_dump_data_payload_38683 iscsit_dump_data_payload 2 38683 NULL
++ext4_wait_block_bitmap_38695 ext4_wait_block_bitmap 2 38695 NULL
++find_next_usable_block_38716 find_next_usable_block 1-3 38716 NULL
++alloc_trace_probe_38720 alloc_trace_probe 6 38720 NULL
++udf_readpages_38761 udf_readpages 4 38761 NULL
++iwl_dbgfs_thermal_throttling_read_38779 iwl_dbgfs_thermal_throttling_read 3 38779 NULL
++snd_gus_dram_write_38784 snd_gus_dram_write 4 38784 NULL
++err_decode_38804 err_decode 2 38804 NULL
++ipv6_renew_option_38813 ipv6_renew_option 3 38813 NULL
++sys_select_38827 sys_select 1 38827 NULL
++b43_txhdr_size_38832 b43_txhdr_size 0 38832 NULL
++direct_entry_38836 direct_entry 3 38836 NULL
++compat_udp_setsockopt_38840 compat_udp_setsockopt 5 38840 NULL
++interfaces_38859 interfaces 2 38859 NULL
++pci_msix_table_size_38867 pci_msix_table_size 0 38867 NULL
++sizeof_gpio_leds_priv_38882 sizeof_gpio_leds_priv 0-1 38882 NULL
++dbgfs_state_38894 dbgfs_state 3 38894 NULL
++f2fs_xattr_set_acl_38895 f2fs_xattr_set_acl 4 38895 NULL
++__fswab16_38898 __fswab16 0 38898 NULL
++process_bulk_data_command_38906 process_bulk_data_command 4 38906 NULL
++ext3_trim_all_free_38929 ext3_trim_all_free 3-4-2 38929 NULL
++sbp_count_se_tpg_luns_38943 sbp_count_se_tpg_luns 0 38943 NULL
++__ath6kl_wmi_send_mgmt_cmd_38971 __ath6kl_wmi_send_mgmt_cmd 7 38971 NULL
++usb_maxpacket_38977 usb_maxpacket 0 38977 NULL
++OSDSetBlock_38986 OSDSetBlock 4-2 38986 NULL
++udf_new_block_38999 udf_new_block 4 38999 NULL
++get_nodes_39012 get_nodes 3 39012 NULL
++twl6030_interrupt_unmask_39013 twl6030_interrupt_unmask 2 39013 NULL
++acpi_install_gpe_block_39031 acpi_install_gpe_block 4 39031 NULL
++_zd_iowrite32v_async_locked_39034 _zd_iowrite32v_async_locked 3 39034 NULL
++line6_midibuf_read_39067 line6_midibuf_read 0-3 39067 NULL
++ext4_init_block_bitmap_39071 ext4_init_block_bitmap 3 39071 NULL
++tun_get_user_39099 tun_get_user 4 39099 NULL
++tomoyo_truncate_39105 tomoyo_truncate 0 39105 NULL
++__kfifo_to_user_r_39123 __kfifo_to_user_r 3 39123 NULL
++ea_foreach_39133 ea_foreach 0 39133 NULL
++generic_permission_39150 generic_permission 0 39150 NULL
++alloc_ring_39151 alloc_ring 2-4 39151 NULL
++proc_coredump_filter_read_39153 proc_coredump_filter_read 3 39153 NULL
++create_bounce_buffer_39155 create_bounce_buffer 3 39155 NULL
++ext3_xattr_check_names_39174 ext3_xattr_check_names 0 39174 NULL
++init_list_set_39188 init_list_set 2-3 39188 NULL
++ubi_more_update_data_39189 ubi_more_update_data 4 39189 NULL
++qcam_read_bytes_39205 qcam_read_bytes 0 39205 NULL
++qla4_82xx_pci_mem_read_direct_39208 qla4_82xx_pci_mem_read_direct 2 39208 NULL
++vfio_group_fops_compat_ioctl_39219 vfio_group_fops_compat_ioctl 3 39219 NULL
++ivtv_v4l2_write_39226 ivtv_v4l2_write 3 39226 NULL
++batadv_tt_response_fill_table_39236 batadv_tt_response_fill_table 1 39236 NULL
++posix_acl_to_xattr_39237 posix_acl_to_xattr 0 39237 NULL
++drm_order_39244 drm_order 0 39244 NULL
++snd_pcm_capture_forward_39248 snd_pcm_capture_forward 0-2 39248 NULL
++r128_compat_ioctl_39250 r128_compat_ioctl 2 39250 NULL nohasharray
++pwr_cont_miss_bcns_spread_read_39250 pwr_cont_miss_bcns_spread_read 3 39250 &r128_compat_ioctl_39250
++__skb_cow_39254 __skb_cow 2 39254 NULL
++ath6kl_wmi_set_appie_cmd_39266 ath6kl_wmi_set_appie_cmd 5 39266 NULL
++rx_filter_protection_filter_read_39282 rx_filter_protection_filter_read 3 39282 NULL
++__vmalloc_node_39308 __vmalloc_node 1 39308 NULL
++__cfg80211_connect_result_39326 __cfg80211_connect_result 4-6 39326 NULL
++wimax_msg_alloc_39343 wimax_msg_alloc 4 39343 NULL
++__cfg80211_send_deauth_39344 __cfg80211_send_deauth 3 39344 NULL
++__copy_from_user_nocache_39351 __copy_from_user_nocache 3 39351 NULL
++ide_complete_rq_39354 ide_complete_rq 3 39354 NULL
++do_write_log_from_user_39362 do_write_log_from_user 3 39362 NULL
++vortex_wtdma_getlinearpos_39371 vortex_wtdma_getlinearpos 0 39371 NULL
++regmap_name_read_file_39379 regmap_name_read_file 3 39379 NULL
++ps_poll_ps_poll_utilization_read_39383 ps_poll_ps_poll_utilization_read 3 39383 NULL
++__send_to_port_39386 __send_to_port 3 39386 NULL
++user_power_read_39414 user_power_read 3 39414 NULL
++alloc_agpphysmem_i8xx_39427 alloc_agpphysmem_i8xx 1 39427 NULL
++sys_semop_39457 sys_semop 3 39457 NULL
++setkey_unaligned_39474 setkey_unaligned 3 39474 NULL
++ieee80211_if_fmt_dot11MeshHWMPmaxPREQretries_39499 ieee80211_if_fmt_dot11MeshHWMPmaxPREQretries 3 39499 NULL
++atomic64_read_unchecked_39505 atomic64_read_unchecked 0 39505 NULL
++int_proc_write_39542 int_proc_write 3 39542 NULL
++pp_write_39554 pp_write 3 39554 NULL
++ol_dqblk_block_39558 ol_dqblk_block 0-3-2 39558 NULL
++datablob_format_39571 datablob_format 2 39571 NULL nohasharray
++ieee80211_if_read_fwded_mcast_39571 ieee80211_if_read_fwded_mcast 3 39571 &datablob_format_39571
++handle_response_icmp_39574 handle_response_icmp 7 39574 NULL
++adau1373_set_pll_39593 adau1373_set_pll 2 39593 NULL
++mtdchar_compat_ioctl_39602 mtdchar_compat_ioctl 3 39602 NULL
++n_tty_compat_ioctl_helper_39605 n_tty_compat_ioctl_helper 4 39605 NULL
++ext_depth_39607 ext_depth 0 39607 NULL
++nfs_idmap_get_key_39616 nfs_idmap_get_key 2 39616 NULL
++sdio_readb_39618 sdio_readb 0 39618 NULL
++set_dev_class_39645 set_dev_class 4 39645 NULL nohasharray
++dm_exception_table_init_39645 dm_exception_table_init 2 39645 &set_dev_class_39645
++snd_rme32_capture_copy_39653 snd_rme32_capture_copy 5 39653 NULL
++tcp_try_rmem_schedule_39657 tcp_try_rmem_schedule 3 39657 NULL nohasharray
++prism2_info_hostscanresults_39657 prism2_info_hostscanresults 3 39657 &tcp_try_rmem_schedule_39657
++kvm_read_guest_cached_39666 kvm_read_guest_cached 4 39666 NULL
++v4l_stk_read_39672 v4l_stk_read 3 39672 NULL
++hsc_msg_len_get_39673 hsc_msg_len_get 0 39673 NULL
++do_surface_dirty_sou_39678 do_surface_dirty_sou 7 39678 NULL
++ftrace_pid_write_39710 ftrace_pid_write 3 39710 NULL
++tcf_csum_ipv4_tcp_39713 tcf_csum_ipv4_tcp 4 39713 NULL
++ocfs2_pages_per_cluster_39790 ocfs2_pages_per_cluster 0 39790 NULL
++security_inode_listsecurity_39812 security_inode_listsecurity 0 39812 NULL
++snd_pcm_oss_writev3_39818 snd_pcm_oss_writev3 3 39818 NULL
++sys_migrate_pages_39825 sys_migrate_pages 2 39825 NULL
++get_priv_size_39828 get_priv_size 0-1 39828 NULL
++pkt_add_39897 pkt_add 3 39897 NULL
++read_file_modal_eeprom_39909 read_file_modal_eeprom 3 39909 NULL
++gen_pool_add_virt_39913 gen_pool_add_virt 4 39913 NULL
++dw210x_op_rw_39915 dw210x_op_rw 6 39915 NULL
++aes_encrypt_interrupt_read_39919 aes_encrypt_interrupt_read 3 39919 NULL
++exofs_read_kern_39921 exofs_read_kern 6 39921 NULL nohasharray
++oom_score_adj_read_39921 oom_score_adj_read 3 39921 &exofs_read_kern_39921
++__spi_async_39932 __spi_async 0 39932 NULL
++__get_order_39935 __get_order 0 39935 NULL
++error_error_frame_read_39947 error_error_frame_read 3 39947 NULL nohasharray
++fwnet_pd_new_39947 fwnet_pd_new 4 39947 &error_error_frame_read_39947
++tty_prepare_flip_string_39955 tty_prepare_flip_string 3 39955 NULL
++dma_push_rx_39973 dma_push_rx 2 39973 NULL
++broadsheetfb_write_39976 broadsheetfb_write 3 39976 NULL
++mthca_array_init_39987 mthca_array_init 2 39987 NULL
++xen_hvm_config_40018 xen_hvm_config 2 40018 NULL
++nf_nat_icmpv6_reply_translation_40023 nf_nat_icmpv6_reply_translation 5 40023 NULL nohasharray
++ivtvfb_write_40023 ivtvfb_write 3 40023 &nf_nat_icmpv6_reply_translation_40023
++ea_foreach_i_40028 ea_foreach_i 0 40028 NULL
++datablob_hmac_append_40038 datablob_hmac_append 3 40038 NULL
++regmap_add_irq_chip_40042 regmap_add_irq_chip 4 40042 NULL
++add_tty_40055 add_tty 1 40055 NULL nohasharray
++l2cap_create_iframe_pdu_40055 l2cap_create_iframe_pdu 3 40055 &add_tty_40055
++atomic_xchg_40070 atomic_xchg 0 40070 NULL
++snd_pcm_sw_params_user_40095 snd_pcm_sw_params_user 0 40095 NULL
++gen_pool_first_fit_40110 gen_pool_first_fit 2-3-4 40110 NULL
++rbd_do_op_40128 rbd_do_op 4-5 40128 NULL
++sctp_setsockopt_delayed_ack_40129 sctp_setsockopt_delayed_ack 3 40129 NULL
++rx_rx_frame_checksum_read_40140 rx_rx_frame_checksum_read 3 40140 NULL
++iwch_alloc_fastreg_pbl_40153 iwch_alloc_fastreg_pbl 2 40153 NULL
++pt_write_40159 pt_write 3 40159 NULL
++scsi_sg_count_40182 scsi_sg_count 0 40182 NULL
++ipr_alloc_ucode_buffer_40199 ipr_alloc_ucode_buffer 1 40199 NULL nohasharray
++devnode_find_40199 devnode_find 3-2 40199 &ipr_alloc_ucode_buffer_40199
++allocate_probes_40204 allocate_probes 1 40204 NULL
++acpi_system_write_alarm_40205 acpi_system_write_alarm 3 40205 NULL
++compat_put_long_40214 compat_put_long 1 40214 NULL
++au0828_v4l2_read_40220 au0828_v4l2_read 3 40220 NULL
++xfs_buf_read_map_40226 xfs_buf_read_map 3 40226 NULL
++osst_read_40237 osst_read 3 40237 NULL
++lpage_info_slot_40243 lpage_info_slot 1-3 40243 NULL
++ocfs2_zero_extend_get_range_40248 ocfs2_zero_extend_get_range 4 40248 NULL
++of_get_child_count_40254 of_get_child_count 0 40254 NULL
++rs_sta_dbgfs_scale_table_read_40262 rs_sta_dbgfs_scale_table_read 3 40262 NULL
++usbnet_read_cmd_40275 usbnet_read_cmd 7 40275 NULL
++rx_xfr_hint_trig_read_40283 rx_xfr_hint_trig_read 3 40283 NULL
++ubi_io_write_data_40305 ubi_io_write_data 4-5 40305 NULL
++batadv_tt_changes_fill_buff_40323 batadv_tt_changes_fill_buff 4 40323 NULL
++ib_get_mad_data_offset_40336 ib_get_mad_data_offset 0 40336 NULL
++mmio_read_40348 mmio_read 4 40348 NULL
++usb_dump_interface_40353 usb_dump_interface 0 40353 NULL
++ocfs2_release_clusters_40355 ocfs2_release_clusters 4 40355 NULL
++event_rx_mem_empty_read_40363 event_rx_mem_empty_read 3 40363 NULL
++ocfs2_check_range_for_refcount_40365 ocfs2_check_range_for_refcount 2-3 40365 NULL
++fwnet_incoming_packet_40380 fwnet_incoming_packet 3 40380 NULL
++brcmf_sdbrcm_get_image_40397 brcmf_sdbrcm_get_image 0-2 40397 NULL
++atmel_rmem16_40450 atmel_rmem16 0 40450 NULL
++tomoyo_update_policy_40458 tomoyo_update_policy 2 40458 NULL
++zd_usb_scnprint_id_40459 zd_usb_scnprint_id 0-3 40459 NULL
++batadv_hash_new_40491 batadv_hash_new 1 40491 NULL
++devcgroup_inode_permission_40492 devcgroup_inode_permission 0 40492 NULL
++tty_write_room_40495 tty_write_room 0 40495 NULL
++persistent_ram_new_40501 persistent_ram_new 1-2 40501 NULL
++sg_phys_40507 sg_phys 0 40507 NULL
++TSS_checkhmac2_40520 TSS_checkhmac2 5-7 40520 NULL
++ixgbe_dbg_reg_ops_read_40540 ixgbe_dbg_reg_ops_read 3 40540 NULL
++ima_write_policy_40548 ima_write_policy 3 40548 NULL
++esp_alloc_tmp_40558 esp_alloc_tmp 3-2 40558 NULL
++ufs_inode_getfrag_40560 ufs_inode_getfrag 2-4 40560 NULL
++arch_setup_hpet_msi_40584 arch_setup_hpet_msi 1 40584 NULL
++skge_rx_get_40598 skge_rx_get 3 40598 NULL
++get_priv_descr_and_size_40612 get_priv_descr_and_size 0 40612 NULL
++bl_mark_sectors_init_40613 bl_mark_sectors_init 2-3 40613 NULL
++cpuset_sprintf_cpulist_40627 cpuset_sprintf_cpulist 0 40627 NULL
++twl4030_kpwrite_u8_40665 twl4030_kpwrite_u8 3 40665 NULL
++__cfg80211_roamed_40668 __cfg80211_roamed 4-6 40668 NULL
++pipeline_rx_complete_stat_fifo_int_read_40671 pipeline_rx_complete_stat_fifo_int_read 3 40671 NULL
++fops_read_40672 fops_read 3 40672 NULL
++tps80031_write_40678 tps80031_write 3 40678 NULL
++nfc_hci_set_param_40697 nfc_hci_set_param 5 40697 NULL
++__seq_open_private_40715 __seq_open_private 3 40715 NULL
++xfs_iext_remove_direct_40744 xfs_iext_remove_direct 3 40744 NULL nohasharray
++find_next_zero_bit_le_40744 find_next_zero_bit_le 0-2-3 40744 &xfs_iext_remove_direct_40744
++tps65910_irq_map_40748 tps65910_irq_map 2 40748 NULL
++security_inode_listxattr_40752 security_inode_listxattr 0 40752 NULL
++fat_generic_compat_ioctl_40755 fat_generic_compat_ioctl 3 40755 NULL
++card_send_command_40757 card_send_command 3 40757 NULL
++ad1889_readl_40765 ad1889_readl 0 40765 NULL
++pg_write_40766 pg_write 3 40766 NULL
++show_list_40775 show_list 3 40775 NULL
++kfifo_out_copy_r_40784 kfifo_out_copy_r 0-3 40784 NULL
++bitmap_weight_40791 bitmap_weight 0-2 40791 NULL
++pyra_sysfs_read_40795 pyra_sysfs_read 6 40795 NULL
++netdev_alloc_skb_ip_align_40811 netdev_alloc_skb_ip_align 2 40811 NULL
++nl80211_send_roamed_40825 nl80211_send_roamed 5-7 40825 NULL
++__mlx4_qp_reserve_range_40847 __mlx4_qp_reserve_range 2-3 40847 NULL
++ocfs2_zero_partial_clusters_40856 ocfs2_zero_partial_clusters 2-3 40856 NULL
++v9fs_file_read_40858 v9fs_file_read 3 40858 NULL
++read_file_queue_40895 read_file_queue 3 40895 NULL
++waiters_read_40902 waiters_read 3 40902 NULL
++isdn_add_channels_40905 isdn_add_channels 3 40905 NULL
++gfs2_ea_find_40913 gfs2_ea_find 0 40913 NULL
++vol_cdev_write_40915 vol_cdev_write 3 40915 NULL
++snd_vx_create_40948 snd_vx_create 4 40948 NULL
++skb_end_offset_40949 skb_end_offset 0 40949 NULL
++wm8994_free_irq_40951 wm8994_free_irq 2 40951 NULL
++rds_sendmsg_40976 rds_sendmsg 4 40976 NULL
++insert_old_idx_40987 insert_old_idx 0 40987 NULL
++il_dbgfs_fh_reg_read_40993 il_dbgfs_fh_reg_read 3 40993 NULL
++mac80211_format_buffer_41010 mac80211_format_buffer 2 41010 NULL
++mtd_block_isbad_41015 mtd_block_isbad 0 41015 NULL
++_req_append_segment_41031 _req_append_segment 2 41031 NULL
++mISDN_sock_sendmsg_41035 mISDN_sock_sendmsg 4 41035 NULL
++ocfs2_xattr_index_block_find_41040 ocfs2_xattr_index_block_find 0 41040 NULL
++vfs_listxattr_41062 vfs_listxattr 0 41062 NULL
++cfg80211_inform_bss_frame_41078 cfg80211_inform_bss_frame 4 41078 NULL
++roccat_read_41093 roccat_read 3 41093 NULL nohasharray
++nvme_map_user_pages_41093 nvme_map_user_pages 3-4 41093 &roccat_read_41093
++dma_attach_41094 dma_attach 5-6 41094 NULL
++provide_user_output_41105 provide_user_output 3 41105 NULL
++f_audio_buffer_alloc_41110 f_audio_buffer_alloc 1 41110 NULL
++v4l2_ctrl_new_int_menu_41151 v4l2_ctrl_new_int_menu 4 41151 NULL
++tx_frag_mpdu_alloc_failed_read_41167 tx_frag_mpdu_alloc_failed_read 3 41167 NULL
++dvb_ca_write_41171 dvb_ca_write 3 41171 NULL
++ol_quota_chunk_block_41177 ol_quota_chunk_block 0-2 41177 NULL
++netif_get_num_default_rss_queues_41187 netif_get_num_default_rss_queues 0 41187 NULL
++compat_sys_process_vm_writev_41194 compat_sys_process_vm_writev 3-5 41194 NULL
++dfs_file_write_41196 dfs_file_write 3 41196 NULL
++xfs_readdir_41200 xfs_readdir 3 41200 NULL
++ocfs2_read_quota_block_41207 ocfs2_read_quota_block 2 41207 NULL
++nfs_page_array_len_41219 nfs_page_array_len 0-2-1 41219 NULL
++hiddev_compat_ioctl_41255 hiddev_compat_ioctl 2-3 41255 NULL
++erst_read_41260 erst_read 0 41260 NULL
++__fprog_create_41263 __fprog_create 2 41263 NULL
++alloc_context_41283 alloc_context 1 41283 NULL
++arch_gnttab_map_shared_41306 arch_gnttab_map_shared 3 41306 NULL
++twl_change_queue_depth_41342 twl_change_queue_depth 2 41342 NULL
++cnic_init_id_tbl_41354 cnic_init_id_tbl 2 41354 NULL
++jbd2_alloc_41359 jbd2_alloc 1 41359 NULL
++kmp_init_41373 kmp_init 2 41373 NULL
++isr_commands_read_41398 isr_commands_read 3 41398 NULL
++sys_flistxattr_41407 sys_flistxattr 3 41407 NULL
++rx_defrag_decrypt_failed_read_41411 rx_defrag_decrypt_failed_read 3 41411 NULL
++xfs_iext_add_41422 xfs_iext_add 3 41422 NULL
++isdn_ppp_fill_rq_41428 isdn_ppp_fill_rq 2 41428 NULL
++lbs_rdrf_read_41431 lbs_rdrf_read 3 41431 NULL
++ext4_trim_extent_41436 ext4_trim_extent 4 41436 NULL
++iio_device_alloc_41440 iio_device_alloc 1 41440 NULL
++ntfs_file_buffered_write_41442 ntfs_file_buffered_write 4-6 41442 NULL
++pcpu_build_alloc_info_41443 pcpu_build_alloc_info 1-2-3 41443 NULL
++layout_leb_in_gaps_41470 layout_leb_in_gaps 0 41470 NULL
++snd_pcm_status_41472 snd_pcm_status 0 41472 NULL
++rt2x00debug_write_rfcsr_41473 rt2x00debug_write_rfcsr 3 41473 NULL
++wep_interrupt_read_41492 wep_interrupt_read 3 41492 NULL
++hpfs_translate_name_41497 hpfs_translate_name 3 41497 NULL
++xfrm_hash_new_size_41505 xfrm_hash_new_size 0-1 41505 NULL
++ldisc_receive_41516 ldisc_receive 4 41516 NULL
++tx_tx_frame_checksum_read_41553 tx_tx_frame_checksum_read 3 41553 NULL
++ath6kl_endpoint_stats_read_41554 ath6kl_endpoint_stats_read 3 41554 NULL
++gserial_setup_41558 gserial_setup 2 41558 NULL
++nr_status_frames_41559 nr_status_frames 0-1 41559 NULL
++batadv_receive_client_update_packet_41578 batadv_receive_client_update_packet 3 41578 NULL
++rng_dev_read_41581 rng_dev_read 3 41581 NULL
++read_file_rx_chainmask_41605 read_file_rx_chainmask 3 41605 NULL
++vga_io_r_41609 vga_io_r 0 41609 NULL
++usb_endpoint_maxp_41613 usb_endpoint_maxp 0 41613 NULL
++a2mp_send_41615 a2mp_send 4 41615 NULL
++mempool_create_kmalloc_pool_41650 mempool_create_kmalloc_pool 1 41650 NULL
++rx_rx_pre_complt_read_41653 rx_rx_pre_complt_read 3 41653 NULL
++get_std_timing_41654 get_std_timing 0 41654 NULL
++squashfs_cache_init_41656 squashfs_cache_init 2 41656 NULL
++ieee80211_if_fmt_bssid_41677 ieee80211_if_fmt_bssid 3 41677 NULL
++params_period_bytes_41683 params_period_bytes 0 41683 NULL
++aac_src_ioremap_41688 aac_src_ioremap 2 41688 NULL
++bdx_tx_db_init_41719 bdx_tx_db_init 2 41719 NULL
++sys_pwritev_41722 sys_pwritev 3 41722 NULL
++get_bios_ebda_41730 get_bios_ebda 0 41730 NULL
++fillonedir_41746 fillonedir 3 41746 NULL
++ocfs2_dx_dir_rebalance_41793 ocfs2_dx_dir_rebalance 7 41793 NULL
++hsi_alloc_controller_41802 hsi_alloc_controller 1 41802 NULL
++da9052_enable_irq_41814 da9052_enable_irq 2 41814 NULL
++sco_send_frame_41815 sco_send_frame 3 41815 NULL
++ixgbe_dbg_netdev_ops_read_41839 ixgbe_dbg_netdev_ops_read 3 41839 NULL
++do_ip_setsockopt_41852 do_ip_setsockopt 5 41852 NULL
++irq_data_to_status_reg_41854 irq_data_to_status_reg 0 41854 NULL
++keyctl_instantiate_key_41855 keyctl_instantiate_key 3 41855 NULL
++ieee80211_rx_radiotap_space_41870 ieee80211_rx_radiotap_space 0 41870 NULL
++get_fdb_entries_41916 get_fdb_entries 3 41916 NULL
++ceph_get_direct_page_vector_41917 ceph_get_direct_page_vector 2 41917 NULL
++find_ge_pid_41918 find_ge_pid 1 41918 NULL
++build_inv_iotlb_pages_41922 build_inv_iotlb_pages 4-5 41922 NULL
++nfsd_getxattr_41934 nfsd_getxattr 0 41934 NULL
++ext4_da_write_inline_data_begin_41935 ext4_da_write_inline_data_begin 3-4 41935 NULL
++ocfs2_xattr_bucket_get_name_value_41949 ocfs2_xattr_bucket_get_name_value 0 41949 NULL
++portnames_read_41958 portnames_read 3 41958 NULL
++ubi_self_check_all_ff_41959 ubi_self_check_all_ff 4 41959 NULL
++dst_mtu_41969 dst_mtu 0 41969 NULL
++cx24116_writeregN_41975 cx24116_writeregN 4 41975 NULL
++ubi_io_is_bad_41983 ubi_io_is_bad 0 41983 NULL
++lguest_map_42008 lguest_map 1-2 42008 NULL
++pool_allocate_42012 pool_allocate 3 42012 NULL
++spidev_sync_read_42014 spidev_sync_read 0 42014 NULL
++acpi_ut_create_buffer_object_42030 acpi_ut_create_buffer_object 1 42030 NULL
++__hwahc_op_set_gtk_42038 __hwahc_op_set_gtk 4 42038 NULL
++irda_sendmsg_ultra_42047 irda_sendmsg_ultra 4 42047 NULL
++dma_generic_alloc_coherent_42048 dma_generic_alloc_coherent 2 42048 NULL nohasharray
++jffs2_do_link_42048 jffs2_do_link 6 42048 &dma_generic_alloc_coherent_42048
++ps_poll_upsd_max_ap_turn_read_42050 ps_poll_upsd_max_ap_turn_read 3 42050 NULL
++InterfaceTransmitPacket_42058 InterfaceTransmitPacket 3 42058 NULL
++scsi_execute_req_42088 scsi_execute_req 5 42088 NULL
++sk_chk_filter_42095 sk_chk_filter 2 42095 NULL
++submit_inquiry_42108 submit_inquiry 3 42108 NULL
++sysfs_read_file_42113 sysfs_read_file 3 42113 NULL
++Read_hfc16_stable_42131 Read_hfc16_stable 0 42131 NULL
++v9fs_alloc_rdir_buf_42150 v9fs_alloc_rdir_buf 2 42150 NULL
++mmc_align_data_size_42161 mmc_align_data_size 0-2 42161 NULL
++read_file_base_eeprom_42168 read_file_base_eeprom 3 42168 NULL
++oprofilefs_str_to_user_42182 oprofilefs_str_to_user 3 42182 NULL
++get_znodes_to_commit_42201 get_znodes_to_commit 0 42201 NULL
++btmrvl_hsmode_write_42252 btmrvl_hsmode_write 3 42252 NULL
++rx_defrag_need_decrypt_read_42253 rx_defrag_need_decrypt_read 3 42253 NULL
++netxen_nic_map_indirect_address_128M_42257 netxen_nic_map_indirect_address_128M 2 42257 NULL
++savu_sysfs_write_42273 savu_sysfs_write 6 42273 NULL
++snd_pcm_hw_param_value_max_42280 snd_pcm_hw_param_value_max 0 42280 NULL
++sel_read_perm_42302 sel_read_perm 3 42302 NULL
++sctp_setsockopt_del_key_42304 sctp_setsockopt_del_key 3 42304 NULL nohasharray
++ulong_read_file_42304 ulong_read_file 3 42304 &sctp_setsockopt_del_key_42304
++xfs_vm_readpages_42308 xfs_vm_readpages 4 42308 NULL
++hysdn_conf_read_42324 hysdn_conf_read 3 42324 NULL
++tcp_sync_mss_42330 tcp_sync_mss 2-0 42330 NULL
++snd_pcm_plug_alloc_42339 snd_pcm_plug_alloc 2 42339 NULL
++ide_raw_taskfile_42355 ide_raw_taskfile 4 42355 NULL
++il_dbgfs_disable_ht40_read_42386 il_dbgfs_disable_ht40_read 3 42386 NULL
++msnd_fifo_read_42406 msnd_fifo_read 0-3 42406 NULL
++krng_get_random_42420 krng_get_random 3 42420 NULL
++gsm_data_alloc_42437 gsm_data_alloc 3 42437 NULL
++key_conf_keyidx_read_42443 key_conf_keyidx_read 3 42443 NULL
++snd_pcm_action_group_42452 snd_pcm_action_group 0 42452 NULL
++tcm_loop_change_queue_depth_42454 tcm_loop_change_queue_depth 2 42454 NULL
++tc3589x_gpio_irq_get_virq_42457 tc3589x_gpio_irq_get_virq 2 42457 NULL
++ext3_valid_block_bitmap_42459 ext3_valid_block_bitmap 3 42459 NULL
++__simple_xattr_set_42474 __simple_xattr_set 4 42474 NULL
++follow_hugetlb_page_42486 follow_hugetlb_page 0-7 42486 NULL
++omfs_readpages_42490 omfs_readpages 4 42490 NULL
++brcmf_sdbrcm_bus_txctl_42492 brcmf_sdbrcm_bus_txctl 3 42492 NULL
++kvm_write_wall_clock_42520 kvm_write_wall_clock 2 42520 NULL
++smk_write_netlbladdr_42525 smk_write_netlbladdr 3 42525 NULL
++snd_emux_create_port_42533 snd_emux_create_port 3 42533 NULL
++dbAllocNear_42546 dbAllocNear 0 42546 NULL
++i915_ring_stop_read_42549 i915_ring_stop_read 3 42549 NULL nohasharray
++ath6kl_wmi_proc_events_vif_42549 ath6kl_wmi_proc_events_vif 5 42549 &i915_ring_stop_read_42549
++iwl_print_event_log_42566 iwl_print_event_log 0-5-7 42566 NULL
++xfrm_new_hash_mask_42579 xfrm_new_hash_mask 0-1 42579 NULL
++oom_score_adj_write_42594 oom_score_adj_write 3 42594 NULL
++map_state_42602 map_state 1 42602 NULL nohasharray
++__pskb_pull_42602 __pskb_pull 2 42602 &map_state_42602
++sys_move_pages_42626 sys_move_pages 2 42626 NULL
++ieee80211_if_fmt_dot11MeshHWMPactivePathTimeout_42635 ieee80211_if_fmt_dot11MeshHWMPactivePathTimeout 3 42635 NULL
++scsi_activate_tcq_42640 scsi_activate_tcq 2 42640 NULL
++br_mdb_rehash_42643 br_mdb_rehash 2 42643 NULL
++_regmap_raw_write_42652 _regmap_raw_write 4-2 42652 NULL
++l2tp_xmit_skb_42672 l2tp_xmit_skb 3 42672 NULL
++request_key_and_link_42693 request_key_and_link 4 42693 NULL
++vb2_read_42703 vb2_read 3 42703 NULL
++sierra_net_send_cmd_42708 sierra_net_send_cmd 3 42708 NULL
++__ocfs2_decrease_refcount_42717 __ocfs2_decrease_refcount 4 42717 NULL
++dvb_demux_ioctl_42733 dvb_demux_ioctl 2 42733 NULL
++set_aoe_iflist_42737 set_aoe_iflist 2 42737 NULL
++ax25_setsockopt_42740 ax25_setsockopt 5 42740 NULL
++xen_bind_pirq_gsi_to_irq_42750 xen_bind_pirq_gsi_to_irq 1 42750 NULL
++snd_midi_event_decode_42780 snd_midi_event_decode 0 42780 NULL
++cryptd_hash_setkey_42781 cryptd_hash_setkey 3 42781 NULL
++koneplus_sysfs_read_42792 koneplus_sysfs_read 6 42792 NULL
++ntfs_attr_extend_allocation_42796 ntfs_attr_extend_allocation 0-2 42796 NULL
++fw_device_op_compat_ioctl_42804 fw_device_op_compat_ioctl 2-3 42804 NULL
++drm_ioctl_42813 drm_ioctl 2 42813 NULL
++iwl_dbgfs_ucode_bt_stats_read_42820 iwl_dbgfs_ucode_bt_stats_read 3 42820 NULL
++set_arg_42824 set_arg 3 42824 NULL
++ocfs2_desc_bitmap_to_cluster_off_42831 ocfs2_desc_bitmap_to_cluster_off 2 42831 NULL
++xfs_buf_read_uncached_42844 xfs_buf_read_uncached 3 42844 NULL
++prandom_u32_42853 prandom_u32 0 42853 NULL
++of_property_count_strings_42863 of_property_count_strings 0 42863 NULL
++ocfs2_clusters_for_bytes_42872 ocfs2_clusters_for_bytes 0-2 42872 NULL
++pskb_expand_head_42881 pskb_expand_head 2-3 42881 NULL
++vt_compat_ioctl_42887 vt_compat_ioctl 3 42887 NULL
++tipc_port_recv_sections_42890 tipc_port_recv_sections 4 42890 NULL
++xpc_kmalloc_cacheline_aligned_42895 xpc_kmalloc_cacheline_aligned 1 42895 NULL
++SendTxCommandPacket_42901 SendTxCommandPacket 3 42901 NULL
++hd_end_request_42904 hd_end_request 2 42904 NULL
++sta_last_rx_rate_read_42909 sta_last_rx_rate_read 3 42909 NULL
++sctp_getsockopt_maxburst_42941 sctp_getsockopt_maxburst 2 42941 NULL
++get_unmapped_area_42944 get_unmapped_area 0 42944 NULL
++sys_sethostname_42962 sys_sethostname 2 42962 NULL
++read_file_node_stat_42964 read_file_node_stat 3 42964 NULL
++compat_udpv6_setsockopt_42981 compat_udpv6_setsockopt 5 42981 NULL
++snd_timer_user_ioctl_compat_42985 snd_timer_user_ioctl_compat 3 42985 NULL
++nfs_idmap_get_desc_42990 nfs_idmap_get_desc 4-2 42990 NULL
++mlx4_qp_reserve_range_43000 mlx4_qp_reserve_range 2-3 43000 NULL
++isr_rx_mem_overflow_read_43025 isr_rx_mem_overflow_read 3 43025 NULL
++wep_default_key_count_read_43035 wep_default_key_count_read 3 43035 NULL
++nouveau_gpuobj_create__43072 nouveau_gpuobj_create_ 9 43072 NULL
++cpuset_sprintf_memlist_43088 cpuset_sprintf_memlist 0 43088 NULL
++ieee80211_if_fmt_drop_unencrypted_43107 ieee80211_if_fmt_drop_unencrypted 3 43107 NULL
++read_file_dfs_43145 read_file_dfs 3 43145 NULL
++uuid_string_43154 uuid_string 0 43154 NULL
++usb_string_sub_43164 usb_string_sub 0 43164 NULL
++il_dbgfs_power_save_status_read_43165 il_dbgfs_power_save_status_read 3 43165 NULL
++ath6kl_set_assoc_req_ies_43185 ath6kl_set_assoc_req_ies 3 43185 NULL
++process_measurement_43190 process_measurement 0 43190 NULL
++ext4_xattr_ibody_get_43200 ext4_xattr_ibody_get 0 43200 NULL
++uio_write_43202 uio_write 3 43202 NULL
++iso_callback_43208 iso_callback 3 43208 NULL
++f2fs_acl_from_disk_43210 f2fs_acl_from_disk 2 43210 NULL
++atomic_long_add_return_43217 atomic_long_add_return 1 43217 NULL
++comedi_compat_ioctl_43218 comedi_compat_ioctl 3 43218 NULL
++vmemmap_alloc_block_43245 vmemmap_alloc_block 1 43245 NULL
++fixup_leb_43256 fixup_leb 3 43256 NULL
++ide_end_rq_43269 ide_end_rq 4 43269 NULL
++evtchn_write_43278 evtchn_write 3 43278 NULL
++filemap_write_and_wait_range_43279 filemap_write_and_wait_range 0 43279 NULL
++mpage_alloc_43299 mpage_alloc 3 43299 NULL
++get_nr_irqs_gsi_43315 get_nr_irqs_gsi 0 43315 NULL
++__ext4_get_inode_loc_43332 __ext4_get_inode_loc 0 43332 NULL
++gart_free_coherent_43362 gart_free_coherent 4-2 43362 NULL
++xenfb_write_43412 xenfb_write 3 43412 NULL
++gdm_wimax_netif_rx_43423 gdm_wimax_netif_rx 3 43423 NULL nohasharray
++__alloc_bootmem_low_43423 __alloc_bootmem_low 1 43423 &gdm_wimax_netif_rx_43423
++usb_alloc_urb_43436 usb_alloc_urb 1 43436 NULL
++ath6kl_wmi_roam_tbl_event_rx_43440 ath6kl_wmi_roam_tbl_event_rx 3 43440 NULL
++usemap_size_43443 usemap_size 0-2-1 43443 NULL nohasharray
++usb_string_43443 usb_string 0 43443 &usemap_size_43443
++alloc_new_reservation_43480 alloc_new_reservation 4 43480 NULL
++tx_tx_data_prepared_read_43497 tx_tx_data_prepared_read 3 43497 NULL
++ieee80211_if_fmt_dot11MeshHWMPnetDiameterTraversalTime_43505 ieee80211_if_fmt_dot11MeshHWMPnetDiameterTraversalTime 3 43505 NULL
++do_readlink_43518 do_readlink 2 43518 NULL
++dvb_ca_en50221_io_write_43533 dvb_ca_en50221_io_write 3 43533 NULL
++cachefiles_daemon_write_43535 cachefiles_daemon_write 3 43535 NULL
++tx_frag_failed_read_43540 tx_frag_failed_read 3 43540 NULL nohasharray
++ufs_alloccg_block_43540 ufs_alloccg_block 3-0 43540 &tx_frag_failed_read_43540
++ath_rx_init_43564 ath_rx_init 2 43564 NULL
++_fc_frame_alloc_43568 _fc_frame_alloc 1 43568 NULL
++rpc_malloc_43573 rpc_malloc 2 43573 NULL
++lpfc_idiag_drbacc_read_reg_43606 lpfc_idiag_drbacc_read_reg 0-3 43606 NULL
++proc_read_43614 proc_read 3 43614 NULL
++bio_integrity_tag_43658 bio_integrity_tag 3 43658 NULL
++tps65217_set_bits_43659 tps65217_set_bits 2 43659 NULL nohasharray
++ext4_acl_count_43659 ext4_acl_count 0-1 43659 &tps65217_set_bits_43659
++dmam_declare_coherent_memory_43679 dmam_declare_coherent_memory 4-2 43679 NULL
++calgary_map_page_43686 calgary_map_page 3-4 43686 NULL
++max77693_bulk_write_43698 max77693_bulk_write 2-3 43698 NULL
++drbd_md_first_sector_43729 drbd_md_first_sector 0 43729 NULL
++snd_rme32_playback_copy_43732 snd_rme32_playback_copy 5 43732 NULL
++ocfs2_replace_clusters_43733 ocfs2_replace_clusters 5 43733 NULL
++osdv1_attr_list_elem_size_43747 osdv1_attr_list_elem_size 0-1 43747 NULL
++__bm_find_next_43748 __bm_find_next 2 43748 NULL
++gigaset_initcs_43753 gigaset_initcs 2 43753 NULL
++sctp_setsockopt_active_key_43755 sctp_setsockopt_active_key 3 43755 NULL
++ocfs2_xattr_get_value_outside_43787 ocfs2_xattr_get_value_outside 0 43787 NULL nohasharray
++byte_pos_43787 byte_pos 0-2 43787 &ocfs2_xattr_get_value_outside_43787
++btrfs_copy_from_user_43806 btrfs_copy_from_user 3-1 43806 NULL
++ext4_read_block_bitmap_43814 ext4_read_block_bitmap 2 43814 NULL
++ieee80211_if_fmt_element_ttl_43825 ieee80211_if_fmt_element_ttl 3 43825 NULL
++ieee80211_alloc_hw_43829 ieee80211_alloc_hw 1 43829 NULL
++p54_download_eeprom_43842 p54_download_eeprom 4 43842 NULL
++read_flush_43851 read_flush 3 43851 NULL
++ocfs2_block_group_find_clear_bits_43874 ocfs2_block_group_find_clear_bits 4 43874 NULL
++pm860x_bulk_write_43875 pm860x_bulk_write 3-2 43875 NULL
++ec_dbgfs_cmd_write_43895 ec_dbgfs_cmd_write 3 43895 NULL
++prism2_sta_send_mgmt_43916 prism2_sta_send_mgmt 5 43916 NULL
++SendString_43928 SendString 3 43928 NULL
++xen_register_gsi_43946 xen_register_gsi 1-2 43946 NULL
++stats_dot11RTSFailureCount_read_43948 stats_dot11RTSFailureCount_read 3 43948 NULL
++__get_required_blob_size_43980 __get_required_blob_size 0-2-3 43980 NULL
++nla_reserve_43984 nla_reserve 3 43984 NULL
++scsi_command_size_43992 scsi_command_size 0 43992 NULL nohasharray
++bcm_recvmsg_43992 bcm_recvmsg 4 43992 &scsi_command_size_43992
++emit_flags_44006 emit_flags 4-3 44006 NULL
++write_flush_procfs_44011 write_flush_procfs 3 44011 NULL
++xlog_recover_add_to_cont_trans_44102 xlog_recover_add_to_cont_trans 4 44102 NULL
++tracing_set_trace_read_44122 tracing_set_trace_read 3 44122 NULL
++vmw_gmr_bind_44130 vmw_gmr_bind 3 44130 NULL
++scsi_get_resid_44147 scsi_get_resid 0 44147 NULL
++ubifs_find_dirty_idx_leb_44169 ubifs_find_dirty_idx_leb 0 44169 NULL
++ocfs2_xattr_bucket_find_44174 ocfs2_xattr_bucket_find 0 44174 NULL
++handle_eviocgbit_44193 handle_eviocgbit 3 44193 NULL
++IO_APIC_get_PCI_irq_vector_44198 IO_APIC_get_PCI_irq_vector 0 44198 NULL
++__set_free_44211 __set_free 2 44211 NULL
++claim_ptd_buffers_44213 claim_ptd_buffers 3 44213 NULL
++srp_alloc_iu_44227 srp_alloc_iu 2 44227 NULL
++ioapic_register_intr_44238 ioapic_register_intr 1 44238 NULL
++scsi_track_queue_full_44239 scsi_track_queue_full 2 44239 NULL
++tc3589x_gpio_irq_map_44245 tc3589x_gpio_irq_map 2 44245 NULL
++enlarge_skb_44248 enlarge_skb 2 44248 NULL nohasharray
++xfs_buf_readahead_map_44248 xfs_buf_readahead_map 3 44248 &enlarge_skb_44248
++ufs_clusteracct_44293 ufs_clusteracct 3 44293 NULL
++ocfs2_zero_range_for_truncate_44294 ocfs2_zero_range_for_truncate 3 44294 NULL
++ath6kl_keepalive_read_44303 ath6kl_keepalive_read 3 44303 NULL
++bitmap_scnprintf_44318 bitmap_scnprintf 0-2 44318 NULL
++dispatch_proc_write_44320 dispatch_proc_write 3 44320 NULL
++ubi_eba_write_leb_st_44343 ubi_eba_write_leb_st 5 44343 NULL
++nfs_fscache_get_super_cookie_44355 nfs_fscache_get_super_cookie 3 44355 NULL nohasharray
++blk_queue_init_tags_44355 blk_queue_init_tags 2 44355 &nfs_fscache_get_super_cookie_44355
++rts_threshold_read_44384 rts_threshold_read 3 44384 NULL
++aoedev_flush_44398 aoedev_flush 2 44398 NULL
++drm_buffer_alloc_44405 drm_buffer_alloc 2 44405 NULL
++osst_do_scsi_44410 osst_do_scsi 4 44410 NULL
++ieee80211_if_read_rc_rateidx_mcs_mask_5ghz_44423 ieee80211_if_read_rc_rateidx_mcs_mask_5ghz 3 44423 NULL
++prandom_u32_state_44445 prandom_u32_state 0 44445 NULL
++btrfs_chunk_item_size_44478 btrfs_chunk_item_size 0-1 44478 NULL
++sdio_align_size_44489 sdio_align_size 0-2 44489 NULL
++ieee80211_if_read_dropped_frames_ttl_44500 ieee80211_if_read_dropped_frames_ttl 3 44500 NULL
++security_getprocattr_44505 security_getprocattr 0 44505 NULL nohasharray
++iwl_dbgfs_sram_read_44505 iwl_dbgfs_sram_read 3 44505 &security_getprocattr_44505
++spidev_write_44510 spidev_write 3 44510 NULL
++sys_msgsnd_44537 sys_msgsnd 3 44537 NULL nohasharray
++comm_write_44537 comm_write 3 44537 &sys_msgsnd_44537
++snd_pcm_drop_44542 snd_pcm_drop 0 44542 NULL
++dbg_chk_pnode_44555 dbg_chk_pnode 0 44555 NULL
++snd_pcm_alloc_vmalloc_buffer_44595 snd_pcm_alloc_vmalloc_buffer 2 44595 NULL
++slip_compat_ioctl_44599 slip_compat_ioctl 4 44599 NULL
++wm5100_gpio_set_44602 wm5100_gpio_set 2 44602 NULL
++brcmf_sdbrcm_glom_len_44618 brcmf_sdbrcm_glom_len 0 44618 NULL
++cfpkt_add_body_44630 cfpkt_add_body 3 44630 NULL
++ext2_new_block_44645 ext2_new_block 2 44645 NULL
++alloc_ctrl_packet_44667 alloc_ctrl_packet 1 44667 NULL
++mpi_resize_44674 mpi_resize 2 44674 NULL
++ts_read_44687 ts_read 3 44687 NULL
++_zd_iowrite32v_locked_44725 _zd_iowrite32v_locked 3 44725 NULL
++clusterip_proc_write_44729 clusterip_proc_write 3 44729 NULL
++fib_count_nexthops_44730 fib_count_nexthops 0 44730 NULL
++key_tx_rx_count_read_44742 key_tx_rx_count_read 3 44742 NULL
++WIL_GET_BITS_44747 WIL_GET_BITS 0-1-2-3 44747 NULL
++tnode_new_44757 tnode_new 3 44757 NULL nohasharray
++pty_write_44757 pty_write 3 44757 &tnode_new_44757
++__videobuf_copy_stream_44769 __videobuf_copy_stream 4 44769 NULL
++handsfree_ramp_44777 handsfree_ramp 2 44777 NULL
++sctp_setsockopt_44788 sctp_setsockopt 5 44788 NULL
++rx_dropped_read_44799 rx_dropped_read 3 44799 NULL
++qla4xxx_alloc_work_44813 qla4xxx_alloc_work 2 44813 NULL
++rmap_write_protect_44833 rmap_write_protect 2 44833 NULL
++sisusb_write_44834 sisusb_write 3 44834 NULL
++nl80211_send_unprot_disassoc_44846 nl80211_send_unprot_disassoc 4 44846 NULL
++kvm_read_hva_44847 kvm_read_hva 3 44847 NULL
++skb_availroom_44883 skb_availroom 0 44883 NULL
++nf_bridge_encap_header_len_44890 nf_bridge_encap_header_len 0 44890 NULL
++do_tty_write_44896 do_tty_write 5 44896 NULL
++tx_queue_status_read_44978 tx_queue_status_read 3 44978 NULL
++nf_nat_seq_adjust_44989 nf_nat_seq_adjust 4 44989 NULL
++max77693_write_reg_45004 max77693_write_reg 2 45004 NULL
++ftdi_process_packet_45005 ftdi_process_packet 5 45005 NULL
++bytepos_delta_45017 bytepos_delta 0 45017 NULL
++read_block_bitmap_45021 read_block_bitmap 2 45021 NULL nohasharray
++ptrace_writedata_45021 ptrace_writedata 4-3 45021 &read_block_bitmap_45021
++vhci_get_user_45039 vhci_get_user 3 45039 NULL
++sel_write_user_45060 sel_write_user 3 45060 NULL
++snd_mixart_BA0_read_45069 snd_mixart_BA0_read 5 45069 NULL nohasharray
++do_video_ioctl_45069 do_video_ioctl 3 45069 &snd_mixart_BA0_read_45069
++kvm_mmu_page_get_gfn_45110 kvm_mmu_page_get_gfn 0-2 45110 NULL
++pwr_missing_bcns_cnt_read_45113 pwr_missing_bcns_cnt_read 3 45113 NULL
++usbdev_read_45114 usbdev_read 3 45114 NULL
++send_to_tty_45141 send_to_tty 3 45141 NULL
++stmpe_irq_map_45146 stmpe_irq_map 2 45146 NULL
++crypto_aead_blocksize_45148 crypto_aead_blocksize 0 45148 NULL
++gen_bitmask_string_45149 gen_bitmask_string 6 45149 NULL
++ocfs2_remove_inode_range_45156 ocfs2_remove_inode_range 3-4 45156 NULL nohasharray
++device_write_45156 device_write 3 45156 &ocfs2_remove_inode_range_45156
++ocfs2_dq_frozen_trigger_45159 ocfs2_dq_frozen_trigger 4 45159 NULL
++tomoyo_write_self_45161 tomoyo_write_self 3 45161 NULL
++sta_agg_status_write_45164 sta_agg_status_write 3 45164 NULL
++snd_sb_csp_load_user_45190 snd_sb_csp_load_user 3 45190 NULL
++num_clusters_in_group_45194 num_clusters_in_group 2 45194 NULL
++add_child_45201 add_child 4 45201 NULL
++iso_alloc_urb_45206 iso_alloc_urb 4-5 45206 NULL
++spi_alloc_master_45223 spi_alloc_master 2 45223 NULL
++ieee80211_if_read_peer_45233 ieee80211_if_read_peer 3 45233 NULL
++input_mt_init_slots_45279 input_mt_init_slots 2 45279 NULL
++vcc_compat_ioctl_45291 vcc_compat_ioctl 3 45291 NULL
++snd_pcm_oss_sync1_45298 snd_pcm_oss_sync1 2 45298 NULL
++copy_vm86_regs_from_user_45340 copy_vm86_regs_from_user 3 45340 NULL
++lane2_associate_req_45398 lane2_associate_req 4 45398 NULL
++keymap_store_45406 keymap_store 4 45406 NULL
++ieee80211_if_fmt_dot11MeshHWMProotInterval_45421 ieee80211_if_fmt_dot11MeshHWMProotInterval 3 45421 NULL
++tty_buffer_alloc_45437 tty_buffer_alloc 2 45437 NULL
++do_mmap_pgoff_45441 do_mmap_pgoff 0 45441 NULL
++intel_render_ring_init_dri_45446 intel_render_ring_init_dri 2-3 45446 NULL
++__node_remap_45458 __node_remap 4 45458 NULL
++rds_ib_set_wr_signal_state_45463 rds_ib_set_wr_signal_state 0 45463 NULL
++udp_manip_pkt_45467 udp_manip_pkt 4 45467 NULL
++tracing_read_dyn_info_45468 tracing_read_dyn_info 3 45468 NULL
++snd_pcm_hwsync_45479 snd_pcm_hwsync 0 45479 NULL
++arizona_init_fll_45503 arizona_init_fll 4-5 45503 NULL
++rds_message_copy_from_user_45510 rds_message_copy_from_user 3 45510 NULL
++clone_bio_45516 clone_bio 6 45516 NULL
++sys_lgetxattr_45531 sys_lgetxattr 4 45531 NULL
++cgroup_read_u64_45532 cgroup_read_u64 5 45532 NULL
++copy_macs_45534 copy_macs 4 45534 NULL
++nla_attr_size_45545 nla_attr_size 0-1 45545 NULL
++v9fs_direct_read_45546 v9fs_direct_read 3 45546 NULL
++cx18_copy_mdl_to_user_45549 cx18_copy_mdl_to_user 4 45549 NULL
++atomic_long_sub_return_45551 atomic_long_sub_return 1 45551 NULL
++ext3_group_first_block_no_45555 ext3_group_first_block_no 0-2 45555 NULL
++stats_dot11ACKFailureCount_read_45558 stats_dot11ACKFailureCount_read 3 45558 NULL
++posix_acl_xattr_size_45561 posix_acl_xattr_size 0-1 45561 NULL
++venus_rmdir_45564 venus_rmdir 4 45564 NULL
++ipath_create_cq_45586 ipath_create_cq 2 45586 NULL
++rdma_set_ib_paths_45592 rdma_set_ib_paths 3 45592 NULL
++hidraw_get_report_45609 hidraw_get_report 3 45609 NULL
++audit_log_n_hex_45617 audit_log_n_hex 3 45617 NULL
++da9052_gpio_set_45643 da9052_gpio_set 2 45643 NULL
++ebitmap_next_positive_45651 ebitmap_next_positive 3 45651 NULL
++dma_map_cont_45668 dma_map_cont 5 45668 NULL
++compat_mpctl_ioctl_45671 compat_mpctl_ioctl 2 45671 NULL
++dgram_sendmsg_45679 dgram_sendmsg 4 45679 NULL
++smk_write_ambient_45691 smk_write_ambient 3 45691 NULL
++dm_compat_ctl_ioctl_45692 dm_compat_ctl_ioctl 3 45692 NULL
++unix_dgram_sendmsg_45699 unix_dgram_sendmsg 4 45699 NULL nohasharray
++bscnl_emit_45699 bscnl_emit 2-5-0 45699 &unix_dgram_sendmsg_45699
++dvb_ca_en50221_init_45718 dvb_ca_en50221_init 4 45718 NULL
++snd_cs46xx_io_read_45734 snd_cs46xx_io_read 5 45734 NULL
++rw_copy_check_uvector_45748 rw_copy_check_uvector 3 45748 NULL nohasharray
++v4l2_ctrl_new_std_45748 v4l2_ctrl_new_std 5 45748 &rw_copy_check_uvector_45748
++lkdtm_debugfs_read_45752 lkdtm_debugfs_read 3 45752 NULL
++nilfs_compat_ioctl_45769 nilfs_compat_ioctl 3 45769 NULL
++alloc_ts_config_45775 alloc_ts_config 1 45775 NULL
++raw_setsockopt_45800 raw_setsockopt 5 45800 NULL
++lbs_rdbbp_read_45805 lbs_rdbbp_read 3 45805 NULL
++pcpu_alloc_alloc_info_45813 pcpu_alloc_alloc_info 1-2 45813 NULL
++fm_v4l2_init_video_device_45821 fm_v4l2_init_video_device 2 45821 NULL
++memcg_update_cache_size_45828 memcg_update_cache_size 2 45828 NULL
++amthi_read_45831 amthi_read 4 45831 NULL
++x509_process_extension_45854 x509_process_extension 5 45854 NULL
++isdn_write_45863 isdn_write 3 45863 NULL
++rbd_get_num_segments_45864 rbd_get_num_segments 0-2-3 45864 NULL
++unpack_orig_pfns_45867 unpack_orig_pfns 0 45867 NULL
++get_rdac_req_45882 get_rdac_req 3 45882 NULL
++ocfs2_xattr_block_find_45891 ocfs2_xattr_block_find 0 45891 NULL
++dbgfs_frame_45917 dbgfs_frame 3 45917 NULL
++nf_nat_ftp_fmt_cmd_45926 nf_nat_ftp_fmt_cmd 0 45926 NULL
++alloc_mr_45935 alloc_mr 1 45935 NULL
++rb_simple_read_45972 rb_simple_read 3 45972 NULL
++ezusb_writememory_45976 ezusb_writememory 4 45976 NULL
++ioat2_dca_count_dca_slots_45984 ioat2_dca_count_dca_slots 0 45984 NULL
++sierra_setup_urb_46029 sierra_setup_urb 5 46029 NULL
++get_free_entries_46030 get_free_entries 1 46030 NULL
++__access_remote_vm_46031 __access_remote_vm 0-5-3 46031 NULL
++snd_emu10k1x_ptr_read_46049 snd_emu10k1x_ptr_read 0 46049 NULL
++acpi_register_gsi_xen_hvm_46052 acpi_register_gsi_xen_hvm 2 46052 NULL
++line6_midibuf_bytes_used_46059 line6_midibuf_bytes_used 0 46059 NULL
++__ocfs2_move_extent_46060 __ocfs2_move_extent 5-6 46060 NULL nohasharray
++dma_tx_errors_read_46060 dma_tx_errors_read 3 46060 &__ocfs2_move_extent_46060
++slhc_toss_46066 slhc_toss 0 46066 NULL
++sel_commit_bools_write_46077 sel_commit_bools_write 3 46077 NULL
++vfio_config_do_rw_46091 vfio_config_do_rw 3 46091 NULL
++ata_host_alloc_46094 ata_host_alloc 2 46094 NULL
++arizona_set_irq_wake_46101 arizona_set_irq_wake 2 46101 NULL
++pkt_ctl_compat_ioctl_46110 pkt_ctl_compat_ioctl 3 46110 NULL
++memcg_update_array_size_46111 memcg_update_array_size 1 46111 NULL nohasharray
++il3945_ucode_general_stats_read_46111 il3945_ucode_general_stats_read 3 46111 &memcg_update_array_size_46111
++mlx4_ib_alloc_fast_reg_page_list_46119 mlx4_ib_alloc_fast_reg_page_list 2 46119 NULL
++__netlink_change_ngroups_46156 __netlink_change_ngroups 2 46156 NULL
++qlcnic_alloc_msix_entries_46160 qlcnic_alloc_msix_entries 2 46160 NULL
++twl_direction_out_46182 twl_direction_out 2 46182 NULL
++vxge_os_dma_malloc_46184 vxge_os_dma_malloc 2 46184 NULL
++i2400m_op_msg_from_user_46213 i2400m_op_msg_from_user 4 46213 NULL
++tm6000_i2c_recv_regs_46215 tm6000_i2c_recv_regs 5 46215 NULL
++dsp_write_46218 dsp_write 2 46218 NULL
++mpi_read_raw_data_46248 mpi_read_raw_data 2 46248 NULL
++__le64_to_cpup_46257 __le64_to_cpup 0 46257 NULL
++nf_nat_ftp_46265 nf_nat_ftp 6 46265 NULL
++ReadReg_46277 ReadReg 0 46277 NULL
++batadv_iv_ogm_queue_add_46319 batadv_iv_ogm_queue_add 3 46319 NULL
++__hwahc_dev_set_key_46328 __hwahc_dev_set_key 5 46328 NULL
++twl6040_write_46351 twl6040_write 2 46351 NULL
++iwl_dbgfs_chain_noise_read_46355 iwl_dbgfs_chain_noise_read 3 46355 NULL
++smk_write_direct_46363 smk_write_direct 3 46363 NULL
++__iommu_calculate_agaw_46366 __iommu_calculate_agaw 2 46366 NULL
++ubi_dump_flash_46381 ubi_dump_flash 4 46381 NULL
++fuse_file_aio_write_46399 fuse_file_aio_write 4 46399 NULL
++crypto_ablkcipher_reqsize_46411 crypto_ablkcipher_reqsize 0 46411 NULL
++cp210x_set_config_46447 cp210x_set_config 4 46447 NULL
++filldir64_46469 filldir64 3 46469 NULL
++fill_in_write_vector_46498 fill_in_write_vector 0 46498 NULL
++pin_code_reply_46510 pin_code_reply 4 46510 NULL
++mthca_alloc_cq_buf_46512 mthca_alloc_cq_buf 3 46512 NULL
++kmsg_read_46514 kmsg_read 3 46514 NULL
++bdx_rxdb_create_46525 bdx_rxdb_create 1 46525 NULL
++nl80211_send_rx_assoc_46538 nl80211_send_rx_assoc 4 46538 NULL
++pm860x_irq_domain_map_46553 pm860x_irq_domain_map 2 46553 NULL
++mv_get_hc_count_46554 mv_get_hc_count 0 46554 NULL
++link_send_sections_long_46556 link_send_sections_long 4 46556 NULL
++irq_domain_associate_46564 irq_domain_associate 2 46564 NULL
++dn_current_mss_46574 dn_current_mss 0 46574 NULL
++serverworks_create_gatt_pages_46582 serverworks_create_gatt_pages 1 46582 NULL
++snd_compr_write_data_46592 snd_compr_write_data 3 46592 NULL
++il3945_stats_flag_46606 il3945_stats_flag 0-3 46606 NULL
++vscnprintf_46617 vscnprintf 0-2 46617 NULL
++__kfifo_out_r_46623 __kfifo_out_r 0-3 46623 NULL
++request_key_async_with_auxdata_46624 request_key_async_with_auxdata 4 46624 NULL
++aircable_process_packet_46639 aircable_process_packet 5 46639 NULL
++av7110_ipack_init_46655 av7110_ipack_init 2 46655 NULL
++alloc_data_packet_46698 alloc_data_packet 1 46698 NULL
++__ilog2_u32_46706 __ilog2_u32 0 46706 NULL
++erst_dbg_write_46715 erst_dbg_write 3 46715 NULL
++wl1271_rx_filter_alloc_field_46721 wl1271_rx_filter_alloc_field 5 46721 NULL
++prepare_copy_46725 prepare_copy 2 46725 NULL
++irq_domain_add_simple_46734 irq_domain_add_simple 2-3 46734 NULL
++ext4_count_free_46754 ext4_count_free 2 46754 NULL
++hest_ghes_dev_register_46766 hest_ghes_dev_register 1 46766 NULL
++int_hw_irq_en_46776 int_hw_irq_en 3 46776 NULL
++regcache_lzo_sync_46777 regcache_lzo_sync 2 46777 NULL
++scrub_chunk_46789 scrub_chunk 4 46789 NULL
++_sys_packet_req_46793 _sys_packet_req 4 46793 NULL
++_xfs_buf_get_pages_46811 _xfs_buf_get_pages 2 46811 NULL
++xfs_iroot_realloc_46826 xfs_iroot_realloc 2 46826 NULL
++shmem_pwrite_fast_46842 shmem_pwrite_fast 3 46842 NULL
++ieee80211_rx_radiotap_len_46846 ieee80211_rx_radiotap_len 0 46846 NULL
++spi_async_46857 spi_async 0 46857 NULL
++ieee80211_mgmt_tx_46860 ieee80211_mgmt_tx 9 46860 NULL
++vsnprintf_46863 vsnprintf 0 46863 NULL
++nvme_alloc_queue_46865 nvme_alloc_queue 3 46865 NULL
++sip_sprintf_addr_46872 sip_sprintf_addr 0 46872 NULL
++rvmalloc_46873 rvmalloc 1 46873 NULL
++hpi_read_word_nolock_46881 hpi_read_word_nolock 0 46881 NULL
++stmpe_gpio_irq_unmap_46884 stmpe_gpio_irq_unmap 2 46884 NULL
++em28xx_alloc_isoc_46892 em28xx_alloc_isoc 4 46892 NULL
++ixgbe_dbg_reg_ops_write_46895 ixgbe_dbg_reg_ops_write 3 46895 NULL
++sk_mem_pages_46896 sk_mem_pages 0-1 46896 NULL
++ol_dqblk_off_46904 ol_dqblk_off 3-2 46904 NULL
++fb_write_46924 fb_write 3 46924 NULL
++raid_status_46930 raid_status 5 46930 NULL
++btmrvl_curpsmode_read_46939 btmrvl_curpsmode_read 3 46939 NULL
++__sctp_setsockopt_connectx_46949 __sctp_setsockopt_connectx 3 46949 NULL
++qla4xxx_post_aen_work_46953 qla4xxx_post_aen_work 3 46953 NULL
++crypto_tfm_alg_alignmask_46971 crypto_tfm_alg_alignmask 0 46971 NULL
++mgmt_pending_add_46976 mgmt_pending_add 5 46976 NULL
++gfs2_xattr_system_set_46996 gfs2_xattr_system_set 4 46996 NULL nohasharray
++sel_write_bool_46996 sel_write_bool 3 46996 &gfs2_xattr_system_set_46996
++ttm_bo_io_47000 ttm_bo_io 5 47000 NULL
++blk_rq_map_kern_47004 blk_rq_map_kern 4 47004 NULL
++__map_single_47020 __map_single 3-4-7 47020 NULL
++cx231xx_init_bulk_47024 cx231xx_init_bulk 3-2 47024 NULL
++set_dis_bypass_pfs_47038 set_dis_bypass_pfs 3 47038 NULL
++wm8994_set_bits_47052 wm8994_set_bits 2 47052 NULL
++fs_path_len_47060 fs_path_len 0 47060 NULL
++ufs_new_fragments_47070 ufs_new_fragments 3-5-4 47070 NULL
++pipeline_dec_packet_in_read_47076 pipeline_dec_packet_in_read 3 47076 NULL
++scsi_deactivate_tcq_47086 scsi_deactivate_tcq 2 47086 NULL
++mousedev_read_47123 mousedev_read 3 47123 NULL
++ses_recv_diag_47143 ses_recv_diag 4 47143 NULL nohasharray
++acpi_ut_initialize_buffer_47143 acpi_ut_initialize_buffer 2 47143 &ses_recv_diag_47143
++cxio_init_resource_fifo_random_47151 cxio_init_resource_fifo_random 3 47151 NULL
++persistent_ram_iomap_47156 persistent_ram_iomap 1-2 47156 NULL
++mxms_headerlen_47161 mxms_headerlen 0 47161 NULL
++rs_sta_dbgfs_rate_scale_data_read_47165 rs_sta_dbgfs_rate_scale_data_read 3 47165 NULL
++rts51x_ms_rw_47171 rts51x_ms_rw 3-4 47171 NULL
++svc_pool_map_alloc_arrays_47181 svc_pool_map_alloc_arrays 2 47181 NULL
++can_set_system_xattr_47182 can_set_system_xattr 4 47182 NULL
++ioremap_cache_47189 ioremap_cache 1-2 47189 NULL
++wm8903_gpio_direction_in_47213 wm8903_gpio_direction_in 2 47213 NULL
++l2headersize_47238 l2headersize 0 47238 NULL
++options_write_47243 options_write 3 47243 NULL
++portcntrs_1_read_47253 portcntrs_1_read 3 47253 NULL
++da9052_disable_irq_nosync_47260 da9052_disable_irq_nosync 2 47260 NULL
++ablkcipher_next_slow_47274 ablkcipher_next_slow 4-3 47274 NULL
++tty_audit_log_47280 tty_audit_log 8 47280 NULL
++gfs2_readpages_47285 gfs2_readpages 4 47285 NULL
++vsnprintf_47291 vsnprintf 0 47291 NULL
++tx_internal_desc_overflow_read_47300 tx_internal_desc_overflow_read 3 47300 NULL
++ieee80211_if_read_dot11MeshHoldingTimeout_47356 ieee80211_if_read_dot11MeshHoldingTimeout 3 47356 NULL
++avc_get_hash_stats_47359 avc_get_hash_stats 0 47359 NULL
++find_first_zero_bit_le_47369 find_first_zero_bit_le 2 47369 NULL
++__bio_map_kern_47379 __bio_map_kern 3 47379 NULL
++trace_options_core_read_47390 trace_options_core_read 3 47390 NULL
++nametbl_list_47391 nametbl_list 2 47391 NULL
++dgrp_net_write_47392 dgrp_net_write 3 47392 NULL
++pfkey_sendmsg_47394 pfkey_sendmsg 4 47394 NULL
++ocfs2_resv_end_47408 ocfs2_resv_end 0 47408 NULL
++crypto_ablkcipher_alignmask_47410 crypto_ablkcipher_alignmask 0 47410 NULL
++vzalloc_47421 vzalloc 1 47421 NULL
++posix_acl_from_disk_47445 posix_acl_from_disk 2 47445 NULL
++newpart_47485 newpart 6 47485 NULL
++core_sys_select_47494 core_sys_select 1 47494 NULL
++alloc_arraycache_47505 alloc_arraycache 2 47505 NULL
++unlink_simple_47506 unlink_simple 3 47506 NULL
++ufs_inode_getblock_47512 ufs_inode_getblock 4 47512 NULL
++snd_pcm_resume_47530 snd_pcm_resume 0 47530 NULL
++vscnprintf_47533 vscnprintf 0-2 47533 NULL nohasharray
++process_vm_rw_47533 process_vm_rw 3-5 47533 &vscnprintf_47533
++oz_events_read_47535 oz_events_read 3 47535 NULL
++ieee80211_if_fmt_min_discovery_timeout_47539 ieee80211_if_fmt_min_discovery_timeout 3 47539 NULL
++cycx_setup_47562 cycx_setup 4 47562 NULL
++read_ldt_47570 read_ldt 2 47570 NULL
++pci_iomap_47575 pci_iomap 3 47575 NULL
++rpipe_get_idx_47579 rpipe_get_idx 2 47579 NULL
++ext4_kvzalloc_47605 ext4_kvzalloc 1 47605 NULL
++wm831x_gpio_direction_out_47607 wm831x_gpio_direction_out 2 47607 NULL
++sctp_ssnmap_new_47608 sctp_ssnmap_new 1-2 47608 NULL
++uea_request_47613 uea_request 4 47613 NULL
++cache_read_pipefs_47615 cache_read_pipefs 3 47615 NULL
++tps65217_clear_bits_47619 tps65217_clear_bits 2 47619 NULL
++twl4030_clear_set_47624 twl4030_clear_set 4 47624 NULL
++irq_set_chip_47638 irq_set_chip 1 47638 NULL
++__build_packet_message_47643 __build_packet_message 3-9 47643 NULL
++irq_linear_revmap_47682 irq_linear_revmap 0 47682 NULL
++snd_pcm_info_47699 snd_pcm_info 0 47699 NULL
++bits_to_user_47733 bits_to_user 2-3 47733 NULL
++carl9170_debugfs_read_47738 carl9170_debugfs_read 3 47738 NULL
++ir_prepare_write_buffer_47747 ir_prepare_write_buffer 3 47747 NULL
++mvumi_alloc_mem_resource_47750 mvumi_alloc_mem_resource 3 47750 NULL
++ext3_find_near_47752 ext3_find_near 0 47752 NULL
++alloc_sched_domains_47756 alloc_sched_domains 1 47756 NULL
++irq_domain_legacy_revmap_47765 irq_domain_legacy_revmap 0-2 47765 NULL
++i915_wedged_write_47771 i915_wedged_write 3 47771 NULL
++uwb_ie_dump_hex_47774 uwb_ie_dump_hex 4 47774 NULL
++error_error_numll_frame_cts_start_read_47781 error_error_numll_frame_cts_start_read 3 47781 NULL
++posix_acl_fix_xattr_from_user_47793 posix_acl_fix_xattr_from_user 2 47793 NULL
++stmmac_set_bfsize_47834 stmmac_set_bfsize 0 47834 NULL
++__pcf50633_irq_mask_set_47847 __pcf50633_irq_mask_set 2 47847 NULL
++ubifs_unpack_nnode_47866 ubifs_unpack_nnode 0 47866 NULL
++vhci_read_47878 vhci_read 3 47878 NULL
++keyctl_instantiate_key_common_47889 keyctl_instantiate_key_common 4 47889 NULL
++osd_req_read_sg_47905 osd_req_read_sg 5 47905 NULL
++timeout_read_47915 timeout_read 3 47915 NULL
++comedi_write_47926 comedi_write 3 47926 NULL
++lp8788_irq_map_47964 lp8788_irq_map 2 47964 NULL
++iwl_dbgfs_ucode_tracing_read_47983 iwl_dbgfs_ucode_tracing_read 3 47983 NULL nohasharray
++mempool_resize_47983 mempool_resize 2 47983 &iwl_dbgfs_ucode_tracing_read_47983
++pnpacpi_parse_allocated_irqresource_47986 pnpacpi_parse_allocated_irqresource 2 47986 NULL
++dbg_port_buf_47990 dbg_port_buf 2 47990 NULL
++ib_umad_write_47993 ib_umad_write 3 47993 NULL
++ffs_epfile_write_48014 ffs_epfile_write 3 48014 NULL
++bio_integrity_set_tag_48035 bio_integrity_set_tag 3 48035 NULL
++pppoe_sendmsg_48039 pppoe_sendmsg 4 48039 NULL
++wpan_phy_alloc_48056 wpan_phy_alloc 1 48056 NULL
++posix_acl_alloc_48063 posix_acl_alloc 1 48063 NULL
++mmc_alloc_host_48097 mmc_alloc_host 1 48097 NULL
++skb_copy_datagram_const_iovec_48102 skb_copy_datagram_const_iovec 4-2-5 48102 NULL
++radio_isa_common_probe_48107 radio_isa_common_probe 3 48107 NULL
++vmw_framebuffer_surface_dirty_48132 vmw_framebuffer_surface_dirty 6 48132 NULL
++rtsx_read_cfg_seq_48139 rtsx_read_cfg_seq 5-3 48139 NULL
++set_discoverable_48141 set_discoverable 4 48141 NULL
++dn_fib_count_nhs_48145 dn_fib_count_nhs 0 48145 NULL
++bitmap_onto_48152 bitmap_onto 4 48152 NULL
++isr_dma1_done_read_48159 isr_dma1_done_read 3 48159 NULL
++c4iw_id_table_alloc_48163 c4iw_id_table_alloc 3 48163 NULL
++ocfs2_find_next_zero_bit_unaligned_48170 ocfs2_find_next_zero_bit_unaligned 2-3 48170 NULL
++alloc_cc770dev_48186 alloc_cc770dev 1 48186 NULL
++init_ipath_48187 init_ipath 1 48187 NULL nohasharray
++ieee80211_send_auth_48187 ieee80211_send_auth 6 48187 &init_ipath_48187
++snd_seq_dump_var_event_48209 snd_seq_dump_var_event 0 48209 NULL
++is_block_in_journal_48223 is_block_in_journal 3 48223 NULL
++uv_blade_nr_possible_cpus_48226 uv_blade_nr_possible_cpus 0 48226 NULL
++nilfs_readpages_48229 nilfs_readpages 4 48229 NULL
++read_file_recv_48232 read_file_recv 3 48232 NULL
++unaccount_shadowed_48233 unaccount_shadowed 2 48233 NULL nohasharray
++blk_rq_pos_48233 blk_rq_pos 0 48233 &unaccount_shadowed_48233
++nfsctl_transaction_read_48250 nfsctl_transaction_read 3 48250 NULL
++cache_write_pipefs_48270 cache_write_pipefs 3 48270 NULL
++send_set_info_48288 send_set_info 7 48288 NULL
++set_disc_pwup_pfs_48300 set_disc_pwup_pfs 3 48300 NULL
++lpfc_idiag_extacc_read_48301 lpfc_idiag_extacc_read 3 48301 NULL
++timblogiw_read_48305 timblogiw_read 3 48305 NULL
++hash_setkey_48310 hash_setkey 3 48310 NULL
++__alloc_fd_48356 __alloc_fd 2 48356 NULL
++skb_add_data_48363 skb_add_data 3 48363 NULL
++tx_frag_init_called_read_48377 tx_frag_init_called_read 3 48377 NULL
++lbs_debugfs_write_48413 lbs_debugfs_write 3 48413 NULL
++snd_power_wait_48422 snd_power_wait 0 48422 NULL
++pwr_tx_without_ps_read_48423 pwr_tx_without_ps_read 3 48423 NULL
++nfs4_alloc_pages_48426 nfs4_alloc_pages 1 48426 NULL
++tun_recvmsg_48463 tun_recvmsg 4 48463 NULL
++r8712_usbctrl_vendorreq_48489 r8712_usbctrl_vendorreq 6 48489 NULL
++send_control_msg_48498 send_control_msg 6 48498 NULL
++mlx4_en_create_tx_ring_48501 mlx4_en_create_tx_ring 4 48501 NULL
++count_masked_bytes_48507 count_masked_bytes 0-1 48507 NULL
++diva_os_copy_to_user_48508 diva_os_copy_to_user 4 48508 NULL
++brcmf_sdio_trap_info_48510 brcmf_sdio_trap_info 4 48510 NULL
++phantom_get_free_48514 phantom_get_free 0 48514 NULL
++wiimote_hid_send_48528 wiimote_hid_send 3 48528 NULL
++ext3_splice_branch_48531 ext3_splice_branch 6 48531 NULL
++named_distribute_48544 named_distribute 4 48544 NULL
++raid10_size_48571 raid10_size 0-2-3 48571 NULL
++ext_sd_execute_read_data_48589 ext_sd_execute_read_data 9 48589 NULL
++ufs_dtogd_48616 ufs_dtogd 0-2 48616 NULL
++do_ip_vs_set_ctl_48641 do_ip_vs_set_ctl 4 48641 NULL
++mtd_read_48655 mtd_read 0 48655 NULL
++lc_create_48662 lc_create 3 48662 NULL
++aes_encrypt_packets_read_48666 aes_encrypt_packets_read 3 48666 NULL
++sm501_create_subdev_48668 sm501_create_subdev 3-4 48668 NULL nohasharray
++sys_setgroups_48668 sys_setgroups 1 48668 &sm501_create_subdev_48668
++altera_drscan_48698 altera_drscan 2 48698 NULL
++kvm_set_irq_routing_48704 kvm_set_irq_routing 3 48704 NULL
++ath6kl_usb_bmi_read_48745 ath6kl_usb_bmi_read 3 48745 NULL
++ath6kl_regwrite_read_48747 ath6kl_regwrite_read 3 48747 NULL
++l2cap_segment_sdu_48772 l2cap_segment_sdu 4 48772 NULL
++lua_sysfs_write_48797 lua_sysfs_write 6 48797 NULL
++il3945_sta_dbgfs_stats_table_read_48802 il3945_sta_dbgfs_stats_table_read 3 48802 NULL
++twa_change_queue_depth_48808 twa_change_queue_depth 2 48808 NULL
++atomic_counters_read_48827 atomic_counters_read 3 48827 NULL
++azx_get_position_48841 azx_get_position 0 48841 NULL
++vc_do_resize_48842 vc_do_resize 3-4 48842 NULL
++viafb_dvp1_proc_write_48864 viafb_dvp1_proc_write 3 48864 NULL
++__ffs_ep0_read_events_48868 __ffs_ep0_read_events 3 48868 NULL
++sys_setgroups16_48882 sys_setgroups16 1 48882 NULL
++get_num_ops_48886 get_num_ops 0 48886 NULL
++ext2_alloc_branch_48889 ext2_alloc_branch 4 48889 NULL
++crypto_cipher_ctxsize_48890 crypto_cipher_ctxsize 0 48890 NULL
++xdi_copy_to_user_48900 xdi_copy_to_user 4 48900 NULL
++msg_hdr_sz_48908 msg_hdr_sz 0 48908 NULL
++gdth_isa_probe_one_48925 gdth_isa_probe_one 1 48925 NULL nohasharray
++snd_pcm_update_hw_ptr_48925 snd_pcm_update_hw_ptr 0 48925 &gdth_isa_probe_one_48925
++sep_crypto_dma_48937 sep_crypto_dma 0 48937 NULL
++event_heart_beat_read_48961 event_heart_beat_read 3 48961 NULL
++nand_ecc_test_run_48966 nand_ecc_test_run 1 48966 NULL
++batadv_orig_hash_del_if_48972 batadv_orig_hash_del_if 2 48972 NULL
++_alloc_set_attr_list_48991 _alloc_set_attr_list 4 48991 NULL
++rds_rm_size_48996 rds_rm_size 0-2 48996 NULL
++sel_write_enforce_48998 sel_write_enforce 3 48998 NULL
++xd_rw_49020 xd_rw 3-4 49020 NULL
++transient_status_49027 transient_status 4 49027 NULL
++ubi_read_49061 ubi_read 0 49061 NULL
++tps65910_reg_write_49066 tps65910_reg_write 2 49066 NULL
++calc_layout_49074 calc_layout 4 49074 NULL
++vmx_set_msr_49090 vmx_set_msr 3 49090 NULL
++scsi_register_49094 scsi_register 2 49094 NULL
++compat_do_readv_writev_49102 compat_do_readv_writev 4 49102 NULL
++xfrm_replay_state_esn_len_49119 xfrm_replay_state_esn_len 0 49119 NULL
++pt_read_49136 pt_read 3 49136 NULL
++tipc_multicast_49144 tipc_multicast 5 49144 NULL
++atyfb_setup_generic_49151 atyfb_setup_generic 3 49151 NULL
++ipwireless_tty_received_49154 ipwireless_tty_received 3 49154 NULL
++f2fs_acl_count_49155 f2fs_acl_count 0-1 49155 NULL
++ipw_queue_tx_init_49161 ipw_queue_tx_init 3 49161 NULL
++ext4_free_clusters_after_init_49174 ext4_free_clusters_after_init 2 49174 NULL
++dvb_dvr_ioctl_49182 dvb_dvr_ioctl 2 49182 NULL
++iwl_dbgfs_ucode_general_stats_read_49199 iwl_dbgfs_ucode_general_stats_read 3 49199 NULL
++il4965_rs_sta_dbgfs_stats_table_read_49206 il4965_rs_sta_dbgfs_stats_table_read 3 49206 NULL
++do_jffs2_getxattr_49210 do_jffs2_getxattr 0 49210 NULL
++pcf50633_gpio_invert_set_49256 pcf50633_gpio_invert_set 2 49256 NULL
++hugetlb_cgroup_read_49259 hugetlb_cgroup_read 5 49259 NULL
++ieee80211_if_read_rssi_threshold_49260 ieee80211_if_read_rssi_threshold 3 49260 NULL
++osd_req_add_get_attr_list_49278 osd_req_add_get_attr_list 3 49278 NULL
++rx_filter_beacon_filter_read_49279 rx_filter_beacon_filter_read 3 49279 NULL
++uio_read_49300 uio_read 3 49300 NULL
++ocfs2_resmap_find_free_bits_49301 ocfs2_resmap_find_free_bits 3 49301 NULL
++fwtty_port_handler_49327 fwtty_port_handler 9 49327 NULL
++srpt_alloc_ioctx_ring_49330 srpt_alloc_ioctx_ring 2-3-4 49330 NULL
++cfpkt_setlen_49343 cfpkt_setlen 2 49343 NULL
++joydev_ioctl_common_49359 joydev_ioctl_common 2 49359 NULL
++ocfs2_remove_btree_range_49370 ocfs2_remove_btree_range 4-5-3 49370 NULL
++px_raw_event_49371 px_raw_event 4 49371 NULL
++iscsi_alloc_session_49390 iscsi_alloc_session 3 49390 NULL
++applesmc_create_nodes_49392 applesmc_create_nodes 2 49392 NULL
++rx_streaming_always_read_49401 rx_streaming_always_read 3 49401 NULL
++tnode_alloc_49407 tnode_alloc 1 49407 NULL
++samples_to_bytes_49426 samples_to_bytes 0-2 49426 NULL
++md_domain_init_49432 md_domain_init 2 49432 NULL
++compat_do_msg_fill_49440 compat_do_msg_fill 3 49440 NULL
++agp_3_5_isochronous_node_enable_49465 agp_3_5_isochronous_node_enable 3 49465 NULL
++xfs_iformat_local_49472 xfs_iformat_local 4 49472 NULL
++savu_sysfs_read_49473 savu_sysfs_read 6 49473 NULL
++ieee80211_ie_split_49474 ieee80211_ie_split 0-5 49474 NULL
++isr_decrypt_done_read_49490 isr_decrypt_done_read 3 49490 NULL
++emulator_write_phys_49520 emulator_write_phys 2-4 49520 NULL
++acpi_os_ioremap_49523 acpi_os_ioremap 1-2 49523 NULL
++wm831x_dcdc_set_mode_int_49546 wm831x_dcdc_set_mode_int 2 49546 NULL
++smk_write_access_49561 smk_write_access 3 49561 NULL
++ntfs_malloc_nofs_49572 ntfs_malloc_nofs 1 49572 NULL
++alloc_chunk_49575 alloc_chunk 1 49575 NULL
++sctp_setsockopt_default_send_param_49578 sctp_setsockopt_default_send_param 3 49578 NULL
++isr_wakeups_read_49607 isr_wakeups_read 3 49607 NULL
++heap_init_49617 heap_init 2 49617 NULL
++smk_write_doi_49621 smk_write_doi 3 49621 NULL
++btrfsic_cmp_log_and_dev_bytenr_49628 btrfsic_cmp_log_and_dev_bytenr 2 49628 NULL
++svm_set_msr_49643 svm_set_msr 3 49643 NULL
++aa_simple_write_to_buffer_49683 aa_simple_write_to_buffer 3-4 49683 NULL
++sys_gethostname_49698 sys_gethostname 2 49698 NULL
++cx2341x_ctrl_new_menu_49700 cx2341x_ctrl_new_menu 3 49700 NULL
++sep_create_dcb_dmatables_context_kernel_49728 sep_create_dcb_dmatables_context_kernel 6 49728 NULL
++sys_fsetxattr_49736 sys_fsetxattr 4 49736 NULL
++check_frame_49741 check_frame 0 49741 NULL
++zd_usb_iowrite16v_49744 zd_usb_iowrite16v 3 49744 NULL
++btrfs_chunk_num_stripes_49751 btrfs_chunk_num_stripes 0 49751 NULL
++key_conf_keylen_read_49758 key_conf_keylen_read 3 49758 NULL
++fuse_conn_waiting_read_49762 fuse_conn_waiting_read 3 49762 NULL
++isku_sysfs_write_49767 isku_sysfs_write 6 49767 NULL
++ceph_osdc_readpages_49789 ceph_osdc_readpages 10-4 49789 NULL
++nfs4_acl_new_49806 nfs4_acl_new 1 49806 NULL
++arch_gnttab_map_status_49812 arch_gnttab_map_status 3 49812 NULL
++ntfs_copy_from_user_iovec_49829 ntfs_copy_from_user_iovec 3-6-0 49829 NULL
++add_uuid_49831 add_uuid 4 49831 NULL
++ath6kl_fwlog_block_read_49836 ath6kl_fwlog_block_read 3 49836 NULL
++__btrfs_map_block_49839 __btrfs_map_block 3 49839 NULL
++twl4030_write_49846 twl4030_write 2 49846 NULL
++scsi_dispatch_cmd_entry_49848 scsi_dispatch_cmd_entry 3 49848 NULL
++timeradd_entry_49850 timeradd_entry 3 49850 NULL
++sctp_setsockopt_bindx_49870 sctp_setsockopt_bindx 3 49870 NULL
++ceph_get_caps_49890 ceph_get_caps 0 49890 NULL
++__cow_file_range_49901 __cow_file_range 5 49901 NULL
++__copy_from_user_inatomic_nocache_49921 __copy_from_user_inatomic_nocache 3 49921 NULL
++batadv_tt_realloc_packet_buff_49960 batadv_tt_realloc_packet_buff 4 49960 NULL
++b43legacy_pio_read_49978 b43legacy_pio_read 0 49978 NULL
++ieee80211_if_fmt_dtim_count_49987 ieee80211_if_fmt_dtim_count 3 49987 NULL
++sta2x11_swiotlb_alloc_coherent_49994 sta2x11_swiotlb_alloc_coherent 2 49994 NULL
++l2cap_chan_send_49995 l2cap_chan_send 3 49995 NULL
++__module_alloc_50004 __module_alloc 1 50004 NULL
++dn_mss_from_pmtu_50011 dn_mss_from_pmtu 0-2 50011 NULL
++ptrace_readdata_50020 ptrace_readdata 2-4 50020 NULL
++isdn_read_50021 isdn_read 3 50021 NULL
++rbd_req_write_50041 rbd_req_write 4-5 50041 NULL
++alloc_ebda_hpc_50046 alloc_ebda_hpc 1-2 50046 NULL
++vmw_surface_destroy_size_50072 vmw_surface_destroy_size 0 50072 NULL
++arch_setup_ht_irq_50073 arch_setup_ht_irq 1 50073 NULL
++dev_set_alias_50084 dev_set_alias 3 50084 NULL
++pcpu_get_vm_areas_50085 pcpu_get_vm_areas 3 50085 NULL
++sock_setsockopt_50088 sock_setsockopt 5 50088 NULL
++altera_swap_dr_50090 altera_swap_dr 2 50090 NULL
++read_file_slot_50111 read_file_slot 3 50111 NULL
++copy_items_50140 copy_items 6 50140 NULL
++tx_frag_need_fragmentation_read_50153 tx_frag_need_fragmentation_read 3 50153 NULL
++set_cmd_header_50155 set_cmd_header 0 50155 NULL
++reiserfs_bmap_count_50160 reiserfs_bmap_count 0 50160 NULL
++aac_nark_ioremap_50163 aac_nark_ioremap 2 50163 NULL nohasharray
++kmalloc_node_50163 kmalloc_node 1 50163 &aac_nark_ioremap_50163
++rx_filter_ibss_filter_read_50167 rx_filter_ibss_filter_read 3 50167 NULL
++odev_update_50169 odev_update 2 50169 NULL
++ieee80211_if_fmt_dot11MeshHWMPRannInterval_50172 ieee80211_if_fmt_dot11MeshHWMPRannInterval 3 50172 NULL nohasharray
++ubi_resize_volume_50172 ubi_resize_volume 2 50172 &ieee80211_if_fmt_dot11MeshHWMPRannInterval_50172
++ib_send_cm_drep_50186 ib_send_cm_drep 3 50186 NULL
++cfg80211_roamed_bss_50198 cfg80211_roamed_bss 4-6 50198 NULL
++rx_rx_timeout_wa_read_50204 rx_rx_timeout_wa_read 3 50204 NULL
++ieee80211_skb_resize_50211 ieee80211_skb_resize 3 50211 NULL
++mon_bin_compat_ioctl_50234 mon_bin_compat_ioctl 3 50234 NULL
++sg_kmalloc_50240 sg_kmalloc 1 50240 NULL
++afs_extract_data_50261 afs_extract_data 5 50261 NULL
++rxrpc_setsockopt_50286 rxrpc_setsockopt 5 50286 NULL
++soc_codec_reg_show_50302 soc_codec_reg_show 0 50302 NULL
++soc_camera_read_50319 soc_camera_read 3 50319 NULL
++do_launder_page_50329 do_launder_page 0 50329 NULL
++nouveau_engine_create__50331 nouveau_engine_create_ 7 50331 NULL
++lpfc_idiag_pcicfg_read_50334 lpfc_idiag_pcicfg_read 3 50334 NULL
++ocfs2_block_to_cluster_group_50337 ocfs2_block_to_cluster_group 2 50337 NULL nohasharray
++snd_pcm_lib_writev_50337 snd_pcm_lib_writev 0-3 50337 &ocfs2_block_to_cluster_group_50337
++roccat_common2_send_with_status_50343 roccat_common2_send_with_status 4 50343 NULL
++tpm_read_50344 tpm_read 3 50344 NULL
++kvm_arch_create_memslot_50354 kvm_arch_create_memslot 2 50354 NULL
++isdn_ppp_read_50356 isdn_ppp_read 4 50356 NULL
++unpack_u16_chunk_50357 unpack_u16_chunk 0 50357 NULL
++xfrm_send_migrate_50365 xfrm_send_migrate 5 50365 NULL
++roccat_common2_receive_50369 roccat_common2_receive 4 50369 NULL
++sl_alloc_bufs_50380 sl_alloc_bufs 2 50380 NULL
++l2tp_ip_sendmsg_50411 l2tp_ip_sendmsg 4 50411 NULL
++iscsi_create_conn_50425 iscsi_create_conn 2 50425 NULL
++btrfs_error_discard_extent_50444 btrfs_error_discard_extent 2 50444 NULL
++pgctrl_write_50453 pgctrl_write 3 50453 NULL
++tps65217_update_bits_50472 tps65217_update_bits 2 50472 NULL
++cdrom_read_cdda_50478 cdrom_read_cdda 4 50478 NULL
++mei_io_cb_alloc_req_buf_50493 mei_io_cb_alloc_req_buf 2 50493 NULL
++pwr_rcvd_awake_beacons_read_50505 pwr_rcvd_awake_beacons_read 3 50505 NULL
++fwnet_receive_packet_50537 fwnet_receive_packet 9 50537 NULL
++ath6kl_set_ap_probe_resp_ies_50539 ath6kl_set_ap_probe_resp_ies 3 50539 NULL
++pcf50633_reg_set_bit_mask_50544 pcf50633_reg_set_bit_mask 2 50544 NULL
++hme_read_desc32_50574 hme_read_desc32 0 50574 NULL
++fat_readpages_50582 fat_readpages 4 50582 NULL
++iwl_dbgfs_missed_beacon_read_50584 iwl_dbgfs_missed_beacon_read 3 50584 NULL
++build_inv_iommu_pages_50589 build_inv_iommu_pages 2-3 50589 NULL
++rx_rx_checksum_result_read_50617 rx_rx_checksum_result_read 3 50617 NULL
++__ffs_50625 __ffs 0 50625 NULL
++simple_transaction_get_50633 simple_transaction_get 3 50633 NULL
++ath6kl_tm_rx_event_50664 ath6kl_tm_rx_event 3 50664 NULL nohasharray
++sys_readv_50664 sys_readv 3 50664 &ath6kl_tm_rx_event_50664
++bnad_debugfs_read_50665 bnad_debugfs_read 3 50665 NULL
++ext2_try_to_allocate_with_rsv_50669 ext2_try_to_allocate_with_rsv 4-2 50669 NULL
++btmrvl_psstate_read_50683 btmrvl_psstate_read 3 50683 NULL
++xfs_growfs_get_hdr_buf_50697 xfs_growfs_get_hdr_buf 3 50697 NULL
++blk_check_plugged_50736 blk_check_plugged 3 50736 NULL
++__ext3_get_inode_loc_50744 __ext3_get_inode_loc 0 50744 NULL
++skb_padto_50759 skb_padto 2 50759 NULL
++ocfs2_xattr_block_get_50773 ocfs2_xattr_block_get 0 50773 NULL
++tm6000_read_write_usb_50774 tm6000_read_write_usb 7 50774 NULL
++bio_alloc_map_data_50782 bio_alloc_map_data 1-2 50782 NULL
++tpm_write_50798 tpm_write 3 50798 NULL
++tun_do_read_50800 tun_do_read 4 50800 NULL
++write_flush_50803 write_flush 3 50803 NULL
++dvb_play_50814 dvb_play 3 50814 NULL
++dpcm_show_state_50827 dpcm_show_state 0 50827 NULL
++acpi_ev_install_gpe_block_50829 acpi_ev_install_gpe_block 2 50829 NULL
++pstore_mkfile_50830 pstore_mkfile 5 50830 NULL
++dma_attach_50831 dma_attach 6-7 50831 NULL
++SetArea_50835 SetArea 4 50835 NULL nohasharray
++create_mem_extents_50835 create_mem_extents 0 50835 &SetArea_50835
++self_check_write_50856 self_check_write 5 50856 NULL
++carl9170_debugfs_write_50857 carl9170_debugfs_write 3 50857 NULL
++netlbl_secattr_catmap_walk_rng_50894 netlbl_secattr_catmap_walk_rng 0-2 50894 NULL
++osd_req_write_sg_50908 osd_req_write_sg 5 50908 NULL
++xfs_iext_remove_50909 xfs_iext_remove 3 50909 NULL
++blk_rq_cur_sectors_50910 blk_rq_cur_sectors 0 50910 NULL
++hash_recvmsg_50924 hash_recvmsg 4 50924 NULL
++chd_dec_fetch_cdata_50926 chd_dec_fetch_cdata 3 50926 NULL
++sock_bindtodevice_50942 sock_bindtodevice 3 50942 NULL
++ocfs2_add_refcount_flag_50952 ocfs2_add_refcount_flag 6 50952 NULL
++iwl_statistics_flag_50981 iwl_statistics_flag 0-3 50981 NULL
++timeout_write_50991 timeout_write 3 50991 NULL
++wm831x_irq_map_50995 wm831x_irq_map 2 50995 NULL nohasharray
++wm8903_gpio_direction_out_50995 wm8903_gpio_direction_out 2 50995 &wm831x_irq_map_50995
++proc_write_51003 proc_write 3 51003 NULL
++lbs_dev_info_51023 lbs_dev_info 3 51023 NULL
++ntfs_attr_find_51028 ntfs_attr_find 0 51028 NULL nohasharray
++fuse_conn_congestion_threshold_read_51028 fuse_conn_congestion_threshold_read 3 51028 &ntfs_attr_find_51028
++BcmGetSectionValEndOffset_51039 BcmGetSectionValEndOffset 0 51039 NULL
++dump_midi_51040 dump_midi 3 51040 NULL
++srpt_alloc_ioctx_51042 srpt_alloc_ioctx 2-3 51042 NULL
++do_arpt_set_ctl_51053 do_arpt_set_ctl 4 51053 NULL
++wusb_prf_64_51065 wusb_prf_64 7 51065 NULL
++jbd2_journal_init_revoke_51088 jbd2_journal_init_revoke 2 51088 NULL
++__ocfs2_find_path_51096 __ocfs2_find_path 0 51096 NULL
++dgrp_net_read_51113 dgrp_net_read 3 51113 NULL
++lm3533_als_get_current_51120 lm3533_als_get_current 2 51120 NULL
++nfs_map_name_to_uid_51132 nfs_map_name_to_uid 3 51132 NULL
++alloc_rtllib_51136 alloc_rtllib 1 51136 NULL
++simple_xattr_set_51140 simple_xattr_set 4 51140 NULL
++xfs_trans_get_efd_51148 xfs_trans_get_efd 3 51148 NULL
++compat_sys_pwritev64_51151 compat_sys_pwritev64 3 51151 NULL
++snd_pcm_unlink_51210 snd_pcm_unlink 0 51210 NULL
++blk_bio_map_sg_51213 blk_bio_map_sg 0 51213 NULL
++nf_ct_ext_create_51232 nf_ct_ext_create 3 51232 NULL
++snd_pcm_write_51235 snd_pcm_write 3 51235 NULL
++tipc_send_51238 tipc_send 4 51238 NULL
++drm_property_create_51239 drm_property_create 4 51239 NULL
++st_read_51251 st_read 3 51251 NULL
++compat_dccp_setsockopt_51263 compat_dccp_setsockopt 5 51263 NULL
++dvb_audio_write_51275 dvb_audio_write 3 51275 NULL
++ipwireless_network_packet_received_51277 ipwireless_network_packet_received 4 51277 NULL
++zone_reclaimable_pages_51283 zone_reclaimable_pages 0 51283 NULL
++pvr2_std_id_to_str_51288 pvr2_std_id_to_str 2 51288 NULL
++fd_do_readv_51297 fd_do_readv 3 51297 NULL
++bnad_debugfs_read_regrd_51308 bnad_debugfs_read_regrd 3 51308 NULL
++alloc_hippi_dev_51320 alloc_hippi_dev 1 51320 NULL
++ext2_xattr_get_51327 ext2_xattr_get 0 51327 NULL
++alloc_smp_req_51337 alloc_smp_req 1 51337 NULL nohasharray
++compat_arch_ptrace_51337 compat_arch_ptrace 3-4 51337 &alloc_smp_req_51337
++ipw_get_event_log_len_51341 ipw_get_event_log_len 0 51341 NULL
++ieee80211_if_fmt_estab_plinks_51370 ieee80211_if_fmt_estab_plinks 3 51370 NULL
++radeon_kms_compat_ioctl_51371 radeon_kms_compat_ioctl 2 51371 NULL
++ieee80211_wx_set_gen_ie_51399 ieee80211_wx_set_gen_ie 3 51399 NULL
++ceph_sync_read_51410 ceph_sync_read 3 51410 NULL
++blk_register_region_51424 blk_register_region 1-2 51424 NULL
++mwifiex_rdeeprom_read_51429 mwifiex_rdeeprom_read 3 51429 NULL
++ieee80211_if_read_dot11MeshHWMPRootMode_51441 ieee80211_if_read_dot11MeshHWMPRootMode 3 51441 NULL
++print_devstats_dot11ACKFailureCount_51443 print_devstats_dot11ACKFailureCount 3 51443 NULL
++____alloc_ei_netdev_51475 ____alloc_ei_netdev 1 51475 NULL
++xfs_buf_get_uncached_51477 xfs_buf_get_uncached 2 51477 NULL
++ieee80211_if_write_uapsd_queues_51526 ieee80211_if_write_uapsd_queues 3 51526 NULL
++__alloc_eip_netdev_51549 __alloc_eip_netdev 1 51549 NULL
++icmp_manip_pkt_51560 icmp_manip_pkt 4 51560 NULL
++ixgb_get_eeprom_len_51586 ixgb_get_eeprom_len 0 51586 NULL
++aac_convert_sgraw2_51598 aac_convert_sgraw2 4 51598 NULL
++raw_ioctl_51607 raw_ioctl 3 51607 NULL
++table_size_to_number_of_entries_51613 table_size_to_number_of_entries 0-1 51613 NULL
++dns_resolve_server_name_to_ip_51632 dns_resolve_server_name_to_ip 0 51632 NULL
++sctp_auth_create_key_51641 sctp_auth_create_key 1 51641 NULL
++iscsi_create_session_51647 iscsi_create_session 3 51647 NULL
++get_new_cssid_51665 get_new_cssid 2 51665 NULL
++ps_upsd_utilization_read_51669 ps_upsd_utilization_read 3 51669 NULL
++sctp_setsockopt_associnfo_51684 sctp_setsockopt_associnfo 3 51684 NULL
++sfi_sysfs_install_table_51688 sfi_sysfs_install_table 1 51688 NULL
++sel_write_access_51704 sel_write_access 3 51704 NULL
++tty_cdev_add_51714 tty_cdev_add 2-4 51714 NULL
++drm_compat_ioctl_51717 drm_compat_ioctl 2 51717 NULL
++sg_read_oxfer_51724 sg_read_oxfer 3 51724 NULL
++msg_set_51725 msg_set 3 51725 NULL
++dbg_check_lpt_nodes_51727 dbg_check_lpt_nodes 0 51727 NULL
++hid_parse_report_51737 hid_parse_report 3 51737 NULL
++get_user_pages_fast_51751 get_user_pages_fast 0 51751 NULL
++ifx_spi_insert_flip_string_51752 ifx_spi_insert_flip_string 3 51752 NULL
++if_write_51756 if_write 3 51756 NULL
++ioremap_prot_51764 ioremap_prot 1-2 51764 NULL
++iio_buffer_add_channel_sysfs_51766 iio_buffer_add_channel_sysfs 0 51766 NULL
++__fswab32_51781 __fswab32 0 51781 NULL
++qib_alloc_devdata_51819 qib_alloc_devdata 2 51819 NULL
++buffer_from_user_51826 buffer_from_user 3 51826 NULL
++wm2000_write_51834 wm2000_write 2 51834 NULL
++ioread32_51847 ioread32 0 51847 NULL nohasharray
++read_file_tgt_tx_stats_51847 read_file_tgt_tx_stats 3 51847 &ioread32_51847
++do_readv_writev_51849 do_readv_writev 4 51849 NULL
++pointer_size_read_51863 pointer_size_read 3 51863 NULL
++mlx4_alloc_db_from_pgdir_51865 mlx4_alloc_db_from_pgdir 3 51865 NULL
++get_indirect_ea_51869 get_indirect_ea 4 51869 NULL
++user_read_51881 user_read 3 51881 NULL
++dbAdjCtl_51888 dbAdjCtl 0 51888 NULL
++virt_to_phys_51896 virt_to_phys 0 51896 NULL
++iio_read_first_n_sw_rb_51911 iio_read_first_n_sw_rb 2 51911 NULL
++wmi_set_ie_51919 wmi_set_ie 3 51919 NULL
++dbg_status_buf_51930 dbg_status_buf 2 51930 NULL
++__tcp_mtu_to_mss_51938 __tcp_mtu_to_mss 0-2 51938 NULL
++xfrm_alg_len_51940 xfrm_alg_len 0 51940 NULL
++irq_dispose_mapping_51941 irq_dispose_mapping 1 51941 NULL
++scsi_get_vpd_page_51951 scsi_get_vpd_page 4 51951 NULL
++arizona_free_irq_51969 arizona_free_irq 2 51969 NULL nohasharray
++snd_mask_min_51969 snd_mask_min 0 51969 &arizona_free_irq_51969
++ath6kl_sdio_alloc_prep_scat_req_51986 ath6kl_sdio_alloc_prep_scat_req 2 51986 NULL
++dwc3_mode_write_51997 dwc3_mode_write 3 51997 NULL
++skb_copy_datagram_from_iovec_52014 skb_copy_datagram_from_iovec 4-2-5 52014 NULL
++rdmalt_52022 rdmalt 0 52022 NULL
++vxge_rx_alloc_52024 vxge_rx_alloc 3 52024 NULL
++override_release_52032 override_release 2 52032 NULL
++end_port_52042 end_port 0 52042 NULL
++dma_rx_errors_read_52045 dma_rx_errors_read 3 52045 NULL
++msnd_fifo_write_52052 msnd_fifo_write 0-3 52052 NULL
++dvb_ringbuffer_avail_52057 dvb_ringbuffer_avail 0 52057 NULL
++isofs_readpages_52067 isofs_readpages 4 52067 NULL
++nsm_get_handle_52089 nsm_get_handle 4 52089 NULL
++o2net_debug_read_52105 o2net_debug_read 3 52105 NULL
++retry_count_read_52129 retry_count_read 3 52129 NULL
++snd_pcm_channel_info_user_52135 snd_pcm_channel_info_user 0 52135 NULL
++hysdn_conf_write_52145 hysdn_conf_write 3 52145 NULL nohasharray
++ext2_alloc_blocks_52145 ext2_alloc_blocks 2 52145 &hysdn_conf_write_52145
++htable_size_52148 htable_size 0-1 52148 NULL
++__le16_to_cpup_52155 __le16_to_cpup 0 52155 NULL nohasharray
++smk_write_load2_52155 smk_write_load2 3 52155 &__le16_to_cpup_52155
++ieee80211_if_read_dot11MeshRetryTimeout_52168 ieee80211_if_read_dot11MeshRetryTimeout 3 52168 NULL
++mga_compat_ioctl_52170 mga_compat_ioctl 2 52170 NULL
++print_prefix_52176 print_prefix 0 52176 NULL
++proc_pid_readlink_52186 proc_pid_readlink 3 52186 NULL
++do_dmabuf_dirty_ldu_52241 do_dmabuf_dirty_ldu 6 52241 NULL
++pm80x_request_irq_52250 pm80x_request_irq 2 52250 NULL
++mdiobus_alloc_size_52259 mdiobus_alloc_size 1 52259 NULL
++shrink_slab_52261 shrink_slab 2-3 52261 NULL
++sisusbcon_do_font_op_52271 sisusbcon_do_font_op 9 52271 NULL
++mpol_to_str_52293 mpol_to_str 2 52293 NULL
++ath6kl_wmi_get_new_buf_52304 ath6kl_wmi_get_new_buf 1 52304 NULL
++read_file_reset_52310 read_file_reset 3 52310 NULL
++ssd1307fb_write_52315 ssd1307fb_write 3 52315 NULL
++request_asymmetric_key_52317 request_asymmetric_key 2-4 52317 NULL
++hwflags_read_52318 hwflags_read 3 52318 NULL
++snd_pcm_hw_free_52327 snd_pcm_hw_free 0 52327 NULL
++ntfs_rl_split_52328 ntfs_rl_split 2-4 52328 NULL
++test_unaligned_bulk_52333 test_unaligned_bulk 3 52333 NULL
++bytes_to_frames_52362 bytes_to_frames 0-2 52362 NULL
++copy_entries_to_user_52367 copy_entries_to_user 1 52367 NULL
++iwl_dump_fh_52371 iwl_dump_fh 0 52371 NULL
++isdn_writebuf_stub_52383 isdn_writebuf_stub 4 52383 NULL
++jfs_setxattr_52389 jfs_setxattr 4 52389 NULL
++aer_inject_write_52399 aer_inject_write 3 52399 NULL
++pcf50633_reg_clear_bits_52407 pcf50633_reg_clear_bits 2 52407 NULL
++aac_rx_ioremap_52410 aac_rx_ioremap 2 52410 NULL
++cgroup_file_write_52417 cgroup_file_write 3 52417 NULL
++line6_midibuf_init_52425 line6_midibuf_init 2 52425 NULL
++delay_status_52431 delay_status 5 52431 NULL
++ieee80211_if_fmt_num_sta_ps_52438 ieee80211_if_fmt_num_sta_ps 3 52438 NULL
++nl80211_send_mgmt_tx_status_52445 nl80211_send_mgmt_tx_status 5 52445 NULL
++ieee80211_alloc_txb_52477 ieee80211_alloc_txb 1-2 52477 NULL
++ocfs2_extend_no_holes_52483 ocfs2_extend_no_holes 3-4 52483 NULL
++fd_do_rw_52495 fd_do_rw 3 52495 NULL nohasharray
++skb_cow_head_52495 skb_cow_head 2 52495 &fd_do_rw_52495
++int_tasklet_entry_52500 int_tasklet_entry 3 52500 NULL
++pm_qos_power_write_52513 pm_qos_power_write 3 52513 NULL
++dccpprobe_read_52549 dccpprobe_read 3 52549 NULL
++ocfs2_make_right_split_rec_52562 ocfs2_make_right_split_rec 3 52562 NULL
++emit_code_52583 emit_code 0-3 52583 NULL
++snd_pcm_sw_params_52594 snd_pcm_sw_params 0 52594 NULL
++brcmf_sdio_assert_info_52653 brcmf_sdio_assert_info 4 52653 NULL
++ntfs_get_nr_significant_bytes_52688 ntfs_get_nr_significant_bytes 0 52688 NULL
++nvd0_disp_pioc_create__52693 nvd0_disp_pioc_create_ 5 52693 NULL
++nouveau_client_create__52715 nouveau_client_create_ 5 52715 NULL
++cx25840_ir_rx_read_52724 cx25840_ir_rx_read 3 52724 NULL
++blkcipher_next_slow_52733 blkcipher_next_slow 3-4 52733 NULL
++relay_alloc_page_array_52735 relay_alloc_page_array 1 52735 NULL
++carl9170_debugfs_vif_dump_read_52755 carl9170_debugfs_vif_dump_read 3 52755 NULL
++alloc_extent_buffer_52824 alloc_extent_buffer 3 52824 NULL
++pwr_rcvd_beacons_read_52836 pwr_rcvd_beacons_read 3 52836 NULL
++ext2_xattr_set_acl_52857 ext2_xattr_set_acl 4 52857 NULL
++mon_bin_get_event_52863 mon_bin_get_event 4 52863 NULL
++twlreg_write_52880 twlreg_write 3 52880 NULL
++pvr2_ctrl_value_to_sym_internal_52881 pvr2_ctrl_value_to_sym_internal 5 52881 NULL
++cache_read_procfs_52882 cache_read_procfs 3 52882 NULL
++kvm_kvzalloc_52894 kvm_kvzalloc 1 52894 NULL
++arizona_request_irq_52908 arizona_request_irq 2 52908 NULL
++__kfifo_out_peek_r_52919 __kfifo_out_peek_r 3 52919 NULL
++iblock_get_bio_52936 iblock_get_bio 3 52936 NULL nohasharray
++__iio_device_attr_init_52936 __iio_device_attr_init 0 52936 &iblock_get_bio_52936
++__nodes_remap_52951 __nodes_remap 5 52951 NULL
++send_packet_52960 send_packet 4 52960 NULL
++ieee80211_if_fmt_fwded_mcast_52961 ieee80211_if_fmt_fwded_mcast 3 52961 NULL
++compat_sock_ioctl_52964 compat_sock_ioctl 3 52964 NULL
++tx_tx_exch_read_52986 tx_tx_exch_read 3 52986 NULL
++num_node_state_52989 num_node_state 0 52989 NULL
++batadv_check_management_packet_52993 batadv_check_management_packet 3 52993 NULL
++efivarfs_file_write_53000 efivarfs_file_write 3 53000 NULL
++btrfs_free_and_pin_reserved_extent_53016 btrfs_free_and_pin_reserved_extent 2 53016 NULL
++tx_tx_exch_pending_read_53018 tx_tx_exch_pending_read 3 53018 NULL
++ext4_meta_bg_first_group_53031 ext4_meta_bg_first_group 0-2 53031 NULL
++bio_cur_bytes_53037 bio_cur_bytes 0 53037 NULL
++regcache_lzo_block_count_53056 regcache_lzo_block_count 0 53056 NULL
++cfi_read_query_53066 cfi_read_query 0 53066 NULL
++mwifiex_debug_read_53074 mwifiex_debug_read 3 53074 NULL
++qib_resize_cq_53090 qib_resize_cq 2 53090 NULL
++verity_status_53120 verity_status 5 53120 NULL
++line6_dumpreq_initbuf_53123 line6_dumpreq_initbuf 3 53123 NULL
++brcmf_usb_dl_cmd_53130 brcmf_usb_dl_cmd 4 53130 NULL
++ps_poll_ps_poll_max_ap_turn_read_53140 ps_poll_ps_poll_max_ap_turn_read 3 53140 NULL
++clear_capture_buf_53192 clear_capture_buf 2 53192 NULL
++mtdoops_erase_block_53206 mtdoops_erase_block 2 53206 NULL
++tx_tx_start_data_read_53219 tx_tx_start_data_read 3 53219 NULL
++xfs_trans_read_buf_map_53258 xfs_trans_read_buf_map 5 53258 NULL
++wil_write_file_ssid_53266 wil_write_file_ssid 3 53266 NULL
++btrfs_file_extent_num_bytes_53269 btrfs_file_extent_num_bytes 0 53269 NULL
++lirc_buffer_init_53282 lirc_buffer_init 3-2 53282 NULL
++batadv_interface_rx_53325 batadv_interface_rx 4 53325 NULL
++gsm_control_reply_53333 gsm_control_reply 4 53333 NULL
++vm_mmap_53339 vm_mmap 0 53339 NULL
++sock_setbindtodevice_53369 sock_setbindtodevice 3 53369 NULL
++get_random_bytes_arch_53370 get_random_bytes_arch 2 53370 NULL
++iwl_pcie_txq_alloc_53413 iwl_pcie_txq_alloc 3 53413 NULL
++wm8996_gpio_set_53421 wm8996_gpio_set 2 53421 NULL
++isr_cmd_cmplt_read_53439 isr_cmd_cmplt_read 3 53439 NULL
++mwifiex_info_read_53447 mwifiex_info_read 3 53447 NULL
++apei_exec_run_optional_53452 apei_exec_run_optional 0 53452 NULL
++acpi_tb_parse_root_table_53455 acpi_tb_parse_root_table 1 53455 NULL
++n2_run_53459 n2_run 3 53459 NULL
++paging64_prefetch_gpte_53468 paging64_prefetch_gpte 4 53468 NULL
++wm831x_write_53469 wm831x_write 2 53469 NULL
++rds_tcp_data_recv_53476 rds_tcp_data_recv 3 53476 NULL
++iowarrior_read_53483 iowarrior_read 3 53483 NULL
++osd_req_write_kern_53486 osd_req_write_kern 5 53486 NULL
++do_verify_xattr_datum_53499 do_verify_xattr_datum 0 53499 NULL
++snd_pcm_format_physical_width_53505 snd_pcm_format_physical_width 0 53505 NULL
++dbAllocNext_53506 dbAllocNext 0 53506 NULL
++ocfs2_xattr_set_acl_53508 ocfs2_xattr_set_acl 4 53508 NULL
++check_acl_53512 check_acl 0 53512 NULL
++set_registers_53582 set_registers 3 53582 NULL
++cifs_utf16_bytes_53593 cifs_utf16_bytes 0 53593 NULL
++__readw_53594 __readw 0 53594 NULL
++___alloc_bootmem_nopanic_53626 ___alloc_bootmem_nopanic 1 53626 NULL
++xd_write_multiple_pages_53633 xd_write_multiple_pages 6-5 53633 NULL
++ccid_getsockopt_builtin_ccids_53634 ccid_getsockopt_builtin_ccids 2 53634 NULL
++nr_sendmsg_53656 nr_sendmsg 4 53656 NULL
++_preload_range_53676 _preload_range 2-3 53676 NULL
++fuse_fill_write_pages_53682 fuse_fill_write_pages 4 53682 NULL
++v4l2_event_subscribe_53687 v4l2_event_subscribe 3 53687 NULL
++igb_alloc_q_vector_53690 igb_alloc_q_vector 4-6 53690 NULL nohasharray
++bdev_logical_block_size_53690 bdev_logical_block_size 0 53690 &igb_alloc_q_vector_53690
++find_overflow_devnum_53711 find_overflow_devnum 0 53711 NULL
++bio_integrity_split_53714 bio_integrity_split 3 53714 NULL
++__ocfs2_resv_find_window_53721 __ocfs2_resv_find_window 3 53721 NULL
++wdm_write_53735 wdm_write 3 53735 NULL
++ext3_try_to_allocate_with_rsv_53737 ext3_try_to_allocate_with_rsv 5-3 53737 NULL
++da9052_disable_irq_53745 da9052_disable_irq 2 53745 NULL
++lpfc_idiag_queacc_read_qe_53755 lpfc_idiag_queacc_read_qe 0-2 53755 NULL nohasharray
++amdtp_out_stream_get_max_payload_53755 amdtp_out_stream_get_max_payload 0 53755 &lpfc_idiag_queacc_read_qe_53755
++ext2_acl_count_53773 ext2_acl_count 0-1 53773 NULL
++__kfifo_dma_in_prepare_r_53792 __kfifo_dma_in_prepare_r 4-5 53792 NULL
++__tty_alloc_driver_53799 __tty_alloc_driver 1 53799 NULL
++regmap_raw_write_53803 regmap_raw_write 4-2 53803 NULL
++lpfc_idiag_ctlacc_read_reg_53809 lpfc_idiag_ctlacc_read_reg 0-3 53809 NULL
++nls_nullsize_53815 nls_nullsize 0 53815 NULL
++cpumask_next_zero_53835 cpumask_next_zero 1 53835 NULL
++pms_read_53873 pms_read 3 53873 NULL
++ieee80211_if_fmt_dropped_frames_congestion_53883 ieee80211_if_fmt_dropped_frames_congestion 3 53883 NULL
++ocfs2_rm_xattr_cluster_53900 ocfs2_rm_xattr_cluster 5-4-3 53900 NULL
++proc_file_read_53905 proc_file_read 3 53905 NULL
++azx_via_get_position_53916 azx_via_get_position 0 53916 NULL
++ocfs2_make_clusters_writable_53938 ocfs2_make_clusters_writable 4 53938 NULL
++mthca_setup_cmd_doorbells_53954 mthca_setup_cmd_doorbells 2 53954 NULL
++mlx4_num_eq_uar_53965 mlx4_num_eq_uar 0 53965 NULL
++idetape_chrdev_write_53976 idetape_chrdev_write 3 53976 NULL
++__ocfs2_xattr_set_value_outside_53981 __ocfs2_xattr_set_value_outside 5 53981 NULL
++ieee80211_if_fmt_dot11MeshHWMPperrMinInterval_53998 ieee80211_if_fmt_dot11MeshHWMPperrMinInterval 3 53998 NULL
++snd_pcm_lib_write_transfer_54018 snd_pcm_lib_write_transfer 4-2-5 54018 NULL
++cmpk_message_handle_tx_54024 cmpk_message_handle_tx 4 54024 NULL
++ipxrtr_route_packet_54036 ipxrtr_route_packet 4 54036 NULL
++pipeline_dec_packet_out_read_54052 pipeline_dec_packet_out_read 3 54052 NULL
++nl80211_send_disconnected_54056 nl80211_send_disconnected 5 54056 NULL
++rproc_state_read_54057 rproc_state_read 3 54057 NULL
++_malloc_54077 _malloc 1 54077 NULL
++bitmap_bitremap_54096 bitmap_bitremap 4 54096 NULL
++altera_set_ir_pre_54103 altera_set_ir_pre 2 54103 NULL
++create_xattr_54106 create_xattr 5 54106 NULL
++strn_len_54122 strn_len 0 54122 NULL
++isku_receive_54130 isku_receive 4 54130 NULL
++isr_host_acknowledges_read_54136 isr_host_acknowledges_read 3 54136 NULL
++i2400m_zrealloc_2x_54166 i2400m_zrealloc_2x 3 54166 NULL nohasharray
++memcpy_toiovec_54166 memcpy_toiovec 3 54166 &i2400m_zrealloc_2x_54166
++nouveau_falcon_create__54169 nouveau_falcon_create_ 8 54169 NULL
++acpi_os_read_memory_54186 acpi_os_read_memory 1-3 54186 NULL
++__register_chrdev_54223 __register_chrdev 2-3 54223 NULL
++_format_mac_addr_54229 _format_mac_addr 2-0 54229 NULL
++pi_read_regr_54231 pi_read_regr 0 54231 NULL
++reada_add_block_54247 reada_add_block 2 54247 NULL
++xfs_dir2_sf_addname_hard_54254 xfs_dir2_sf_addname_hard 3 54254 NULL
++ceph_msgpool_get_54258 ceph_msgpool_get 2 54258 NULL
++wusb_prf_54261 wusb_prf 7 54261 NULL nohasharray
++audio_write_54261 audio_write 4 54261 &wusb_prf_54261
++mwifiex_getlog_read_54269 mwifiex_getlog_read 3 54269 NULL
++ubi_calc_data_len_54279 ubi_calc_data_len 0-3 54279 NULL
++altera_set_dr_post_54291 altera_set_dr_post 2 54291 NULL
++dlm_alloc_pagevec_54296 dlm_alloc_pagevec 1 54296 NULL
++sprintf_54306 sprintf 0 54306 NULL
++irq_domain_associate_many_54307 irq_domain_associate_many 2 54307 NULL
++br_fdb_fillbuf_54339 br_fdb_fillbuf 0 54339 NULL
++__alloc_dev_table_54343 __alloc_dev_table 2 54343 NULL
++__get_free_pages_54352 __get_free_pages 0 54352 NULL nohasharray
++_osd_realloc_seg_54352 _osd_realloc_seg 3 54352 &__get_free_pages_54352
++tcf_hash_create_54360 tcf_hash_create 4 54360 NULL
++read_file_credit_dist_stats_54367 read_file_credit_dist_stats 3 54367 NULL
++vfs_readlink_54368 vfs_readlink 3 54368 NULL
++do_dccp_setsockopt_54377 do_dccp_setsockopt 5 54377 NULL nohasharray
++intel_sdvo_write_cmd_54377 intel_sdvo_write_cmd 4 54377 &do_dccp_setsockopt_54377
++ah_alloc_tmp_54378 ah_alloc_tmp 3-2 54378 NULL
++gart_unmap_page_54379 gart_unmap_page 2-3 54379 NULL
++snd_pcm_oss_read2_54387 snd_pcm_oss_read2 0-3 54387 NULL
++i386_mmap_check_54388 i386_mmap_check 0 54388 NULL
++__do_krealloc_54389 __do_krealloc 2 54389 NULL
++iwl_dbgfs_power_save_status_read_54392 iwl_dbgfs_power_save_status_read 3 54392 NULL
++simple_strtoull_54493 simple_strtoull 0 54493 NULL
++btrfs_ordered_sum_size_54509 btrfs_ordered_sum_size 0-2 54509 NULL
++cgroup_write_X64_54514 cgroup_write_X64 5 54514 NULL
++rfc4106_set_key_54519 rfc4106_set_key 3 54519 NULL
++viacam_read_54526 viacam_read 3 54526 NULL
++unix_dgram_connect_54535 unix_dgram_connect 3 54535 NULL
++setsockopt_54539 setsockopt 5 54539 NULL
++mwifiex_usb_submit_rx_urb_54558 mwifiex_usb_submit_rx_urb 2 54558 NULL
++nfsd_vfs_write_54577 nfsd_vfs_write 6 54577 NULL
++fw_iso_buffer_init_54582 fw_iso_buffer_init 3 54582 NULL
++nvme_npages_54601 nvme_npages 0-1 54601 NULL
++fwSendNullPacket_54618 fwSendNullPacket 2 54618 NULL
++irq_of_parse_and_map_54646 irq_of_parse_and_map 0 54646 NULL
++irq_timeout_read_54653 irq_timeout_read 3 54653 NULL
++dns_resolver_read_54658 dns_resolver_read 3 54658 NULL
++twl6030_interrupt_mask_54659 twl6030_interrupt_mask 2 54659 NULL
++bio_kmalloc_54672 bio_kmalloc 2 54672 NULL
++vring_new_virtqueue_54673 vring_new_virtqueue 2 54673 NULL
++evm_read_key_54674 evm_read_key 3 54674 NULL
++resource_string_54699 resource_string 0 54699 NULL
++platform_get_irq_byname_54700 platform_get_irq_byname 0 54700 NULL
++rfkill_fop_read_54711 rfkill_fop_read 3 54711 NULL
++_add_sg_continuation_descriptor_54721 _add_sg_continuation_descriptor 3 54721 NULL
++ocfs2_control_write_54737 ocfs2_control_write 3 54737 NULL
++kzalloc_54740 kzalloc 1 54740 NULL
++wep_iv_read_54744 wep_iv_read 3 54744 NULL
++iio_event_chrdev_read_54757 iio_event_chrdev_read 3 54757 NULL
++batadv_iv_ogm_aggregate_new_54761 batadv_iv_ogm_aggregate_new 2 54761 NULL
++adis16480_show_firmware_date_54762 adis16480_show_firmware_date 3 54762 NULL
++flexcop_device_kmalloc_54793 flexcop_device_kmalloc 1 54793 NULL
++domain_init_54797 domain_init 2 54797 NULL
++ext3_find_goal_54801 ext3_find_goal 0 54801 NULL
++nfsd_write_54809 nfsd_write 6 54809 NULL
++aes_decrypt_fail_read_54815 aes_decrypt_fail_read 3 54815 NULL nohasharray
++crypto_tfm_ctx_alignment_54815 crypto_tfm_ctx_alignment 0 54815 &aes_decrypt_fail_read_54815
++generic_perform_write_54832 generic_perform_write 3 54832 NULL
++write_rio_54837 write_rio 3 54837 NULL
++nouveau_engctx_create__54839 nouveau_engctx_create_ 8 54839 NULL nohasharray
++ext3_acl_from_disk_54839 ext3_acl_from_disk 2 54839 &nouveau_engctx_create__54839
++ufx_ops_write_54848 ufx_ops_write 3 54848 NULL
++printer_read_54851 printer_read 3 54851 NULL
++alloc_ep_req_54860 alloc_ep_req 2 54860 NULL
++broadsheet_spiflash_rewrite_sector_54864 broadsheet_spiflash_rewrite_sector 2 54864 NULL
++prism_build_supp_rates_54865 prism_build_supp_rates 0 54865 NULL
++tcf_csum_ipv6_tcp_54877 tcf_csum_ipv6_tcp 4 54877 NULL
++lm3533_led_get_lv_reg_54900 lm3533_led_get_lv_reg 0-2 54900 NULL
++iscsi_pool_init_54913 iscsi_pool_init 2-4 54913 NULL
++btrfs_stack_chunk_num_stripes_54923 btrfs_stack_chunk_num_stripes 0 54923 NULL
++mxms_structlen_54939 mxms_structlen 0 54939 NULL
++add_port_54941 add_port 2 54941 NULL
++virtblk_add_buf_wait_54943 virtblk_add_buf_wait 3-4 54943 NULL
++wl12xx_cmd_build_probe_req_54946 wl12xx_cmd_build_probe_req 6-8 54946 NULL
++ath9k_dump_btcoex_54949 ath9k_dump_btcoex 0 54949 NULL
++c4_add_card_54968 c4_add_card 3 54968 NULL
++iwl_pcie_dump_fh_54975 iwl_pcie_dump_fh 0 54975 NULL
++__proc_file_read_54978 __proc_file_read 3 54978 NULL
++ext3_xattr_get_54989 ext3_xattr_get 0 54989 NULL
++rds_ib_inc_copy_to_user_55007 rds_ib_inc_copy_to_user 3 55007 NULL
++cx231xx_v4l2_read_55014 cx231xx_v4l2_read 3 55014 NULL
++error_error_null_Frame_tx_start_read_55024 error_error_null_Frame_tx_start_read 3 55024 NULL
++__netdev_alloc_skb_ip_align_55067 __netdev_alloc_skb_ip_align 2 55067 NULL
++apei_exec_run_55075 apei_exec_run 0 55075 NULL
++bitmap_storage_alloc_55077 bitmap_storage_alloc 2 55077 NULL
++snd_pcm_capture_hw_avail_55086 snd_pcm_capture_hw_avail 0 55086 NULL
++rxpipe_beacon_buffer_thres_host_int_trig_rx_data_read_55106 rxpipe_beacon_buffer_thres_host_int_trig_rx_data_read 3 55106 NULL
++corrupt_data_55120 corrupt_data 0 55120 NULL
++crypto_ahash_setkey_55134 crypto_ahash_setkey 3 55134 NULL
++ocfs2_prepare_refcount_change_for_del_55137 ocfs2_prepare_refcount_change_for_del 3 55137 NULL nohasharray
++filldir_55137 filldir 3 55137 &ocfs2_prepare_refcount_change_for_del_55137
++ocfs2_truncate_file_55148 ocfs2_truncate_file 3 55148 NULL
++ieee80211_if_read_uapsd_queues_55150 ieee80211_if_read_uapsd_queues 3 55150 NULL
++mtd_get_fact_prot_info_55186 mtd_get_fact_prot_info 0 55186 NULL
++sel_write_relabel_55195 sel_write_relabel 3 55195 NULL
++sched_feat_write_55202 sched_feat_write 3 55202 NULL
++ht40allow_map_read_55209 ht40allow_map_read 3 55209 NULL nohasharray
++pcf50633_gpio_set_55209 pcf50633_gpio_set 2 55209 &ht40allow_map_read_55209
++ssd1307fb_write_cmd_array_55211 ssd1307fb_write_cmd_array 3 55211 NULL nohasharray
++__kfifo_dma_out_prepare_r_55211 __kfifo_dma_out_prepare_r 4-5 55211 &ssd1307fb_write_cmd_array_55211
++do_raw_setsockopt_55215 do_raw_setsockopt 5 55215 NULL
++dbAllocDmap_55227 dbAllocDmap 0 55227 NULL
++tipc_port_reject_sections_55229 tipc_port_reject_sections 5 55229 NULL
++register_unifi_sdio_55239 register_unifi_sdio 2 55239 NULL
++memcpy_fromiovec_55247 memcpy_fromiovec 3 55247 NULL
++ptrace_request_55288 ptrace_request 3 55288 NULL
++rx_streaming_interval_read_55291 rx_streaming_interval_read 3 55291 NULL
++rbd_create_rw_ops_55297 rbd_create_rw_ops 1 55297 NULL
++gsm_control_modem_55303 gsm_control_modem 3 55303 NULL
++__get_vm_area_node_55305 __get_vm_area_node 1 55305 NULL
++vme_user_read_55338 vme_user_read 3 55338 NULL
++sctp_datamsg_from_user_55342 sctp_datamsg_from_user 4 55342 NULL nohasharray
++__wa_xfer_setup_sizes_55342 __wa_xfer_setup_sizes 0 55342 &sctp_datamsg_from_user_55342
++acpi_system_read_event_55362 acpi_system_read_event 3 55362 NULL
++__send_to_port_55383 __send_to_port 3 55383 NULL
++nf_nat_ipv4_manip_pkt_55387 nf_nat_ipv4_manip_pkt 2 55387 NULL
++iwl_dbgfs_plcp_delta_read_55407 iwl_dbgfs_plcp_delta_read 3 55407 NULL
++alloc_skb_55439 alloc_skb 1 55439 NULL
++__vxge_hw_channel_allocate_55462 __vxge_hw_channel_allocate 3 55462 NULL
++isdnhdlc_decode_55466 isdnhdlc_decode 0 55466 NULL
++cx23888_ir_rx_read_55473 cx23888_ir_rx_read 3 55473 NULL
++batadv_unicast_push_and_fill_skb_55474 batadv_unicast_push_and_fill_skb 2 55474 NULL
++snd_pcm_lib_write_55483 snd_pcm_lib_write 0-3 55483 NULL
++i2o_pool_alloc_55485 i2o_pool_alloc 4 55485 NULL
++wm5100_gpio_direction_out_55497 wm5100_gpio_direction_out 2 55497 NULL
++ocfs2_rec_clusters_55501 ocfs2_rec_clusters 0 55501 NULL
++ext4_flex_bg_size_55502 ext4_flex_bg_size 0 55502 NULL
++cfpkt_pad_trail_55511 cfpkt_pad_trail 2 55511 NULL nohasharray
++tx_tx_done_int_template_read_55511 tx_tx_done_int_template_read 3 55511 &cfpkt_pad_trail_55511
++ea_get_55522 ea_get 0 55522 NULL
++buffer_size_55534 buffer_size 0 55534 NULL
++set_msr_interception_55538 set_msr_interception 2 55538 NULL
++tty_port_register_device_55543 tty_port_register_device 3 55543 NULL
++add_partition_55588 add_partition 2 55588 NULL
++macvtap_put_user_55609 macvtap_put_user 4 55609 NULL
 +selinux_setprocattr_55611 selinux_setprocattr 4 55611 NULL
-+profile_replace_14652 profile_replace 3 14652 NULL
-+vzalloc_47421 vzalloc 1 47421 NULL
-+mwifiex_11n_create_rx_reorder_tbl_63806 mwifiex_11n_create_rx_reorder_tbl 4 63806 NULL
++reiserfs_xattr_get_55628 reiserfs_xattr_get 0 55628 NULL nohasharray
++pktgen_if_write_55628 pktgen_if_write 3 55628 &reiserfs_xattr_get_55628
++dvb_dmxdev_set_buffer_size_55643 dvb_dmxdev_set_buffer_size 2 55643 NULL
++mlx4_buddy_alloc_55647 mlx4_buddy_alloc 2 55647 NULL
++xfs_bmbt_maxrecs_55649 xfs_bmbt_maxrecs 0-2 55649 NULL
++ib_umad_compat_ioctl_55650 ib_umad_compat_ioctl 3 55650 NULL
++cfg80211_send_rx_assoc_55651 cfg80211_send_rx_assoc 4 55651 NULL
++read_oldmem_55658 read_oldmem 3 55658 NULL
++lpfc_idiag_queinfo_read_55662 lpfc_idiag_queinfo_read 3 55662 NULL
++il_dbgfs_tx_queue_read_55668 il_dbgfs_tx_queue_read 3 55668 NULL
++get_info_55681 get_info 3 55681 NULL
++arizona_gpio_direction_in_55690 arizona_gpio_direction_in 2 55690 NULL
++wil_vring_alloc_skb_55703 wil_vring_alloc_skb 4 55703 NULL
++__videobuf_alloc_uncached_55711 __videobuf_alloc_uncached 1 55711 NULL
++pm8001_store_update_fw_55716 pm8001_store_update_fw 4 55716 NULL
++mtdswap_init_55719 mtdswap_init 2 55719 NULL
++__iio_allocate_kfifo_55738 __iio_allocate_kfifo 3-2 55738 NULL
++set_local_name_55757 set_local_name 4 55757 NULL
++btrfs_init_new_buffer_55761 btrfs_init_new_buffer 4 55761 NULL
++strlen_55778 strlen 0 55778 NULL nohasharray
++is_idx_node_in_tnc_55778 is_idx_node_in_tnc 0 55778 &strlen_55778
++req_bio_endio_55786 req_bio_endio 3 55786 NULL nohasharray
++conf_read_55786 conf_read 3 55786 &req_bio_endio_55786
++uwb_rc_neh_grok_event_55799 uwb_rc_neh_grok_event 3 55799 NULL
++btrfs_find_create_tree_block_55812 btrfs_find_create_tree_block 3 55812 NULL
++sb16_copy_from_user_55836 sb16_copy_from_user 10-6-7 55836 NULL
++ip_hdrlen_55849 ip_hdrlen 0 55849 NULL
++hcd_alloc_coherent_55862 hcd_alloc_coherent 5 55862 NULL
++shmem_setxattr_55867 shmem_setxattr 4 55867 NULL
++hsc_write_55875 hsc_write 3 55875 NULL
++pm_qos_power_read_55891 pm_qos_power_read 3 55891 NULL
++snd_pcm_hw_param_value_min_55917 snd_pcm_hw_param_value_min 0 55917 NULL
++sel_read_policy_55947 sel_read_policy 3 55947 NULL
++handle_response_55951 handle_response 5 55951 NULL
++simple_read_from_buffer_55957 simple_read_from_buffer 2-5 55957 NULL
++tx_tx_imm_resp_read_55964 tx_tx_imm_resp_read 3 55964 NULL
++ssb_bus_pcmciabus_register_56020 ssb_bus_pcmciabus_register 3 56020 NULL
++nvme_alloc_iod_56027 nvme_alloc_iod 1-2 56027 NULL
++dccp_sendmsg_56058 dccp_sendmsg 4 56058 NULL
++pscsi_get_bio_56103 pscsi_get_bio 1 56103 NULL
++usb_alloc_stream_buffers_56123 usb_alloc_stream_buffers 3 56123 NULL
++kmem_zalloc_large_56128 kmem_zalloc_large 1 56128 NULL
++sel_read_handle_status_56139 sel_read_handle_status 3 56139 NULL
++map_addr_56144 map_addr 7 56144 NULL
++rawv6_setsockopt_56165 rawv6_setsockopt 5 56165 NULL
++create_irq_nr_56180 create_irq_nr 1 56180 NULL
++ath9k_dump_legacy_btcoex_56194 ath9k_dump_legacy_btcoex 0 56194 NULL
++skb_headroom_56200 skb_headroom 0 56200 NULL
++usb_dump_iad_descriptor_56204 usb_dump_iad_descriptor 0 56204 NULL
++ncp_read_bounce_size_56221 ncp_read_bounce_size 0-1 56221 NULL
++ocfs2_find_xe_in_bucket_56224 ocfs2_find_xe_in_bucket 0 56224 NULL
++cp210x_get_config_56229 cp210x_get_config 4 56229 NULL
++do_ipt_set_ctl_56238 do_ipt_set_ctl 4 56238 NULL
++scrub_setup_recheck_block_56245 scrub_setup_recheck_block 4-3 56245 NULL
++fd_copyin_56247 fd_copyin 3 56247 NULL
++sk_rmem_schedule_56255 sk_rmem_schedule 3 56255 NULL
++il4965_ucode_general_stats_read_56277 il4965_ucode_general_stats_read 3 56277 NULL
++ieee80211_if_fmt_user_power_level_56283 ieee80211_if_fmt_user_power_level 3 56283 NULL
++RESIZE_IF_NEEDED_56286 RESIZE_IF_NEEDED 2 56286 NULL
++dvb_aplay_56296 dvb_aplay 3 56296 NULL
++btmrvl_hscfgcmd_read_56303 btmrvl_hscfgcmd_read 3 56303 NULL
++compat_cdrom_read_audio_56304 compat_cdrom_read_audio 4 56304 NULL
++pipeline_pre_to_defrag_swi_read_56321 pipeline_pre_to_defrag_swi_read 3 56321 NULL
++journal_init_revoke_table_56331 journal_init_revoke_table 1 56331 NULL
++snd_rawmidi_read_56337 snd_rawmidi_read 3 56337 NULL
++sixpack_compat_ioctl_56346 sixpack_compat_ioctl 4 56346 NULL
++vxge_os_dma_malloc_async_56348 vxge_os_dma_malloc_async 3 56348 NULL
++tps80031_ext_power_req_config_56353 tps80031_ext_power_req_config 3-4-5 56353 NULL
++iov_iter_copy_from_user_atomic_56368 iov_iter_copy_from_user_atomic 4 56368 NULL
++dev_read_56369 dev_read 3 56369 NULL
++alloc_dummy_extent_buffer_56374 alloc_dummy_extent_buffer 2 56374 NULL
++snd_pcm_common_ioctl1_56382 snd_pcm_common_ioctl1 0 56382 NULL
++ocfs2_control_read_56405 ocfs2_control_read 3 56405 NULL
++__get_vm_area_caller_56416 __get_vm_area_caller 1 56416 NULL nohasharray
++acpi_os_write_memory_56416 acpi_os_write_memory 1-3 56416 &__get_vm_area_caller_56416
++store_msg_56417 store_msg 3 56417 NULL
++pppol2tp_sendmsg_56420 pppol2tp_sendmsg 4 56420 NULL
++ec_dbgfs_cmd_read_56431 ec_dbgfs_cmd_read 3 56431 NULL
++fl_create_56435 fl_create 5 56435 NULL
++gnttab_map_56439 gnttab_map 2 56439 NULL
++cx231xx_init_isoc_56453 cx231xx_init_isoc 3-2 56453 NULL
++set_connectable_56458 set_connectable 4 56458 NULL
++osd_req_list_partition_objects_56464 osd_req_list_partition_objects 5 56464 NULL
++calc_linear_pos_56472 calc_linear_pos 0-3 56472 NULL
++crypto_shash_alignmask_56486 crypto_shash_alignmask 0 56486 NULL
++cfg80211_connect_result_56515 cfg80211_connect_result 4-6 56515 NULL
++ip_options_get_56538 ip_options_get 4 56538 NULL
++ocfs2_change_extent_flag_56549 ocfs2_change_extent_flag 5 56549 NULL
++alloc_apertures_56561 alloc_apertures 1 56561 NULL
++rs_sta_dbgfs_stats_table_read_56573 rs_sta_dbgfs_stats_table_read 3 56573 NULL
++portcntrs_2_read_56586 portcntrs_2_read 3 56586 NULL
++event_filter_write_56609 event_filter_write 3 56609 NULL
++gather_array_56641 gather_array 3 56641 NULL
++uvc_debugfs_stats_read_56651 uvc_debugfs_stats_read 3 56651 NULL
++snd_gus_dram_read_56686 snd_gus_dram_read 4 56686 NULL nohasharray
++da9055_gpio_to_irq_56686 da9055_gpio_to_irq 2 56686 &snd_gus_dram_read_56686
++dvb_ringbuffer_read_user_56702 dvb_ringbuffer_read_user 3 56702 NULL
++sta_flags_read_56710 sta_flags_read 3 56710 NULL
++ipv6_getsockopt_sticky_56711 ipv6_getsockopt_sticky 5 56711 NULL
++__wa_xfer_setup_segs_56725 __wa_xfer_setup_segs 2 56725 NULL
++pcpu_populate_chunk_56741 pcpu_populate_chunk 2-3 56741 NULL
++drm_agp_bind_pages_56748 drm_agp_bind_pages 3 56748 NULL
++btrfsic_map_block_56751 btrfsic_map_block 2 56751 NULL
++alloc_iommu_56778 alloc_iommu 2-3 56778 NULL
++__carl9170_rx_56784 __carl9170_rx 3 56784 NULL
++do_syslog_56807 do_syslog 3 56807 NULL
++mtdchar_write_56831 mtdchar_write 3 56831 NULL nohasharray
++ntfs_rl_realloc_56831 ntfs_rl_realloc 3 56831 &mtdchar_write_56831
++snd_rawmidi_kernel_write1_56847 snd_rawmidi_kernel_write1 4 56847 NULL
++ext3_xattr_ibody_get_56880 ext3_xattr_ibody_get 0 56880 NULL
++pvr2_debugifc_print_status_56890 pvr2_debugifc_print_status 3 56890 NULL
++debug_debug3_read_56894 debug_debug3_read 3 56894 NULL
++batadv_tt_update_changes_56895 batadv_tt_update_changes 3 56895 NULL
++strcspn_56913 strcspn 0 56913 NULL
++__kfifo_out_56927 __kfifo_out 0-3 56927 NULL
++check_header_56930 check_header 2 56930 NULL
++journal_init_revoke_56933 journal_init_revoke 2 56933 NULL
++diva_get_driver_info_56967 diva_get_driver_info 0 56967 NULL
++nouveau_device_create__56984 nouveau_device_create_ 6 56984 NULL
++vlsi_alloc_ring_57003 vlsi_alloc_ring 3-4 57003 NULL
++btrfs_super_csum_size_57004 btrfs_super_csum_size 0 57004 NULL
++skb_network_offset_57043 skb_network_offset 0 57043 NULL nohasharray
++ieee80211_if_fmt_state_57043 ieee80211_if_fmt_state 3 57043 &skb_network_offset_57043
++bytes_to_samples_57049 bytes_to_samples 0-2 57049 NULL
++xfs_buf_read_map_57053 xfs_buf_read_map 3 57053 NULL
++autofs_dev_ioctl_compat_57059 autofs_dev_ioctl_compat 3 57059 NULL
++cx2341x_ctrl_new_std_57061 cx2341x_ctrl_new_std 4 57061 NULL
++sca3000_read_data_57064 sca3000_read_data 4 57064 NULL
++pcmcia_replace_cis_57066 pcmcia_replace_cis 3 57066 NULL
++sis190_try_rx_copy_57069 sis190_try_rx_copy 3 57069 NULL
++tracing_set_trace_write_57096 tracing_set_trace_write 3 57096 NULL
++snd_pcm_hw_params_old_user_57108 snd_pcm_hw_params_old_user 0 57108 NULL
++crypto_compress_ctxsize_57109 crypto_compress_ctxsize 0 57109 NULL
++sysfs_write_file_57116 sysfs_write_file 3 57116 NULL
++cipso_v4_gentag_loc_57119 cipso_v4_gentag_loc 0 57119 NULL
++nl80211_send_deauth_57136 nl80211_send_deauth 4 57136 NULL nohasharray
++rds_ib_sub_signaled_57136 rds_ib_sub_signaled 2 57136 &nl80211_send_deauth_57136 nohasharray
++ima_show_htable_value_57136 ima_show_htable_value 2 57136 &rds_ib_sub_signaled_57136
++snd_sonicvibes_getdmac_57140 snd_sonicvibes_getdmac 0 57140 NULL
++udl_prime_create_57159 udl_prime_create 2 57159 NULL
++stk_prepare_sio_buffers_57168 stk_prepare_sio_buffers 2 57168 NULL
++rx_hw_stuck_read_57179 rx_hw_stuck_read 3 57179 NULL
++tt3650_ci_msg_57219 tt3650_ci_msg 4 57219 NULL
++dma_fifo_alloc_57236 dma_fifo_alloc 5-3-2 57236 NULL
++ieee80211_if_fmt_tsf_57249 ieee80211_if_fmt_tsf 3 57249 NULL
++oprofilefs_ulong_from_user_57251 oprofilefs_ulong_from_user 3 57251 NULL
++alloc_flex_gd_57259 alloc_flex_gd 1 57259 NULL
++security_mmap_file_57268 security_mmap_file 0 57268 NULL
++pstore_file_read_57288 pstore_file_read 3 57288 NULL
++snd_pcm_read_57289 snd_pcm_read 3 57289 NULL
++ath6kl_buf_alloc_57304 ath6kl_buf_alloc 1 57304 NULL
++fw_file_size_57307 fw_file_size 0 57307 NULL
++ftdi_elan_write_57309 ftdi_elan_write 3 57309 NULL
++__mxt_write_reg_57326 __mxt_write_reg 3 57326 NULL
++ocfs2_xattr_shrink_size_57328 ocfs2_xattr_shrink_size 3 57328 NULL
++check_mirror_57342 check_mirror 1-2 57342 NULL nohasharray
++usblp_read_57342 usblp_read 3 57342 &check_mirror_57342
++print_devstats_dot11RTSFailureCount_57347 print_devstats_dot11RTSFailureCount 3 57347 NULL
++tipc_bclink_stats_57372 tipc_bclink_stats 2 57372 NULL
++max8997_irq_domain_map_57375 max8997_irq_domain_map 2 57375 NULL
++tty_register_device_attr_57381 tty_register_device_attr 2 57381 NULL
++read_file_blob_57406 read_file_blob 3 57406 NULL
++enclosure_register_57412 enclosure_register 3 57412 NULL
++gre_manip_pkt_57416 gre_manip_pkt 4 57416 NULL
++wm831x_gpio_set_debounce_57428 wm831x_gpio_set_debounce 2 57428 NULL
++compat_keyctl_instantiate_key_iov_57431 compat_keyctl_instantiate_key_iov 3 57431 NULL nohasharray
++alloc_ftrace_hash_57431 alloc_ftrace_hash 1 57431 &compat_keyctl_instantiate_key_iov_57431
++copy_to_user_fromio_57432 copy_to_user_fromio 3 57432 NULL
++sys_pselect6_57449 sys_pselect6 1 57449 NULL
++ReadReg_57453 ReadReg 0 57453 NULL
++__roundup_pow_of_two_57461 __roundup_pow_of_two 0 57461 NULL
++crypto_tfm_alg_blocksize_57463 crypto_tfm_alg_blocksize 0 57463 NULL nohasharray
++send_midi_async_57463 send_midi_async 3 57463 &crypto_tfm_alg_blocksize_57463
++sisusb_clear_vram_57466 sisusb_clear_vram 3-2 57466 NULL
++ieee80211_if_read_flags_57470 ieee80211_if_read_flags 3 57470 NULL nohasharray
++sep_lock_user_pages_57470 sep_lock_user_pages 2-3 57470 &ieee80211_if_read_flags_57470
++ocfs2_write_cluster_57483 ocfs2_write_cluster 8-2-9 57483 NULL
++bnad_debugfs_write_regwr_57500 bnad_debugfs_write_regwr 3 57500 NULL
++skb_headlen_57501 skb_headlen 0 57501 NULL
++copy_in_user_57502 copy_in_user 3 57502 NULL
++ks8842_read32_57505 ks8842_read32 0 57505 NULL nohasharray
++ckhdid_printf_57505 ckhdid_printf 2 57505 &ks8842_read32_57505
++init_tag_map_57515 init_tag_map 3 57515 NULL
++wil_read_file_ssid_57517 wil_read_file_ssid 3 57517 NULL nohasharray
++il_dbgfs_force_reset_read_57517 il_dbgfs_force_reset_read 3 57517 &wil_read_file_ssid_57517
++inode_permission_57531 inode_permission 0 57531 NULL
++acpi_dev_get_resources_57534 acpi_dev_get_resources 0 57534 NULL nohasharray
++DoC_Probe_57534 DoC_Probe 1 57534 &acpi_dev_get_resources_57534
++ext4_group_first_block_no_57559 ext4_group_first_block_no 0-2 57559 NULL
++snd_pcm_playback_ioctl1_57569 snd_pcm_playback_ioctl1 0 57569 NULL
++lp8788_update_bits_57600 lp8788_update_bits 2 57600 NULL
++wm831x_gpio_to_irq_57614 wm831x_gpio_to_irq 2 57614 NULL
++sk_stream_alloc_skb_57622 sk_stream_alloc_skb 2 57622 NULL
++tps65217_reg_write_57623 tps65217_reg_write 2 57623 NULL nohasharray
++tx_tx_retry_template_read_57623 tx_tx_retry_template_read 3 57623 &tps65217_reg_write_57623
++osdmap_set_max_osd_57630 osdmap_set_max_osd 2 57630 NULL nohasharray
++sisusbcon_putcs_57630 sisusbcon_putcs 3 57630 &osdmap_set_max_osd_57630
++mem_read_57631 mem_read 3 57631 NULL
++tc3589x_irq_map_57639 tc3589x_irq_map 2 57639 NULL
++sys_mq_timedsend_57661 sys_mq_timedsend 3 57661 NULL
++r3964_write_57662 r3964_write 4 57662 NULL
++proc_ns_readlink_57664 proc_ns_readlink 3 57664 NULL
++__lgwrite_57669 __lgwrite 4 57669 NULL
++ieee80211_MFIE_rate_len_57692 ieee80211_MFIE_rate_len 0 57692 NULL
++f1x_match_to_this_node_57695 f1x_match_to_this_node 3 57695 NULL
++check_prefree_segments_57702 check_prefree_segments 2 57702 NULL
++i2400m_rx_stats_read_57706 i2400m_rx_stats_read 3 57706 NULL
++ieee80211_if_read_dot11MeshHWMPconfirmationInterval_57722 ieee80211_if_read_dot11MeshHWMPconfirmationInterval 3 57722 NULL
++compat_sys_set_mempolicy_57742 compat_sys_set_mempolicy 3 57742 NULL
++ieee80211_if_fmt_dot11MeshHWMPpreqMinInterval_57762 ieee80211_if_fmt_dot11MeshHWMPpreqMinInterval 3 57762 NULL
++ld2_57794 ld2 0 57794 NULL
++ivtv_read_57796 ivtv_read 3 57796 NULL
++generic_ptrace_peekdata_57806 generic_ptrace_peekdata 2 57806 NULL
++usb_dump_config_57817 usb_dump_config 0 57817 NULL
++bfad_debugfs_read_regrd_57830 bfad_debugfs_read_regrd 3 57830 NULL
++copy_to_user_57835 copy_to_user 3 57835 NULL
++flash_read_57843 flash_read 3 57843 NULL
++xt_alloc_table_info_57903 xt_alloc_table_info 1 57903 NULL
++ad5380_info_to_reg_57905 ad5380_info_to_reg 0 57905 NULL
++emi26_writememory_57908 emi26_writememory 4 57908 NULL
++iio_read_first_n_kfifo_57910 iio_read_first_n_kfifo 2 57910 NULL
++memcg_caches_array_size_57918 memcg_caches_array_size 0-1 57918 NULL
++twl_i2c_write_57923 twl_i2c_write 4-3 57923 NULL
++__snd_gf1_look16_57925 __snd_gf1_look16 0 57925 NULL
++sel_read_handle_unknown_57933 sel_read_handle_unknown 3 57933 NULL
++key_algorithm_read_57946 key_algorithm_read 3 57946 NULL
++ip_set_alloc_57953 ip_set_alloc 1 57953 NULL nohasharray
++ioat3_dca_count_dca_slots_57953 ioat3_dca_count_dca_slots 0 57953 &ip_set_alloc_57953
++i915_cache_sharing_write_57961 i915_cache_sharing_write 3 57961 NULL
++hfc_empty_fifo_57972 hfc_empty_fifo 2 57972 NULL
++rx_reset_counter_read_58001 rx_reset_counter_read 3 58001 NULL
++regcache_rbtree_insert_to_block_58009 regcache_rbtree_insert_to_block 5 58009 NULL
++iwl_dbgfs_ucode_rx_stats_read_58023 iwl_dbgfs_ucode_rx_stats_read 3 58023 NULL
++io_playback_transfer_58030 io_playback_transfer 4 58030 NULL
++mc13783_write_58033 mc13783_write 2 58033 NULL
++mce_async_out_58056 mce_async_out 3 58056 NULL
++ocfs2_find_leaf_58065 ocfs2_find_leaf 0 58065 NULL
++dt3155_alloc_coherent_58073 dt3155_alloc_coherent 2 58073 NULL
++cm4040_write_58079 cm4040_write 3 58079 NULL
++udi_log_event_58105 udi_log_event 3 58105 NULL
++savemem_58129 savemem 3 58129 NULL
++ipv6_flowlabel_opt_58135 ipv6_flowlabel_opt 3 58135 NULL nohasharray
++slhc_init_58135 slhc_init 1-2 58135 &ipv6_flowlabel_opt_58135
++garmin_write_bulk_58191 garmin_write_bulk 3 58191 NULL
++asix_write_cmd_58192 asix_write_cmd 5 58192 NULL
++ieee80211_if_fmt_flags_58205 ieee80211_if_fmt_flags 3 58205 NULL
++btrfs_mksubvol_58240 btrfs_mksubvol 3 58240 NULL
++btrfsic_create_link_to_next_block_58246 btrfsic_create_link_to_next_block 4 58246 NULL
++read_file_debug_58256 read_file_debug 3 58256 NULL
++cfg80211_mgmt_tx_status_58266 cfg80211_mgmt_tx_status 4 58266 NULL
++profile_load_58267 profile_load 3 58267 NULL
++acpi_ds_build_internal_package_obj_58271 acpi_ds_build_internal_package_obj 3 58271 NULL
++r100_mm_rreg_58276 r100_mm_rreg 0 58276 NULL
++iscsi_decode_text_input_58292 iscsi_decode_text_input 4 58292 NULL
++ieee80211_if_read_dot11MeshTTL_58307 ieee80211_if_read_dot11MeshTTL 3 58307 NULL
++tx_tx_start_int_templates_read_58324 tx_tx_start_int_templates_read 3 58324 NULL
++pcim_iomap_58334 pcim_iomap 3 58334 NULL
++diva_init_dma_map_58336 diva_init_dma_map 3 58336 NULL
++ieee80211_send_probe_req_58337 ieee80211_send_probe_req 4-6 58337 NULL
++next_pidmap_58347 next_pidmap 2 58347 NULL
++vmalloc_to_sg_58354 vmalloc_to_sg 2 58354 NULL
++brcmf_debugfs_sdio_counter_read_58369 brcmf_debugfs_sdio_counter_read 3 58369 NULL
++il_dbgfs_status_read_58388 il_dbgfs_status_read 3 58388 NULL
++kvm_mmu_write_protect_pt_masked_58406 kvm_mmu_write_protect_pt_masked 3 58406 NULL
++i2400m_pld_size_58415 i2400m_pld_size 0 58415 NULL
++__mlx4_alloc_mtt_range_58418 __mlx4_alloc_mtt_range 2 58418 NULL
++__iio_add_chan_devattr_58451 __iio_add_chan_devattr 0 58451 NULL
++capabilities_read_58457 capabilities_read 3 58457 NULL
++batadv_iv_ogm_aggr_packet_58462 batadv_iv_ogm_aggr_packet 3 58462 NULL
++lpfc_idiag_baracc_read_58466 lpfc_idiag_baracc_read 3 58466 NULL nohasharray
++compat_do_ipt_set_ctl_58466 compat_do_ipt_set_ctl 4 58466 &lpfc_idiag_baracc_read_58466
++snd_gf1_read_addr_58483 snd_gf1_read_addr 0 58483 NULL
++snd_rme96_capture_copy_58484 snd_rme96_capture_copy 5 58484 NULL
++batadv_bla_is_backbone_gw_58488 batadv_bla_is_backbone_gw 3 58488 NULL
++wm831x_reg_write_58489 wm831x_reg_write 2 58489 NULL
++rndis_add_response_58544 rndis_add_response 2 58544 NULL
++wep_decrypt_fail_read_58567 wep_decrypt_fail_read 3 58567 NULL
++sip_sprintf_addr_port_58574 sip_sprintf_addr_port 0 58574 NULL
++scnprint_mac_oui_58578 scnprint_mac_oui 3-0 58578 NULL
++ea_read_inline_58589 ea_read_inline 0 58589 NULL
++xip_file_read_58592 xip_file_read 3 58592 NULL
++gdth_search_isa_58595 gdth_search_isa 1 58595 NULL
++ebt_buf_count_58607 ebt_buf_count 0 58607 NULL
++skb_copy_to_page_nocache_58624 skb_copy_to_page_nocache 6 58624 NULL
++module_alloc_update_bounds_rx_58634 module_alloc_update_bounds_rx 1 58634 NULL nohasharray
++efi_ioremap_58634 efi_ioremap 1-2 58634 &module_alloc_update_bounds_rx_58634
++tx_tx_start_fw_gen_read_58648 tx_tx_start_fw_gen_read 3 58648 NULL
++ocfs2_block_to_cluster_start_58653 ocfs2_block_to_cluster_start 2 58653 NULL
++find_zero_58685 find_zero 0-1 58685 NULL nohasharray
++mcs7830_set_reg_async_58685 mcs7830_set_reg_async 3 58685 &find_zero_58685
++uwb_bce_print_IEs_58686 uwb_bce_print_IEs 4 58686 NULL
++tps6586x_writes_58689 tps6586x_writes 3-2 58689 NULL
++vmalloc_node_58700 vmalloc_node 1 58700 NULL
++acpi_map_58725 acpi_map 1-2 58725 NULL
++da9052_gpio_to_irq_58729 da9052_gpio_to_irq 2 58729 NULL
++csum_exist_in_range_58730 csum_exist_in_range 2 58730 NULL
++frames_to_bytes_58741 frames_to_bytes 0-2 58741 NULL
++ieee80211_if_write_tkip_mic_test_58748 ieee80211_if_write_tkip_mic_test 3 58748 NULL
++agp_allocate_memory_58761 agp_allocate_memory 2 58761 NULL
++__do_config_autodelink_58763 __do_config_autodelink 3 58763 NULL
++regmap_calc_reg_len_58795 regmap_calc_reg_len 0 58795 NULL
++raw_send_hdrinc_58803 raw_send_hdrinc 4 58803 NULL
++isku_sysfs_read_58806 isku_sysfs_read 6 58806 NULL
++ep_read_58813 ep_read 3 58813 NULL
++command_write_58841 command_write 3 58841 NULL
++ocfs2_truncate_log_append_58850 ocfs2_truncate_log_append 3 58850 NULL
++ath6kl_wmi_send_action_cmd_58860 ath6kl_wmi_send_action_cmd 7 58860 NULL
++hw_write_58881 hw_write 2 58881 NULL
++gs_alloc_req_58883 gs_alloc_req 2 58883 NULL
++cs553x_init_one_58886 cs553x_init_one 3 58886 NULL
++raw_ctl_compat_ioctl_58905 raw_ctl_compat_ioctl 3 58905 NULL
++print_devstats_dot11FCSErrorCount_58919 print_devstats_dot11FCSErrorCount 3 58919 NULL
++tun_chr_compat_ioctl_58921 tun_chr_compat_ioctl 3 58921 NULL
++pipeline_cs_rx_packet_out_read_58926 pipeline_cs_rx_packet_out_read 3 58926 NULL
++st5481_isoc_flatten_58952 st5481_isoc_flatten 0 58952 NULL
++ieee80211_if_fmt_dot11MeshHWMPactivePathToRootTimeout_58965 ieee80211_if_fmt_dot11MeshHWMPactivePathToRootTimeout 3 58965 NULL
++crypto_aead_ivsize_58970 crypto_aead_ivsize 0 58970 NULL
++handle_rx_packet_58993 handle_rx_packet 3 58993 NULL
++edac_align_ptr_59003 edac_align_ptr 0 59003 NULL
++ep_write_59008 ep_write 3 59008 NULL
++i915_ring_stop_write_59010 i915_ring_stop_write 3 59010 NULL
++init_pci_cap_msi_perm_59033 init_pci_cap_msi_perm 2 59033 NULL
++selinux_transaction_write_59038 selinux_transaction_write 3 59038 NULL
++crypto_aead_reqsize_59039 crypto_aead_reqsize 0 59039 NULL
++regmap_bulk_write_59049 regmap_bulk_write 4-2 59049 NULL
++da9052_gpio_direction_input_59062 da9052_gpio_direction_input 2 59062 NULL
++vfio_device_fops_compat_ioctl_59111 vfio_device_fops_compat_ioctl 3 59111 NULL
++mmc_sd_num_wr_blocks_59112 mmc_sd_num_wr_blocks 0 59112 NULL
++scsi_io_completion_59122 scsi_io_completion 2 59122 NULL
++nfc_llcp_send_i_frame_59130 nfc_llcp_send_i_frame 3 59130 NULL
++__iio_add_event_config_attrs_59136 __iio_add_event_config_attrs 0 59136 NULL
++print_devstats_dot11RTSSuccessCount_59145 print_devstats_dot11RTSSuccessCount 3 59145 NULL nohasharray
++framebuffer_alloc_59145 framebuffer_alloc 1 59145 &print_devstats_dot11RTSSuccessCount_59145
++radeon_compat_ioctl_59150 radeon_compat_ioctl 2 59150 NULL
++pvr2_hdw_report_clients_59152 pvr2_hdw_report_clients 3 59152 NULL
++setup_window_59178 setup_window 4-2-5-7 59178 NULL
++ocfs2_move_extent_59187 ocfs2_move_extent 3 59187 NULL
++xfs_iext_realloc_indirect_59211 xfs_iext_realloc_indirect 2 59211 NULL
++fast_rx_path_59214 fast_rx_path 3 59214 NULL
++inftl_partscan_59216 inftl_partscan 0 59216 NULL
++skb_transport_header_59223 skb_transport_header 0 59223 NULL
++dt3155_read_59226 dt3155_read 3 59226 NULL
++paging64_gpte_to_gfn_lvl_59229 paging64_gpte_to_gfn_lvl 0-1-2 59229 NULL
++rbd_do_request_59239 rbd_do_request 6-7 59239 NULL
++tty_prepare_flip_string_flags_59240 tty_prepare_flip_string_flags 4 59240 NULL
++solo_v4l2_read_59247 solo_v4l2_read 3 59247 NULL
++nla_len_59258 nla_len 0 59258 NULL
++da9055_reg_update_59280 da9055_reg_update 2 59280 NULL
++btrfs_insert_dir_item_59304 btrfs_insert_dir_item 4 59304 NULL
++fd_copyout_59323 fd_copyout 3 59323 NULL
++read_9287_modal_eeprom_59327 read_9287_modal_eeprom 3 59327 NULL
++rx_defrag_in_process_called_read_59338 rx_defrag_in_process_called_read 3 59338 NULL
++xfs_attrmulti_attr_set_59346 xfs_attrmulti_attr_set 4 59346 NULL
++xfs_dir2_sf_entsize_59366 xfs_dir2_sf_entsize 0-2 59366 NULL
++pvr2_debugifc_print_info_59380 pvr2_debugifc_print_info 3 59380 NULL
++fc_frame_alloc_fill_59394 fc_frame_alloc_fill 2 59394 NULL
++vxge_hw_ring_rxds_per_block_get_59425 vxge_hw_ring_rxds_per_block_get 0 59425 NULL
++snd_pcm_tstamp_59431 snd_pcm_tstamp 0 59431 NULL
++squashfs_read_data_59440 squashfs_read_data 6 59440 NULL
++fs_path_ensure_buf_59445 fs_path_ensure_buf 2 59445 NULL
++descriptor_loc_59446 descriptor_loc 3 59446 NULL
++do_compat_semctl_59449 do_compat_semctl 4 59449 NULL
++virtqueue_add_buf_59470 virtqueue_add_buf 3-4 59470 NULL
++ib_copy_from_udata_59502 ib_copy_from_udata 3 59502 NULL
++nfsd_nrpools_59503 nfsd_nrpools 0 59503 NULL
++rds_pin_pages_59507 rds_pin_pages 0 59507 NULL
++mpi_get_nbits_59551 mpi_get_nbits 0 59551 NULL
++tunables_write_59563 tunables_write 3 59563 NULL
++memdup_user_59590 memdup_user 2 59590 NULL
++tps6586x_irq_get_virq_59601 tps6586x_irq_get_virq 2 59601 NULL
++mem_fwlog_free_mem_blks_read_59616 mem_fwlog_free_mem_blks_read 3 59616 NULL
++mtrr_write_59622 mtrr_write 3 59622 NULL
++ip_vs_icmp_xmit_59624 ip_vs_icmp_xmit 4 59624 NULL
++find_first_zero_bit_59636 find_first_zero_bit 0-2 59636 NULL
++ubifs_setxattr_59650 ubifs_setxattr 4 59650 NULL nohasharray
++hidraw_read_59650 hidraw_read 3 59650 &ubifs_setxattr_59650
++v9fs_xattr_set_acl_59651 v9fs_xattr_set_acl 4 59651 NULL
++__devcgroup_check_permission_59665 __devcgroup_check_permission 0 59665 NULL
++alloc_dca_provider_59670 alloc_dca_provider 2 59670 NULL
++wm8400_write_59675 wm8400_write 2 59675 NULL
++sriov_enable_59689 sriov_enable 2 59689 NULL
++mic_calc_failure_read_59700 mic_calc_failure_read 3 59700 NULL
++snd_pcm_info_user_59711 snd_pcm_info_user 0 59711 NULL
++prism2_info_scanresults_59729 prism2_info_scanresults 3 59729 NULL
++wm8996_gpio_direction_in_59739 wm8996_gpio_direction_in 2 59739 NULL
++ieee80211_if_read_fwded_unicast_59740 ieee80211_if_read_fwded_unicast 3 59740 NULL
++qib_decode_7220_sdma_errs_59745 qib_decode_7220_sdma_errs 4 59745 NULL
++strnlen_59746 strnlen 0 59746 NULL
++sctp_manip_pkt_59749 sctp_manip_pkt 4 59749 NULL
++ext3_acl_count_59754 ext3_acl_count 0-1 59754 NULL
++long_retry_limit_read_59766 long_retry_limit_read 3 59766 NULL
++sec_reg_update_59771 sec_reg_update 2 59771 NULL
++venus_remove_59781 venus_remove 4 59781 NULL
++xlog_do_recover_59789 xlog_do_recover 3 59789 NULL
++ipw_write_59807 ipw_write 3 59807 NULL
++rtllib_wx_set_gen_ie_59808 rtllib_wx_set_gen_ie 3 59808 NULL
++scsi_init_shared_tag_map_59812 scsi_init_shared_tag_map 2 59812 NULL
++ieee80211_if_read_dot11MeshHWMPmaxPREQretries_59829 ieee80211_if_read_dot11MeshHWMPmaxPREQretries 3 59829 NULL
++gspca_dev_probe2_59833 gspca_dev_probe2 4 59833 NULL
++fs64_to_cpu_59845 fs64_to_cpu 0 59845 NULL
++tun_put_user_59849 tun_put_user 4 59849 NULL
++pvr2_ioread_set_sync_key_59882 pvr2_ioread_set_sync_key 3 59882 NULL
++shmem_zero_setup_59885 shmem_zero_setup 0 59885 NULL
++ffs_prepare_buffer_59892 ffs_prepare_buffer 2 59892 NULL
++il_dbgfs_rxon_flags_read_59950 il_dbgfs_rxon_flags_read 3 59950 NULL nohasharray
++dapm_widget_power_read_file_59950 dapm_widget_power_read_file 3 59950 &il_dbgfs_rxon_flags_read_59950
++compat_ipmi_ioctl_59956 compat_ipmi_ioctl 3 59956 NULL nohasharray
++il_dbgfs_missed_beacon_read_59956 il_dbgfs_missed_beacon_read 3 59956 &compat_ipmi_ioctl_59956
++fb_getput_cmap_59971 fb_getput_cmap 3 59971 NULL
++__arch_hweight16_59975 __arch_hweight16 0 59975 NULL
++osd_req_read_kern_59990 osd_req_read_kern 5 59990 NULL
++ghash_async_setkey_60001 ghash_async_setkey 3 60001 NULL
++rawsock_sendmsg_60010 rawsock_sendmsg 4 60010 NULL
++mthca_init_cq_60011 mthca_init_cq 2 60011 NULL
++register_device_60015 register_device 2-3 60015 NULL
++osd_req_list_dev_partitions_60027 osd_req_list_dev_partitions 4 60027 NULL
++xlog_bread_offset_60030 xlog_bread_offset 3 60030 NULL
++sys_sched_getaffinity_60033 sys_sched_getaffinity 2 60033 NULL
++ceph_calc_raw_layout_60035 ceph_calc_raw_layout 4 60035 NULL
++bio_integrity_hw_sectors_60039 bio_integrity_hw_sectors 0-2 60039 NULL
++do_ip6t_set_ctl_60040 do_ip6t_set_ctl 4 60040 NULL
++pin_2_irq_60050 pin_2_irq 0-3 60050 NULL nohasharray
++vcs_size_60050 vcs_size 0 60050 &pin_2_irq_60050
++load_module_60056 load_module 2 60056 NULL nohasharray
++gru_alloc_gts_60056 gru_alloc_gts 3-2 60056 &load_module_60056
++compat_writev_60063 compat_writev 3 60063 NULL
++ieee80211_build_probe_req_60064 ieee80211_build_probe_req 8-6 60064 NULL
++c4iw_num_stags_60073 c4iw_num_stags 0 60073 NULL
++mp_register_gsi_60079 mp_register_gsi 2 60079 NULL
++rxrpc_kernel_send_data_60083 rxrpc_kernel_send_data 3 60083 NULL
++ieee80211_if_fmt_fwded_frames_60103 ieee80211_if_fmt_fwded_frames 3 60103 NULL
++ttm_bo_kmap_60118 ttm_bo_kmap 3-2 60118 NULL
++jmb38x_ms_count_slots_60164 jmb38x_ms_count_slots 0 60164 NULL
++init_state_60165 init_state 2 60165 NULL
++sg_build_sgat_60179 sg_build_sgat 3 60179 NULL nohasharray
++jffs2_alloc_full_dirent_60179 jffs2_alloc_full_dirent 1 60179 &sg_build_sgat_60179
++rx_rx_tkip_replays_read_60193 rx_rx_tkip_replays_read 3 60193 NULL
++svc_compat_ioctl_60194 svc_compat_ioctl 3 60194 NULL
++ib_send_cm_mra_60202 ib_send_cm_mra 4 60202 NULL nohasharray
++qib_reg_phys_mr_60202 qib_reg_phys_mr 3 60202 &ib_send_cm_mra_60202
++set_tap_pfs_60203 set_tap_pfs 3 60203 NULL
++ieee80211_mgmt_tx_60209 ieee80211_mgmt_tx 7 60209 NULL
++btrfs_get_token_16_60220 btrfs_get_token_16 0 60220 NULL
++arizona_map_irq_60230 arizona_map_irq 2 60230 NULL
++lp8788_select_buck_vout_addr_60241 lp8788_select_buck_vout_addr 0 60241 NULL
++wm831x_irq_60254 wm831x_irq 2 60254 NULL
++compat_sys_fcntl64_60256 compat_sys_fcntl64 3 60256 NULL
++printer_write_60276 printer_write 3 60276 NULL
++__pskb_pull_tail_60287 __pskb_pull_tail 2 60287 NULL
++do_xip_mapping_read_60297 do_xip_mapping_read 5 60297 NULL
++getDataLength_60301 getDataLength 0 60301 NULL
++ceph_parse_server_name_60318 ceph_parse_server_name 2 60318 NULL
++__kfifo_from_user_r_60345 __kfifo_from_user_r 3-5 60345 NULL
++dccp_setsockopt_60367 dccp_setsockopt 5 60367 NULL
++ubi_eba_atomic_leb_change_60379 ubi_eba_atomic_leb_change 5 60379 NULL
++mthca_alloc_resize_buf_60394 mthca_alloc_resize_buf 3 60394 NULL
++ocfs2_zero_extend_60396 ocfs2_zero_extend 3 60396 NULL
++driver_names_read_60399 driver_names_read 3 60399 NULL
++simple_alloc_urb_60420 simple_alloc_urb 3 60420 NULL
++excessive_retries_read_60425 excessive_retries_read 3 60425 NULL
++tstats_write_60432 tstats_write 3 60432 NULL nohasharray
++kmalloc_60432 kmalloc 1 60432 &tstats_write_60432
++tipc_buf_acquire_60437 tipc_buf_acquire 1 60437 NULL
++rx_data_60442 rx_data 4 60442 NULL
++tcf_csum_ipv4_igmp_60446 tcf_csum_ipv4_igmp 3 60446 NULL
++crypto_shash_setkey_60483 crypto_shash_setkey 3 60483 NULL
++ath_tx_init_60515 ath_tx_init 2 60515 NULL
++hysdn_sched_rx_60533 hysdn_sched_rx 3 60533 NULL
++v9fs_fid_readn_60544 v9fs_fid_readn 4 60544 NULL
++nonpaging_map_60551 nonpaging_map 4 60551 NULL
++skb_transport_offset_60619 skb_transport_offset 0 60619 NULL
++wl1273_fm_fops_write_60621 wl1273_fm_fops_write 3 60621 NULL
++usb_control_msg_60624 usb_control_msg 0 60624 NULL
++acl_alloc_stack_init_60630 acl_alloc_stack_init 1 60630 NULL
++ubifs_recover_leb_60639 ubifs_recover_leb 3 60639 NULL
++fb_get_fscreeninfo_60640 fb_get_fscreeninfo 3 60640 NULL
++if_sdio_host_to_card_60666 if_sdio_host_to_card 4 60666 NULL
++ieee80211_if_read_dot11MeshConfirmTimeout_60670 ieee80211_if_read_dot11MeshConfirmTimeout 3 60670 NULL
++read_vbt_r10_60679 read_vbt_r10 1 60679 NULL
++init_data_container_60709 init_data_container 1 60709 NULL
++snd_ice1712_ds_read_60754 snd_ice1712_ds_read 0 60754 NULL
++raid_status_60755 raid_status 5 60755 NULL
++sel_write_checkreqprot_60774 sel_write_checkreqprot 3 60774 NULL
++opticon_write_60775 opticon_write 4 60775 NULL
++acl_alloc_num_60778 acl_alloc_num 1-2 60778 NULL
++snd_pcm_oss_readv3_60792 snd_pcm_oss_readv3 3 60792 NULL
++pwr_tx_with_ps_read_60851 pwr_tx_with_ps_read 3 60851 NULL
++alloc_buf_60864 alloc_buf 3-2 60864 NULL
++alloc_irq_from_60868 alloc_irq_from 1 60868 NULL
++generic_writepages_60871 generic_writepages 0 60871 NULL
++ubifs_read_one_lp_60882 ubifs_read_one_lp 0 60882 NULL
++ext4_update_inline_data_60888 ext4_update_inline_data 3 60888 NULL
++wm8962_gpio_set_60894 wm8962_gpio_set 2 60894 NULL
++iio_debugfs_read_reg_60908 iio_debugfs_read_reg 3 60908 NULL
++mgt_set_varlen_60916 mgt_set_varlen 4 60916 NULL
++scrub_chunk_60926 scrub_chunk 5 60926 NULL
++pti_char_write_60960 pti_char_write 3 60960 NULL
++mwifiex_alloc_sdio_mpa_buffers_60961 mwifiex_alloc_sdio_mpa_buffers 2-3 60961 NULL
++__a2mp_build_60987 __a2mp_build 3 60987 NULL
++hsc_msg_alloc_60990 hsc_msg_alloc 1 60990 NULL
++ath6kl_lrssi_roam_read_61022 ath6kl_lrssi_roam_read 3 61022 NULL
++symtab_init_61050 symtab_init 2 61050 NULL
++fuse_send_write_61053 fuse_send_write 0 61053 NULL
++snd_pcm_pause_61054 snd_pcm_pause 0 61054 NULL
++bitmap_scnlistprintf_61062 bitmap_scnlistprintf 0-4-2 61062 NULL
++ahash_align_buffer_size_61070 ahash_align_buffer_size 0-1-2 61070 NULL
++snd_pcm_update_hw_ptr0_61084 snd_pcm_update_hw_ptr0 0 61084 NULL
++get_derived_key_61100 get_derived_key 4 61100 NULL
++alloc_chrdev_region_61112 alloc_chrdev_region 0 61112 NULL
++p80211_headerlen_61119 p80211_headerlen 0 61119 NULL nohasharray
++__probe_kernel_read_61119 __probe_kernel_read 3 61119 &p80211_headerlen_61119
++vmemmap_alloc_block_buf_61126 vmemmap_alloc_block_buf 1 61126 NULL
++afs_proc_cells_write_61139 afs_proc_cells_write 3 61139 NULL
++__vmalloc_61168 __vmalloc 1 61168 NULL
++event_oom_late_read_61175 event_oom_late_read 3 61175 NULL nohasharray
++pair_device_61175 pair_device 4 61175 &event_oom_late_read_61175
++sys_lsetxattr_61177 sys_lsetxattr 4 61177 NULL
++arch_hibernation_header_save_61212 arch_hibernation_header_save 0 61212 NULL
++smk_read_ambient_61220 smk_read_ambient 3 61220 NULL
++btrfs_bio_alloc_61270 btrfs_bio_alloc 3 61270 NULL
++vortex_adbdma_getlinearpos_61283 vortex_adbdma_getlinearpos 0 61283 NULL
++sys_add_key_61288 sys_add_key 4 61288 NULL
++ext4_issue_discard_61305 ext4_issue_discard 2 61305 NULL
++xfrm_user_sec_ctx_size_61320 xfrm_user_sec_ctx_size 0 61320 NULL
++st5481_setup_isocpipes_61340 st5481_setup_isocpipes 6-4 61340 NULL
++rx_rx_wa_ba_not_expected_read_61341 rx_rx_wa_ba_not_expected_read 3 61341 NULL
++f1x_map_sysaddr_to_csrow_61344 f1x_map_sysaddr_to_csrow 2 61344 NULL
++debug_debug4_read_61367 debug_debug4_read 3 61367 NULL
++sys_ptrace_61369 sys_ptrace 3 61369 NULL
++change_xattr_61390 change_xattr 5 61390 NULL
++size_entry_mwt_61400 size_entry_mwt 0 61400 NULL
++irq_create_of_mapping_61428 irq_create_of_mapping 0 61428 NULL
++dma_ops_area_alloc_61440 dma_ops_area_alloc 3-4-5 61440 NULL
++tc3589x_irq_unmap_61447 tc3589x_irq_unmap 2 61447 NULL
++unix_stream_sendmsg_61455 unix_stream_sendmsg 4 61455 NULL
++snd_pcm_lib_writev_transfer_61483 snd_pcm_lib_writev_transfer 4-2-5 61483 NULL
++btrfs_item_size_61485 btrfs_item_size 0 61485 NULL
++mc13xxx_reg_write_61490 mc13xxx_reg_write 2 61490 NULL
++erst_errno_61526 erst_errno 0 61526 NULL
++ntfs_attr_lookup_61539 ntfs_attr_lookup 0 61539 NULL
++o2hb_pop_count_61553 o2hb_pop_count 2 61553 NULL
++dvb_net_ioctl_61559 dvb_net_ioctl 2 61559 NULL
++ieee80211_if_read_rc_rateidx_mask_2ghz_61570 ieee80211_if_read_rc_rateidx_mask_2ghz 3 61570 NULL
++seq_open_private_61589 seq_open_private 3 61589 NULL
++__get_vm_area_61599 __get_vm_area 1 61599 NULL
++nfs4_init_uniform_client_string_61601 nfs4_init_uniform_client_string 3 61601 NULL
++ncp_compat_ioctl_61608 ncp_compat_ioctl 3 61608 NULL
++configfs_write_file_61621 configfs_write_file 3 61621 NULL
++ieee80211_if_fmt_hw_queues_61629 ieee80211_if_fmt_hw_queues 3 61629 NULL
++ieee80211_rx_bss_info_61630 ieee80211_rx_bss_info 3 61630 NULL
++i2o_parm_table_get_61635 i2o_parm_table_get 6 61635 NULL
++snd_pcm_oss_read3_61643 snd_pcm_oss_read3 0-3 61643 NULL
++resize_stripes_61650 resize_stripes 2 61650 NULL
++ttm_page_pool_free_61661 ttm_page_pool_free 2 61661 NULL
++insert_one_name_61668 insert_one_name 7 61668 NULL
++snd_pcm_playback_avail_61671 snd_pcm_playback_avail 0 61671 NULL
++lock_loop_61681 lock_loop 1 61681 NULL
++__do_tune_cpucache_61684 __do_tune_cpucache 2 61684 NULL
++filter_read_61692 filter_read 3 61692 NULL
++iov_length_61716 iov_length 0 61716 NULL
++fragmentation_threshold_read_61718 fragmentation_threshold_read 3 61718 NULL
++read_file_interrupt_61742 read_file_interrupt 3 61742 NULL nohasharray
++read_file_regval_61742 read_file_regval 3 61742 &read_file_interrupt_61742
++gfs2_meta_wait_61773 gfs2_meta_wait 0 61773 NULL
++batadv_dat_snoop_incoming_arp_reply_61801 batadv_dat_snoop_incoming_arp_reply 3 61801 NULL
++tps80031_irq_init_61830 tps80031_irq_init 3 61830 NULL
++bfad_debugfs_write_regwr_61841 bfad_debugfs_write_regwr 3 61841 NULL
++fs_path_prepare_for_add_61854 fs_path_prepare_for_add 2 61854 NULL
++evdev_compute_buffer_size_61863 evdev_compute_buffer_size 0 61863 NULL
++get_fw_name_61874 get_fw_name 3 61874 NULL
++twl4030_sih_setup_61878 twl4030_sih_setup 3 61878 NULL
++ieee80211_rtl_auth_challenge_61897 ieee80211_rtl_auth_challenge 3 61897 NULL
++ax25_addr_size_61899 ax25_addr_size 0 61899 NULL nohasharray
++cxgb4_pktgl_to_skb_61899 cxgb4_pktgl_to_skb 2 61899 &ax25_addr_size_61899
++clear_refs_write_61904 clear_refs_write 3 61904 NULL
++rx_filter_arp_filter_read_61914 rx_filter_arp_filter_read 3 61914 NULL
++au0828_init_isoc_61917 au0828_init_isoc 3-2 61917 NULL
++sctp_sendmsg_61919 sctp_sendmsg 4 61919 NULL
++send_bulk_static_data_61932 send_bulk_static_data 3 61932 NULL
++il4965_ucode_rx_stats_read_61948 il4965_ucode_rx_stats_read 3 61948 NULL
++squashfs_read_id_index_table_61961 squashfs_read_id_index_table 4 61961 NULL
++mlx4_alloc_mtt_range_61966 mlx4_alloc_mtt_range 2 61966 NULL
++ocfs2_quota_write_61972 ocfs2_quota_write 5-4 61972 NULL
++cow_file_range_61979 cow_file_range 3 61979 NULL
++virtnet_send_command_61993 virtnet_send_command 5-6 61993 NULL
++xt_compat_match_offset_62011 xt_compat_match_offset 0 62011 NULL
++jffs2_do_unlink_62020 jffs2_do_unlink 4 62020 NULL
++pmcraid_build_passthrough_ioadls_62034 pmcraid_build_passthrough_ioadls 2 62034 NULL
++ppp_tx_cp_62044 ppp_tx_cp 5 62044 NULL
++sctp_user_addto_chunk_62047 sctp_user_addto_chunk 2-3 62047 NULL
++do_pselect_62061 do_pselect 1 62061 NULL
++pcpu_alloc_bootmem_62074 pcpu_alloc_bootmem 2 62074 NULL
++__next_gcwq_cpu_62078 __next_gcwq_cpu 1 62078 NULL
++get_domain_for_dev_62099 get_domain_for_dev 2 62099 NULL
++jffs2_security_setxattr_62107 jffs2_security_setxattr 4 62107 NULL
++llc_ui_header_len_62131 llc_ui_header_len 0 62131 NULL
++qib_diag_write_62133 qib_diag_write 3 62133 NULL
++ql_status_62135 ql_status 5 62135 NULL
++video_usercopy_62151 video_usercopy 2 62151 NULL
++prism54_wpa_bss_ie_get_62173 prism54_wpa_bss_ie_get 0 62173 NULL
++_irq_to_addr_62183 _irq_to_addr 0-1 62183 NULL
++alloc_upcall_62186 alloc_upcall 2 62186 NULL
++btrfs_xattr_acl_set_62203 btrfs_xattr_acl_set 4 62203 NULL
++sock_kmalloc_62205 sock_kmalloc 2 62205 NULL
++nfsd_read_file_62241 nfsd_read_file 6 62241 NULL
++allocate_partition_62245 allocate_partition 4 62245 NULL
++il_dbgfs_sram_read_62296 il_dbgfs_sram_read 3 62296 NULL
++sparse_early_usemaps_alloc_pgdat_section_62304 sparse_early_usemaps_alloc_pgdat_section 2 62304 NULL
++subsystem_filter_read_62310 subsystem_filter_read 3 62310 NULL
++udf_sb_alloc_partition_maps_62313 udf_sb_alloc_partition_maps 2 62313 NULL
++Wb35Reg_BurstWrite_62327 Wb35Reg_BurstWrite 4 62327 NULL
++subseq_list_62332 subseq_list 3-0 62332 NULL
++flash_write_62354 flash_write 3 62354 NULL
++set_wd_exp_mode_pfs_62372 set_wd_exp_mode_pfs 3 62372 NULL
++rx_rx_timeout_read_62389 rx_rx_timeout_read 3 62389 NULL
++altera_irscan_62396 altera_irscan 2 62396 NULL
++set_ssp_62411 set_ssp 4 62411 NULL
++tscadc_writel_62426 tscadc_writel 2 62426 NULL
++netdev_alloc_skb_62437 netdev_alloc_skb 2 62437 NULL
++e1000_check_copybreak_62448 e1000_check_copybreak 3 62448 NULL
++ip_vs_icmp_xmit_v6_62477 ip_vs_icmp_xmit_v6 4 62477 NULL
++ceph_dns_resolve_name_62488 ceph_dns_resolve_name 2 62488 NULL
++mlx4_en_create_rx_ring_62498 mlx4_en_create_rx_ring 3 62498 NULL
++ext_rts51x_sd_execute_read_data_62501 ext_rts51x_sd_execute_read_data 9 62501 NULL
++pep_sendmsg_62524 pep_sendmsg 4 62524 NULL
++test_iso_queue_62534 test_iso_queue 5 62534 NULL
++debugfs_read_62535 debugfs_read 3 62535 NULL
++sco_sock_sendmsg_62542 sco_sock_sendmsg 4 62542 NULL
++qib_refresh_qsfp_cache_62547 qib_refresh_qsfp_cache 0 62547 NULL
++xfrm_user_policy_62573 xfrm_user_policy 4 62573 NULL
++get_subdir_62581 get_subdir 3 62581 NULL
++prism2_send_mgmt_62605 prism2_send_mgmt 4 62605 NULL nohasharray
++nfsd_vfs_read_62605 nfsd_vfs_read 6 62605 &prism2_send_mgmt_62605
++get_desc_base_62617 get_desc_base 0 62617 NULL
++iommu_area_alloc_62619 iommu_area_alloc 2-3-4-7 62619 NULL
++ems_pcmcia_add_card_62627 ems_pcmcia_add_card 2 62627 NULL
++compat_rangeinfo_62630 compat_rangeinfo 2 62630 NULL
++lpfc_sli4_queue_alloc_62646 lpfc_sli4_queue_alloc 3 62646 NULL
++wm8994_gpio_direction_in_62649 wm8994_gpio_direction_in 2 62649 NULL
++ima_file_mmap_62663 ima_file_mmap 0 62663 NULL
++write_62671 write 3 62671 NULL
++printer_req_alloc_62687 printer_req_alloc 2 62687 NULL
++qla4_83xx_rd_reg_62693 qla4_83xx_rd_reg 0 62693 NULL
++ioremap_wc_62695 ioremap_wc 1-2 62695 NULL
++bioset_integrity_create_62708 bioset_integrity_create 2 62708 NULL
++rdm_62719 rdm 0 62719 NULL
++key_replays_read_62746 key_replays_read 3 62746 NULL
++init_chip_wc_pat_62768 init_chip_wc_pat 2 62768 NULL
++ax25_sendmsg_62770 ax25_sendmsg 4 62770 NULL
++page_key_alloc_62771 page_key_alloc 0 62771 NULL
++tracing_total_entries_read_62817 tracing_total_entries_read 3 62817 NULL
++__rounddown_pow_of_two_62836 __rounddown_pow_of_two 0 62836 NULL
++bio_get_nr_vecs_62838 bio_get_nr_vecs 0 62838 NULL
++xlog_recover_add_to_trans_62839 xlog_recover_add_to_trans 4 62839 NULL
++rx_fcs_err_read_62844 rx_fcs_err_read 3 62844 NULL
++hpi_read_word_62862 hpi_read_word 0 62862 NULL
++aoechr_write_62883 aoechr_write 3 62883 NULL nohasharray
++em28xx_init_isoc_62883 em28xx_init_isoc 4 62883 &aoechr_write_62883
++resize_info_buffer_62889 resize_info_buffer 2 62889 NULL
++if_spi_host_to_card_62890 if_spi_host_to_card 4 62890 NULL
++mempool_create_slab_pool_62907 mempool_create_slab_pool 1 62907 NULL
++getdqbuf_62908 getdqbuf 1 62908 NULL
 +agp_create_user_memory_62955 agp_create_user_memory 1 62955 NULL
-+sys_writev_28384 sys_writev 3 28384 NULL
-+batadv_tt_response_fill_table_39236 batadv_tt_response_fill_table 1 39236 NULL
-+read_file_rcstat_22854 read_file_rcstat 3 22854 NULL
-+__videobuf_copy_stream_44769 __videobuf_copy_stream 4 44769 NULL
-+rx_rx_beacon_early_term_read_21559 rx_rx_beacon_early_term_read 3 21559 NULL
-+pktgen_if_write_55628 pktgen_if_write 3 55628 NULL
-+create_attr_set_22861 create_attr_set 1 22861 NULL
-+r128_compat_ioctl_39250 r128_compat_ioctl 2 39250 NULL nohasharray
-+pwr_cont_miss_bcns_spread_read_39250 pwr_cont_miss_bcns_spread_read 3 39250 &r128_compat_ioctl_39250
-+compat_sys_mq_timedsend_31060 compat_sys_mq_timedsend 3 31060 NULL
++PTR_ERR_63033 PTR_ERR 0 63033 NULL nohasharray
++__vb2_perform_fileio_63033 __vb2_perform_fileio 3 63033 &PTR_ERR_63033
++pipeline_defrag_to_csum_swi_read_63037 pipeline_defrag_to_csum_swi_read 3 63037 NULL
++scsi_host_alloc_63041 scsi_host_alloc 2 63041 NULL
++unlink1_63059 unlink1 3 63059 NULL
++xen_set_nslabs_63066 xen_set_nslabs 0 63066 NULL
++ocfs2_decrease_refcount_63078 ocfs2_decrease_refcount 3 63078 NULL
++sep_prepare_input_output_dma_table_in_dcb_63087 sep_prepare_input_output_dma_table_in_dcb 4-5-2-3 63087 NULL
++iwl_dbgfs_sensitivity_read_63116 iwl_dbgfs_sensitivity_read 3 63116 NULL
++ib_send_cm_rtu_63138 ib_send_cm_rtu 3 63138 NULL
++snd_pcm_status_user_63140 snd_pcm_status_user 0 63140 NULL
++ubifs_change_one_lp_63157 ubifs_change_one_lp 0 63157 NULL
++smk_write_revoke_subj_63173 smk_write_revoke_subj 3 63173 NULL
++vme_master_read_63221 vme_master_read 0 63221 NULL
++module_alloc_update_bounds_rw_63233 module_alloc_update_bounds_rw 1 63233 NULL
++ptp_read_63251 ptp_read 4 63251 NULL
++ntfs_attr_can_be_non_resident_63267 ntfs_attr_can_be_non_resident 0 63267 NULL
++raid5_resize_63306 raid5_resize 2 63306 NULL
++proc_info_read_63344 proc_info_read 3 63344 NULL
++ps_upsd_max_sptime_read_63362 ps_upsd_max_sptime_read 3 63362 NULL
++idmouse_read_63374 idmouse_read 3 63374 NULL
++edac_pci_alloc_ctl_info_63388 edac_pci_alloc_ctl_info 1 63388 NULL nohasharray
++usbnet_read_cmd_nopm_63388 usbnet_read_cmd_nopm 7 63388 &edac_pci_alloc_ctl_info_63388
++rxpipe_missed_beacon_host_int_trig_rx_data_read_63405 rxpipe_missed_beacon_host_int_trig_rx_data_read 3 63405 NULL
++l2cap_sock_sendmsg_63427 l2cap_sock_sendmsg 4 63427 NULL
++sep_prepare_input_output_dma_table_63429 sep_prepare_input_output_dma_table 2-4-3 63429 NULL
++kone_send_63435 kone_send 4 63435 NULL
++nfsd_symlink_63442 nfsd_symlink 6 63442 NULL
++snd_info_entry_write_63474 snd_info_entry_write 3 63474 NULL
++reada_find_extent_63486 reada_find_extent 2 63486 NULL
++read_kcore_63488 read_kcore 3 63488 NULL
++snd_pcm_plug_write_transfer_63503 snd_pcm_plug_write_transfer 0-3 63503 NULL
++ubi_more_leb_change_data_63534 ubi_more_leb_change_data 4 63534 NULL
++if_sdio_read_scratch_63540 if_sdio_read_scratch 0 63540 NULL
++append_to_buffer_63550 append_to_buffer 3 63550 NULL
++dbg_leb_write_63555 dbg_leb_write 4-5 63555 NULL nohasharray
++kvm_write_guest_page_63555 kvm_write_guest_page 5 63555 &dbg_leb_write_63555
++ubifs_lpt_scan_nolock_63572 ubifs_lpt_scan_nolock 0 63572 NULL
++ocfs2_calc_trunc_pos_63576 ocfs2_calc_trunc_pos 4 63576 NULL
++rproc_alloc_63577 rproc_alloc 5 63577 NULL
++ext3_clear_blocks_63597 ext3_clear_blocks 4-5 63597 NULL
++module_alloc_63630 module_alloc 1 63630 NULL
++ntfs_malloc_nofs_nofail_63631 ntfs_malloc_nofs_nofail 1 63631 NULL
++symbol_build_supp_rates_63634 symbol_build_supp_rates 0 63634 NULL
++_ubh_find_next_zero_bit__63640 _ubh_find_next_zero_bit_ 4-5-3 63640 NULL
++proc_loginuid_write_63648 proc_loginuid_write 3 63648 NULL
++ValidateDSDParamsChecksum_63654 ValidateDSDParamsChecksum 3 63654 NULL
++hidraw_ioctl_63658 hidraw_ioctl 2 63658 NULL
++vbi_read_63673 vbi_read 3 63673 NULL nohasharray
++xen_register_pirq_63673 xen_register_pirq 1-2 63673 &vbi_read_63673
++alloc_tty_driver_63681 alloc_tty_driver 1 63681 NULL
++mkiss_compat_ioctl_63686 mkiss_compat_ioctl 4 63686 NULL
++arizona_irq_map_63709 arizona_irq_map 2 63709 NULL
++nouveau_object_create__63715 nouveau_object_create_ 5 63715 NULL
++btrfs_insert_delayed_dir_index_63720 btrfs_insert_delayed_dir_index 4 63720 NULL
++selinux_secctx_to_secid_63744 selinux_secctx_to_secid 2 63744 NULL
++snd_pcm_oss_read1_63771 snd_pcm_oss_read1 3 63771 NULL
++snd_pcm_link_63772 snd_pcm_link 0 63772 NULL
++snd_opl4_mem_proc_read_63774 snd_opl4_mem_proc_read 5 63774 NULL
++spidev_compat_ioctl_63778 spidev_compat_ioctl 2-3 63778 NULL
++snapshot_compat_ioctl_63792 snapshot_compat_ioctl 3 63792 NULL
++kovaplus_sysfs_write_63795 kovaplus_sysfs_write 6 63795 NULL
++mwifiex_11n_create_rx_reorder_tbl_63806 mwifiex_11n_create_rx_reorder_tbl 4 63806 NULL
++copy_nodes_to_user_63807 copy_nodes_to_user 2 63807 NULL
 +sel_write_load_63830 sel_write_load 3 63830 NULL
-+lbs_failcount_read_31063 lbs_failcount_read 3 31063 NULL
-+pipeline_enc_tx_stat_fifo_int_read_14680 pipeline_enc_tx_stat_fifo_int_read 3 14680 NULL
-+bnx2_nvram_write_7790 bnx2_nvram_write 4-2 7790 NULL
-+dvb_dmxdev_set_buffer_size_55643 dvb_dmxdev_set_buffer_size 2 55643 NULL
-+tsi148_master_set_14685 tsi148_master_set 4 14685 NULL
-+ath6kl_wmi_set_appie_cmd_39266 ath6kl_wmi_set_appie_cmd 5 39266 NULL
-+probe_bios_17467 probe_bios 1 17467 NULL
-+vmw_execbuf_process_22885 vmw_execbuf_process 5 22885 NULL
-+ttm_bo_ioremap_31082 ttm_bo_ioremap 2-3 31082 NULL
-+mei_read_6507 mei_read 3 6507 NULL
-+lpfc_idiag_queinfo_read_55662 lpfc_idiag_queinfo_read 3 55662 NULL
-+mdc800_device_read_22896 mdc800_device_read 3 22896 NULL
-+rx_filter_protection_filter_read_39282 rx_filter_protection_filter_read 3 39282 NULL
-+sctp_setsockopt_context_31091 sctp_setsockopt_context 3 31091 NULL
-+il_dbgfs_tx_queue_read_55668 il_dbgfs_tx_queue_read 3 55668 NULL
-+SetArea_50835 SetArea 4 50835 NULL
-+tpm_read_50344 tpm_read 3 50344 NULL
-+newpart_47485 newpart 6 47485 NULL
-+jffs2_do_link_42048 jffs2_do_link 6 42048 NULL
-+compat_sys_get_mempolicy_31109 compat_sys_get_mempolicy 3 31109 NULL
-+core_sys_select_47494 core_sys_select 1 47494 NULL
-+read_file_disable_ani_6536 read_file_disable_ani 3 6536 NULL
-+sisusb_write_mem_bulk_29678 sisusb_write_mem_bulk 4 29678 NULL
-+__vmalloc_node_39308 __vmalloc_node 1 39308 NULL
-+libfc_host_alloc_7917 libfc_host_alloc 2 7917 NULL
-+alloc_arraycache_47505 alloc_arraycache 2 47505 NULL
-+unlink_simple_47506 unlink_simple 3 47506 NULL
-+rndis_set_oid_6547 rndis_set_oid 4 6547 NULL
-+wdm_read_6549 wdm_read 3 6549 NULL
++proc_pid_attr_write_63845 proc_pid_attr_write 3 63845 NULL
++ieee80211_if_fmt_channel_type_63855 ieee80211_if_fmt_channel_type 3 63855 NULL
 +init_map_ipmac_63896 init_map_ipmac 4-3 63896 NULL
-+tipc_multicast_49144 tipc_multicast 5 49144 NULL
-+nfs4_realloc_slot_table_22859 nfs4_realloc_slot_table 2 22859 NULL
-+fb_alloc_cmap_6554 fb_alloc_cmap 2 6554 NULL
-+xhci_alloc_stream_info_63902 xhci_alloc_stream_info 3 63902 NULL
-+__videobuf_alloc_uncached_55711 __videobuf_alloc_uncached 1 55711 NULL
-+rx_rx_cmplt_read_14753 rx_rx_cmplt_read 3 14753 NULL
-+nfc_hci_send_cmd_55714 nfc_hci_send_cmd 5 55714 NULL
-+pcpu_mem_zalloc_22948 pcpu_mem_zalloc 1 22948 NULL
-+filter_read_61692 filter_read 3 61692 NULL
-+mtdswap_init_55719 mtdswap_init 2 55719 NULL
-+rx_rx_phy_hdr_read_20950 rx_rx_phy_hdr_read 3 20950 NULL
-+debugfs_read_62535 debugfs_read 3 62535 NULL
-+w9966_v4l_read_31148 w9966_v4l_read 3 31148 NULL
-+process_vm_rw_47533 process_vm_rw 3-5 47533 NULL
 +divas_write_63901 divas_write 3 63901 NULL
-+alloc_sglist_22960 alloc_sglist 1-2-3 22960 NULL
-+caif_seqpkt_sendmsg_22961 caif_seqpkt_sendmsg 4 22961 NULL
++xhci_alloc_stream_info_63902 xhci_alloc_stream_info 3 63902 NULL
++uvc_alloc_urb_buffers_63922 uvc_alloc_urb_buffers 0-3-2 63922 NULL
 +snd_compr_write_63923 snd_compr_write 3 63923 NULL
-+cfpkt_split_47541 cfpkt_split 2 47541 NULL
-+__copy_from_user_nocache_39351 __copy_from_user_nocache 3 39351 NULL
-+btmrvl_pscmd_read_24308 btmrvl_pscmd_read 3 24308 NULL
-+__iio_allocate_kfifo_55738 __iio_allocate_kfifo 3-2 55738 NULL
-+ipw_write_59807 ipw_write 3 59807 NULL
-+sta_dev_read_14782 sta_dev_read 3 14782 NULL
++acpi_ev_get_gpe_xrupt_block_63924 acpi_ev_get_gpe_xrupt_block 1 63924 NULL
 +tipc_send2port_63935 tipc_send2port 5 63935 NULL
-+do_write_log_from_user_39362 do_write_log_from_user 3 39362 NULL
-+ch_do_scsi_31171 ch_do_scsi 4 31171 NULL
 +afs_send_simple_reply_63940 afs_send_simple_reply 3 63940 NULL
-+mwifiex_cfg80211_mgmt_tx_12022 mwifiex_cfg80211_mgmt_tx 9 12022 NULL
-+cycx_setup_47562 cycx_setup 4 47562 NULL
-+remote_settings_file_write_22987 remote_settings_file_write 3 22987 NULL
-+ext4_kvmalloc_14796 ext4_kvmalloc 1 14796 NULL
-+set_local_name_55757 set_local_name 4 55757 NULL
-+printer_req_alloc_62687 printer_req_alloc 2 62687 NULL
-+btrfs_init_new_buffer_55761 btrfs_init_new_buffer 4 55761 NULL
-+read_ldt_47570 read_ldt 2 47570 NULL
-+regmap_name_read_file_39379 regmap_name_read_file 3 39379 NULL
-+pci_iomap_47575 pci_iomap 3 47575 NULL
-+acpi_ex_system_memory_space_handler_31192 acpi_ex_system_memory_space_handler 2 31192 NULL
-+kimage_normal_alloc_31140 kimage_normal_alloc 3 31140 NULL
-+module_alloc_update_bounds_rw_63233 module_alloc_update_bounds_rw 1 63233 NULL
-+ecryptfs_filldir_6622 ecryptfs_filldir 3 6622 NULL
-+drm_ht_create_18853 drm_ht_create 2 18853 NULL
-+mtdchar_readoob_31200 mtdchar_readoob 4 31200 NULL
-+qlcnic_alloc_msix_entries_46160 qlcnic_alloc_msix_entries 2 46160 NULL
++__team_options_register_63941 __team_options_register 3 63941 NULL
++macvtap_recvmsg_63949 macvtap_recvmsg 4 63949 NULL
++ieee80211_if_fmt_rc_rateidx_mcs_mask_2ghz_63968 ieee80211_if_fmt_rc_rateidx_mcs_mask_2ghz 3 63968 NULL
 +ieee80211_authentication_req_63973 ieee80211_authentication_req 3 63973 NULL
-+dn_alloc_skb_6631 dn_alloc_skb 2 6631 NULL
-+conf_read_55786 conf_read 3 55786 NULL
-+do_tune_cpucache_14828 do_tune_cpucache 2 14828 NULL
-+rx_defrag_decrypt_failed_read_41411 rx_defrag_decrypt_failed_read 3 41411 NULL
-+viafb_dvp0_proc_write_23023 viafb_dvp0_proc_write 3 23023 NULL
-+virtscsi_alloc_tgt_6643 virtscsi_alloc_tgt 2 6643 NULL
-+atm_get_addr_31221 atm_get_addr 3 31221 NULL
-+user_power_read_39414 user_power_read 3 39414 NULL
-+uwb_rc_neh_grok_event_55799 uwb_rc_neh_grok_event 3 55799 NULL
-+uea_request_47613 uea_request 4 47613 NULL
-+cache_read_pipefs_47615 cache_read_pipefs 3 47615 NULL
++diva_xdi_write_63975 diva_xdi_write 4 63975 NULL
 +read_file_frameerrors_64001 read_file_frameerrors 3 64001 NULL
-+alloc_agpphysmem_i8xx_39427 alloc_agpphysmem_i8xx 1 39427 NULL
-+btrfs_find_create_tree_block_55812 btrfs_find_create_tree_block 3 55812 NULL
-+subdev_ioctl_28417 subdev_ioctl 2 28417 NULL
-+lcd_write_14857 lcd_write 3 14857 NULL nohasharray
-+__krealloc_14857 __krealloc 2 14857 &lcd_write_14857
-+_create_sg_bios_31244 _create_sg_bios 4 31244 NULL
-+get_user_cpu_mask_14861 get_user_cpu_mask 2 14861 NULL
 +kmemdup_64015 kmemdup 2 64015 NULL
-+compat_sys_select_16131 compat_sys_select 1 16131 NULL
-+reiserfs_add_entry_23062 reiserfs_add_entry 4 23062 NULL nohasharray
-+unix_seqpacket_recvmsg_23062 unix_seqpacket_recvmsg 4 23062 &reiserfs_add_entry_23062
-+process_rcvd_data_6679 process_rcvd_data 3 6679 NULL
 +tcf_csum_skb_nextlayer_64025 tcf_csum_skb_nextlayer 3 64025 NULL
-+oz_events_read_47535 oz_events_read 3 47535 NULL
-+sb16_copy_from_user_55836 sb16_copy_from_user 10-6-7 55836 NULL
++dbAllocDmapLev_64030 dbAllocDmapLev 0 64030 NULL
 +resize_async_buffer_64031 resize_async_buffer 4 64031 NULL
-+sys_semop_39457 sys_semop 3 39457 NULL
-+vm_map_ram_23078 vm_map_ram 2 23078 NULL nohasharray
-+raw_sendmsg_23078 raw_sendmsg 4 23078 &vm_map_ram_23078
-+update_pmkid_2481 update_pmkid 4 2481 NULL
-+sriov_enable_migration_14889 sriov_enable_migration 2 14889 NULL
 +sep_lli_table_secure_dma_64042 sep_lli_table_secure_dma 2-3 64042 NULL
-+ps_pspoll_max_apturn_read_6699 ps_pspoll_max_apturn_read 3 6699 NULL
-+acpi_os_allocate_14892 acpi_os_allocate 1 14892 NULL
-+hysdn_rx_netpkt_16136 hysdn_rx_netpkt 3 16136 NULL
-+setkey_unaligned_39474 setkey_unaligned 3 39474 NULL
-+rt2x00debug_write_eeprom_23091 rt2x00debug_write_eeprom 3 23091 NULL
-+mpeg_read_6708 mpeg_read 3 6708 NULL
-+hcd_alloc_coherent_55862 hcd_alloc_coherent 5 55862 NULL
-+ntfs_ucstonls_23097 ntfs_ucstonls 3-5 23097 NULL
-+sky2_receive_13407 sky2_receive 2 13407 NULL
-+krealloc_14908 krealloc 2 14908 NULL
-+pipe_iov_copy_from_user_23102 pipe_iov_copy_from_user 3 23102 NULL
-+bt_skb_send_alloc_6581 bt_skb_send_alloc 2 6581 NULL
-+dgram_recvmsg_23104 dgram_recvmsg 4 23104 NULL
-+gigaset_if_receive_4861 gigaset_if_receive 3 4861 NULL
-+video_proc_write_6724 video_proc_write 3 6724 NULL
-+xlog_find_verify_log_record_18870 xlog_find_verify_log_record 2 18870 NULL
-+mwl8k_cmd_set_beacon_23110 mwl8k_cmd_set_beacon 4 23110 NULL
-+uvc_simplify_fraction_31303 uvc_simplify_fraction 3 31303 NULL
-+ieee80211_if_read_peer_45233 ieee80211_if_read_peer 3 45233 NULL
-+qla4xxx_alloc_work_44813 qla4xxx_alloc_work 2 44813 NULL
-+drm_mode_create_tv_properties_23122 drm_mode_create_tv_properties 2 23122 NULL
-+pm_qos_power_read_55891 pm_qos_power_read 3 55891 NULL
-+packet_recvmsg_47700 packet_recvmsg 4 47700 NULL
-+command_file_write_31318 command_file_write 3 31318 NULL
-+gspca_dev_probe2_59833 gspca_dev_probe2 4 59833 NULL
++get_u8_64076 get_u8 0 64076 NULL
++sl_realloc_bufs_64086 sl_realloc_bufs 2 64086 NULL
 +lbs_highrssi_read_64089 lbs_highrssi_read 3 64089 NULL
-+wep_default_key_count_read_43035 wep_default_key_count_read 3 43035 NULL
-+i915_cache_sharing_read_24775 i915_cache_sharing_read 3 24775 NULL
-+array_zalloc_7519 array_zalloc 1-2 7519 NULL
-+tx_frag_key_not_found_read_22971 tx_frag_key_not_found_read 3 22971 NULL
-+ipv6_renew_options_28867 ipv6_renew_options 5 28867 NULL
-+unix_dgram_recvmsg_14952 unix_dgram_recvmsg 4 14952 NULL
-+ca91cx42_master_set_23146 ca91cx42_master_set 4 23146 NULL
-+videobuf_read_stream_14956 videobuf_read_stream 3 14956 NULL
-+ieee80211_if_read_dot11MeshHWMPnetDiameterTraversalTime_1589 ieee80211_if_read_dot11MeshHWMPnetDiameterTraversalTime 3 1589 NULL
-+sisusbcon_clear_64329 sisusbcon_clear 4-3-5 64329 NULL
-+vxge_os_dma_malloc_46184 vxge_os_dma_malloc 2 46184 NULL
-+sfi_check_table_6772 sfi_check_table 1 6772 NULL
-+bits_to_user_47733 bits_to_user 2-3 47733 NULL
-+int_proc_write_39542 int_proc_write 3 39542 NULL
-+do_dccp_setsockopt_54377 do_dccp_setsockopt 5 54377 NULL nohasharray
-+intel_sdvo_write_cmd_54377 intel_sdvo_write_cmd 4 54377 &do_dccp_setsockopt_54377
-+read_file_ani_23161 read_file_ani 3 23161 NULL
-+carl9170_debugfs_read_47738 carl9170_debugfs_read 3 47738 NULL
-+iwl_dbgfs_channels_read_6784 iwl_dbgfs_channels_read 3 6784 NULL
-+ieee80211_if_read_6785 ieee80211_if_read 3 6785 NULL
-+pp_write_39554 pp_write 3 39554 NULL
-+ioremap_23172 ioremap 1-2 23172 NULL
-+mvumi_alloc_mem_resource_47750 mvumi_alloc_mem_resource 3 47750 NULL
-+hdlcdrv_register_6792 hdlcdrv_register 2 6792 NULL
-+usblp_write_23178 usblp_write 3 23178 NULL
-+sel_read_policy_55947 sel_read_policy 3 55947 NULL
-+xprt_rdma_allocate_31372 xprt_rdma_allocate 2 31372 NULL
-+vb2_vmalloc_get_userptr_31374 vb2_vmalloc_get_userptr 3 31374 NULL
-+tx_tx_done_data_read_6799 tx_tx_done_data_read 3 6799 NULL
-+datablob_format_39571 datablob_format 2 39571 NULL nohasharray
-+ieee80211_if_read_fwded_mcast_39571 ieee80211_if_read_fwded_mcast 3 39571 &datablob_format_39571
-+fix_unclean_leb_23188 fix_unclean_leb 3 23188 NULL
-+simple_read_from_buffer_55957 simple_read_from_buffer 2-5 55957 NULL
++do_load_xattr_datum_64118 do_load_xattr_datum 0 64118 NULL
++ol_quota_entries_per_block_64122 ol_quota_entries_per_block 0 64122 NULL
++ext4_prepare_inline_data_64124 ext4_prepare_inline_data 3 64124 NULL
++init_bch_64130 init_bch 1-2 64130 NULL
++uea_idma_write_64139 uea_idma_write 3 64139 NULL
++ablkcipher_copy_iv_64140 ablkcipher_copy_iv 3 64140 NULL
 +dlfb_ops_write_64150 dlfb_ops_write 3 64150 NULL
-+vmalloc_32_1135 vmalloc_32 1 1135 NULL
-+tx_tx_imm_resp_read_55964 tx_tx_imm_resp_read 3 55964 NULL
-+tx_tx_exch_pending_read_53018 tx_tx_exch_pending_read 3 53018 NULL
-+__team_options_register_63941 __team_options_register 3 63941 NULL
-+error_error_numll_frame_cts_start_read_47781 error_error_numll_frame_cts_start_read 3 47781 NULL
-+ip_ufo_append_data_12775 ip_ufo_append_data 6-7-8 12775 NULL
-+rvmalloc_46873 rvmalloc 1 46873 NULL
-+vmap_15025 vmap 2 15025 NULL
-+key_ifindex_read_31411 key_ifindex_read 3 31411 NULL
-+mcs7830_set_reg_31413 mcs7830_set_reg 3 31413 NULL
-+mon_bin_read_6841 mon_bin_read 3 6841 NULL
-+tty_buffer_request_room_23228 tty_buffer_request_room 2 23228 NULL
-+xlog_get_bp_23229 xlog_get_bp 2 23229 NULL
-+snd_cs4281_BA0_read_6847 snd_cs4281_BA0_read 5 6847 NULL
-+nfs_idmap_get_key_39616 nfs_idmap_get_key 2 39616 NULL
-+rxrpc_client_sendmsg_23236 rxrpc_client_sendmsg 5 23236 NULL
-+TSS_checkhmac1_31429 TSS_checkhmac1 5 31429 NULL
-+ttm_object_device_init_10321 ttm_object_device_init 2 10321 NULL
-+ping_recvmsg_25597 ping_recvmsg 4 25597 NULL
-+macvtap_recvmsg_63949 macvtap_recvmsg 4 63949 NULL
-+ceph_msgpool_init_34599 ceph_msgpool_init 4 34599 NULL
-+cld_pipe_downcall_15058 cld_pipe_downcall 3 15058 NULL
-+ssb_bus_pcmciabus_register_56020 ssb_bus_pcmciabus_register 3 56020 NULL
-+fm_send_cmd_39639 fm_send_cmd 5 39639 NULL
-+ip6gre_err_19869 ip6gre_err 5 19869 NULL
-+nvme_alloc_iod_56027 nvme_alloc_iod 1 56027 NULL
-+opera1_xilinx_rw_31453 opera1_xilinx_rw 5 31453 NULL
-+nfs4_write_cached_acl_15070 nfs4_write_cached_acl 4 15070 NULL
-+ntfs_copy_from_user_15072 ntfs_copy_from_user 3-5 15072 NULL
-+sctp_recvmsg_23265 sctp_recvmsg 4 23265 NULL
-+snd_rme32_capture_copy_39653 snd_rme32_capture_copy 5 39653 NULL
-+get_new_cssid_51665 get_new_cssid 2 51665 NULL
-+raw_seticmpfilter_6888 raw_seticmpfilter 3 6888 NULL
-+prism2_info_hostscanresults_39657 prism2_info_hostscanresults 3 39657 NULL
-+ced_ioctl_36647 ced_ioctl 2 36647 NULL
-+dlmfs_file_write_6892 dlmfs_file_write 3 6892 NULL
-+__videobuf_alloc_vb_5665 __videobuf_alloc_vb 1 5665 NULL
-+kvm_read_guest_cached_39666 kvm_read_guest_cached 4 39666 NULL
++cpumask_scnprintf_64170 cpumask_scnprintf 2 64170 NULL
++read_pulse_64227 read_pulse 0-3 64227 NULL
++header_len_64232 header_len 0 64232 NULL
 +redrat3_transmit_ir_64244 redrat3_transmit_ir 3 64244 NULL
-+__alloc_extent_buffer_15093 __alloc_extent_buffer 3 15093 NULL
-+v4l_stk_read_39672 v4l_stk_read 3 39672 NULL
-+dccp_sendmsg_56058 dccp_sendmsg 4 56058 NULL
-+alg_setkey_31485 alg_setkey 3 31485 NULL
-+do_surface_dirty_sou_39678 do_surface_dirty_sou 7 39678 NULL
-+spi_show_regs_6911 spi_show_regs 3 6911 NULL nohasharray
-+proc_sessionid_read_6911 proc_sessionid_read 3 6911 &spi_show_regs_6911
-+qsfp_2_read_31491 qsfp_2_read 3 31491 NULL
-+vhci_read_47878 vhci_read 3 47878 NULL
-+__alloc_bootmem_31498 __alloc_bootmem 1 31498 NULL
-+ps_poll_ps_poll_utilization_read_39383 ps_poll_ps_poll_utilization_read 3 39383 NULL
-+i2cdev_write_23310 i2cdev_write 3 23310 NULL
-+keyctl_instantiate_key_common_47889 keyctl_instantiate_key_common 4 47889 NULL
-+kvm_read_hva_44847 kvm_read_hva 3 44847 NULL
-+ftrace_pid_write_39710 ftrace_pid_write 3 39710 NULL
++io_capture_transfer_64276 io_capture_transfer 4 64276 NULL
++btrfs_file_extent_offset_64278 btrfs_file_extent_offset 0 64278 NULL
++sta_current_tx_rate_read_64286 sta_current_tx_rate_read 3 64286 NULL
 +event_id_read_64288 event_id_read 3 64288 NULL nohasharray
 +xfs_dir_cilookup_result_64288 xfs_dir_cilookup_result 3 64288 &event_id_read_64288
-+osd_req_read_sg_47905 osd_req_read_sg 5 47905 NULL
-+sta_agg_status_write_45164 sta_agg_status_write 3 45164 NULL
-+pscsi_get_bio_56103 pscsi_get_bio 1 56103 NULL
-+timeout_read_47915 timeout_read 3 47915 NULL
-+hidraw_write_31536 hidraw_write 3 31536 NULL
++ocfs2_block_check_validate_bhs_64302 ocfs2_block_check_validate_bhs 0 64302 NULL
 +error_error_bar_retry_read_64305 error_error_bar_retry_read 3 64305 NULL
-+page_readlink_23346 page_readlink 3 23346 NULL
-+videobuf_dma_init_kernel_6963 videobuf_dma_init_kernel 3 6963 NULL
-+comedi_write_47926 comedi_write 3 47926 NULL
-+usb_alloc_stream_buffers_56123 usb_alloc_stream_buffers 3 56123 NULL
-+dsp_write_46218 dsp_write 2 46218 NULL
-+kmem_zalloc_large_56128 kmem_zalloc_large 1 56128 NULL
-+usbvision_read_31555 usbvision_read 3 31555 NULL
-+pd_video_read_24510 pd_video_read 3 24510 NULL
-+crypto_authenc_esn_setkey_6985 crypto_authenc_esn_setkey 3 6985 NULL
-+sel_read_handle_status_56139 sel_read_handle_status 3 56139 NULL
-+request_key_async_6990 request_key_async 4 6990 NULL
++ffz_64324 ffz 0 64324 NULL
++sisusbcon_clear_64329 sisusbcon_clear 4-3-5 64329 NULL
 +ts_write_64336 ts_write 3 64336 NULL
-+handle_response_55951 handle_response 5 55951 NULL
 +usbtmc_write_64340 usbtmc_write 3 64340 NULL
-+tx_frag_tkip_called_read_31575 tx_frag_tkip_called_read 3 31575 NULL
-+r871x_set_wpa_ie_7000 r871x_set_wpa_ie 3 7000 NULL
-+iscsi_create_endpoint_15193 iscsi_create_endpoint 1 15193 NULL
-+osst_write_31581 osst_write 3 31581 NULL
-+tracing_cpumask_read_7010 tracing_cpumask_read 3 7010 NULL
-+rawv6_setsockopt_56165 rawv6_setsockopt 5 56165 NULL
-+wm8350_block_write_19727 wm8350_block_write 3 19727 NULL
-+diva_xdi_write_63975 diva_xdi_write 4 63975 NULL
-+llc_alloc_frame_64366 llc_alloc_frame 4 64366 NULL
-+iwl_dbgfs_ucode_tracing_read_47983 iwl_dbgfs_ucode_tracing_read 3 47983 NULL nohasharray
-+mempool_resize_47983 mempool_resize 2 47983 &iwl_dbgfs_ucode_tracing_read_47983
-+mangle_packet_18920 mangle_packet 7-9 18920 NULL
-+bfad_debugfs_write_regrd_15218 bfad_debugfs_write_regrd 3 15218 NULL
-+tx_frag_need_fragmentation_read_50153 tx_frag_need_fragmentation_read 3 50153 NULL
-+iscsi_change_queue_depth_23416 iscsi_change_queue_depth 2 23416 NULL
-+ib_umad_write_47993 ib_umad_write 3 47993 NULL
++do_write_orph_node_64343 do_write_orph_node 2 64343 NULL
++ft1000_read_reg_64352 ft1000_read_reg 0 64352 NULL
++wlc_phy_loadsampletable_nphy_64367 wlc_phy_loadsampletable_nphy 3 64367 NULL
 +ilo_write_64378 ilo_write 3 64378 NULL
 +btrfs_map_block_64379 btrfs_map_block 3 64379 NULL
 +nilfs_alloc_seg_bio_64383 nilfs_alloc_seg_bio 3 64383 NULL
-+vzalloc_node_23424 vzalloc_node 1 23424 NULL
-+arvo_sysfs_read_31617 arvo_sysfs_read 6 31617 NULL
-+ipath_get_base_info_7043 ipath_get_base_info 3 7043 NULL
-+variax_alloc_sysex_buffer_15237 variax_alloc_sysex_buffer 3 15237 NULL
-+copy_from_user_17559 copy_from_user 3 17559 NULL
-+ffs_epfile_write_48014 ffs_epfile_write 3 48014 NULL
-+sys_migrate_pages_39825 sys_migrate_pages 2 39825 NULL
 +ir_lirc_transmit_ir_64403 ir_lirc_transmit_ir 3 64403 NULL
 +pidlist_allocate_64404 pidlist_allocate 1 64404 NULL
-+videobuf_read_one_31637 videobuf_read_one 3 31637 NULL
 +rx_hdr_overflow_read_64407 rx_hdr_overflow_read 3 64407 NULL
-+hidraw_send_report_23449 hidraw_send_report 3 23449 NULL
-+beiscsi_process_async_pdu_39834 beiscsi_process_async_pdu 7 39834 NULL
-+sctp_tsnmap_mark_35929 sctp_tsnmap_mark 2 35929 NULL
-+hci_sock_recvmsg_7072 hci_sock_recvmsg 4 7072 NULL
 +snd_card_create_64418 snd_card_create 4 64418 NULL nohasharray
 +keyctl_get_security_64418 keyctl_get_security 3 64418 &snd_card_create_64418
-+pod_alloc_sysex_buffer_31651 pod_alloc_sysex_buffer 3 31651 NULL
-+cp210x_get_config_56229 cp210x_get_config 4 56229 NULL
-+pppoe_sendmsg_48039 pppoe_sendmsg 4 48039 NULL
-+udl_prime_create_57159 udl_prime_create 2 57159 NULL
++nl80211_send_mgmt_64419 nl80211_send_mgmt 7 64419 NULL
 +oom_adj_write_64428 oom_adj_write 3 64428 NULL
-+dn_nsp_send_disc_23469 dn_nsp_send_disc 2 23469 NULL
-+do_ipt_set_ctl_56238 do_ipt_set_ctl 4 56238 NULL
-+ping_sendmsg_3782 ping_sendmsg 4 3782 NULL
-+beacon_interval_read_7091 beacon_interval_read 3 7091 NULL
-+__lgread_31668 __lgread 4 31668 NULL
-+scrub_setup_recheck_block_56245 scrub_setup_recheck_block 4-3 56245 NULL
-+fd_copyin_56247 fd_copyin 3 56247 NULL
-+wpan_phy_alloc_48056 wpan_phy_alloc 1 48056 NULL
-+ax25_recvmsg_64441 ax25_recvmsg 4 64441 NULL
-+sys_connect_15291 sys_connect 3 15291 NULL nohasharray
-+xlate_dev_mem_ptr_15291 xlate_dev_mem_ptr 1 15291 &sys_connect_15291
-+linear_conf_23485 linear_conf 2 23485 NULL nohasharray
-+divasa_remap_pci_bar_23485 divasa_remap_pci_bar 3-4 23485 &linear_conf_23485
-+posix_acl_alloc_48063 posix_acl_alloc 1 48063 NULL
-+ieee80211_if_read_element_ttl_18869 ieee80211_if_read_element_ttl 3 18869 NULL
-+_usb_writeN_sync_31682 _usb_writeN_sync 4 31682 NULL
-+pipeline_enc_rx_stat_fifo_int_read_7107 pipeline_enc_rx_stat_fifo_int_read 3 7107 NULL
-+forced_ps_read_31685 forced_ps_read 3 31685 NULL
-+event_filter_read_23494 event_filter_read 3 23494 NULL
-+tpm_tis_init_15304 tpm_tis_init 2-3 15304 NULL
-+fcoe_ctlr_send_keep_alive_15308 fcoe_ctlr_send_keep_alive 3 15308 NULL
-+pipeline_tcp_tx_stat_fifo_int_read_32589 pipeline_tcp_tx_stat_fifo_int_read 3 32589 NULL
-+sys_setsockopt_35320 sys_setsockopt 5 35320 NULL
-+il4965_ucode_general_stats_read_56277 il4965_ucode_general_stats_read 3 56277 NULL
-+pkt_add_39897 pkt_add 3 39897 NULL
-+RESIZE_IF_NEEDED_56286 RESIZE_IF_NEEDED 2 56286 NULL
-+send_mpa_reject_7135 send_mpa_reject 3 7135 NULL
-+sctp_make_op_error_7057 sctp_make_op_error 5-6 7057 NULL
-+mmc_alloc_host_48097 mmc_alloc_host 1 48097 NULL
-+read_file_modal_eeprom_39909 read_file_modal_eeprom 3 39909 NULL
-+skb_copy_datagram_const_iovec_48102 skb_copy_datagram_const_iovec 4-2-5 48102 NULL
-+dvb_aplay_56296 dvb_aplay 3 56296 NULL
-+gen_pool_add_virt_39913 gen_pool_add_virt 4 39913 NULL
-+dw210x_op_rw_39915 dw210x_op_rw 6 39915 NULL
++ext4_trim_extent_64431 ext4_trim_extent 4 64431 NULL
++ieee80211_ie_build_ht_cap_64443 ieee80211_ie_build_ht_cap 0 64443 NULL
++cap_capable_64462 cap_capable 0 64462 NULL
++ip_vs_create_timeout_table_64478 ip_vs_create_timeout_table 2 64478 NULL
 +p54_parse_rssical_64493 p54_parse_rssical 3 64493 NULL
-+sctp_make_asconf_ack_31726 sctp_make_asconf_ack 3 31726 NULL
-+aes_encrypt_interrupt_read_39919 aes_encrypt_interrupt_read 3 39919 NULL
-+ima_show_measurements_count_23536 ima_show_measurements_count 3 23536 NULL
-+alloc_ring_15345 alloc_ring 2-4 15345 NULL
-+alloc_cpu_rmap_65363 alloc_cpu_rmap 1 65363 NULL
++msg_data_sz_64503 msg_data_sz 0 64503 NULL
 +remove_uuid_64505 remove_uuid 4 64505 NULL
-+shmem_pwrite_slow_31741 shmem_pwrite_slow 3 31741 NULL
-+NCR_700_change_queue_depth_31742 NCR_700_change_queue_depth 2 31742 NULL
-+create_table_16213 create_table 2 16213 NULL
-+acpi_ut_create_string_object_15360 acpi_ut_create_string_object 1 15360 NULL
-+pipeline_pre_to_defrag_swi_read_56321 pipeline_pre_to_defrag_swi_read 3 56321 NULL
-+dbg_leb_change_23555 dbg_leb_change 4 23555 NULL
-+vmw_framebuffer_surface_dirty_48132 vmw_framebuffer_surface_dirty 6 48132 NULL
-+bcm_char_read_31750 bcm_char_read 3 31750 NULL
-+snd_seq_device_new_31753 snd_seq_device_new 4 31753 NULL
-+journal_init_revoke_table_56331 journal_init_revoke_table 1 56331 NULL
-+set_discoverable_48141 set_discoverable 4 48141 NULL
-+compat_sys_process_vm_readv_15374 compat_sys_process_vm_readv 3-5 15374 NULL
++crypto_blkcipher_alignmask_64520 crypto_blkcipher_alignmask 0 64520 NULL
++opera1_usb_i2c_msgxfer_64521 opera1_usb_i2c_msgxfer 4 64521 NULL
 +ses_send_diag_64527 ses_send_diag 4 64527 NULL
-+tcp_match_skb_to_sack_23568 tcp_match_skb_to_sack 4 23568 NULL
-+snd_rawmidi_read_56337 snd_rawmidi_read 3 56337 NULL
-+fq_codel_zalloc_15378 fq_codel_zalloc 1 15378 NULL
-+tty_prepare_flip_string_39955 tty_prepare_flip_string 3 39955 NULL
-+__tcp_push_pending_frames_48148 __tcp_push_pending_frames 2 48148 NULL
-+iwl_dbgfs_interrupt_read_23574 iwl_dbgfs_interrupt_read 3 23574 NULL
 +prctl_set_mm_64538 prctl_set_mm 3 64538 NULL
-+ipv6_recv_error_56347 ipv6_recv_error 3 56347 NULL
-+vxge_os_dma_malloc_async_56348 vxge_os_dma_malloc_async 3 56348 NULL
-+isr_dma1_done_read_48159 isr_dma1_done_read 3 48159 NULL
-+c4iw_id_table_alloc_48163 c4iw_id_table_alloc 3 48163 NULL
-+dma_push_rx_39973 dma_push_rx 2 39973 NULL
-+regmap_register_patch_21681 regmap_register_patch 3 21681 NULL
-+broadsheetfb_write_39976 broadsheetfb_write 3 39976 NULL
-+cfpkt_create_pfx_23594 cfpkt_create_pfx 1-2 23594 NULL
-+pipeline_csum_to_rx_xfer_swi_read_15403 pipeline_csum_to_rx_xfer_swi_read 3 15403 NULL
-+iov_iter_copy_from_user_atomic_56368 iov_iter_copy_from_user_atomic 4 56368 NULL
-+dev_read_56369 dev_read 3 56369 NULL
-+mthca_array_init_39987 mthca_array_init 2 39987 NULL
-+alloc_dummy_extent_buffer_56374 alloc_dummy_extent_buffer 2 56374 NULL
-+diva_os_alloc_message_buffer_64568 diva_os_alloc_message_buffer 1 64568 NULL
-+dgrp_dpa_read_1204 dgrp_dpa_read 3 1204 NULL
-+alloc_cc770dev_48186 alloc_cc770dev 1 48186 NULL
-+init_ipath_48187 init_ipath 1 48187 NULL
-+isr_rx_procs_read_31804 isr_rx_procs_read 3 31804 NULL
-+__videobuf_copy_to_user_15423 __videobuf_copy_to_user 4 15423 NULL
-+tracing_saved_cmdlines_read_21434 tracing_saved_cmdlines_read 3 21434 NULL
-+tx_tx_burst_programmed_read_20320 tx_tx_burst_programmed_read 3 20320 NULL
-+sys32_ipc_7238 sys32_ipc 3 7238 NULL
-+sta_last_signal_read_31818 sta_last_signal_read 3 31818 NULL
-+rtllib_alloc_txb_21687 rtllib_alloc_txb 1-2 21687 NULL
-+dvb_ca_en50221_io_write_43533 dvb_ca_en50221_io_write 3 43533 NULL
-+ddp_ppod_write_idata_25610 ddp_ppod_write_idata 5 25610 NULL
-+ocfs2_control_read_56405 ocfs2_control_read 3 56405 NULL
-+nf_nat_icmpv6_reply_translation_40023 nf_nat_icmpv6_reply_translation 5 40023 NULL nohasharray
-+ivtvfb_write_40023 ivtvfb_write 3 40023 &nf_nat_icmpv6_reply_translation_40023
-+hpsa_change_queue_depth_15449 hpsa_change_queue_depth 2 15449 NULL
-+tcp_write_xmit_64602 tcp_write_xmit 2 64602 NULL
-+use_pool_64607 use_pool 2 64607 NULL
-+__get_vm_area_caller_56416 __get_vm_area_caller 1 56416 NULL nohasharray
-+acpi_os_write_memory_56416 acpi_os_write_memory 1-3 56416 &__get_vm_area_caller_56416
-+store_msg_56417 store_msg 3 56417 NULL
-+__i2400mu_send_barker_23652 __i2400mu_send_barker 3 23652 NULL
-+nilfs_readpages_48229 nilfs_readpages 4 48229 NULL
-+datablob_hmac_append_40038 datablob_hmac_append 3 40038 NULL
-+read_file_recv_48232 read_file_recv 3 48232 NULL
-+xfs_handle_to_dentry_12135 xfs_handle_to_dentry 3 12135 NULL
-+set_tpl_pfs_27490 set_tpl_pfs 3 27490 NULL
++__spi_sync_64561 __spi_sync 0 64561 NULL
++__apei_exec_run_64563 __apei_exec_run 0 64563 NULL
 +fanotify_write_64623 fanotify_write 3 64623 NULL
-+batadv_add_packet_12136 batadv_add_packet 3 12136 NULL
-+rx_rate_rx_frames_per_rates_read_7282 rx_rate_rx_frames_per_rates_read 3 7282 NULL
-+fl_create_56435 fl_create 5 56435 NULL
-+gnttab_map_56439 gnttab_map 2 56439 NULL
-+nouveau_devinit_create__35348 nouveau_devinit_create_ 4 35348 NULL
-+nfsctl_transaction_read_48250 nfsctl_transaction_read 3 48250 NULL
-+event_rx_pool_read_25792 event_rx_pool_read 3 25792 NULL
-+cx231xx_init_isoc_56453 cx231xx_init_isoc 3-2 56453 NULL
-+drm_mode_crtc_set_gamma_size_31881 drm_mode_crtc_set_gamma_size 2 31881 NULL
-+set_connectable_56458 set_connectable 4 56458 NULL
-+a2mp_chan_alloc_skb_cb_27159 a2mp_chan_alloc_skb_cb 2 27159 NULL
-+nfc_hci_send_response_56462 nfc_hci_send_response 5 56462 NULL
-+add_port_54941 add_port 2 54941 NULL
-+osd_req_list_partition_objects_56464 osd_req_list_partition_objects 5 56464 NULL
-+cx18_read_23699 cx18_read 3 23699 NULL
-+tlbflush_read_file_64661 tlbflush_read_file 3 64661 NULL
-+ieee80211_if_read_last_beacon_31257 ieee80211_if_read_last_beacon 3 31257 NULL
++regmap_read_debugfs_64658 regmap_read_debugfs 5 64658 NULL
++ocfs2_read_xattr_block_64661 ocfs2_read_xattr_block 0 64661 NULL nohasharray
++tlbflush_read_file_64661 tlbflush_read_file 3 64661 &ocfs2_read_xattr_block_64661
 +efx_tsoh_get_buffer_64664 efx_tsoh_get_buffer 3 64664 NULL
 +rx_rx_out_of_mpdu_nodes_read_64668 rx_rx_out_of_mpdu_nodes_read 3 64668 NULL
-+ddb_output_write_31902 ddb_output_write 3 31902 NULL
-+send_set_info_48288 send_set_info 7 48288 NULL
-+sock_alloc_send_skb_23720 sock_alloc_send_skb 2 23720 NULL
-+wep_decrypt_fail_read_58567 wep_decrypt_fail_read 3 58567 NULL
-+set_disc_pwup_pfs_48300 set_disc_pwup_pfs 3 48300 NULL
-+lpfc_idiag_extacc_read_48301 lpfc_idiag_extacc_read 3 48301 NULL
-+p9_check_zc_errors_15534 p9_check_zc_errors 4 15534 NULL
-+new_dir_31919 new_dir 3 31919 NULL
-+kmem_alloc_31920 kmem_alloc 1 31920 NULL
-+timblogiw_read_48305 timblogiw_read 3 48305 NULL
-+sec_bulk_write_64691 sec_bulk_write 3 64691 NULL
-+mgmt_control_7349 mgmt_control 3 7349 NULL
-+hash_setkey_48310 hash_setkey 3 48310 NULL
-+ql_process_mac_rx_page_15543 ql_process_mac_rx_page 4 15543 NULL
-+hfcpci_empty_fifo_2427 hfcpci_empty_fifo 4 2427 NULL
-+ieee80211_if_read_bssid_35161 ieee80211_if_read_bssid 3 35161 NULL
-+sctp_setsockopt_delayed_ack_40129 sctp_setsockopt_delayed_ack 3 40129 NULL
-+cfg80211_connect_result_56515 cfg80211_connect_result 4-6 56515 NULL
-+rx_rx_dropped_frame_read_23748 rx_rx_dropped_frame_read 3 23748 NULL
-+iov_iter_copy_from_user_31942 iov_iter_copy_from_user 4 31942 NULL
-+ql_process_mac_rx_skb_6689 ql_process_mac_rx_skb 4 6689 NULL
-+ieee80211_if_read_dot11MeshHWMPactivePathTimeout_7368 ieee80211_if_read_dot11MeshHWMPactivePathTimeout 3 7368 NULL
-+pwr_elp_enter_read_5324 pwr_elp_enter_read 3 5324 NULL
-+dapm_bias_read_file_64715 dapm_bias_read_file 3 64715 NULL
-+vb2_write_31948 vb2_write 3 31948 NULL
-+cfg80211_roamed_32632 cfg80211_roamed 5-7 32632 NULL
-+bnx2fc_process_unsol_compl_15576 bnx2fc_process_unsol_compl 2 15576 NULL
-+l1oip_socket_recv_56537 l1oip_socket_recv 6 56537 NULL
-+ip_options_get_56538 ip_options_get 4 56538 NULL
-+write_62671 write 3 62671 NULL
-+copy_from_user_toio_31966 copy_from_user_toio 3 31966 NULL
-+tm6000_i2c_send_regs_20250 tm6000_i2c_send_regs 5 20250 NULL
-+squashfs_read_inode_lookup_table_64739 squashfs_read_inode_lookup_table 4 64739 NULL
-+sl_change_mtu_7396 sl_change_mtu 2 7396 NULL
-+ceph_copy_page_vector_to_user_31270 ceph_copy_page_vector_to_user 3-4 31270 NULL
-+allocate_cnodes_5329 allocate_cnodes 1 5329 NULL
-+skb_add_data_48363 skb_add_data 3 48363 NULL
-+bio_map_kern_64751 bio_map_kern 3 64751 NULL
-+alloc_apertures_56561 alloc_apertures 1 56561 NULL
-+iscsi_complete_pdu_48372 iscsi_complete_pdu 4 48372 NULL
-+drm_property_create_blob_7414 drm_property_create_blob 2 7414 NULL
-+rx_path_reset_read_23801 rx_path_reset_read 3 23801 NULL
-+rs_sta_dbgfs_stats_table_read_56573 rs_sta_dbgfs_stats_table_read 3 56573 NULL
-+debug_debug2_read_30526 debug_debug2_read 3 30526 NULL
-+compat_fillonedir_15620 compat_fillonedir 3 15620 NULL
-+set_dis_tap_pfs_15621 set_dis_tap_pfs 3 15621 NULL
-+ipr_alloc_ucode_buffer_40199 ipr_alloc_ucode_buffer 1 40199 NULL
-+dsp_cmx_send_member_15625 dsp_cmx_send_member 2 15625 NULL
-+portcntrs_2_read_56586 portcntrs_2_read 3 56586 NULL
-+system_enable_read_25815 system_enable_read 3 25815 NULL
-+allocate_probes_40204 allocate_probes 1 40204 NULL
-+sd_alloc_ctl_entry_29708 sd_alloc_ctl_entry 1 29708 NULL
-+proc_loginuid_read_15631 proc_loginuid_read 3 15631 NULL
-+__earlyonly_bootmem_alloc_23824 __earlyonly_bootmem_alloc 2 23824 NULL
-+realloc_buffer_25816 realloc_buffer 2 25816 NULL
-+isr_low_rssi_read_64789 isr_low_rssi_read 3 64789 NULL
-+rx_filter_ibss_filter_read_50167 rx_filter_ibss_filter_read 3 50167 NULL
-+ip_options_get_alloc_7448 ip_options_get_alloc 1 7448 NULL
-+tomoyo_scan_bprm_15642 tomoyo_scan_bprm 2-4 15642 NULL nohasharray
-+pipeline_hs_tx_stat_fifo_int_read_15642 pipeline_hs_tx_stat_fifo_int_read 3 15642 &tomoyo_scan_bprm_15642
-+ieee80211_if_read_rc_rateidx_mask_5ghz_27183 ieee80211_if_read_rc_rateidx_mask_5ghz 3 27183 NULL
-+au0828_v4l2_read_40220 au0828_v4l2_read 3 40220 NULL
-+lbs_debugfs_write_48413 lbs_debugfs_write 3 48413 NULL
-+fs_path_add_15648 fs_path_add 3 15648 NULL
-+event_filter_write_56609 event_filter_write 3 56609 NULL
-+xfs_buf_read_map_40226 xfs_buf_read_map 3 40226 NULL
-+ms_rw_multi_sector_7459 ms_rw_multi_sector 3-4 7459 NULL
-+xsd_read_15653 xsd_read 3 15653 NULL
-+pwr_tx_without_ps_read_48423 pwr_tx_without_ps_read 3 48423 NULL
-+p54_init_common_23850 p54_init_common 1 23850 NULL
-+ubi_more_leb_change_data_63534 ubi_more_leb_change_data 4 63534 NULL
-+vmw_cursor_update_dmabuf_32045 vmw_cursor_update_dmabuf 3-4 32045 NULL
-+sys_sched_setaffinity_32046 sys_sched_setaffinity 2 32046 NULL
-+garp_request_join_7471 garp_request_join 4 7471 NULL
-+ecryptfs_send_miscdev_64816 ecryptfs_send_miscdev 2 64816 NULL
-+copy_nodes_to_user_63807 copy_nodes_to_user 2 63807 NULL
-+unifi_read_14899 unifi_read 3 14899 NULL
-+il_dbgfs_missed_beacon_read_59956 il_dbgfs_missed_beacon_read 3 59956 NULL
-+compat_sys_msgrcv_7482 compat_sys_msgrcv 2 7482 NULL
-+do_kimage_alloc_64827 do_kimage_alloc 3 64827 NULL
-+brcmf_usb_dl_cmd_53130 brcmf_usb_dl_cmd 4 53130 NULL
-+proc_scsi_devinfo_write_32064 proc_scsi_devinfo_write 3 32064 NULL
-+pwr_missing_bcns_read_25824 pwr_missing_bcns_read 3 25824 NULL
-+ipv6_recv_rxpmtu_7142 ipv6_recv_rxpmtu 3 7142 NULL
-+ieee80211_if_read_dot11MeshMaxPeerLinks_23878 ieee80211_if_read_dot11MeshMaxPeerLinks 3 23878 NULL
-+uvc_debugfs_stats_read_56651 uvc_debugfs_stats_read 3 56651 NULL
-+ieee80211_if_read_channel_type_23884 ieee80211_if_read_channel_type 3 23884 NULL
-+tx_frag_mpdu_alloc_failed_read_41167 tx_frag_mpdu_alloc_failed_read 3 41167 NULL
-+tun_recvmsg_48463 tun_recvmsg 4 48463 NULL
-+uf_sme_queue_message_15697 uf_sme_queue_message 3 15697 NULL
-+gdth_search_isa_58595 gdth_search_isa 1 58595 NULL
-+sdhci_alloc_host_7509 sdhci_alloc_host 2 7509 NULL
-+_xfs_buf_get_pages_46811 _xfs_buf_get_pages 2 46811 NULL
-+rx_xfr_hint_trig_read_40283 rx_xfr_hint_trig_read 3 40283 NULL
-+iwch_reject_cr_23901 iwch_reject_cr 3 23901 NULL
++nr_free_zone_pages_64680 nr_free_zone_pages 0 64680 NULL
++sec_bulk_write_64691 sec_bulk_write 2-3 64691 NULL
++__feat_register_sp_64712 __feat_register_sp 6 64712 NULL
++snd_pcm_oss_capture_position_fixup_64713 snd_pcm_oss_capture_position_fixup 0 64713 NULL
++dapm_bias_read_file_64715 dapm_bias_read_file 3 64715 NULL
++atomic_add_return_64720 atomic_add_return 0-1 64720 NULL
++i2400m_msg_to_dev_64722 i2400m_msg_to_dev 3 64722 NULL
++squashfs_read_inode_lookup_table_64739 squashfs_read_inode_lookup_table 4 64739 NULL
++bio_map_kern_64751 bio_map_kern 3 64751 NULL
++rt2x00debug_write_csr_64753 rt2x00debug_write_csr 3 64753 NULL
++isr_low_rssi_read_64789 isr_low_rssi_read 3 64789 NULL
++twl6040_reg_write_64790 twl6040_reg_write 2 64790 NULL
++nfsctl_transaction_write_64800 nfsctl_transaction_write 3 64800 NULL
++megaraid_change_queue_depth_64815 megaraid_change_queue_depth 2 64815 NULL
++ecryptfs_send_miscdev_64816 ecryptfs_send_miscdev 2 64816 NULL
++do_kimage_alloc_64827 do_kimage_alloc 3 64827 NULL
 +altera_set_dr_pre_64862 altera_set_dr_pre 2 64862 NULL
-+bio_alloc_32095 bio_alloc 2 32095 NULL
-+shmem_setxattr_55867 shmem_setxattr 4 55867 NULL
-+rfcomm_sock_setsockopt_18254 rfcomm_sock_setsockopt 5 18254 NULL
-+ath6kl_fwlog_read_32101 ath6kl_fwlog_read 3 32101 NULL
-+add_new_gdb_meta_bg_23911 add_new_gdb_meta_bg 3 23911 NULL
-+r8712_usbctrl_vendorreq_48489 r8712_usbctrl_vendorreq 6 48489 NULL
-+snd_gus_dram_read_56686 snd_gus_dram_read 4 56686 NULL
-+ubi_io_write_data_40305 ubi_io_write_data 4-5 40305 NULL
-+send_control_msg_48498 send_control_msg 6 48498 NULL
-+ps_poll_upsd_timeouts_read_36755 ps_poll_upsd_timeouts_read 3 36755 NULL
-+mlx4_en_create_tx_ring_48501 mlx4_en_create_tx_ring 4 48501 NULL
 +ffs_epfile_io_64886 ffs_epfile_io 3 64886 NULL
-+request_key_async_with_auxdata_46624 request_key_async_with_auxdata 4 46624 NULL
-+diva_os_copy_to_user_48508 diva_os_copy_to_user 4 48508 NULL
-+dvb_ringbuffer_read_user_56702 dvb_ringbuffer_read_user 3 56702 NULL
-+uvc_alloc_entity_20836 uvc_alloc_entity 4-3 20836 NULL
-+batadv_tt_changes_fill_buff_40323 batadv_tt_changes_fill_buff 4 40323 NULL
-+__alloc_skb_23940 __alloc_skb 1 23940 NULL
-+sta_flags_read_56710 sta_flags_read 3 56710 NULL
-+ipv6_getsockopt_sticky_56711 ipv6_getsockopt_sticky 5 56711 NULL
-+HiSax_readstatus_15752 HiSax_readstatus 2 15752 NULL
-+smk_read_mapped_7562 smk_read_mapped 3 7562 NULL
-+alloc_tx_32143 alloc_tx 2 32143 NULL
-+wiimote_hid_send_48528 wiimote_hid_send 3 48528 NULL
-+compat_do_arpt_set_ctl_12184 compat_do_arpt_set_ctl 4 12184 NULL
-+hsc_write_55875 hsc_write 3 55875 NULL
-+cifs_setxattr_23957 cifs_setxattr 4 23957 NULL
-+do_test_15766 do_test 1 15766 NULL
 +ieee80211_if_read_ave_beacon_64924 ieee80211_if_read_ave_beacon 3 64924 NULL
-+ip_recv_error_23109 ip_recv_error 3 23109 NULL
-+named_distribute_48544 named_distribute 4 48544 NULL
-+ip_generic_getfrag_12187 ip_generic_getfrag 3-4 12187 NULL
-+venus_link_32165 venus_link 5 32165 NULL
-+event_rx_mem_empty_read_40363 event_rx_mem_empty_read 3 40363 NULL
-+drm_agp_bind_pages_56748 drm_agp_bind_pages 3 56748 NULL
-+vmw_kms_present_38130 vmw_kms_present 9 38130 NULL
-+btrfsic_map_block_56751 btrfsic_map_block 2 56751 NULL
-+set_std_nic_pfs_15792 set_std_nic_pfs 3 15792 NULL
 +ubifs_wbuf_write_nolock_64946 ubifs_wbuf_write_nolock 3 64946 NULL
-+usblp_new_writeurb_22894 usblp_new_writeurb 2 22894 NULL
-+llcp_sock_recvmsg_13556 llcp_sock_recvmsg 4 13556 NULL
-+smk_read_direct_15803 smk_read_direct 3 15803 NULL
-+fwnet_incoming_packet_40380 fwnet_incoming_packet 3 40380 NULL
-+groups_alloc_7614 groups_alloc 1 7614 NULL
-+cxgb_alloc_mem_24007 cxgb_alloc_mem 1 24007 NULL
++snd_rawmidi_ioctl_compat_64954 snd_rawmidi_ioctl_compat 3 64954 NULL
++ip_options_get_from_user_64958 ip_options_get_from_user 4 64958 NULL
++acpi_os_install_interrupt_handler_64968 acpi_os_install_interrupt_handler 1 64968 NULL
 +traceprobe_probes_write_64969 traceprobe_probes_write 3 64969 NULL
 +suspend_dtim_interval_read_64971 suspend_dtim_interval_read 3 64971 NULL
-+ext_sd_execute_read_data_48589 ext_sd_execute_read_data 9 48589 NULL
-+afs_proc_rootcell_write_15822 afs_proc_rootcell_write 3 15822 NULL
-+__carl9170_rx_56784 __carl9170_rx 3 56784 NULL
-+__hwahc_dev_set_key_46328 __hwahc_dev_set_key 5 46328 NULL
-+oprofilefs_ulong_from_user_57251 oprofilefs_ulong_from_user 3 57251 NULL
-+ioctl_private_iw_point_1273 ioctl_private_iw_point 7 1273 NULL
-+tcf_csum_ipv4_tcp_39713 tcf_csum_ipv4_tcp 4 39713 NULL
-+snapshot_write_28351 snapshot_write 3 28351 NULL
-+event_enable_read_7074 event_enable_read 3 7074 NULL
-+brcmf_sdbrcm_died_dump_15841 brcmf_sdbrcm_died_dump 3 15841 NULL
-+do_syslog_56807 do_syslog 3 56807 NULL
-+sl_realloc_bufs_64086 sl_realloc_bufs 2 64086 NULL
++ext2_group_first_block_no_64972 ext2_group_first_block_no 0-2 64972 NULL
 +pskb_pull_65005 pskb_pull 2 65005 NULL
-+caif_seqpkt_recvmsg_32241 caif_seqpkt_recvmsg 4 32241 NULL
-+lbs_lowrssi_read_32242 lbs_lowrssi_read 3 32242 NULL
-+sisusbcon_scroll_31315 sisusbcon_scroll 5-2-3 31315 NULL
 +unifi_write_65012 unifi_write 3 65012 NULL
-+agp_generic_alloc_user_9470 agp_generic_alloc_user 1 9470 NULL
++crypto_ahash_digestsize_65014 crypto_ahash_digestsize 0 65014 NULL
 +nfs_readdata_alloc_65015 nfs_readdata_alloc 2 65015 NULL
-+ubi_io_write_15870 ubi_io_write 5-4 15870 NULL nohasharray
-+media_entity_init_15870 media_entity_init 2-4 15870 &ubi_io_write_15870
-+mtdchar_write_56831 mtdchar_write 3 56831 NULL nohasharray
-+ntfs_rl_realloc_56831 ntfs_rl_realloc 3 56831 &mtdchar_write_56831
-+skb_copy_to_page_nocache_58624 skb_copy_to_page_nocache 6 58624 NULL
-+mid_get_vbt_data_r1_26170 mid_get_vbt_data_r1 2 26170 NULL
-+skb_copy_expand_7685 skb_copy_expand 2-3 7685 NULL nohasharray
-+acpi_ex_allocate_name_string_7685 acpi_ex_allocate_name_string 2-1 7685 &skb_copy_expand_7685
-+if_write_51756 if_write 3 51756 NULL
 +insert_dent_65034 insert_dent 7 65034 NULL
-+blkcipher_copy_iv_24075 blkcipher_copy_iv 3 24075 NULL
-+snd_rawmidi_kernel_write1_56847 snd_rawmidi_kernel_write1 4 56847 NULL
-+vb2_fop_read_24080 vb2_fop_read 3 24080 NULL
++compat_put_ushort_65040 compat_put_ushort 1 65040 NULL
 +brcmf_sdcard_rwdata_65041 brcmf_sdcard_rwdata 5 65041 NULL
-+nfs_map_group_to_gid_15892 nfs_map_group_to_gid 3 15892 NULL
-+lc_create_48662 lc_create 3 48662 NULL
-+aes_encrypt_packets_read_48666 aes_encrypt_packets_read 3 48666 NULL
-+sm501_create_subdev_48668 sm501_create_subdev 3-4 48668 NULL nohasharray
-+sys_setgroups_48668 sys_setgroups 1 48668 &sm501_create_subdev_48668
-+ath9k_multi_regread_65056 ath9k_multi_regread 4 65056 NULL
-+brcmf_sdcard_send_buf_7713 brcmf_sdcard_send_buf 6 7713 NULL
-+l2cap_build_cmd_48676 l2cap_build_cmd 4 48676 NULL
-+batadv_hash_new_40491 batadv_hash_new 1 40491 NULL
-+pipeline_post_proc_swi_read_24108 pipeline_post_proc_swi_read 3 24108 NULL
-+request_key_auth_read_24109 request_key_auth_read 3 24109 NULL
-+bnx2fc_process_l2_frame_compl_65072 bnx2fc_process_l2_frame_compl 3 65072 NULL
++compat_cmdtest_65064 compat_cmdtest 2 65064 NULL
++make_idx_node_65068 make_idx_node 0 65068 NULL
++count_run_65072 count_run 0-2-4 65072 NULL nohasharray
++bnx2fc_process_l2_frame_compl_65072 bnx2fc_process_l2_frame_compl 3 65072 &count_run_65072
 +__alloc_bootmem_node_high_65076 __alloc_bootmem_node_high 2 65076 NULL
-+persistent_ram_new_40501 persistent_ram_new 1-2 40501 NULL
-+ieee80211_send_auth_24121 ieee80211_send_auth 5 24121 NULL
-+altera_drscan_48698 altera_drscan 2 48698 NULL
-+tx_frag_in_process_called_read_1290 tx_frag_in_process_called_read 3 1290 NULL
-+set_bypass_pwup_pfs_7742 set_bypass_pwup_pfs 3 7742 NULL
-+kvm_set_irq_routing_48704 kvm_set_irq_routing 3 48704 NULL
-+power_read_15939 power_read 3 15939 NULL
-+recv_msg_48709 recv_msg 4 48709 NULL
-+befs_utf2nls_25628 befs_utf2nls 3 25628 NULL
-+ghash_async_setkey_60001 ghash_async_setkey 3 60001 NULL
-+TSS_checkhmac2_40520 TSS_checkhmac2 5-7 40520 NULL
-+btrfs_error_discard_extent_50444 btrfs_error_discard_extent 2 50444 NULL
-+irnet_ctrl_write_24139 irnet_ctrl_write 3 24139 NULL
-+nouveau_bar_create__32332 nouveau_bar_create_ 4 32332 NULL
-+process_vm_rw_pages_15954 process_vm_rw_pages 6-5 15954 NULL
-+revalidate_19043 revalidate 2 19043 NULL
-+t4_alloc_mem_32342 t4_alloc_mem 1 32342 NULL
-+aes_decrypt_fail_read_54815 aes_decrypt_fail_read 3 54815 NULL
-+trim_bitmaps_24158 trim_bitmaps 3 24158 NULL
-+alloc_candev_7776 alloc_candev 1-2 7776 NULL
-+check_header_56930 check_header 2 56930 NULL
-+ima_write_policy_40548 ima_write_policy 3 40548 NULL
-+journal_init_revoke_56933 journal_init_revoke 2 56933 NULL
-+__wa_xfer_setup_segs_56725 __wa_xfer_setup_segs 2 56725 NULL
-+ath6kl_usb_bmi_read_48745 ath6kl_usb_bmi_read 3 48745 NULL
-+sel_read_initcon_32362 sel_read_initcon 3 32362 NULL
-+ath6kl_regwrite_read_48747 ath6kl_regwrite_read 3 48747 NULL
-+frame_alloc_15981 frame_alloc 4 15981 NULL
-+esp_alloc_tmp_40558 esp_alloc_tmp 3-2 40558 NULL
-+nf_nat_seq_adjust_44989 nf_nat_seq_adjust 4 44989 NULL
-+diva_os_copy_from_user_7792 diva_os_copy_from_user 4 7792 NULL
-+adu_read_24177 adu_read 3 24177 NULL
-+alloc_fddidev_15382 alloc_fddidev 1 15382 NULL
-+send_mpa_reply_32372 send_mpa_reply 3 32372 NULL
-+alloc_vm_area_15989 alloc_vm_area 1 15989 NULL
-+variax_set_raw2_32374 variax_set_raw2 4 32374 NULL
-+vfd_write_14717 vfd_write 3 14717 NULL
-+carl9170_rx_copy_data_21656 carl9170_rx_copy_data 2 21656 NULL
-+usbtmc_read_32377 usbtmc_read 3 32377 NULL
-+qib_alloc_devdata_51819 qib_alloc_devdata 2 51819 NULL
-+l2cap_segment_sdu_48772 l2cap_segment_sdu 4 48772 NULL
-+dvb_generic_ioctl_21810 dvb_generic_ioctl 2 21810 NULL
-+cache_write_pipefs_48270 cache_write_pipefs 3 48270 NULL
-+rx_defrag_called_read_1897 rx_defrag_called_read 3 1897 NULL
-+xfs_iext_add_indirect_multi_32400 xfs_iext_add_indirect_multi 3 32400 NULL
-+viafb_vt1636_proc_write_16018 viafb_vt1636_proc_write 3 16018 NULL
-+__cxio_init_resource_fifo_23447 __cxio_init_resource_fifo 3 23447 NULL
-+skge_rx_get_40598 skge_rx_get 3 40598 NULL
-+nouveau_device_create__56984 nouveau_device_create_ 6 56984 NULL
-+register_device_60015 register_device 2-3 60015 NULL
-+got_frame_16028 got_frame 2 16028 NULL
++ocfs2_truncate_cluster_pages_65086 ocfs2_truncate_cluster_pages 2 65086 NULL
++ath9k_dump_mci_btcoex_65090 ath9k_dump_mci_btcoex 0 65090 NULL
 +ssb_bus_register_65183 ssb_bus_register 3 65183 NULL
-+pcpu_embed_first_chunk_24224 pcpu_embed_first_chunk 1-2-3 24224 NULL
-+il3945_sta_dbgfs_stats_table_read_48802 il3945_sta_dbgfs_stats_table_read 3 48802 NULL
-+scsi_register_49094 scsi_register 2 49094 NULL
-+twa_change_queue_depth_48808 twa_change_queue_depth 2 48808 NULL
-+vlsi_alloc_ring_57003 vlsi_alloc_ring 3-4 57003 NULL
-+sel_read_bool_24236 sel_read_bool 3 24236 NULL
-+batadv_check_unicast_packet_10866 batadv_check_unicast_packet 2 10866 NULL
-+tcp_push_one_48816 tcp_push_one 2 48816 NULL
-+nfulnl_alloc_skb_65207 nfulnl_alloc_skb 2 65207 NULL
-+dccp_recvmsg_16056 dccp_recvmsg 4 16056 NULL
-+gfs2_glock_nq_m_20347 gfs2_glock_nq_m 1 20347 NULL
-+atomic_counters_read_48827 atomic_counters_read 3 48827 NULL
 +rx_rx_done_read_65217 rx_rx_done_read 3 65217 NULL
-+vc_do_resize_48842 vc_do_resize 3-4 48842 NULL
-+svc_pool_map_alloc_arrays_47181 svc_pool_map_alloc_arrays 2 47181 NULL
-+create_gpadl_header_19064 create_gpadl_header 2 19064 NULL
-+dvb_dmxdev_read_sec_7892 dvb_dmxdev_read_sec 4 7892 NULL
-+snd_opl4_mem_proc_read_63774 snd_opl4_mem_proc_read 5 63774 NULL
-+xfs_trans_get_efi_7898 xfs_trans_get_efi 2 7898 NULL
-+compat_sys_preadv64_24283 compat_sys_preadv64 3 24283 NULL
-+pipeline_rx_complete_stat_fifo_int_read_40671 pipeline_rx_complete_stat_fifo_int_read 3 40671 NULL
-+viafb_dvp1_proc_write_48864 viafb_dvp1_proc_write 3 48864 NULL
-+wlc_phy_loadsampletable_nphy_64367 wlc_phy_loadsampletable_nphy 3 64367 NULL
-+__ffs_ep0_read_events_48868 __ffs_ep0_read_events 3 48868 NULL
-+cx2341x_ctrl_new_std_57061 cx2341x_ctrl_new_std 4 57061 NULL
-+isr_tx_exch_complete_read_16103 isr_tx_exch_complete_read 3 16103 NULL
-+sca3000_read_data_57064 sca3000_read_data 4 57064 NULL
-+mid_get_vbt_data_r0_10876 mid_get_vbt_data_r0 2 10876 NULL
-+pcmcia_replace_cis_57066 pcmcia_replace_cis 3 57066 NULL
-+ide_driver_proc_write_32493 ide_driver_proc_write 3 32493 NULL
-+dma_tx_requested_read_16110 dma_tx_requested_read 3 16110 NULL nohasharray
-+isr_hw_pm_mode_changes_read_16110 isr_hw_pm_mode_changes_read 3 16110 &dma_tx_requested_read_16110
-+sys_setgroups16_48882 sys_setgroups16 1 48882 NULL
++print_endpoint_stat_65232 print_endpoint_stat 0-4-3 65232 NULL
++whci_n_caps_65247 whci_n_caps 0 65247 NULL
 +kmem_zalloc_greedy_65268 kmem_zalloc_greedy 3-2 65268 NULL
-+nfc_hci_set_param_40697 nfc_hci_set_param 5 40697 NULL
-+f_hidg_write_7932 f_hidg_write 3 7932 NULL
-+ath6kl_add_bss_if_needed_24317 ath6kl_add_bss_if_needed 6 24317 NULL
 +kmalloc_parameter_65279 kmalloc_parameter 1 65279 NULL
-+mce_flush_rx_buffer_14976 mce_flush_rx_buffer 2 14976 NULL
-+mac_drv_rx_init_48898 mac_drv_rx_init 2 48898 NULL
-+sisusbcon_scroll_area_25899 sisusbcon_scroll_area 4-3 25899 NULL
-+xdi_copy_to_user_48900 xdi_copy_to_user 4 48900 NULL
 +compat_core_sys_select_65285 compat_core_sys_select 1 65285 NULL
-+fsm_init_16134 fsm_init 2 16134 NULL
-+ext_sd_execute_write_data_8175 ext_sd_execute_write_data 9 8175 NULL
-+tracing_set_trace_write_57096 tracing_set_trace_write 3 57096 NULL
-+disconnect_32521 disconnect 4 32521 NULL
-+__seq_open_private_40715 __seq_open_private 3 40715 NULL
-+tifm_alloc_adapter_10903 tifm_alloc_adapter 1 10903 NULL
-+ath6kl_wmi_add_wow_pattern_cmd_12842 ath6kl_wmi_add_wow_pattern_cmd 4 12842 NULL
++get_unaligned_le16_65293 get_unaligned_le16 0 65293 NULL
 +mpi_set_buffer_65294 mpi_set_buffer 3 65294 NULL
 +redirected_tty_write_65297 redirected_tty_write 3 65297 NULL
-+ilo_read_32531 ilo_read 3 32531 NULL
-+ieee80211_if_read_estab_plinks_32533 ieee80211_if_read_estab_plinks 3 32533 NULL
-+smk_write_load_self_7958 smk_write_load_self 3 7958 NULL
-+pipeline_pipeline_fifo_full_read_34095 pipeline_pipeline_fifo_full_read 3 34095 NULL
-+sysfs_write_file_57116 sysfs_write_file 3 57116 NULL
-+gdth_isa_probe_one_48925 gdth_isa_probe_one 1 48925 NULL
-+kzalloc_node_24352 kzalloc_node 1 24352 NULL
-+nfc_hci_execute_cmd_async_65314 nfc_hci_execute_cmd_async 5 65314 NULL
-+msnd_fifo_alloc_23179 msnd_fifo_alloc 2 23179 NULL
-+format_devstat_counter_32550 format_devstat_counter 3 32550 NULL
-+nfcwilink_skb_alloc_16167 nfcwilink_skb_alloc 1 16167 NULL
-+xfs_iext_remove_direct_40744 xfs_iext_remove_direct 3 40744 NULL
-+remap_pci_mem_15966 remap_pci_mem 1-2 15966 NULL
-+qla2x00_handle_queue_full_24365 qla2x00_handle_queue_full 2 24365 NULL
-+cfi_read_pri_24366 cfi_read_pri 3 24366 NULL
-+btrfs_insert_delayed_dir_index_63720 btrfs_insert_delayed_dir_index 4 63720 NULL
-+aes_encrypt_fail_read_32562 aes_encrypt_fail_read 3 32562 NULL
-+card_send_command_40757 card_send_command 3 40757 NULL
-+sys_mbind_7990 sys_mbind 5 7990 NULL
++get_var_len_65304 get_var_len 0 65304 NULL
++unpack_array_65318 unpack_array 0 65318 NULL
++pci_vpd_find_tag_65325 pci_vpd_find_tag 0-2 65325 NULL
 +dccp_setsockopt_service_65336 dccp_setsockopt_service 4 65336 NULL
-+pg_write_40766 pg_write 3 40766 NULL
-+event_heart_beat_read_48961 event_heart_beat_read 3 48961 NULL
-+uea_idma_write_64139 uea_idma_write 3 64139 NULL
-+brcmf_debugfs_sdio_counter_read_58369 brcmf_debugfs_sdio_counter_read 3 58369 NULL
-+carl9170_rx_stream_1334 carl9170_rx_stream 3 1334 NULL
-+nand_ecc_test_run_48966 nand_ecc_test_run 1 48966 NULL
-+ath_descdma_setup_12257 ath_descdma_setup 5 12257 NULL
-+alloc_sched_domains_47756 alloc_sched_domains 1 47756 NULL
 +dma_rx_requested_read_65354 dma_rx_requested_read 3 65354 NULL
-+batadv_orig_hash_del_if_48972 batadv_orig_hash_del_if 2 48972 NULL
-+tt3650_ci_msg_locked_8013 tt3650_ci_msg_locked 4 8013 NULL
-+pvr2_v4l2_ioctl_24398 pvr2_v4l2_ioctl 2 24398 NULL nohasharray
-+getxattr_24398 getxattr 4 24398 &pvr2_v4l2_ioctl_24398
-+stk_prepare_sio_buffers_57168 stk_prepare_sio_buffers 2 57168 NULL
-+vcs_read_8017 vcs_read 3 8017 NULL
-+read_file_beacon_32595 read_file_beacon 3 32595 NULL
-+gss_pipe_downcall_23182 gss_pipe_downcall 3 23182 NULL
-+rx_hw_stuck_read_57179 rx_hw_stuck_read 3 57179 NULL
-+iwl_dbgfs_wowlan_sram_read_540 iwl_dbgfs_wowlan_sram_read 3 540 NULL
-+_alloc_set_attr_list_48991 _alloc_set_attr_list 4 48991 NULL
-+sys_set_mempolicy_32608 sys_set_mempolicy 3 32608 NULL
-+atomic_read_file_16227 atomic_read_file 3 16227 NULL
-+vhost_add_used_and_signal_n_8038 vhost_add_used_and_signal_n 4 8038 NULL
-+copy_and_check_19089 copy_and_check 3 19089 NULL
-+b43_debugfs_read_24425 b43_debugfs_read 3 24425 NULL
-+netdev_alloc_skb_ip_align_40811 netdev_alloc_skb_ip_align 2 40811 NULL
-+i915_wedged_read_35474 i915_wedged_read 3 35474 NULL
-+ieee80211_rx_mgmt_beacon_24430 ieee80211_rx_mgmt_beacon 3 24430 NULL
-+iser_rcv_completion_8048 iser_rcv_completion 2 8048 NULL
-+trace_parser_get_init_31379 trace_parser_get_init 2 31379 NULL
-+ms_read_multiple_pages_8052 ms_read_multiple_pages 5-4 8052 NULL
++batadv_tt_save_orig_buffer_65361 batadv_tt_save_orig_buffer 4 65361 NULL
++alloc_cpu_rmap_65363 alloc_cpu_rmap 1 65363 NULL
++strchr_65372 strchr 0 65372 NULL
 +__alloc_bootmem_nopanic_65397 __alloc_bootmem_nopanic 1 65397 NULL
 +trace_seq_to_user_65398 trace_seq_to_user 3 65398 NULL
-+ixgbe_alloc_q_vector_24439 ixgbe_alloc_q_vector 4-6 24439 NULL
-+smk_user_access_24440 smk_user_access 3 24440 NULL
-+xd_rw_49020 xd_rw 3-4 49020 NULL
-+dgrp_mon_read_8065 dgrp_mon_read 3 8065 NULL
-+tt3650_ci_msg_57219 tt3650_ci_msg 4 57219 NULL
-+mpi_alloc_limb_space_23190 mpi_alloc_limb_space 1 23190 NULL
-+kvmalloc_32646 kvmalloc 1 32646 NULL
-+alloc_targets_8074 alloc_targets 2 8074 NULL nohasharray
-+qla4xxx_post_ping_evt_work_8074 qla4xxx_post_ping_evt_work 4 8074 &alloc_targets_8074
-+evdev_do_ioctl_24459 evdev_do_ioctl 2 24459 NULL
++mtd_get_device_size_65400 mtd_get_device_size 0 65400 NULL
++iio_device_add_channel_sysfs_65406 iio_device_add_channel_sysfs 0 65406 NULL
++ocfs2_write_begin_nolock_65410 ocfs2_write_begin_nolock 3-4 65410 NULL
 +drm_calloc_large_65421 drm_calloc_large 1-2 65421 NULL
-+set_disc_pfs_16270 set_disc_pfs 3 16270 NULL
-+skb_copy_and_csum_datagram_iovec_24466 skb_copy_and_csum_datagram_iovec 2 24466 NULL
-+__mxt_write_reg_57326 __mxt_write_reg 3 57326 NULL
-+caif_stream_sendmsg_9110 caif_stream_sendmsg 4 9110 NULL
-+drbd_setsockopt_16280 drbd_setsockopt 5 16280 NULL nohasharray
-+nand_bch_init_16280 nand_bch_init 3-2 16280 &drbd_setsockopt_16280
 +xpc_kzalloc_cacheline_aligned_65433 xpc_kzalloc_cacheline_aligned 1 65433 NULL
-+v9fs_file_read_40858 v9fs_file_read 3 40858 NULL
-+fbcon_do_set_font_4079 fbcon_do_set_font 2-3 4079 NULL
 +pn533_init_target_frame_65438 pn533_init_target_frame 3 65438 NULL
-+__mptctl_ioctl_15875 __mptctl_ioctl 2 15875 NULL
-+move_addr_to_kernel_32673 move_addr_to_kernel 2 32673 NULL
-+i915_wedged_write_47771 i915_wedged_write 3 47771 NULL
 +usb_alloc_coherent_65444 usb_alloc_coherent 2 65444 NULL
-+aes_decrypt_interrupt_read_19910 aes_decrypt_interrupt_read 3 19910 NULL
-+l2cap_bredr_sig_cmd_49065 l2cap_bredr_sig_cmd 3 49065 NULL
-+tipc_buf_acquire_60437 tipc_buf_acquire 1 60437 NULL
-+alloc_flex_gd_57259 alloc_flex_gd 1 57259 NULL
-+venus_lookup_8121 venus_lookup 4 8121 NULL
-+compat_writev_60063 compat_writev 3 60063 NULL
-+io_mapping_create_wc_1354 io_mapping_create_wc 1-2 1354 NULL
-+jfs_readpages_32702 jfs_readpages 4 32702 NULL
-+read_file_queue_40895 read_file_queue 3 40895 NULL
-+request_key_with_auxdata_24515 request_key_with_auxdata 4 24515 NULL
-+waiters_read_40902 waiters_read 3 40902 NULL
-+pstore_file_read_57288 pstore_file_read 3 57288 NULL
-+vmalloc_node_58700 vmalloc_node 1 58700 NULL
-+xfs_buf_get_map_24522 xfs_buf_get_map 3 24522 NULL
++regmap_write_65478 regmap_write 2 65478 NULL
 +ath_rx_edma_init_65483 ath_rx_edma_init 2 65483 NULL
-+vmw_cursor_update_image_16332 vmw_cursor_update_image 3-4 16332 NULL
-+compat_do_readv_writev_49102 compat_do_readv_writev 4 49102 NULL
 +dpcm_state_read_file_65489 dpcm_state_read_file 3 65489 NULL
-+vol_cdev_write_40915 vol_cdev_write 3 40915 NULL
-+named_prepare_buf_24532 named_prepare_buf 2 24532 NULL
-+hdpvr_read_9273 hdpvr_read 3 9273 NULL
 +alloc_dr_65495 alloc_dr 2 65495 NULL
-+do_mpage_readpage_24536 do_mpage_readpage 3 24536 NULL
-+rs_sta_dbgfs_scale_table_read_40262 rs_sta_dbgfs_scale_table_read 3 40262 NULL
-+ftdi_elan_write_57309 ftdi_elan_write 3 57309 NULL
-+megasas_change_queue_depth_32747 megasas_change_queue_depth 2 32747 NULL
-+total_ps_buffered_read_16365 total_ps_buffered_read 3 16365 NULL
-+rbd_add_16366 rbd_add 3 16366 NULL
-+stats_read_ul_32751 stats_read_ul 3 32751 NULL
-+pt_read_49136 pt_read 3 49136 NULL
-+tsi148_alloc_resource_24563 tsi148_alloc_resource 2 24563 NULL
-+snd_vx_create_40948 snd_vx_create 4 40948 NULL
-+iscsi_tcp_conn_setup_16376 iscsi_tcp_conn_setup 2 16376 NULL
-+check_mirror_57342 check_mirror 1-2 57342 NULL nohasharray
-+usblp_read_57342 usblp_read 3 57342 &check_mirror_57342
-+atyfb_setup_generic_49151 atyfb_setup_generic 3 49151 NULL
 diff --git a/tools/gcc/size_overflow_plugin.c b/tools/gcc/size_overflow_plugin.c
 new file mode 100644
-index 0000000..d52f2ee
+index 0000000..9db0d0e
 --- /dev/null
 +++ b/tools/gcc/size_overflow_plugin.c
-@@ -0,0 +1,1941 @@
+@@ -0,0 +1,2114 @@
 +/*
-+ * Copyright 2011, 2012 by Emese Revfy <re.emese@gmail.com>
++ * Copyright 2011, 2012, 2013 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/
 + *
++ * Documentation:
++ * http://forums.grsecurity.net/viewtopic.php?f=7&t=3043
++ *
 + * 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 -I`gcc -print-file-name=plugin`/include/c-family -I`gcc -print-file-name=plugin`/include -fPIC -shared -O2 -ggdb -Wall -W -o size_overflow_plugin.so size_overflow_plugin.c
 + * $ gcc -fplugin=size_overflow_plugin.so test.c  -O2
 + */
 +
@@ -90384,16 +101003,9 @@ index 0000000..d52f2ee
 +#include "tree-flow.h"
 +#include "plugin.h"
 +#include "gimple.h"
-+#include "c-common.h"
 +#include "diagnostic.h"
 +#include "cfgloop.h"
 +
-+#if BUILDING_GCC_VERSION >= 4007
-+#include "c-tree.h"
-+#else
-+#define C_DECL_IMPLICIT(EXP) DECL_LANG_FLAG_2 (EXP)
-+#endif
-+
 +#if BUILDING_GCC_VERSION >= 4008
 +#define TODO_dump_func 0
 +#endif
@@ -90406,8 +101018,12 @@ index 0000000..d52f2ee
 +
 +#include "size_overflow_hash.h"
 +
-+enum marked {
-+      MARKED_NO, MARKED_YES, MARKED_NOT_INTENTIONAL
++enum mark {
++      MARK_NO, MARK_YES, MARK_NOT_INTENTIONAL, MARK_TURN_OFF
++};
++
++enum err_code_conditions {
++      CAST_ONLY, FROM_CONST
 +};
 +
 +static unsigned int call_count = 0;
@@ -90419,9 +101035,11 @@ index 0000000..d52f2ee
 +#define AFTER_STMT false
 +#define CREATE_NEW_VAR NULL_TREE
 +#define CODES_LIMIT 32
-+#define MAX_PARAM 32
++#define MAX_PARAM 31
 +#define MY_STMT GF_PLF_1
 +#define NO_CAST_CHECK GF_PLF_2
++#define FROM_ARG true
++#define FROM_RET false
 +
 +#if BUILDING_GCC_VERSION == 4005
 +#define DECL_CHAIN(NODE) (TREE_CHAIN(DECL_MINIMAL_CHECK(NODE)))
@@ -90431,16 +101049,17 @@ index 0000000..d52f2ee
 +void debug_gimple_stmt(gimple gs);
 +
 +static tree expand(struct pointer_set_t *visited, tree lhs);
-+static bool pre_expand(struct pointer_set_t *visited, const_tree lhs);
++static enum mark pre_expand(struct pointer_set_t *visited, bool *search_err_code, const_tree lhs);
 +static tree report_size_overflow_decl;
 +static const_tree const_char_ptr_type_node;
 +static unsigned int handle_function(void);
 +static void check_size_overflow(gimple stmt, tree size_overflow_type, tree cast_rhs, tree rhs, bool before);
 +static tree get_size_overflow_type(gimple stmt, const_tree node);
 +static tree dup_assign(struct pointer_set_t *visited, gimple oldstmt, const_tree node, tree rhs1, tree rhs2, tree __unused rhs3);
++static void print_missing_msg(tree func, unsigned int argnum);
 +
 +static struct plugin_info size_overflow_plugin_info = {
-+      .version        = "20130109beta",
++      .version        = "20130410beta",
 +      .help           = "no-size-overflow\tturn off size overflow checking\n",
 +};
 +
@@ -90465,7 +101084,7 @@ index 0000000..d52f2ee
 +
 +      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 ) {
++              if (TREE_CODE(position) != INTEGER_CST || TREE_INT_CST_LOW(position) > arg_count ) {
 +                      error("%s: parameter %u is outside range.", __func__, (unsigned int)TREE_INT_CST_LOW(position));
 +                      *no_add_attrs = true;
 +              }
@@ -90504,9 +101123,12 @@ index 0000000..d52f2ee
 +              return NULL_TREE;
 +      }
 +
++      if (TREE_INT_CST_HIGH(TREE_VALUE(args)) != 0)
++              return NULL_TREE;
++
 +      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) > arg_count ) {
++              if (TREE_CODE(position) != INTEGER_CST || TREE_INT_CST_LOW(position) > arg_count ) {
 +                      error("%s: parameter %u is outside range.", __func__, (unsigned int)TREE_INT_CST_LOW(position));
 +                      *no_add_attrs = true;
 +              }
@@ -90595,7 +101217,8 @@ index 0000000..d52f2ee
 +static inline gimple get_def_stmt(const_tree node)
 +{
 +      gcc_assert(node != NULL_TREE);
-+      gcc_assert(TREE_CODE(node) == SSA_NAME);
++      if (TREE_CODE(node) != SSA_NAME)
++              return NULL;
 +      return SSA_NAME_DEF_STMT(node);
 +}
 +
@@ -90696,12 +101319,14 @@ index 0000000..d52f2ee
 +      const struct size_overflow_hash *entry;
 +      unsigned char tree_codes[CODES_LIMIT];
 +      size_t len;
-+      const char *func_name = get_asm_name(fndecl);
++      const char *func_name;
 +
++      fndecl = get_original_function_decl(fndecl);
 +      len = get_function_decl(fndecl, tree_codes);
 +      if (len == 0)
 +              return NULL;
 +
++      func_name = get_asm_name(fndecl);
 +      hash = get_hash_num(func_name, (const char*) tree_codes, len, 0);
 +
 +      entry = size_overflow_hash[hash];
@@ -90714,17 +101339,80 @@ index 0000000..d52f2ee
 +      return NULL;
 +}
 +
-+static void check_arg_type(const_tree arg)
++static bool is_bool(const_tree node)
 +{
-+      const_tree type = TREE_TYPE(arg);
-+      enum tree_code code = TREE_CODE(type);
++      const_tree type;
 +
-+      if (code == BOOLEAN_TYPE)
-+              return;
++      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 bool skip_types(const_tree var)
++{
++      tree type;
++
++      if (is_gimple_constant(var))
++              return true;
++
++      switch (TREE_CODE(var)) {
++              case ADDR_EXPR:
++#if BUILDING_GCC_VERSION >= 4006
++              case MEM_REF:
++#endif
++              case ARRAY_REF:
++              case BIT_FIELD_REF:
++              case INDIRECT_REF:
++              case TARGET_MEM_REF:
++                      return true;
++              case PARM_DECL:
++              case VAR_DECL:
++              case COMPONENT_REF:
++                      return false;
++              default:
++                      break;
++      }
++
++      gcc_assert(TREE_CODE(var) == SSA_NAME);
++
++      type = TREE_TYPE(var);
++      switch (TREE_CODE(type)) {
++              case INTEGER_TYPE:
++              case ENUMERAL_TYPE:
++                      return false;
++              case BOOLEAN_TYPE:
++                      return is_bool(var);
++              default:
++                      break;
++      }
++
++      gcc_assert(TREE_CODE(type) == POINTER_TYPE);
++
++      type = TREE_TYPE(type);
++      gcc_assert(type != NULL_TREE);
++      switch (TREE_CODE(type)) {
++              case RECORD_TYPE:
++              case POINTER_TYPE:
++              case ARRAY_TYPE:
++                      return true;
++              case VOID_TYPE:
++              case INTEGER_TYPE:
++              case UNION_TYPE:
++                      return false;
++              default:
++                      break;
++      }
 +
-+      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));
++      debug_tree((tree)var);
++      gcc_unreachable();
 +}
 +
 +static unsigned int find_arg_number(const_tree arg, tree func)
@@ -90735,15 +101423,14 @@ index 0000000..d52f2ee
 +      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++;
++      for (var = DECL_ARGUMENTS(func); var; var = TREE_CHAIN(var), argnum++) {
++              if (!operand_equal_p(arg, var, 0) && strcmp(NAME(var), NAME(arg)))
 +                      continue;
-+              }
-+              check_arg_type(var);
-+              return argnum;
++              if (!skip_types(var))
++                      return argnum;
 +      }
-+      gcc_unreachable();
++
++      return 0;
 +}
 +
 +static tree create_new_var(tree type)
@@ -90774,23 +101461,6 @@ index 0000000..d52f2ee
 +      return assign;
 +}
 +
-+static bool is_bool(const_tree node)
-+{
-+      const_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);
@@ -90800,14 +101470,55 @@ index 0000000..d52f2ee
 +      return fold_convert(type, var);
 +}
 +
-+static gimple build_cast_stmt(tree dst_type, tree rhs, tree lhs, gimple_stmt_iterator *gsi, bool before)
++static tree get_lhs(const_gimple stmt)
 +{
-+      gimple assign;
++      switch (gimple_code(stmt)) {
++      case GIMPLE_ASSIGN:
++              return gimple_get_lhs(stmt);
++      case GIMPLE_PHI:
++              return gimple_phi_result(stmt);
++      case GIMPLE_CALL:
++              return gimple_call_lhs(stmt);
++      default:
++              return NULL_TREE;
++      }
++}
++
++static bool skip_cast(tree dst_type, const_tree rhs, bool force)
++{
++      const_gimple def_stmt = get_def_stmt(rhs);
++
++      if (force)
++              return false;
++
++      if (is_gimple_constant(rhs))
++              return false;
++
++      if (!def_stmt || gimple_code(def_stmt) == GIMPLE_NOP)
++              return false;
++
++      if (!types_compatible_p(dst_type, TREE_TYPE(rhs)))
++              return false;
++
++      // DI type can be on 32 bit (from create_assign) but overflow type stays DI
++      if (LONG_TYPE_SIZE == GET_MODE_BITSIZE(SImode))
++              return false;
++
++      return true;
++}
++
++static gimple build_cast_stmt(tree dst_type, tree rhs, tree lhs, gimple_stmt_iterator *gsi, bool before, bool force)
++{
++      gimple assign, def_stmt;
 +
 +      gcc_assert(dst_type != NULL_TREE && rhs != NULL_TREE);
 +      if (gsi_end_p(*gsi) && before == AFTER_STMT)
 +              gcc_unreachable();
 +
++      def_stmt = get_def_stmt(rhs);
++      if (skip_cast(dst_type, rhs, force) && gimple_plf(def_stmt, MY_STMT))
++              return def_stmt;
++
 +      if (lhs == CREATE_NEW_VAR)
 +              lhs = create_new_var(dst_type);
 +
@@ -90832,19 +101543,19 @@ index 0000000..d52f2ee
 +
 +static tree cast_to_new_size_overflow_type(gimple stmt, tree rhs, tree size_overflow_type, bool before)
 +{
-+      gimple assign;
 +      gimple_stmt_iterator gsi;
++      tree lhs;
++      const_gimple new_stmt;
 +
 +      if (rhs == NULL_TREE)
 +              return NULL_TREE;
 +
-+      if (types_compatible_p(TREE_TYPE(rhs), size_overflow_type) && gimple_plf(stmt, MY_STMT))
-+              return rhs;
-+
 +      gsi = gsi_for_stmt(stmt);
-+      assign = build_cast_stmt(size_overflow_type, rhs, CREATE_NEW_VAR, &gsi, before);
-+      gimple_set_plf(assign, MY_STMT, true);
-+      return gimple_get_lhs(assign);
++      new_stmt = build_cast_stmt(size_overflow_type, rhs, CREATE_NEW_VAR, &gsi, before, false);
++
++      lhs = get_lhs(new_stmt);
++      gcc_assert(lhs != NULL_TREE);
++      return lhs;
 +}
 +
 +static tree cast_to_TI_type(gimple stmt, tree node)
@@ -90857,14 +101568,31 @@ index 0000000..d52f2ee
 +              return node;
 +
 +      gsi = gsi_for_stmt(stmt);
-+      cast_stmt = build_cast_stmt(intTI_type_node, node, CREATE_NEW_VAR, &gsi, BEFORE_STMT);
-+      gimple_set_plf(cast_stmt, MY_STMT, true);
++      cast_stmt = build_cast_stmt(intTI_type_node, node, CREATE_NEW_VAR, &gsi, BEFORE_STMT, false);
 +      return gimple_get_lhs(cast_stmt);
 +}
 +
++static void check_function_hash(const_gimple stmt)
++{
++      tree func;
++      const struct size_overflow_hash *hash;
++
++      if (gimple_code(stmt) != GIMPLE_CALL)
++              return;
++
++      func = gimple_call_fndecl(stmt);
++      //fs/xattr.c D.34222_15 = D.34219_14 (dentry_3(D), name_7(D), 0B, 0);
++      if (func == NULL_TREE)
++              return;
++
++      hash = get_function_hash(func);
++      if (!hash)
++              print_missing_msg(func, 0);
++}
++
 +static tree create_assign(struct pointer_set_t *visited, gimple oldstmt, tree rhs1, bool before)
 +{
-+      tree lhs;
++      tree lhs, new_lhs;
 +      gimple_stmt_iterator gsi;
 +
 +      if (rhs1 == NULL_TREE) {
@@ -90912,7 +101640,8 @@ index 0000000..d52f2ee
 +              oldstmt = gsi_stmt(gsi);
 +      }
 +
-+      return cast_to_new_size_overflow_type(oldstmt, rhs1, get_size_overflow_type(oldstmt, lhs), before);
++      new_lhs = cast_to_new_size_overflow_type(oldstmt, rhs1, get_size_overflow_type(oldstmt, lhs), before);
++      return new_lhs;
 +}
 +
 +static tree dup_assign(struct pointer_set_t *visited, gimple oldstmt, const_tree node, tree rhs1, tree rhs2, tree __unused rhs3)
@@ -90942,10 +101671,7 @@ index 0000000..d52f2ee
 +
 +      size_overflow_type = get_size_overflow_type(oldstmt, node);
 +
-+      if (is_bool(lhs))
-+              new_var = SSA_NAME_VAR(lhs);
-+      else
-+              new_var = create_new_var(size_overflow_type);
++      new_var = create_new_var(size_overflow_type);
 +      new_var = make_ssa_name(new_var, stmt);
 +      gimple_set_lhs(stmt, new_var);
 +
@@ -90968,141 +101694,128 @@ index 0000000..d52f2ee
 +      return gimple_get_lhs(stmt);
 +}
 +
-+static gimple overflow_create_phi_node(gimple oldstmt, tree result)
-+{
-+      basic_block bb;
-+      gimple phi;
-+      gimple_stmt_iterator gsi = gsi_for_stmt(oldstmt);
-+      gimple_seq seq;
-+
-+      bb = gsi_bb(gsi);
-+
-+      phi = create_phi_node(result, bb);
-+      seq = phi_nodes(bb);
-+      gsi = gsi_last(seq);
-+      gsi_remove(&gsi, false);
-+
-+      gsi = gsi_for_stmt(oldstmt);
-+      gsi_insert_after(&gsi, phi, GSI_NEW_STMT);
-+      gimple_set_bb(phi, bb);
-+      gimple_set_plf(phi, MY_STMT, true);
-+      return phi;
-+}
-+
-+static basic_block create_a_first_bb(void)
++static tree cast_parm_decl(tree phi_ssa_name, tree arg, tree size_overflow_type)
 +{
 +      basic_block first_bb;
++      gimple assign;
++      gimple_stmt_iterator gsi;
 +
 +      first_bb = split_block_after_labels(ENTRY_BLOCK_PTR)->dest;
 +      gcc_assert(dom_info_available_p(CDI_DOMINATORS));
 +      set_immediate_dominator(CDI_DOMINATORS, first_bb, ENTRY_BLOCK_PTR);
-+      return first_bb;
++
++      gsi = gsi_start_bb(first_bb);
++      assign = build_cast_stmt(size_overflow_type, arg, phi_ssa_name, &gsi, BEFORE_STMT, false);
++      return gimple_get_lhs(assign);
 +}
 +
-+static tree cast_old_phi_arg(gimple oldstmt, tree size_overflow_type, tree arg, tree new_var, unsigned int i)
++static tree use_phi_ssa_name(tree phi_ssa_name, tree new_arg)
 +{
-+      basic_block bb;
-+      const_gimple newstmt;
 +      gimple_stmt_iterator gsi;
-+      bool before = BEFORE_STMT;
++      const_gimple assign;
++      gimple def_stmt = get_def_stmt(new_arg);
 +
-+      if (TREE_CODE(arg) == SSA_NAME && gimple_code(get_def_stmt(arg)) != GIMPLE_NOP) {
-+              gsi = gsi_for_stmt(get_def_stmt(arg));
-+              newstmt = build_cast_stmt(size_overflow_type, arg, new_var, &gsi, AFTER_STMT);
-+              return gimple_get_lhs(newstmt);
++      if (gimple_code(def_stmt) == GIMPLE_PHI) {
++              gsi = gsi_after_labels(gimple_bb(def_stmt));
++              assign = build_cast_stmt(TREE_TYPE(new_arg), new_arg, phi_ssa_name, &gsi, BEFORE_STMT, true);
++      } else {
++              gsi = gsi_for_stmt(def_stmt);
++              assign = build_cast_stmt(TREE_TYPE(new_arg), new_arg, phi_ssa_name, &gsi, AFTER_STMT, true);
 +      }
 +
-+      bb = gimple_phi_arg_edge(oldstmt, i)->src;
-+      gsi = gsi_after_labels(bb);
-+      if (bb->index == 0) {
-+              bb = create_a_first_bb();
-+              gsi = gsi_start_bb(bb);
-+      }
-+      newstmt = build_cast_stmt(size_overflow_type, arg, new_var, &gsi, before);
-+      return gimple_get_lhs(newstmt);
++      return gimple_get_lhs(assign);
 +}
 +
-+static const_gimple handle_new_phi_arg(const_tree arg, tree new_var, tree new_rhs)
++static tree cast_visited_phi_arg(tree phi_ssa_name, tree arg, tree size_overflow_type)
 +{
-+      gimple newstmt;
++      basic_block bb;
 +      gimple_stmt_iterator gsi;
-+      void (*gsi_insert)(gimple_stmt_iterator *, gimple, enum gsi_iterator_update);
-+      gimple def_newstmt = get_def_stmt(new_rhs);
++      const_gimple assign, def_stmt;
 +
-+      gsi_insert = gsi_insert_after;
-+      gsi = gsi_for_stmt(def_newstmt);
++      def_stmt = get_def_stmt(arg);
++      bb = gimple_bb(def_stmt);
++      gcc_assert(bb->index != 0);
++      gsi = gsi_after_labels(bb);
++
++      assign = build_cast_stmt(size_overflow_type, arg, phi_ssa_name, &gsi, BEFORE_STMT, false);
++      return gimple_get_lhs(assign);
++}
++
++static tree create_new_phi_arg(tree phi_ssa_name, tree new_arg, tree arg, gimple oldstmt)
++{
++      tree size_overflow_type;
++      const_gimple def_stmt = get_def_stmt(arg);
++
++      if (phi_ssa_name != NULL_TREE)
++              phi_ssa_name = SSA_NAME_VAR(phi_ssa_name);
 +
-+      switch (gimple_code(get_def_stmt(arg))) {
++      size_overflow_type = get_size_overflow_type(oldstmt, arg);
++
++      if (new_arg != NULL_TREE) {
++              gcc_assert(types_compatible_p(TREE_TYPE(new_arg), size_overflow_type));
++              return use_phi_ssa_name(phi_ssa_name, new_arg);
++      }
++
++      switch(gimple_code(def_stmt)) {
 +      case GIMPLE_PHI:
-+              newstmt = gimple_build_assign(new_var, new_rhs);
-+              gsi = gsi_after_labels(gimple_bb(def_newstmt));
-+              gsi_insert = gsi_insert_before;
-+              break;
-+      case GIMPLE_ASM:
-+      case GIMPLE_CALL:
-+              newstmt = gimple_build_assign(new_var, new_rhs);
-+              break;
-+      case GIMPLE_ASSIGN:
-+              newstmt = gimple_build_assign(new_var, gimple_get_lhs(def_newstmt));
-+              break;
++              return cast_visited_phi_arg(phi_ssa_name, arg, size_overflow_type);
++      case GIMPLE_NOP:
++              return cast_parm_decl(phi_ssa_name, arg, size_overflow_type);
 +      default:
-+              /* unknown gimple_code (handle_build_new_phi_arg) */
++              debug_gimple_stmt((gimple)def_stmt);
 +              gcc_unreachable();
 +      }
-+
-+      gimple_set_lhs(newstmt, make_ssa_name(new_var, newstmt));
-+      gsi_insert(&gsi, newstmt, GSI_NEW_STMT);
-+      gimple_set_plf(newstmt, MY_STMT, true);
-+      update_stmt(newstmt);
-+      return newstmt;
 +}
 +
-+static tree build_new_phi_arg(struct pointer_set_t *visited, tree size_overflow_type, tree arg, tree new_var)
++static gimple overflow_create_phi_node(gimple oldstmt, tree result)
 +{
-+      const_gimple newstmt;
-+      gimple def_stmt;
-+      tree new_rhs;
++      basic_block bb;
++      gimple phi;
++      gimple_seq seq;
++      gimple_stmt_iterator gsi = gsi_for_stmt(oldstmt);
 +
-+      new_rhs = expand(visited, arg);
-+      if (new_rhs == NULL_TREE)
-+              return NULL_TREE;
++      bb = gsi_bb(gsi);
 +
-+      def_stmt = get_def_stmt(new_rhs);
-+      if (gimple_code(def_stmt) == GIMPLE_NOP)
-+              return NULL_TREE;
-+      new_rhs = cast_to_new_size_overflow_type(def_stmt, new_rhs, size_overflow_type, AFTER_STMT);
++      phi = create_phi_node(result, bb);
++      gimple_phi_set_result(phi, make_ssa_name(result, phi));
++      seq = phi_nodes(bb);
++      gsi = gsi_last(seq);
++      gsi_remove(&gsi, false);
 +
-+      newstmt = handle_new_phi_arg(arg, new_var, new_rhs);
-+      return gimple_get_lhs(newstmt);
++      gsi = gsi_for_stmt(oldstmt);
++      gsi_insert_after(&gsi, phi, GSI_NEW_STMT);
++      gimple_set_bb(phi, bb);
++      gimple_set_plf(phi, MY_STMT, true);
++      return phi;
 +}
 +
-+static tree build_new_phi(struct pointer_set_t *visited, tree orig_result)
++static tree handle_phi(struct pointer_set_t *visited, tree orig_result)
 +{
-+      gimple phi, oldstmt = get_def_stmt(orig_result);
-+      tree new_result, size_overflow_type;
++      gimple new_phi = NULL;
++      gimple oldstmt = get_def_stmt(orig_result);
++      tree phi_ssa_name = NULL_TREE;
 +      unsigned int i;
-+      unsigned int n = gimple_phi_num_args(oldstmt);
-+
-+      size_overflow_type = get_size_overflow_type(oldstmt, orig_result);
-+
-+      new_result = create_new_var(size_overflow_type);
 +
 +      pointer_set_insert(visited, oldstmt);
-+      phi = overflow_create_phi_node(oldstmt, new_result);
-+      for (i = 0; i < n; i++) {
-+              tree arg, lhs;
++      for (i = 0; i < gimple_phi_num_args(oldstmt); i++) {
++              tree arg, new_arg;
 +
 +              arg = gimple_phi_arg_def(oldstmt, i);
-+              if (is_gimple_constant(arg))
-+                      arg = cast_a_tree(size_overflow_type, arg);
-+              lhs = build_new_phi_arg(visited, size_overflow_type, arg, new_result);
-+              if (lhs == NULL_TREE)
-+                      lhs = cast_old_phi_arg(oldstmt, size_overflow_type, arg, new_result, i);
-+              add_phi_arg(phi, lhs, gimple_phi_arg_edge(oldstmt, i), gimple_location(oldstmt));
++
++              new_arg = expand(visited, arg);
++              new_arg = create_new_phi_arg(phi_ssa_name, new_arg, arg, oldstmt);
++              if (i == 0) {
++                      phi_ssa_name = new_arg;
++                      new_phi = overflow_create_phi_node(oldstmt, SSA_NAME_VAR(phi_ssa_name));
++              }
++
++              gcc_assert(new_phi != NULL);
++              add_phi_arg(new_phi, new_arg, gimple_phi_arg_edge(oldstmt, i), gimple_location(oldstmt));
 +      }
 +
-+      update_stmt(phi);
-+      return gimple_phi_result(phi);
++      gcc_assert(new_phi != NULL);
++      update_stmt(new_phi);
++      return gimple_phi_result(new_phi);
 +}
 +
 +static tree change_assign_rhs(gimple stmt, const_tree orig_rhs, tree new_rhs)
@@ -91113,61 +101826,10 @@ index 0000000..d52f2ee
 +
 +      gcc_assert(gimple_code(stmt) == GIMPLE_ASSIGN);
 +
-+      assign = build_cast_stmt(origtype, new_rhs, CREATE_NEW_VAR, &gsi, BEFORE_STMT);
++      assign = build_cast_stmt(origtype, new_rhs, CREATE_NEW_VAR, &gsi, BEFORE_STMT, false);
 +      return gimple_get_lhs(assign);
 +}
 +
-+static void change_rhs1(gimple stmt, tree new_rhs1)
-+{
-+      tree assign_rhs;
-+      const_tree rhs = gimple_assign_rhs1(stmt);
-+
-+      assign_rhs = change_assign_rhs(stmt, rhs, new_rhs1);
-+      gimple_assign_set_rhs1(stmt, assign_rhs);
-+      update_stmt(stmt);
-+}
-+
-+static bool check_mode_type(const_gimple stmt)
-+{
-+      const_tree lhs = gimple_get_lhs(stmt);
-+      const_tree lhs_type = TREE_TYPE(lhs);
-+      const_tree rhs_type = TREE_TYPE(gimple_assign_rhs1(stmt));
-+      enum machine_mode lhs_mode = TYPE_MODE(lhs_type);
-+      enum machine_mode rhs_mode = TYPE_MODE(rhs_type);
-+
-+      if (rhs_mode == lhs_mode && TYPE_UNSIGNED(rhs_type) == TYPE_UNSIGNED(lhs_type))
-+              return false;
-+
-+      if (rhs_mode == SImode && lhs_mode == DImode && (TYPE_UNSIGNED(rhs_type) || !TYPE_UNSIGNED(lhs_type)))
-+              return false;
-+
-+      // skip lhs check on signed SI -> HI cast or signed SI -> QI cast
-+      if (rhs_mode == SImode && !TYPE_UNSIGNED(rhs_type) && (lhs_mode == HImode || lhs_mode == QImode))
-+              return false;
-+
-+      return true;
-+}
-+
-+static bool check_undefined_integer_operation(const_gimple stmt)
-+{
-+      const_gimple def_stmt;
-+      const_tree lhs = gimple_get_lhs(stmt);
-+      const_tree rhs1 = gimple_assign_rhs1(stmt);
-+      const_tree rhs1_type = TREE_TYPE(rhs1);
-+      const_tree lhs_type = TREE_TYPE(lhs);
-+
-+      if (TYPE_MODE(rhs1_type) != TYPE_MODE(lhs_type) || TYPE_UNSIGNED(rhs1_type) == TYPE_UNSIGNED(lhs_type))
-+              return false;
-+
-+      def_stmt = get_def_stmt(rhs1);
-+      if (gimple_code(def_stmt) != GIMPLE_ASSIGN)
-+              return false;
-+
-+      if (gimple_assign_rhs_code(def_stmt) != MINUS_EXPR)
-+              return false;
-+      return true;
-+}
-+
 +static bool is_a_cast_and_const_overflow(const_tree no_const_rhs)
 +{
 +      const_tree rhs1, lhs, rhs1_type, lhs_type;
@@ -91202,18 +101864,138 @@ index 0000000..d52f2ee
 +      return create_assign(visited, stmt, rhs1, AFTER_STMT);
 +}
 +
-+static tree handle_unary_rhs(struct pointer_set_t *visited, gimple stmt)
++static bool no_uses(tree node)
 +{
-+      tree size_overflow_type, lhs = gimple_get_lhs(stmt);
-+      tree new_rhs1 = NULL_TREE;
-+      tree rhs1 = gimple_assign_rhs1(stmt);
-+      const_tree rhs1_type = TREE_TYPE(rhs1);
++      imm_use_iterator imm_iter;
++      use_operand_p use_p;
++
++      FOR_EACH_IMM_USE_FAST(use_p, imm_iter, node) {
++              const_gimple use_stmt = USE_STMT(use_p);
++              if (use_stmt == NULL)
++                      return true;
++              if (is_gimple_debug(use_stmt))
++                      continue;
++              if (!(gimple_bb(use_stmt)->flags & BB_REACHABLE))
++                      continue;
++              return false;
++      }
++      return true;
++}
++
++// 3.8.5 mm/page-writeback.c __ilog2_u64(): ret, uint + uintmax; uint -> int; int max
++static bool is_const_plus_unsigned_signed_truncation(const_tree lhs)
++{
++      tree rhs1, lhs_type, rhs_type, rhs2, not_const_rhs;
++      gimple def_stmt = get_def_stmt(lhs);
++
++      if (!def_stmt || !gimple_assign_cast_p(def_stmt))
++              return false;
++
++      rhs1 = gimple_assign_rhs1(def_stmt);
++      rhs_type = TREE_TYPE(rhs1);
++      lhs_type = TREE_TYPE(lhs);
++      if (TYPE_UNSIGNED(lhs_type) || !TYPE_UNSIGNED(rhs_type))
++              return false;
++      if (TYPE_MODE(lhs_type) != TYPE_MODE(rhs_type))
++              return false;
++
++      def_stmt = get_def_stmt(rhs1);
++      if (!def_stmt || gimple_code(def_stmt) != GIMPLE_ASSIGN || gimple_num_ops(def_stmt) != 3)
++              return false;
++
++      if (gimple_assign_rhs_code(def_stmt) != PLUS_EXPR)
++              return false;
++
++      rhs1 = gimple_assign_rhs1(def_stmt);
++      rhs2 = gimple_assign_rhs2(def_stmt);
++      if (!is_gimple_constant(rhs1) && !is_gimple_constant(rhs2))
++              return false;
++
++      if (is_gimple_constant(rhs2))
++              not_const_rhs = rhs1;
++      else
++              not_const_rhs = rhs2;
++
++      return no_uses(not_const_rhs);
++}
++
++static bool skip_lhs_cast_check(const_gimple stmt)
++{
++      const_tree rhs = gimple_assign_rhs1(stmt);
++      const_gimple def_stmt = get_def_stmt(rhs);
++
++      // 3.8.2 kernel/futex_compat.c compat_exit_robust_list(): get_user() 64 ulong -> int (compat_long_t), int max
++      if (gimple_code(def_stmt) == GIMPLE_ASM)
++              return true;
++
++      if (is_const_plus_unsigned_signed_truncation(rhs))
++              return true;
++
++      return false;
++}
++
++static tree create_cast_overflow_check(struct pointer_set_t *visited, tree new_rhs1, gimple stmt)
++{
++      bool cast_lhs, cast_rhs;
++      tree lhs = gimple_get_lhs(stmt);
++      tree rhs = gimple_assign_rhs1(stmt);
 +      const_tree lhs_type = TREE_TYPE(lhs);
++      const_tree rhs_type = TREE_TYPE(rhs);
++      enum machine_mode lhs_mode = TYPE_MODE(lhs_type);
++      enum machine_mode rhs_mode = TYPE_MODE(rhs_type);
++      unsigned int lhs_size = GET_MODE_BITSIZE(lhs_mode);
++      unsigned int rhs_size = GET_MODE_BITSIZE(rhs_mode);
++
++      static bool check_lhs[3][4] = {
++              // ss    su     us     uu
++              { false, true,  true,  false }, // lhs > rhs
++              { false, false, false, false }, // lhs = rhs
++              { true,  true,  true,  true  }, // lhs < rhs
++      };
++
++      static bool check_rhs[3][4] = {
++              // ss    su     us     uu
++              { true,  false, true,  true  }, // lhs > rhs
++              { true,  false, true,  true  }, // lhs = rhs
++              { true,  false, true,  true  }, // lhs < rhs
++      };
++
++      // skip lhs check on signed SI -> HI cast or signed SI -> QI cast !!!!
++      if (rhs_mode == SImode && !TYPE_UNSIGNED(rhs_type) && (lhs_mode == HImode || lhs_mode == QImode))
++              return create_assign(visited, stmt, lhs, AFTER_STMT);
++
++      if (lhs_size > rhs_size) {
++              cast_lhs = check_lhs[0][TYPE_UNSIGNED(rhs_type) + 2 * TYPE_UNSIGNED(lhs_type)];
++              cast_rhs = check_rhs[0][TYPE_UNSIGNED(rhs_type) + 2 * TYPE_UNSIGNED(lhs_type)];
++      } else if (lhs_size == rhs_size) {
++              cast_lhs = check_lhs[1][TYPE_UNSIGNED(rhs_type) + 2 * TYPE_UNSIGNED(lhs_type)];
++              cast_rhs = check_rhs[1][TYPE_UNSIGNED(rhs_type) + 2 * TYPE_UNSIGNED(lhs_type)];
++      } else {
++              cast_lhs = check_lhs[2][TYPE_UNSIGNED(rhs_type) + 2 * TYPE_UNSIGNED(lhs_type)];
++              cast_rhs = check_rhs[2][TYPE_UNSIGNED(rhs_type) + 2 * TYPE_UNSIGNED(lhs_type)];
++      }
++
++      if (!cast_lhs && !cast_rhs)
++              return dup_assign(visited, stmt, lhs, new_rhs1, NULL_TREE, NULL_TREE);
++
++      if (cast_lhs && !skip_lhs_cast_check(stmt))
++              check_size_overflow(stmt, TREE_TYPE(new_rhs1), new_rhs1, lhs, BEFORE_STMT);
++
++      if (cast_rhs)
++              check_size_overflow(stmt, TREE_TYPE(new_rhs1), new_rhs1, rhs, BEFORE_STMT);
++
++      return dup_assign(visited, stmt, lhs, new_rhs1, NULL_TREE, NULL_TREE);
++}
++
++static tree handle_unary_rhs(struct pointer_set_t *visited, gimple stmt)
++{
++      tree rhs1, new_rhs1, lhs = gimple_get_lhs(stmt);
 +
 +      if (gimple_plf(stmt, MY_STMT))
 +              return lhs;
 +
-+      if (TREE_CODE(rhs1_type) == POINTER_TYPE)
++      rhs1 = gimple_assign_rhs1(stmt);
++      if (TREE_CODE(TREE_TYPE(rhs1)) == POINTER_TYPE)
 +              return create_assign(visited, stmt, lhs, AFTER_STMT);
 +
 +      new_rhs1 = expand(visited, rhs1);
@@ -91225,34 +102007,17 @@ index 0000000..d52f2ee
 +              return dup_assign(visited, stmt, lhs, new_rhs1, NULL_TREE, NULL_TREE);
 +
 +      if (gimple_assign_rhs_code(stmt) == BIT_NOT_EXPR) {
-+              size_overflow_type = get_size_overflow_type(stmt, rhs1);
++              tree size_overflow_type = get_size_overflow_type(stmt, rhs1);
++
 +              new_rhs1 = cast_to_new_size_overflow_type(stmt, new_rhs1, size_overflow_type, BEFORE_STMT);
 +              check_size_overflow(stmt, size_overflow_type, new_rhs1, rhs1, BEFORE_STMT);
 +              return create_assign(visited, stmt, lhs, AFTER_STMT);
 +      }
 +
-+      if (!gimple_assign_cast_p(stmt) || check_undefined_integer_operation(stmt))
++      if (!gimple_assign_cast_p(stmt))
 +              return dup_assign(visited, stmt, lhs, new_rhs1, NULL_TREE, NULL_TREE);
 +
-+      if (TYPE_UNSIGNED(rhs1_type) != TYPE_UNSIGNED(lhs_type))
-+              return dup_assign(visited, stmt, lhs, new_rhs1, NULL_TREE, NULL_TREE);
-+
-+      size_overflow_type = get_size_overflow_type(stmt, rhs1);
-+      new_rhs1 = cast_to_new_size_overflow_type(stmt, new_rhs1, size_overflow_type, BEFORE_STMT);
-+
-+      check_size_overflow(stmt, size_overflow_type, new_rhs1, rhs1, BEFORE_STMT);
-+
-+      change_rhs1(stmt, new_rhs1);
-+
-+      if (!check_mode_type(stmt))
-+              return create_assign(visited, stmt, lhs, AFTER_STMT);
-+
-+      size_overflow_type = get_size_overflow_type(stmt, lhs);
-+      new_rhs1 = cast_to_new_size_overflow_type(stmt, new_rhs1, size_overflow_type, BEFORE_STMT);
-+
-+      check_size_overflow(stmt, size_overflow_type, new_rhs1, lhs, BEFORE_STMT);
-+
-+      return create_assign(visited, stmt, lhs, AFTER_STMT);
++      return create_cast_overflow_check(visited, new_rhs1, stmt);
 +}
 +
 +static tree handle_unary_ops(struct pointer_set_t *visited, gimple stmt)
@@ -91266,7 +102031,6 @@ index 0000000..d52f2ee
 +      if (is_gimple_constant(rhs1))
 +              return create_assign(visited, def_stmt, lhs, AFTER_STMT);
 +
-+      gcc_assert(TREE_CODE(rhs1) != COND_EXPR);
 +      switch (TREE_CODE(rhs1)) {
 +      case SSA_NAME:
 +              return handle_unary_rhs(visited, def_stmt);
@@ -91414,7 +102178,10 @@ index 0000000..d52f2ee
 +      if (TREE_CODE(rhs_type) == POINTER_TYPE)
 +              return;
 +
-+      gcc_assert(TREE_CODE(rhs_type) == INTEGER_TYPE || TREE_CODE(rhs_type) == BOOLEAN_TYPE || TREE_CODE(rhs_type) == ENUMERAL_TYPE);
++      gcc_assert(TREE_CODE(rhs_type) == INTEGER_TYPE || TREE_CODE(rhs_type) == ENUMERAL_TYPE);
++
++      if (is_const_plus_unsigned_signed_truncation(rhs))
++              return;
 +
 +      type_max = cast_a_tree(size_overflow_type, TYPE_MAX_VALUE(rhs_type));
 +      // typemax (-1) < typemin (0)
@@ -91433,43 +102200,74 @@ index 0000000..d52f2ee
 +      insert_check_size_overflow(stmt, LT_EXPR, cast_rhs, type_min, before, true);
 +}
 +
-+static tree get_size_overflow_type_for_intentional_overflow(gimple def_stmt, tree change_rhs)
++static bool is_a_constant_overflow(const_gimple stmt, const_tree rhs)
 +{
-+      gimple change_rhs_def_stmt;
-+      tree lhs = gimple_get_lhs(def_stmt);
-+      tree lhs_type = TREE_TYPE(lhs);
-+      tree rhs1_type = TREE_TYPE(gimple_assign_rhs1(def_stmt));
-+      tree rhs2_type = TREE_TYPE(gimple_assign_rhs2(def_stmt));
-+
-+      if (change_rhs == NULL_TREE)
-+              return get_size_overflow_type(def_stmt, lhs);
++      if (gimple_assign_rhs_code(stmt) == MIN_EXPR)
++              return false;
++      if (!is_gimple_constant(rhs))
++              return false;
++      return true;
++}
 +
-+      change_rhs_def_stmt = get_def_stmt(change_rhs);
++static tree get_def_stmt_rhs(const_tree var)
++{
++      tree rhs1, def_stmt_rhs1;
++      gimple rhs1_def_stmt, def_stmt_rhs1_def_stmt, def_stmt;
 +
-+      if (TREE_CODE_CLASS(gimple_assign_rhs_code(def_stmt)) == tcc_comparison)
-+              return get_size_overflow_type(change_rhs_def_stmt, change_rhs);
++      def_stmt = get_def_stmt(var);
++      gcc_assert(gimple_code(def_stmt) != GIMPLE_NOP && gimple_plf(def_stmt, MY_STMT) && gimple_assign_cast_p(def_stmt));
 +
-+      if (gimple_assign_rhs_code(def_stmt) == LSHIFT_EXPR)
-+              return get_size_overflow_type(change_rhs_def_stmt, change_rhs);
++      rhs1 = gimple_assign_rhs1(def_stmt);
++      rhs1_def_stmt = get_def_stmt(rhs1);
++      if (!gimple_assign_cast_p(rhs1_def_stmt))
++              return rhs1;
 +
-+      if (gimple_assign_rhs_code(def_stmt) == RSHIFT_EXPR)
-+              return get_size_overflow_type(change_rhs_def_stmt, change_rhs);
++      def_stmt_rhs1 = gimple_assign_rhs1(rhs1_def_stmt);
++      def_stmt_rhs1_def_stmt = get_def_stmt(def_stmt_rhs1);
 +
-+      if (!types_compatible_p(lhs_type, rhs1_type) || !types_compatible_p(rhs1_type, rhs2_type)) {
-+              debug_gimple_stmt(def_stmt);
++      switch (gimple_code(def_stmt_rhs1_def_stmt)) {
++      case GIMPLE_CALL:
++      case GIMPLE_NOP:
++      case GIMPLE_ASM:
++      case GIMPLE_PHI:
++              return def_stmt_rhs1;
++      case GIMPLE_ASSIGN:
++              return rhs1;
++      default:
++              debug_gimple_stmt(def_stmt_rhs1_def_stmt);
 +              gcc_unreachable();
 +      }
-+
-+      return get_size_overflow_type(def_stmt, lhs);
 +}
 +
-+static bool is_a_constant_overflow(const_gimple stmt, const_tree rhs)
++static tree handle_intentional_overflow(struct pointer_set_t *visited, bool check_overflow, gimple stmt, tree change_rhs, tree new_rhs2)
 +{
-+      if (gimple_assign_rhs_code(stmt) == MIN_EXPR)
-+              return false;
-+      if (!is_gimple_constant(rhs))
-+              return false;
-+      return true;
++      tree new_rhs, orig_rhs;
++      void (*gimple_assign_set_rhs)(gimple, tree);
++      tree rhs1 = gimple_assign_rhs1(stmt);
++      tree rhs2 = gimple_assign_rhs2(stmt);
++      tree lhs = gimple_get_lhs(stmt);
++
++      if (!check_overflow)
++              return create_assign(visited, stmt, lhs, AFTER_STMT);
++
++      if (change_rhs == NULL_TREE)
++              return create_assign(visited, stmt, lhs, AFTER_STMT);
++
++      if (new_rhs2 == NULL_TREE) {
++              orig_rhs = rhs1;
++              gimple_assign_set_rhs = &gimple_assign_set_rhs1;
++      } else {
++              orig_rhs = rhs2;
++              gimple_assign_set_rhs = &gimple_assign_set_rhs2;
++      }
++
++      check_size_overflow(stmt, TREE_TYPE(change_rhs), change_rhs, orig_rhs, BEFORE_STMT);
++
++      new_rhs = change_assign_rhs(stmt, orig_rhs, change_rhs);
++      gimple_assign_set_rhs(stmt, new_rhs);
++      update_stmt(stmt);
++
++      return create_assign(visited, stmt, lhs, AFTER_STMT);
 +}
 +
 +static bool is_subtraction_special(const_gimple stmt)
@@ -91511,35 +102309,6 @@ index 0000000..d52f2ee
 +      return true;
 +}
 +
-+static tree get_def_stmt_rhs(const_tree var)
-+{
-+      tree rhs1, def_stmt_rhs1;
-+      gimple rhs1_def_stmt, def_stmt_rhs1_def_stmt, def_stmt;
-+
-+      def_stmt = get_def_stmt(var);
-+      gcc_assert(gimple_code(def_stmt) != GIMPLE_NOP && gimple_plf(def_stmt, MY_STMT) && gimple_assign_cast_p(def_stmt));
-+
-+      rhs1 = gimple_assign_rhs1(def_stmt);
-+      rhs1_def_stmt = get_def_stmt(rhs1);
-+      if (!gimple_assign_cast_p(rhs1_def_stmt))
-+              return rhs1;
-+
-+      def_stmt_rhs1 = gimple_assign_rhs1(rhs1_def_stmt);
-+      def_stmt_rhs1_def_stmt = get_def_stmt(def_stmt_rhs1);
-+
-+      switch (gimple_code(def_stmt_rhs1_def_stmt)) {
-+      case GIMPLE_CALL:
-+      case GIMPLE_NOP:
-+      case GIMPLE_ASM:
-+              return def_stmt_rhs1;
-+      case GIMPLE_ASSIGN:
-+              return rhs1;
-+      default:
-+              debug_gimple_stmt(def_stmt_rhs1_def_stmt);
-+              gcc_unreachable();
-+      }
-+}
-+
 +static tree handle_integer_truncation(struct pointer_set_t *visited, const_tree lhs)
 +{
 +      tree new_rhs1, new_rhs2;
@@ -91586,41 +102355,6 @@ index 0000000..d52f2ee
 +      return true;
 +}
 +
-+static tree handle_intentional_overflow(struct pointer_set_t *visited, bool check_overflow, gimple stmt, tree change_rhs, tree new_rhs1, tree new_rhs2)
-+{
-+      tree new_rhs, size_overflow_type, orig_rhs;
-+      void (*gimple_assign_set_rhs)(gimple, tree);
-+      tree rhs1 = gimple_assign_rhs1(stmt);
-+      tree rhs2 = gimple_assign_rhs2(stmt);
-+      tree lhs = gimple_get_lhs(stmt);
-+
-+      if (change_rhs == NULL_TREE)
-+              return create_assign(visited, stmt, lhs, AFTER_STMT);
-+
-+      if (new_rhs2 == NULL_TREE) {
-+              size_overflow_type = get_size_overflow_type_for_intentional_overflow(stmt, new_rhs1);
-+              new_rhs2 = cast_a_tree(size_overflow_type, rhs2);
-+              orig_rhs = rhs1;
-+              gimple_assign_set_rhs = &gimple_assign_set_rhs1;
-+      } else {
-+              size_overflow_type = get_size_overflow_type_for_intentional_overflow(stmt, new_rhs2);
-+              new_rhs1 = cast_a_tree(size_overflow_type, rhs1);
-+              orig_rhs = rhs2;
-+              gimple_assign_set_rhs = &gimple_assign_set_rhs2;
-+      }
-+
-+      change_rhs = cast_to_new_size_overflow_type(stmt, change_rhs, size_overflow_type, BEFORE_STMT);
-+
-+      if (check_overflow)
-+              check_size_overflow(stmt, size_overflow_type, change_rhs, orig_rhs, BEFORE_STMT);
-+
-+      new_rhs = change_assign_rhs(stmt, orig_rhs, change_rhs);
-+      gimple_assign_set_rhs(stmt, new_rhs);
-+      update_stmt(stmt);
-+
-+      return create_assign(visited, stmt, lhs, AFTER_STMT);
-+}
-+
 +static tree handle_binary_ops(struct pointer_set_t *visited, tree lhs)
 +{
 +      tree rhs1, rhs2, new_lhs;
@@ -91660,14 +102394,15 @@ index 0000000..d52f2ee
 +              new_rhs2 = expand(visited, rhs2);
 +
 +      if (is_a_neg_overflow(def_stmt, rhs2))
-+              return handle_intentional_overflow(visited, true, def_stmt, new_rhs1, new_rhs1, NULL_TREE);
++              return handle_intentional_overflow(visited, true, def_stmt, new_rhs1, NULL_TREE);
 +      if (is_a_neg_overflow(def_stmt, rhs1))
-+              return handle_intentional_overflow(visited, true, def_stmt, new_rhs2, NULL_TREE, new_rhs2);
++              return handle_intentional_overflow(visited, true, def_stmt, new_rhs2, new_rhs2);
++
 +
 +      if (is_a_constant_overflow(def_stmt, rhs2))
-+              return handle_intentional_overflow(visited, !is_a_cast_and_const_overflow(rhs1), def_stmt, new_rhs1, new_rhs1, NULL_TREE);
++              return handle_intentional_overflow(visited, !is_a_cast_and_const_overflow(rhs1), def_stmt, new_rhs1, NULL_TREE);
 +      if (is_a_constant_overflow(def_stmt, rhs1))
-+              return handle_intentional_overflow(visited, !is_a_cast_and_const_overflow(rhs2), def_stmt, new_rhs2, NULL_TREE, new_rhs2);
++              return handle_intentional_overflow(visited, !is_a_cast_and_const_overflow(rhs2), def_stmt, new_rhs2, new_rhs2);
 +
 +      return dup_assign(visited, def_stmt, lhs, new_rhs1, new_rhs2, NULL_TREE);
 +}
@@ -91742,41 +102477,34 @@ index 0000000..d52f2ee
 +static tree expand_visited(gimple def_stmt)
 +{
 +      const_gimple next_stmt;
-+      gimple_stmt_iterator gsi = gsi_for_stmt(def_stmt);
++      gimple_stmt_iterator gsi;
++      enum gimple_code code = gimple_code(def_stmt);
++
++      if (code == GIMPLE_ASM)
++              return NULL_TREE;
 +
++      gsi = gsi_for_stmt(def_stmt);
 +      gsi_next(&gsi);
++
++      if (gimple_code(def_stmt) == GIMPLE_PHI && gsi_end_p(gsi))
++              return NULL_TREE;
++      gcc_assert(!gsi_end_p(gsi));
 +      next_stmt = gsi_stmt(gsi);
 +
++      if (gimple_code(def_stmt) == GIMPLE_PHI && !gimple_plf((gimple)next_stmt, MY_STMT))
++              return NULL_TREE;
 +      gcc_assert(gimple_plf((gimple)next_stmt, MY_STMT));
 +
-+      switch (gimple_code(next_stmt)) {
-+      case GIMPLE_ASSIGN:
-+              return gimple_get_lhs(next_stmt);
-+      case GIMPLE_PHI:
-+              return gimple_phi_result(next_stmt);
-+      case GIMPLE_CALL:
-+              return gimple_call_lhs(next_stmt);
-+      default:
-+              return NULL_TREE;
-+      }
++      return get_lhs(next_stmt);
 +}
 +
 +static tree expand(struct pointer_set_t *visited, tree lhs)
 +{
 +      gimple def_stmt;
-+      enum tree_code code = TREE_CODE(TREE_TYPE(lhs));
-+
-+      if (is_gimple_constant(lhs))
-+              return NULL_TREE;
-+
-+      if (TREE_CODE(lhs) == ADDR_EXPR)
-+              return NULL_TREE;
 +
-+      if (code == REAL_TYPE)
++      if (skip_types(lhs))
 +              return NULL_TREE;
 +
-+      gcc_assert(code == INTEGER_TYPE || code == POINTER_TYPE || code == BOOLEAN_TYPE || code == ENUMERAL_TYPE);
-+
 +      def_stmt = get_def_stmt(lhs);
 +
 +      if (!def_stmt || gimple_code(def_stmt) == GIMPLE_NOP)
@@ -91790,7 +102518,7 @@ index 0000000..d52f2ee
 +
 +      switch (gimple_code(def_stmt)) {
 +      case GIMPLE_PHI:
-+              return build_new_phi(visited, lhs);
++              return handle_phi(visited, lhs);
 +      case GIMPLE_CALL:
 +      case GIMPLE_ASM:
 +              return create_assign(visited, def_stmt, lhs, AFTER_STMT);
@@ -91812,23 +102540,30 @@ index 0000000..d52f2ee
 +      }
 +}
 +
-+static void change_function_arg(gimple stmt, const_tree origarg, unsigned int argnum, tree newarg)
++static tree get_new_tree(gimple stmt, const_tree orig_node, tree new_node)
 +{
 +      const_gimple assign;
++      tree orig_type = TREE_TYPE(orig_node);
 +      gimple_stmt_iterator gsi = gsi_for_stmt(stmt);
-+      tree origtype = TREE_TYPE(origarg);
 +
-+      gcc_assert(gimple_code(stmt) == GIMPLE_CALL);
++      assign = build_cast_stmt(orig_type, new_node, CREATE_NEW_VAR, &gsi, BEFORE_STMT, false);
++      return gimple_get_lhs(assign);
++}
 +
-+      assign = build_cast_stmt(origtype, newarg, CREATE_NEW_VAR, &gsi, BEFORE_STMT);
++static void change_function_arg(gimple stmt, const_tree orig_arg, unsigned int argnum, tree new_arg)
++{
++      gimple_call_set_arg(stmt, argnum, get_new_tree(stmt, orig_arg, new_arg));
++      update_stmt(stmt);
++}
 +
-+      gimple_call_set_arg(stmt, argnum, gimple_get_lhs(assign));
++static void change_function_return(gimple stmt, const_tree orig_ret, tree new_ret)
++{
++      gimple_return_set_retval(stmt, get_new_tree(stmt, orig_ret, new_ret));
 +      update_stmt(stmt);
 +}
 +
 +static bool get_function_arg(unsigned int* argnum, const_tree fndecl)
 +{
-+      const char *origid;
 +      tree arg;
 +      const_tree origarg;
 +
@@ -91844,94 +102579,66 @@ index 0000000..d52f2ee
 +      gcc_assert(*argnum == 0);
 +
 +      gcc_assert(origarg != NULL_TREE);
-+      origid = NAME(origarg);
 +      *argnum = 0;
-+      for (arg = DECL_ARGUMENTS(fndecl); arg; arg = TREE_CHAIN(arg)) {
-+              if (!strcmp(origid, NAME(arg)))
++      for (arg = DECL_ARGUMENTS(fndecl); arg; arg = TREE_CHAIN(arg), (*argnum)++)
++              if (operand_equal_p(origarg, arg, 0) || !strcmp(NAME(origarg), NAME(arg)))
 +                      return true;
-+              (*argnum)++;
-+      }
 +      return false;
 +}
 +
-+static bool skip_types(const_tree var)
-+{
-+      const_tree type;
-+
-+      switch (TREE_CODE(var)) {
-+              case ADDR_EXPR:
-+#if BUILDING_GCC_VERSION >= 4006
-+              case MEM_REF:
-+#endif
-+              case ARRAY_REF:
-+              case BIT_FIELD_REF:
-+              case INDIRECT_REF:
-+              case TARGET_MEM_REF:
-+              case VAR_DECL:
-+                      return true;
-+              default:
-+                      break;
-+      }
-+
-+      type = TREE_TYPE(TREE_TYPE(var));
-+      if (!type)
-+              return false;
-+      switch (TREE_CODE(type)) {
-+              case RECORD_TYPE:
-+                      return true;
-+              default:
-+                      break;
-+      }
-+
-+      return false;
-+}
-+
-+static bool walk_phi(struct pointer_set_t *visited, const_tree result)
++static enum mark walk_phi(struct pointer_set_t *visited, bool *search_err_code, const_tree result)
 +{
 +      gimple phi = get_def_stmt(result);
 +      unsigned int i, n = gimple_phi_num_args(phi);
 +
 +      if (!phi)
-+              return false;
++              return MARK_NO;
 +
 +      pointer_set_insert(visited, phi);
 +      for (i = 0; i < n; i++) {
++              enum mark marked;
 +              const_tree arg = gimple_phi_arg_def(phi, i);
-+              if (pre_expand(visited, arg))
-+                      return true;
++              marked = pre_expand(visited, search_err_code, arg);
++              if (marked != MARK_NO)
++                      return marked;
 +      }
-+      return false;
++      return MARK_NO;
 +}
 +
-+static bool walk_unary_ops(struct pointer_set_t *visited, const_tree lhs)
++static enum mark walk_unary_ops(struct pointer_set_t *visited, bool *search_err_code, const_tree lhs)
 +{
 +      gimple def_stmt = get_def_stmt(lhs);
 +      const_tree rhs;
 +
 +      if (!def_stmt)
-+              return false;
++              return MARK_NO;
 +
 +      rhs = gimple_assign_rhs1(def_stmt);
-+      if (pre_expand(visited, rhs))
-+              return true;
-+      return false;
++
++      def_stmt = get_def_stmt(rhs);
++      if (is_gimple_constant(rhs))
++              search_err_code[FROM_CONST] = true;
++
++      return pre_expand(visited, search_err_code, rhs);
 +}
 +
-+static bool walk_binary_ops(struct pointer_set_t *visited, const_tree lhs)
++static enum mark walk_binary_ops(struct pointer_set_t *visited, bool *search_err_code, const_tree lhs)
 +{
-+      bool rhs1_found, rhs2_found;
 +      gimple def_stmt = get_def_stmt(lhs);
 +      const_tree rhs1, rhs2;
++      enum mark marked;
 +
 +      if (!def_stmt)
-+              return false;
++              return MARK_NO;
++
++      search_err_code[CAST_ONLY] = false;
 +
 +      rhs1 = gimple_assign_rhs1(def_stmt);
 +      rhs2 = gimple_assign_rhs2(def_stmt);
-+      rhs1_found = pre_expand(visited, rhs1);
-+      rhs2_found = pre_expand(visited, rhs2);
-+
-+      return rhs1_found || rhs2_found;
++      marked = pre_expand(visited, search_err_code, rhs1);
++      if (marked != MARK_NO)
++              return marked;
++      return pre_expand(visited, search_err_code, rhs2);
 +}
 +
 +static const_tree search_field_decl(const_tree comp_ref)
@@ -91948,25 +102655,35 @@ index 0000000..d52f2ee
 +      return field;
 +}
 +
-+static enum marked mark_status(const_tree fndecl, unsigned int argnum)
++static enum mark mark_status(const_tree fndecl, unsigned int argnum)
 +{
 +      const_tree attr, p;
 +
++      // mm/filemap.c D.35286_51 = D.35283_46 (file_10(D), mapping_11, pos_1, D.35273_50, D.35285_49, page.14_48, fsdata.15_47);
++      if (fndecl == NULL_TREE)
++              return MARK_NO;
++
 +      attr = lookup_attribute("intentional_overflow", DECL_ATTRIBUTES(fndecl));
 +      if (!attr || !TREE_VALUE(attr))
-+              return MARKED_NO;
++              return MARK_NO;
 +
 +      p = TREE_VALUE(attr);
++      if (TREE_INT_CST_HIGH(TREE_VALUE(p)) == -1)
++              return MARK_TURN_OFF;
 +      if (!TREE_INT_CST_LOW(TREE_VALUE(p)))
-+              return MARKED_NOT_INTENTIONAL;
++              return MARK_NOT_INTENTIONAL;
++      if (argnum == 0) {
++              gcc_assert(current_function_decl == fndecl);
++              return MARK_NO;
++      }
 +
 +      do {
 +              if (argnum == TREE_INT_CST_LOW(TREE_VALUE(p)))
-+                      return MARKED_YES;
++                      return MARK_YES;
 +              p = TREE_CHAIN(p);
 +      } while (p);
 +
-+      return MARKED_NO;
++      return MARK_NO;
 +}
 +
 +static void print_missing_msg(tree func, unsigned int argnum)
@@ -91974,8 +102691,12 @@ index 0000000..d52f2ee
 +      unsigned int new_hash;
 +      size_t len;
 +      unsigned char tree_codes[CODES_LIMIT];
-+      location_t loc = DECL_SOURCE_LOCATION(func);
-+      const char *curfunc = get_asm_name(func);
++      location_t loc;
++      const char *curfunc;
++
++      func = get_original_function_decl(func);
++      loc = DECL_SOURCE_LOCATION(func);
++      curfunc = get_asm_name(func);
 +
 +      len = get_function_decl(func, tree_codes);
 +      new_hash = get_hash_num(curfunc, (const char *) tree_codes, len, 0);
@@ -91984,10 +102705,10 @@ index 0000000..d52f2ee
 +
 +static unsigned int search_missing_attribute(const_tree arg)
 +{
-+      const_tree type = TREE_TYPE(arg);
-+      tree func = get_original_function_decl(current_function_decl);
 +      unsigned int argnum;
 +      const struct size_overflow_hash *hash;
++      const_tree type = TREE_TYPE(arg);
++      tree func = get_original_function_decl(current_function_decl);
 +
 +      gcc_assert(TREE_CODE(arg) != COMPONENT_REF);
 +
@@ -92009,31 +102730,24 @@ index 0000000..d52f2ee
 +      return argnum;
 +}
 +
-+static bool is_already_marked(const_tree lhs)
++static enum mark is_already_marked(const_tree lhs)
 +{
 +      unsigned int argnum;
 +      const_tree fndecl;
 +
 +      argnum = search_missing_attribute(lhs);
 +      fndecl = get_original_function_decl(current_function_decl);
-+      if (argnum && mark_status(fndecl, argnum) == MARKED_YES)
-+              return true;
-+      return false;
++      if (argnum && mark_status(fndecl, argnum) == MARK_YES)
++              return MARK_YES;
++      return MARK_NO;
 +}
 +
-+static bool pre_expand(struct pointer_set_t *visited, const_tree lhs)
++static enum mark pre_expand(struct pointer_set_t *visited, bool *search_err_code, const_tree lhs)
 +{
 +      const_gimple def_stmt;
 +
-+      if (is_gimple_constant(lhs))
-+              return false;
-+
 +      if (skip_types(lhs))
-+              return false;
-+
-+      // skip char type (FIXME: only kernel)
-+      if (TYPE_MODE(TREE_TYPE(lhs)) == QImode)
-+              return false;
++              return MARK_NO;
 +
 +      if (TREE_CODE(lhs) == PARM_DECL)
 +              return is_already_marked(lhs);
@@ -92044,34 +102758,39 @@ index 0000000..d52f2ee
 +              field = search_field_decl(lhs);
 +              attr = lookup_attribute("intentional_overflow", DECL_ATTRIBUTES(field));
 +              if (!attr || !TREE_VALUE(attr))
-+                      return false;
-+              return true;
++                      return MARK_NO;
++              return MARK_YES;
 +      }
 +
 +      def_stmt = get_def_stmt(lhs);
 +
 +      if (!def_stmt)
-+              return false;
++              return MARK_NO;
 +
 +      if (pointer_set_contains(visited, def_stmt))
-+              return false;
++              return MARK_NO;
 +
 +      switch (gimple_code(def_stmt)) {
 +      case GIMPLE_NOP:
 +              if (TREE_CODE(SSA_NAME_VAR(lhs)) == PARM_DECL)
 +                      return is_already_marked(lhs);
-+              return false;
++              return MARK_NO;
 +      case GIMPLE_PHI:
-+              return walk_phi(visited, lhs);
++              return walk_phi(visited, search_err_code, lhs);
 +      case GIMPLE_CALL:
++              if (mark_status((gimple_call_fndecl(def_stmt)), 0) == MARK_TURN_OFF)
++                      return MARK_TURN_OFF;
++              check_function_hash(def_stmt);
++              return MARK_NO;
 +      case GIMPLE_ASM:
-+              return false;
++              search_err_code[CAST_ONLY] = false;
++              return MARK_NO;
 +      case GIMPLE_ASSIGN:
 +              switch (gimple_num_ops(def_stmt)) {
 +              case 2:
-+                      return walk_unary_ops(visited, lhs);
++                      return walk_unary_ops(visited, search_err_code, lhs);
 +              case 3:
-+                      return walk_binary_ops(visited, lhs);
++                      return walk_binary_ops(visited, search_err_code, lhs);
 +              }
 +      default:
 +              debug_gimple_stmt((gimple)def_stmt);
@@ -92080,22 +102799,56 @@ index 0000000..d52f2ee
 +      }
 +}
 +
-+static bool search_attributes(tree fndecl, const_tree arg, unsigned int argnum)
++// e.g., 3.8.2, 64, arch/x86/ia32/ia32_signal.c copy_siginfo_from_user32(): compat_ptr() u32 max
++static bool skip_asm(const_tree arg)
++{
++      gimple def_stmt = get_def_stmt(arg);
++
++      if (!def_stmt || !gimple_assign_cast_p(def_stmt))
++              return false;
++
++      def_stmt = get_def_stmt(gimple_assign_rhs1(def_stmt));
++      return def_stmt && gimple_code(def_stmt) == GIMPLE_ASM;
++}
++
++/*
++0</MARK_YES: no dup, search attributes (so, int)
++0/MARK_NOT_INTENTIONAL: no dup, search attribute (int)
++-1/MARK_TURN_OFF: no dup, no search, current_function_decl -> no dup
++*/
++
++static bool search_attributes(tree fndecl, const_tree arg, unsigned int argnum, bool where)
 +{
 +      struct pointer_set_t *visited;
-+      bool is_found;
-+      enum marked is_marked;
++      enum mark is_marked, is_found;
 +      location_t loc;
++      bool search_err_code[2] = {true, false};
++
++      is_marked = mark_status(current_function_decl, 0);
++      if (is_marked == MARK_TURN_OFF)
++              return true;
++
++      is_marked = mark_status(fndecl, argnum + 1);
++      if (is_marked == MARK_TURN_OFF || is_marked == MARK_NOT_INTENTIONAL)
++              return true;
 +
 +      visited = pointer_set_create();
-+      is_found = pre_expand(visited, arg);
++      is_found = pre_expand(visited, search_err_code, arg);
 +      pointer_set_destroy(visited);
 +
-+      is_marked = mark_status(fndecl, argnum + 1);
-+      if ((is_found && is_marked == MARKED_YES) || is_marked == MARKED_NOT_INTENTIONAL)
++      if (where == FROM_RET && search_err_code[CAST_ONLY] && search_err_code[FROM_CONST])
++              return true;
++
++      if (where == FROM_ARG && skip_asm(arg))
++              return true;
++
++      if (is_found == MARK_TURN_OFF)
 +              return true;
 +
-+      if (is_found) {
++      if ((is_found == MARK_YES && is_marked == MARK_YES))
++              return true;
++
++      if (is_found == MARK_YES) {
 +              loc = DECL_SOURCE_LOCATION(fndecl);
 +              inform(loc, "The intentional_overflow attribute is missing from +%s+%u+", get_asm_name(fndecl), argnum + 1);
 +              return true;
@@ -92106,9 +102859,14 @@ index 0000000..d52f2ee
 +static void handle_function_arg(gimple stmt, tree fndecl, unsigned int argnum)
 +{
 +      struct pointer_set_t *visited;
-+      tree arg, newarg;
++      tree arg, new_arg;
 +      bool match;
 +
++      if (argnum == 0)
++              return;
++
++      argnum--;
++
 +      match = get_function_arg(&argnum, fndecl);
 +      if (!match)
 +              return;
@@ -92117,54 +102875,79 @@ index 0000000..d52f2ee
 +      if (arg == NULL_TREE)
 +              return;
 +
-+      if (is_gimple_constant(arg))
++      if (skip_types(arg))
 +              return;
 +
-+      if (search_attributes(fndecl, arg, argnum))
++      if (search_attributes(fndecl, arg, argnum, FROM_ARG))
 +              return;
 +
-+      if (TREE_CODE(arg) != SSA_NAME)
-+              return;
-+
-+      check_arg_type(arg);
-+
 +      visited = pointer_set_create();
-+      newarg = expand(visited, arg);
++      new_arg = expand(visited, arg);
 +      pointer_set_destroy(visited);
 +
-+      if (newarg == NULL_TREE)
++      if (new_arg == NULL_TREE)
 +              return;
 +
-+      change_function_arg(stmt, arg, argnum, newarg);
-+
-+      check_size_overflow(stmt, TREE_TYPE(newarg), newarg, arg, BEFORE_STMT);
++      change_function_arg(stmt, arg, argnum, new_arg);
++      check_size_overflow(stmt, TREE_TYPE(new_arg), new_arg, arg, BEFORE_STMT);
 +}
 +
 +static void handle_function_by_attribute(gimple stmt, const_tree attr, tree fndecl)
 +{
 +      tree p = TREE_VALUE(attr);
 +      do {
-+              handle_function_arg(stmt, fndecl, TREE_INT_CST_LOW(TREE_VALUE(p))-1);
++              handle_function_arg(stmt, fndecl, TREE_INT_CST_LOW(TREE_VALUE(p)));
 +              p = TREE_CHAIN(p);
 +      } while (p);
 +}
 +
 +static void handle_function_by_hash(gimple stmt, tree fndecl)
 +{
-+      tree orig_fndecl;
 +      unsigned int num;
 +      const struct size_overflow_hash *hash;
 +
-+      orig_fndecl = get_original_function_decl(fndecl);
-+      if (C_DECL_IMPLICIT(orig_fndecl))
-+              return;
-+      hash = get_function_hash(orig_fndecl);
++      hash = get_function_hash(fndecl);
 +      if (!hash)
 +              return;
 +
-+      for (num = 1; num <= MAX_PARAM; num++)
++      for (num = 0; num <= MAX_PARAM; num++)
 +              if (hash->param & (1U << num))
-+                      handle_function_arg(stmt, fndecl, num - 1);
++                      handle_function_arg(stmt, fndecl, num);
++}
++
++static bool check_return_value(void)
++{
++      const struct size_overflow_hash *hash;
++
++      hash = get_function_hash(current_function_decl);
++      if (!hash || !(hash->param & 1U << 0))
++              return false;
++
++      return true;
++}
++
++static void handle_return_value(gimple ret_stmt)
++{
++      struct pointer_set_t *visited;
++      tree ret, new_ret;
++
++      if (gimple_code(ret_stmt) != GIMPLE_RETURN)
++              return;
++
++      ret = gimple_return_retval(ret_stmt);
++
++      if (skip_types(ret))
++              return;
++
++      if (search_attributes(current_function_decl, ret, 0, FROM_RET))
++              return;
++
++      visited = pointer_set_create();
++      new_ret = expand(visited, ret);
++      pointer_set_destroy(visited);
++
++      change_function_return(ret_stmt, ret, new_ret);
++      check_size_overflow(ret_stmt, TREE_TYPE(new_ret), new_ret, ret, BEFORE_STMT);
 +}
 +
 +static void set_plf_false(void)
@@ -92184,9 +102967,12 @@ index 0000000..d52f2ee
 +static unsigned int handle_function(void)
 +{
 +      basic_block next, bb = ENTRY_BLOCK_PTR->next_bb;
++      bool check_ret;
 +
 +      set_plf_false();
 +
++      check_ret = check_return_value();
++
 +      do {
 +              gimple_stmt_iterator gsi;
 +              next = bb->next_bb;
@@ -92195,6 +102981,9 @@ index 0000000..d52f2ee
 +                      tree fndecl, attr;
 +                      gimple stmt = gsi_stmt(gsi);
 +
++                      if (check_ret)
++                              handle_return_value(stmt);
++
 +                      if (!(is_gimple_call(stmt)))
 +                              continue;
 +                      fndecl = gimple_call_fndecl(stmt);
@@ -92232,7 +103021,7 @@ index 0000000..d52f2ee
 +              .properties_provided    = 0,
 +              .properties_destroyed   = 0,
 +              .todo_flags_start       = 0,
-+              .todo_flags_finish      = TODO_verify_ssa | TODO_verify_stmts | TODO_dump_func | TODO_remove_unused_locals | TODO_update_ssa_no_phi | TODO_cleanup_cfg | TODO_ggc_collect | TODO_verify_flow
++              .todo_flags_finish      = TODO_dump_func | TODO_verify_ssa | TODO_verify_stmts | TODO_remove_unused_locals | TODO_update_ssa_no_phi | TODO_cleanup_cfg | TODO_ggc_collect | TODO_verify_flow
 +      }
 +};
 +
@@ -92628,6 +103417,283 @@ index 0000000..ac2901e
 +
 +      return 0;
 +}
+diff --git a/tools/gcc/structleak_plugin.c b/tools/gcc/structleak_plugin.c
+new file mode 100644
+index 0000000..5afca14
+--- /dev/null
++++ b/tools/gcc/structleak_plugin.c
+@@ -0,0 +1,271 @@
++/*
++ * Copyright 2013 by PaX Team <pageexec@freemail.hu>
++ * Licensed under the GPL v2
++ *
++ * Note: the choice of the license means that the compilation process is
++ *       NOT 'eligible' as defined by gcc's library exception to the GPL v3,
++ *       but for the kernel it doesn't matter since it doesn't link against
++ *       any of the gcc libraries
++ *
++ * gcc plugin to forcibly initialize certain local variables that could
++ * otherwise leak kernel stack to userland if they aren't properly initialized
++ * by later code
++ *
++ * Homepage: http://pax.grsecurity.net/
++ *
++ * Usage:
++ * $ # for 4.5/4.6/C based 4.7
++ * $ gcc -I`gcc -print-file-name=plugin`/include -I`gcc -print-file-name=plugin`/include/c-family -fPIC -shared -O2 -o structleak_plugin.so structleak_plugin.c
++ * $ # for C++ based 4.7/4.8+
++ * $ g++ -I`g++ -print-file-name=plugin`/include -I`g++ -print-file-name=plugin`/include/c-family -fPIC -shared -O2 -o structleak_plugin.so structleak_plugin.c
++ * $ gcc -fplugin=./structleak_plugin.so test.c -O2
++ *
++ * TODO: eliminate redundant initializers
++ *       increase type coverage
++ */
++
++#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 "diagnostic.h"
++#include "cfgloop.h"
++#include "langhooks.h"
++
++#if BUILDING_GCC_VERSION >= 4008
++#define TODO_dump_func 0
++#endif
++
++#define NAME(node) IDENTIFIER_POINTER(DECL_NAME(node))
++
++// unused type flag in all versions 4.5-4.8
++#define TYPE_USERSPACE(TYPE) TYPE_LANG_FLAG_3(TYPE)
++
++int plugin_is_GPL_compatible;
++void debug_gimple_stmt(gimple gs);
++
++static struct plugin_info structleak_plugin_info = {
++      .version        = "201304082245",
++      .help           = "disable\tdo not activate plugin\n",
++};
++
++static tree handle_user_attribute(tree *node, tree name, tree args, int flags, bool *no_add_attrs)
++{
++      *no_add_attrs = true;
++
++      // check for types? for now accept everything linux has to offer
++      if (TREE_CODE(*node) != FIELD_DECL)
++              return NULL_TREE;
++
++      *no_add_attrs = false;
++      return NULL_TREE;
++}
++
++static struct attribute_spec user_attr = {
++      .name                   = "user",
++      .min_length             = 0,
++      .max_length             = 0,
++      .decl_required          = false,
++      .type_required          = false,
++      .function_type_required = false,
++      .handler                = handle_user_attribute,
++#if BUILDING_GCC_VERSION >= 4007
++      .affects_type_identity  = true
++#endif
++};
++
++static void register_attributes(void *event_data, void *data)
++{
++      register_attribute(&user_attr);
++//    register_attribute(&force_attr);
++}
++
++static tree get_field_type(tree field)
++{
++      return strip_array_types(TREE_TYPE(field));
++}
++
++static bool is_userspace_type(tree type)
++{
++      tree field;
++
++      for (field = TYPE_FIELDS(type); field; field = TREE_CHAIN(field)) {
++              tree fieldtype = get_field_type(field);
++              enum tree_code code = TREE_CODE(fieldtype);
++
++              if (code == RECORD_TYPE || code == UNION_TYPE)
++                      if (is_userspace_type(fieldtype))
++                              return true;
++
++              if (lookup_attribute("user", DECL_ATTRIBUTES(field)))
++                      return true;
++      }
++      return false;
++}
++
++static void finish_type(void *event_data, void *data)
++{
++      tree type = (tree)event_data;
++
++      if (TYPE_USERSPACE(type))
++              return;
++
++      if (is_userspace_type(type))
++              TYPE_USERSPACE(type) = 1;
++}
++
++static void initialize(tree var)
++{
++      basic_block bb;
++      gimple_stmt_iterator gsi;
++      tree initializer;
++      gimple init_stmt;
++
++      // this is the original entry bb before the forced split
++      bb = ENTRY_BLOCK_PTR->next_bb->next_bb;
++
++      // first check if the variable is already initialized, warn otherwise
++      for (gsi = gsi_start_bb(bb); !gsi_end_p(gsi); gsi_next(&gsi)) {
++              gimple stmt = gsi_stmt(gsi);
++              tree rhs1 = gimple_assign_rhs1(stmt);
++
++              // we're looking for an assignment of a single rhs...
++              if (!gimple_assign_single_p(stmt))
++                      continue;
++              // ... of a non-clobbering expression...
++              if (TREE_CLOBBER_P(rhs1))
++                      continue;
++              // ... to our variable...
++              if (gimple_get_lhs(stmt) != var)
++                      continue;
++              // if it's an initializer then we're good
++              if (TREE_CODE(rhs1) == CONSTRUCTOR)
++                      return;
++      }
++
++      // build the initializer expression
++      initializer = make_node(CONSTRUCTOR);
++      TREE_TYPE(initializer) = TREE_TYPE(var);
++
++      // build the initializer stmt
++      init_stmt = gimple_build_assign(var, initializer);
++      gsi = gsi_start_bb(ENTRY_BLOCK_PTR->next_bb);
++      gsi_insert_before(&gsi, init_stmt, GSI_NEW_STMT);
++      update_stmt(init_stmt);
++}
++
++static unsigned int handle_function(void)
++{
++      basic_block bb;
++      unsigned int ret = 0;
++      tree var;
++
++#if BUILDING_GCC_VERSION == 4005
++      tree vars;
++#else
++      unsigned int i;
++#endif
++
++      // split the first bb where we can put the forced initializers
++      bb = split_block_after_labels(ENTRY_BLOCK_PTR)->dest;
++      if (dom_info_available_p(CDI_DOMINATORS))
++              set_immediate_dominator(CDI_DOMINATORS, bb, ENTRY_BLOCK_PTR);
++
++      // enumarate all local variables and forcibly initialize our targets
++#if BUILDING_GCC_VERSION == 4005
++      for (vars = cfun->local_decls; vars; vars = TREE_CHAIN(vars)) {
++              var = TREE_VALUE(vars);
++#else
++      FOR_EACH_LOCAL_DECL(cfun, i, var) {
++#endif
++              tree type = TREE_TYPE(var);
++
++              gcc_assert(DECL_P(var));
++              if (!auto_var_in_fn_p(var, current_function_decl))
++                      continue;
++
++              // only care about structure types
++              if (TREE_CODE(type) != RECORD_TYPE && TREE_CODE(type) != UNION_TYPE)
++                      continue;
++
++              // if the type is of interest, examine the variable
++              if (TYPE_USERSPACE(type))
++                      initialize(var);
++      }
++
++      return ret;
++}
++
++static struct gimple_opt_pass structleak_pass = {
++      .pass = {
++              .type                   = GIMPLE_PASS,
++              .name                   = "structleak",
++#if BUILDING_GCC_VERSION >= 4008
++              .optinfo_flags          = OPTGROUP_NONE,
++#endif
++              .gate                   = NULL,
++              .execute                = handle_function,
++              .sub                    = NULL,
++              .next                   = NULL,
++              .static_pass_number     = 0,
++              .tv_id                  = TV_NONE,
++              .properties_required    = PROP_cfg,
++              .properties_provided    = 0,
++              .properties_destroyed   = 0,
++              .todo_flags_start       = 0,
++              .todo_flags_finish      = TODO_verify_ssa | TODO_verify_stmts | TODO_dump_func | TODO_remove_unused_locals | TODO_update_ssa | TODO_ggc_collect | TODO_verify_flow
++      }
++};
++
++int plugin_init(struct plugin_name_args *plugin_info, struct plugin_gcc_version *version)
++{
++      int i;
++      const char * const plugin_name = plugin_info->base_name;
++      const int argc = plugin_info->argc;
++      const struct plugin_argument * const argv = plugin_info->argv;
++      bool enable = true;
++
++      struct register_pass_info structleak_pass_info = {
++              .pass                           = &structleak_pass.pass,
++              .reference_pass_name            = "ssa",
++              .ref_pass_instance_number       = 1,
++              .pos_op                         = PASS_POS_INSERT_AFTER
++      };
++
++      if (!plugin_default_version_check(version, &gcc_version)) {
++              error(G_("incompatible gcc/plugin versions"));
++              return 1;
++      }
++
++      if (strcmp(lang_hooks.name, "GNU C")) {
++              inform(UNKNOWN_LOCATION, G_("%s supports C only"), plugin_name);
++              enable = false;
++      }
++
++      for (i = 0; i < argc; ++i) {
++              if (!strcmp(argv[i].key, "disable")) {
++                      enable = false;
++                      continue;
++              }
++              error(G_("unkown option '-fplugin-arg-%s-%s'"), plugin_name, argv[i].key);
++      }
++
++      register_callback(plugin_name, PLUGIN_INFO, NULL, &structleak_plugin_info);
++      if (enable) {
++              register_callback(plugin_name, PLUGIN_PASS_MANAGER_SETUP, NULL, &structleak_pass_info);
++              register_callback(plugin_name, PLUGIN_FINISH_TYPE, finish_type, NULL);
++      }
++      register_callback(plugin_name, PLUGIN_ATTRIBUTES, register_attributes, NULL);
++
++      return 0;
++}
 diff --git a/tools/perf/util/include/asm/alternative-asm.h b/tools/perf/util/include/asm/alternative-asm.h
 index 6789d78..4afd019e 100644
 --- a/tools/perf/util/include/asm/alternative-asm.h
@@ -92640,8 +103706,44 @@ index 6789d78..4afd019e 100644
 +      .endm
 +
  #endif
+diff --git a/tools/perf/util/include/linux/compiler.h b/tools/perf/util/include/linux/compiler.h
+index 96b919d..c49bb74 100644
+--- a/tools/perf/util/include/linux/compiler.h
++++ b/tools/perf/util/include/linux/compiler.h
+@@ -18,4 +18,12 @@
+ #define __force
+ #endif
++#ifndef __size_overflow
++# define __size_overflow(...)
++#endif
++
++#ifndef __intentional_overflow
++# define __intentional_overflow(...)
++#endif
++
+ #endif
+diff --git a/virt/kvm/ioapic.c b/virt/kvm/ioapic.c
+index cfb7e4d..52058f0 100644
+--- a/virt/kvm/ioapic.c
++++ b/virt/kvm/ioapic.c
+@@ -73,9 +73,12 @@ static unsigned long ioapic_read_indirect(struct kvm_ioapic *ioapic,
+                       u32 redir_index = (ioapic->ioregsel - 0x10) >> 1;
+                       u64 redir_content;
+-                      ASSERT(redir_index < IOAPIC_NUM_PINS);
++                      if (redir_index < IOAPIC_NUM_PINS)
++                              redir_content =
++                                      ioapic->redirtbl[redir_index].bits;
++                      else
++                              redir_content = ~0ULL;
+-                      redir_content = ioapic->redirtbl[redir_index].bits;
+                       result = (ioapic->ioregsel & 0x1) ?
+                           (redir_content >> 32) & 0xffffffff :
+                           redir_content & 0xffffffff;
 diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
-index 6e8fa7e..37f02a5 100644
+index 1cd693a..f4a7b20 100644
 --- a/virt/kvm/kvm_main.c
 +++ b/virt/kvm/kvm_main.c
 @@ -75,12 +75,17 @@ LIST_HEAD(vm_list);
@@ -92664,7 +103766,7 @@ index 6e8fa7e..37f02a5 100644
  
  struct dentry *kvm_debugfs_dir;
  
-@@ -726,7 +731,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
+@@ -731,7 +736,7 @@ int __kvm_set_memory_region(struct kvm *kvm,
        /* We can read the guest memory with __xxx_user() later on. */
        if (user_alloc &&
            ((mem->userspace_addr & (PAGE_SIZE - 1)) ||
@@ -92673,7 +103775,34 @@ index 6e8fa7e..37f02a5 100644
                        (void __user *)(unsigned long)mem->userspace_addr,
                        mem->memory_size)))
                goto out;
-@@ -2450,7 +2455,7 @@ static void hardware_enable_nolock(void *junk)
+@@ -1783,7 +1788,7 @@ static int kvm_vcpu_release(struct inode *inode, struct file *filp)
+       return 0;
+ }
+-static struct file_operations kvm_vcpu_fops = {
++static file_operations_no_const kvm_vcpu_fops __read_only = {
+       .release        = kvm_vcpu_release,
+       .unlocked_ioctl = kvm_vcpu_ioctl,
+ #ifdef CONFIG_COMPAT
+@@ -2304,7 +2309,7 @@ static int kvm_vm_mmap(struct file *file, struct vm_area_struct *vma)
+       return 0;
+ }
+-static struct file_operations kvm_vm_fops = {
++static file_operations_no_const kvm_vm_fops __read_only = {
+       .release        = kvm_vm_release,
+       .unlocked_ioctl = kvm_vm_ioctl,
+ #ifdef CONFIG_COMPAT
+@@ -2402,7 +2407,7 @@ out:
+       return r;
+ }
+-static struct file_operations kvm_chardev_ops = {
++static file_operations_no_const kvm_chardev_ops __read_only = {
+       .unlocked_ioctl = kvm_dev_ioctl,
+       .compat_ioctl   = kvm_dev_ioctl,
+       .llseek         = noop_llseek,
+@@ -2428,7 +2433,7 @@ static void hardware_enable_nolock(void *junk)
  
        if (r) {
                cpumask_clear_cpu(cpu, cpus_hardware_enabled);
@@ -92682,7 +103811,7 @@ index 6e8fa7e..37f02a5 100644
                printk(KERN_INFO "kvm: enabling virtualization on "
                                 "CPU%d failed\n", cpu);
        }
-@@ -2504,10 +2509,10 @@ static int hardware_enable_all(void)
+@@ -2482,10 +2487,10 @@ static int hardware_enable_all(void)
  
        kvm_usage_count++;
        if (kvm_usage_count == 1) {
@@ -92695,7 +103824,7 @@ index 6e8fa7e..37f02a5 100644
                        hardware_disable_all_nolock();
                        r = -EBUSY;
                }
-@@ -2865,7 +2870,7 @@ static void kvm_sched_out(struct preempt_notifier *pn,
+@@ -2843,7 +2848,7 @@ static void kvm_sched_out(struct preempt_notifier *pn,
        kvm_arch_vcpu_put(vcpu);
  }
  
@@ -92704,7 +103833,7 @@ index 6e8fa7e..37f02a5 100644
                  struct module *module)
  {
        int r;
-@@ -2901,7 +2906,7 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
+@@ -2879,7 +2884,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,
@@ -92713,22 +103842,19 @@ index 6e8fa7e..37f02a5 100644
        if (!kvm_vcpu_cache) {
                r = -ENOMEM;
                goto out_free_3;
-@@ -2911,9 +2916,11 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
+@@ -2889,9 +2894,11 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
        if (r)
                goto out_free;
  
--      kvm_chardev_ops.owner = module;
--      kvm_vm_fops.owner = module;
--      kvm_vcpu_fops.owner = module;
 +      pax_open_kernel();
-+      *(void **)&kvm_chardev_ops.owner = module;
-+      *(void **)&kvm_vm_fops.owner = module;
-+      *(void **)&kvm_vcpu_fops.owner = module;
+       kvm_chardev_ops.owner = module;
+       kvm_vm_fops.owner = module;
+       kvm_vcpu_fops.owner = module;
 +      pax_close_kernel();
  
        r = misc_register(&kvm_dev);
        if (r) {
-@@ -2923,9 +2930,6 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
+@@ -2901,9 +2908,6 @@ int kvm_init(void *opaque, unsigned vcpu_size, unsigned vcpu_align,
  
        register_syscore_ops(&kvm_syscore_ops);
  
diff --git a/kernel/patches/linux-exynos-ohci.diff b/kernel/patches/linux-exynos-ohci.diff
deleted file mode 100644 (file)
index a98a7fd..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/include/linux/platform_data/usb-exynos.h.orig    2012-12-21 16:18:59.426700698 +0000
-+++ b/include/linux/platform_data/usb-exynos.h 2012-12-21 16:19:09.887637974 +0000
-@@ -14,7 +14,7 @@
- struct exynos4_ohci_platdata {
-       int (*phy_init)(struct platform_device *pdev, int type);
-       int (*phy_exit)(struct platform_device *pdev, int type);
--};
-+} __no_const;
- extern void exynos4_ohci_set_platdata(struct exynos4_ohci_platdata *pd);
diff --git a/kernel/patches/linux-mmc-sdhci.diff b/kernel/patches/linux-mmc-sdhci.diff
deleted file mode 100644 (file)
index 53d7ebb..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/drivers/mmc/host/sdhci.h.orig    2013-01-05 13:34:45.442315463 +0000
-+++ b/drivers/mmc/host/sdhci.h 2013-01-05 13:34:56.950138257 +0000
-@@ -279,7 +279,7 @@
-       void    (*platform_suspend)(struct sdhci_host *host);
-       void    (*platform_resume)(struct sdhci_host *host);
-       void    (*platform_init)(struct sdhci_host *host);
--};
-+} __no_const;
- #ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
diff --git a/kernel/patches/linux-pm-domain.diff b/kernel/patches/linux-pm-domain.diff
deleted file mode 100644 (file)
index ec24803..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
---- a/include/linux/pm_domain.h.orig   2012-12-22 14:10:32.684513004 +0000
-+++ b/include/linux/pm_domain.h        2012-12-22 14:16:52.301700691 +0000
-@@ -44,7 +44,7 @@
-       int (*thaw_early)(struct device *dev);
-       int (*thaw)(struct device *dev);
-       bool (*active_wakeup)(struct device *dev);
--};
-+} __no_const;
- struct gpd_cpu_data {
-       unsigned int saved_exit_latency;
-@@ -82,7 +82,7 @@
-       bool cached_power_down_ok;
-       struct device_node *of_node; /* Node in device tree */
-       struct gpd_cpu_data *cpu_data;
--};
-+} __no_const;
- static inline struct generic_pm_domain *pd_to_genpd(struct dev_pm_domain *pd)
- {
diff --git a/kernel/patches/linux-serial-core.diff b/kernel/patches/linux-serial-core.diff
deleted file mode 100644 (file)
index e88dc10..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/include/linux/serial_core.h.orig 2012-12-27 11:22:18.332950493 +0000
-+++ b/include/linux/serial_core.h      2012-12-27 11:22:33.872012568 +0000
-@@ -84,7 +84,7 @@
-       void    (*poll_put_char)(struct uart_port *, unsigned char);
-       int             (*poll_get_char)(struct uart_port *);
- #endif
--};
-+} __no_const;
- #define NO_POLL_CHAR          0x00ff0000
- #define UART_CONFIG_TYPE      (1 << 0)
diff --git a/libldb/libldb.nm b/libldb/libldb.nm
new file mode 100644 (file)
index 0000000..21323f7
--- /dev/null
@@ -0,0 +1,82 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libldb
+version    = 1.1.15
+release    = 1
+
+groups     = System/Libraries
+url        = http://ldb.samba.org/
+license    = LGPLv3+
+summary    = A schema-less, ldap like, API and database.
+
+description
+       An extensible library that implements an LDAP like API to access remote LDAP
+       servers, or use local tdb databases.
+end
+
+thisapp = ldb-%{version}
+
+source_dl  = http://samba.org/ftp/ldb/
+
+build
+       requires
+               chrpath
+               docbook-utils
+               docbook-xsl
+               libtalloc-devel
+               libtdb-devel
+               libtevent-devel
+               popt-devel
+               pytalloc
+               pytdb
+               pytevent
+               python-devel
+       end
+
+       configure_options += \
+               --disable-rpath \
+               --disable-rpath-install \
+               --bundled-libraries=NONE \
+               --with-modulesdir=%{libdir}/ldb/modules \
+               --with-privatelibdir=%{libdir}/ldb
+
+       # Disable parallel build.
+       PARALLELISMFLAGS =
+
+       install_cmds
+               # Remove rpath from binaries.
+               chrpath --delete %{BUILDROOT}%{bindir}/*
+       end
+end
+
+packages
+       package %{name}
+
+       package ldb-tools
+               summary = Tools to manage LDB files.
+               description
+                       %{summary}
+               end
+
+               files
+                       %{bindir}
+                       %{libdir}/ldb/libldb-cmdline*
+                       %{mandir}/man1/*
+               end
+       end
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package pyldb
+               template PYTHON
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
index 2d4e756408f00c7f23e4b5bfd83c2141d52e4230..b8fdcd0c553a530c163f3260d5229b544f89349f 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = libnetfilter_conntrack
-version    = 1.0.2
-release    = 3
+version    = 1.0.3
+release    = 1
 
 groups     = System/Libraries
 url        = http://www.netfilter.org/projects/libnetfilter_conntrack/index.html
diff --git a/libtalloc/libtalloc.nm b/libtalloc/libtalloc.nm
new file mode 100644 (file)
index 0000000..a1244c5
--- /dev/null
@@ -0,0 +1,50 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libtalloc
+version    = 2.0.8
+release    = 1
+
+groups     = System/Libraries
+url        = http://talloc.samba.org/
+license    = LGPLv3+
+summary    = The talloc library.
+
+description
+       A library that implements a hierarchical allocator with destructors.
+end
+
+thisapp = talloc-%{version}
+
+source_dl  = http://samba.org/ftp/talloc/
+
+build
+       requires
+               docbook-utils
+               docbook-xsl
+               python-devel
+       end
+
+       configure_options += \
+               --disable-rpath \
+               --disable-rpath-install \
+               --bundled-libraries=NONE
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package pytalloc
+               template PYTHON
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
diff --git a/libtdb/libtdb.nm b/libtdb/libtdb.nm
new file mode 100644 (file)
index 0000000..7b676ae
--- /dev/null
@@ -0,0 +1,50 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libtdb
+version    = 1.2.11
+release    = 1
+
+groups     = System/Libraries
+url        = http://tdb.samba.org/
+license    = LGPLv3+
+summary    = The tdb library.
+
+description
+       A library that implements a trivial database.
+end
+
+thisapp = tdb-%{version}
+
+source_dl  = http://samba.org/ftp/tdb/
+
+build
+       requires
+               docbook-utils
+               docbook-xsl
+               python-devel
+       end
+
+       configure_options += \
+               --disable-rpath \
+               --disable-rpath-install \
+               --bundled-libraries=NONE
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package pytdb
+               template PYTHON
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
diff --git a/libtevent/libtevent.nm b/libtevent/libtevent.nm
new file mode 100644 (file)
index 0000000..a4dc690
--- /dev/null
@@ -0,0 +1,53 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = libtevent
+version    = 0.9.17
+release    = 1
+
+groups     = System/Libraries
+url        = http://tevent.samba.org/
+license    = LGPLv3+
+summary    = The tevent library.
+
+description
+       Tevent is an event system based on the talloc memory management library.
+       Tevent has support for many event types, including timers, signals, and
+       the classic file descriptor events.
+end
+
+thisapp = tevent-%{version}
+
+source_dl  = http://samba.org/ftp/tevent/
+
+build
+       requires
+               docbook-utils
+               docbook-xsl
+               libtalloc-devel
+               python-devel
+       end
+
+       configure_options += \
+               --disable-rpath \
+               --disable-rpath-install \
+               --bundled-libraries=NONE
+end
+
+packages
+       package %{name}
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package pytevent
+               template PYTHON
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
index 2650d512338476229ba0aba8dad93353b64a54fe..096adef4c6ddbb0bb3637f3c5a0625657eade20b 100644 (file)
@@ -4,13 +4,15 @@
 ###############################################################################
 
 name       = linux-firmware
-version    = 20110311
-release    = 3
+version    = 20130307
+git_ver    = c530a75
+release    = 1.git%{git_ver}
 arch       = noarch
+thisapp    = %{name}-%{git_ver}
 
 maintainer = Arne Fitzenreiter <arne.fitzenreiter@ipfire.org>
 groups     = System/Libraries
-url        = http://www.kernel.org/pub/linux/kernel/people/dwmw2/firmware/
+url        = https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
 license    = Non-GPL
 summary    = Firmware Binaries for some Devices.
 
@@ -21,7 +23,7 @@ description
        for the specific firmware.
 end
 
-source_dl  =
+source_dl  = https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/snapshot/
 
 build
        build
index 0c6bec82502324ab6a8ec4cb545901d1d5858d1b..5c41e053ebe36338657a4b4025b13457c64dd50c 100644 (file)
@@ -4,11 +4,11 @@
 ###############################################################################
 
 name       = lldpd
-version    = 0.5.4
-release    = 2
+version    = 0.7.1
+release    = 1
 
 groups     = Networking/Tools
-url        = https://trac.luffy.cx/lldpd/
+url        = http://vincentbernat.github.com/lldpd/
 license    = GPL
 summary    = Utilities for the Link Layer Discovery Protocol.
 
@@ -17,17 +17,20 @@ description
        the IEEE standard 802.1AB Link Layer Discovery Protocol.
 end
 
-source_dl  =
+source_dl = http://media.luffy.cx/files/lldpd/
 
 build
        requires
+               libevent-devel
                libxml2-devel
                pkg-config
+               readline-devel
                shadow-utils
                zlib-devel
        end
 
        configure_options += \
+               --with-readline \
                --with-xml \
                --with-privsep-user=lldpd \
                --with-privsep-group=lldpd
@@ -79,6 +82,10 @@ packages
                end
        end
 
+       package %{name}-devel
+               template DEVEL
+       end
+
        package %{name}-debuginfo
                template DEBUGINFO
        end
index 86dd4131bab90f98ec870675a772d81b659bcb17..8d1c035f16ee64980cb61fd18d1b5a366f8b4a8e 100644 (file)
@@ -4,8 +4,10 @@
 ###############################################################################
 
 name       = nano
-version    = 2.3.0
-release    = 3
+mainversion    = 2.3
+subversion     = 2
+version    = %{mainversion}.%{subversion}
+release    = 1
 
 groups     = Application/Editors
 url        = http://www.nano-editor.org/
@@ -16,7 +18,7 @@ description
        GNU nano is a small and friendly text editor.
 end
 
-source_dl  =
+source_dl  = http://www.nano-editor.org/dist/v%{mainversion}/
 
 build
        requires
index 9d4d5a5faae35a1c57943202beba086282e78644..148cfa40c427ec61531cb5c01a2558bcab875bf1 100644 (file)
@@ -5,8 +5,8 @@
 
 name       = network
 epoch      = 1
-version    = 005
-release    = 2
+version    = 006
+release    = 1
 arch       = noarch
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
@@ -25,6 +25,11 @@ end
 source_dl  = http://source.ipfire.org/releases/network/
 
 build
+       requires
+               docbook-xsl
+               libxslt
+       end
+
        install_cmds
                # Create some dummy configuration files.
                mkdir -pv %{BUILDROOT}%{sysconfdir}/{firewall,network}
@@ -37,6 +42,8 @@ packages
                requires
                        aiccu
                        bash >= 4.0
+                       batctl
+                       curl
                        dhclient >= 4.2.4-2
                        dhcp >= 4.2.4-1
                        ebtables
index e3fc8bffd15f838fe30c6c72f76a94f6c242fd3e..6b66c1bd45dd10d4daa918702f41a09c70623851 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = nss-myhostname
 version    = 0.3
-release    = 2
+release    = 3
 
 groups     = System/Libraries
 url        = http://0pointer.de/lennart/projects/nss-myhostname/
@@ -16,7 +16,9 @@ description
        nss-myhostname is a plugin for the GNU Name Service Switch (NSS)
        functionality of the GNU C Library (glibc) providing host name
        resolution for the locally configured system hostname as returned by
-       gethostname(2). Various software relies on an always resolvable local
+       gethostname(2).
+
+       Various software relies on an always resolvable local
        host name. When using dynamic hostnames this is usually achieved by
        patching /etc/hosts at the same time as changing the host name. This
        however is not ideal since it requires a writable /etc file system and
@@ -31,12 +33,9 @@ end
 source_dl  =
 
 build
-       configure_options += \
-               --libdir=/%{lib}
-
        install_cmds
                mkdir -pv %{BUILDROOT}%{libdir}
-               ln -svf ../../%{lib}/libnss_myhostname.so.2 \
+               ln -svf libnss_myhostname.so.2 \
                        %{BUILDROOT}%{libdir}/libnss_myhostname.so
 
                rm -rf %{BUILDROOT}/usr/share/doc/nss-myhostname
@@ -45,6 +44,33 @@ end
 
 packages
        package %{name}
+               groups += Base
+
+               prerequires
+                       /etc/nsswitch.conf
+               end
+
+               # Add myhostname to the hosts line of /etc/nsswitch.conf
+               script postin
+                       if [ -f "/etc/nsswitch.conf" ]; then
+                               sed -i.bak -e '
+                                       /^hosts:/ !b
+                                       /\<myhostname\>/ b
+                                       s/[[:blank:]]*$/ myhostname/
+                                       ' /etc/nsswitch.conf
+                       fi
+               end
+
+               # Remove myhostname from the hosts line of /etc/nsswitch.conf
+               script postun
+                       if [ -f "/etc/nsswitch.conf" ]; then
+                               sed -i.bak -e '
+                                       /^hosts:/ !b
+                                       s/[[:blank:]]\+myhostname\>//
+                                       ' /etc/nsswitch.conf
+                       fi
+               end
+       end
 
        package %{name}-debuginfo
                template DEBUGINFO
diff --git a/openldap/ldapcert.sh b/openldap/ldapcert.sh
new file mode 100644 (file)
index 0000000..614a8b9
--- /dev/null
@@ -0,0 +1,34 @@
+#!/bin/sh
+#
+# This is a temporary script to generate a self-signet certificate for the openLDAP service.
+#
+LDAPCERTDIR=/etc/openldap/certs
+
+# Check if a server key allready exists.
+if [ ! -f $LDAPCERTDIR/server.key ]; then
+       echo "Generating openLDAP server key."
+       openssl genrsa -out $LDAPCERTDIR/server.key 2048
+
+       # Fix ownership and permissions.
+       chown ldap:ldap $LDAPCERTDIR/server.key
+       chmod 0600 $LDAPCERTDIR/server.key
+fi
+
+# Check if the certificate allready exists.
+if [ ! -f $LDAPCERTDIR/server.pem ]; then
+       echo "Generating CSR"
+       openssl req -new -key $LDAPCERTDIR/server.key \
+               -out $LDAPCERTDIR/server.csr
+
+       echo "Signing certificate"
+       openssl x509 -req -days 365 -in \
+               $LDAPCERTDIR/server.csr -signkey $LDAPCERTDIR/server.key \
+               -out $LDAPCERTDIR/server.pem
+
+       # Remove unneeded csr file.
+       rm -rvf $LDAPCERTDIR/server.csr
+
+       # Fix ownership and file permissions.
+       chown ldap:ldap $LDAPCERTDIR/server.pem
+       chmod 0600 $LDAPCERTDIR/server.pem
+fi
diff --git a/openldap/openldap-conf.ldif b/openldap/openldap-conf.ldif
new file mode 100644 (file)
index 0000000..c660434
--- /dev/null
@@ -0,0 +1,149 @@
+# See slapd-config(5) for details on configuration options.
+# This file should NOT be world readable.
+#
+
+dn: cn=config
+objectClass: olcGlobal
+cn: config
+olcArgsFile: /run/openldap/slapd.args
+olcPidFile: /run/openldap/slapd.pid
+#
+# TLS settings
+#
+#olcTLSCACertificateFile: /etc/pki/CA/cacert.pem
+olcTLSCertificateFile: /etc/openldap/certs/server.pem
+olcTLSCertificateKeyFile: /etc/openldap/certs/server.key
+#
+# Do not enable referrals until AFTER you have a working directory
+# service AND an understanding of referrals.
+#
+#olcReferral: ldap://root.openldap.org
+#
+# Sample security restrictions
+#      Require integrity protection (prevent hijacking)
+#      Require 112-bit (3DES or better) encryption for updates
+#      Require 64-bit encryption for simple bind
+#
+#olcSecurity: ssf=1 update_ssf=112 simple_bind=64
+
+#
+# Load dynamic backend modules:
+# - modulepath is architecture dependent value (32/64-bit system)
+# - back_sql.la backend requires openldap-servers-sql package
+# - dyngroup.la and dynlist.la cannot be used at the same time
+#
+
+#dn: cn=module,cn=config
+#objectClass: olcModuleList
+#cn: module
+#olcModulepath:        /usr/lib/openldap
+#olcModulepath:        /usr/lib64/openldap
+#olcModuleload: accesslog.la
+#olcModuleload: auditlog.la
+#olcModuleload: back_dnssrv.la
+#olcModuleload: back_hdb.so
+#olcModuleload: back_ldap.la
+#olcModuleload: back_mdb.la
+#olcModuleload: back_meta.la
+#olcModuleload: back_null.la
+#olcModuleload: back_passwd.la
+#olcModuleload: back_relay.la
+#olcModuleload: back_shell.la
+#olcModuleload: back_sock.la
+#olcModuleload: collect.la
+#olcModuleload: constraint.la
+#olcModuleload: dds.la
+#olcModuleload: deref.la
+#olcModuleload: dyngroup.la
+#olcModuleload: dynlist.la
+#olcModuleload: memberof.la
+#olcModuleload: pcache.la
+#olcModuleload: ppolicy.la
+#olcModuleload: refint.la
+#olcModuleload: retcode.la
+#olcModuleload: rwm.la
+#olcModuleload: seqmod.la
+#olcModuleload: smbk5pwd.la
+#olcModuleload: sssvlv.la
+#olcModuleload: syncprov.la
+#olcModuleload: translucent.la
+#olcModuleload: unique.la
+#olcModuleload: valsort.la
+
+
+#
+# Schema settings
+#
+
+dn: cn=schema,cn=config
+objectClass: olcSchemaConfig
+cn: schema
+
+include: file:///etc/openldap/schema/core.ldif
+include: file:///etc/openldap/schema/cosine.ldif
+include: file:///etc/openldap/schema/nis.ldif
+include: file:///etc/openldap/schema/inetorgperson.ldif
+
+#
+# Frontend settings
+#
+
+dn: olcDatabase=frontend,cn=config
+objectClass: olcDatabaseConfig
+olcDatabase: frontend
+#
+# Sample global access control policy:
+#      Root DSE: allow anyone to read it
+#      Subschema (sub)entry DSE: allow anyone to read it
+#      Other DSEs:
+#              Allow self write access
+#              Allow authenticated users read access
+#              Allow anonymous users to authenticate
+#
+#olcAccess: to dn.base="" by * read
+#olcAccess: to dn.base="cn=Subschema" by * read
+#olcAccess: to *
+#      by self write
+#      by users read
+#      by anonymous auth
+#
+# if no access controls are present, the default policy
+# allows anyone and everyone to read anything but restricts
+# updates to rootdn.  (e.g., "access to * by * read")
+#
+# rootdn can always read and write EVERYTHING!
+#
+
+#
+# Configuration database
+#
+
+dn: olcDatabase=config,cn=config
+objectClass: olcDatabaseConfig
+olcDatabase: config
+olcAccess: to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,c
+ n=auth" manage by * none
+
+#
+# Server status monitoring
+#
+
+#dn: olcDatabase=monitor,cn=config
+#objectClass: olcDatabaseConfig
+#olcDatabase: monitor
+#olcAccess: to * by dn.base="gidNumber=0+uidNumber=0,cn=peercred,cn=external,c
+ n=auth" read by dn.base="cn=Manager,dc=my-domain,dc=com" read by * none
+
+#
+# Backend database definitions
+#
+
+dn: olcDatabase=hdb,cn=config
+objectClass: olcDatabaseConfig
+objectClass: olcHdbConfig
+olcDatabase: hdb
+olcSuffix: @SUFFIX@
+olcRootDN: cn=admin,@SUFFIX@
+olcDbDirectory:        /var/lib/ldap
+olcDbIndex: objectClass eq,pres
+olcDbIndex: ou,cn,mail,surname,givenname eq,pres,sub
index 8d054b3b2ab790b8aa83b959a39a650eb7918cd6..25880615effdc8a5d60f16c5130c2e0603963526 100644 (file)
@@ -5,7 +5,7 @@
 
 name       = openldap
 version    = 2.4.32
-release    = 3
+release    = 5
 
 groups     = System/Daemons
 url        = http://www.openldap.org/
@@ -50,6 +50,8 @@ build
                --enable-overlays=mod \
                --enable-sql=no \
                --enable-ndb=no \
+               --enable-hdb=yes \
+               --enable-monitor=yes \
                --disable-static
 
        prepare_cmds
@@ -69,6 +71,7 @@ build
                ln -svf slapd %{BUILDROOT}/usr/sbin/slaptest
 
                # Remove unneeded files.
+               rm -rvf %{BUILDROOT}%{sysconfidir}/slapd.{conf,ldif}
                rm -rvf %{BUILDROOT}%{localstatedir}/openldap-data
                rm -rvf %{BUILDROOT}%{localstatedir}/run
 
@@ -76,12 +79,18 @@ build
                        chmod -v 0755 %{BUILDROOT}%{libdir}/$(readlink %{BUILDROOT}%{libdir}/lib${LINK}.so)
                done
 
-               # Install configuration
-               mkdir -pv %{BUILDROOT}/etc/%{name}
-               cp -vf %{DIR_SOURCE}/slapd.conf %{BUILDROOT}%{sysconfdir}/%{name}/slapd.conf
+               # Install configuration file.
+               mkdir -pv %{BUILDROOT}%{datadir}/%{name}
+               cp -vf %{DIR_SOURCE}/openldap-conf.ldif \
+                        %{BUILDROOT}%{datadir}/%{name}/
+
+               # Install ldapcert.sh script.
+               install -m 0755 %{DIR_SOURCE}/ldapcert.sh \
+                       %{BUILDROOT}%{datadir}/%{name}/
 
                # Create directoires.
                mkdir -pv %{BUILDROOT}%{sysconfdir}/%{name}/slapd.d
+               mkdir -pv %{BUILDROOT}%{sysconfdir}/%{name}/certs
                mkdir -pv %{BUILDROOT}/run/%{name}
                mkdir -pv %{BUILDROOT}%{sharedstatedir}/ldap
 
@@ -101,7 +110,10 @@ end
 
 packages
        package %{name}
-               prerequires += shadow-utils
+               prerequires
+                       openssl
+                       shadow-utils
+               end
 
                script prein
                        %{create_user}
@@ -109,6 +121,7 @@ packages
 
                datafiles
                        %{sysconfdir}/%{name}/slapd.d
+                       %{sysconfdir}/%{name}/certs
                        %{sharedstatedir}/ldap
                end
 
diff --git a/openldap/slapd.conf b/openldap/slapd.conf
deleted file mode 100644 (file)
index cfb95d0..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-#  _        ___ _
-# (_)      / __|_)
-#  _ ____ | |__ _  ____ ____
-# | |  _ \|  __) |/ ___) _  )
-# | | | | | |  | | |  ( (/ /
-# |_| ||_/|_|  |_|_|   \____)
-#   |_|
-#
-# OpenLDAP configuration
-#
-# www.ipfire.org - Licensed under the GPLv3
-#
-
-include                /etc/openldap/schema/core.schema
-include                /etc/openldap/schema/cosine.schema
-include                /etc/openldap/schema/inetorgperson.schema
-include                /etc/openldap/schema/nis.schema
-
-pidfile                /var/run/slapd.pid
-argsfile       /var/run/slapd.args
-
-loglevel       2048
-
-#######################################################################
-# Load modules
-#######################################################################
-
-moduleload     back_hdb.so
-
-#######################################################################
-# ACL
-#######################################################################
-
-access to attrs=userPassword,userPKCS12
-        by self write
-        by * auth
-access to attrs=shadowLastChange
-        by self write
-        by * read
-access to *
-        by * read
-
-#######################################################################
-# BDB database definitions
-#######################################################################
-
-database       hdb
-suffix         "dc=my-domain,dc=com"
-rootdn         "cn=Manager,dc=my-domain,dc=com"
-rootpw         secret
-
-directory      /var/lib/ldap
-
-# Indices to maintain for this database
-index objectClass                       eq,pres
-index ou,cn,mail,surname,givenname      eq,pres,sub
-index uidNumber,gidNumber,loginShell    eq,pres
-index uid,memberUid                     eq,pres,sub
-index nisMapName,nisMapEntry            eq,pres,sub
index 9a6e53f4d3a697c03fd6e26e027f97f1a7247673..c21bd3ac8ec35439f4b156e6fae9a504ddd179df 100644 (file)
@@ -3,4 +3,5 @@ Description=OpenLDAP
 After=basic.target sockets.target
 
 [Service]
-ExecStart=/usr/sbin/slapd -u ldap -h 'ldapi://%2Frun%2Fopenldap%2Fldapi'
+Type=forking
+ExecStart=/usr/sbin/slapd -u ldap -h 'ldapi:// ldaps://'
index 1fe23eaec5971d25ff85bbc62b4bbf2ec90942dd..b9eb387bff9a7faa8dffefa4164f09b67ab12c0a 100644 (file)
@@ -1,5 +1,5 @@
 [Socket]
-ListenStream=/run/openldap/ldapi
+ListenStream=/run/ldapi
 
 [Install]
 WantedBy=sockets.target
index d484818cd16595abc34efa20b16d6fb966b58db1..b52e8c7927df5e4442ebe1bdc12094fa5aff6517 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = openssl
-version    = 1.0.1b
-release    = 2
+version    = 1.0.1e
+release    = 1
 
 maintainer = Michael Tremer <michael.tremer@ipfire.org>
 groups     = System/Libraries
@@ -34,6 +34,9 @@ build
        export RPM_OPT_FLAGS = %{CFLAGS}
 
        prepare_cmds
+               sed -e 's/SHLIB_VERSION_NUMBER "1.0.0"/SHLIB_VERSION_NUMBER "%{version}"/' \
+                       -i crypto/opensslv.h
+
                find crypto/ -name Makefile -exec \
                        sed 's/^ASFLAGS=/&-Wa,--noexecstack /' -i {} \;
 
diff --git a/openssl/patches/openssl-0.9.8j-env-nozlib.patch b/openssl/patches/openssl-0.9.8j-env-nozlib.patch
deleted file mode 100644 (file)
index 65af5a8..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-Do not implicitly load the zlib support if OPENSSL_NO_DEFAULT_ZLIB is set.
-diff -up openssl-0.9.8j/ssl/ssl_ciph.c.env-nozlib openssl-0.9.8j/ssl/ssl_ciph.c
---- openssl-0.9.8j/ssl/ssl_ciph.c.env-nozlib   2009-01-05 15:43:07.000000000 +0100
-+++ openssl-0.9.8j/ssl/ssl_ciph.c      2009-01-14 17:47:46.000000000 +0100
-@@ -287,7 +287,7 @@ static void load_builtin_compressions(vo
-                       MemCheck_off();
-                       ssl_comp_methods=sk_SSL_COMP_new(sk_comp_cmp);
--                      if (ssl_comp_methods != NULL)
-+                      if (ssl_comp_methods != NULL && getenv("OPENSSL_NO_DEFAULT_ZLIB") == NULL)
-                               {
-                               comp=(SSL_COMP *)OPENSSL_malloc(sizeof(SSL_COMP));
-                               if (comp != NULL)
diff --git a/openssl/patches/openssl-1.0.0-fips-pkcs8.patch b/openssl/patches/openssl-1.0.0-fips-pkcs8.patch
deleted file mode 100644 (file)
index dd7e36a..0000000
+++ /dev/null
@@ -1,189 +0,0 @@
-diff -up openssl-1.0.0/crypto/pem/pem_all.c.pkcs8 openssl-1.0.0/crypto/pem/pem_all.c
---- openssl-1.0.0/crypto/pem/pem_all.c.pkcs8   2006-11-06 20:53:37.000000000 +0100
-+++ openssl-1.0.0/crypto/pem/pem_all.c 2012-04-26 17:17:35.765317652 +0200
-@@ -147,7 +147,37 @@ IMPLEMENT_PEM_rw(PKCS7, PKCS7, PEM_STRIN
- IMPLEMENT_PEM_rw(NETSCAPE_CERT_SEQUENCE, NETSCAPE_CERT_SEQUENCE,
-                                       PEM_STRING_X509, NETSCAPE_CERT_SEQUENCE)
-+#ifdef OPENSSL_FIPS
-+static int fips_PEM_write_bio_PrivateKey(BIO *bp, EVP_PKEY *x, const EVP_CIPHER *enc,
-+                                               unsigned char *kstr, int klen,
-+                                               pem_password_cb *cb, void *u)
-+      {
-+              if (FIPS_mode())
-+                      return PEM_write_bio_PKCS8PrivateKey(bp, x, enc,
-+                                              (char *)kstr, klen, cb, u);
-+              else
-+                      return PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,
-+                ((x->type == EVP_PKEY_DSA)?PEM_STRING_DSA:(x->type == EVP_PKEY_RSA)?PEM_STRING_RSA:PEM_STRING_ECPRIVATEKEY),
-+                        bp,x,enc,kstr,klen,cb,u);
-+      }
-+
-+#ifndef OPENSSL_NO_FP_API
-+static int fips_PEM_write_PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc,
-+                                               unsigned char *kstr, int klen,
-+                                               pem_password_cb *cb, void *u)
-+      {
-+              if (FIPS_mode())
-+                      return PEM_write_PKCS8PrivateKey(fp, x, enc,
-+                                              (char *)kstr, klen, cb, u);
-+              else
-+                      return PEM_ASN1_write((i2d_of_void *)i2d_PrivateKey,
-+                ((x->type == EVP_PKEY_DSA)?PEM_STRING_DSA:(x->type == EVP_PKEY_RSA)?PEM_STRING_RSA:PEM_STRING_ECPRIVATEKEY),
-+                        fp,x,enc,kstr,klen,cb,u);
-+      }
-+#endif
-+
-+#endif
- #ifndef OPENSSL_NO_RSA
-@@ -193,7 +223,49 @@ RSA *PEM_read_RSAPrivateKey(FILE *fp, RS
- #endif
-+#ifdef OPENSSL_FIPS
-+
-+int PEM_write_bio_RSAPrivateKey(BIO *bp, RSA *x, const EVP_CIPHER *enc,
-+                                               unsigned char *kstr, int klen,
-+                                               pem_password_cb *cb, void *u)
-+{
-+      EVP_PKEY *k;
-+      int ret;
-+      k = EVP_PKEY_new();
-+      if (!k)
-+              return 0;
-+      EVP_PKEY_set1_RSA(k, x);
-+
-+      ret = fips_PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u);
-+      EVP_PKEY_free(k);
-+      return ret;
-+}
-+
-+#ifndef OPENSSL_NO_FP_API
-+int PEM_write_RSAPrivateKey(FILE *fp, RSA *x, const EVP_CIPHER *enc,
-+                                               unsigned char *kstr, int klen,
-+                                               pem_password_cb *cb, void *u)
-+{
-+      EVP_PKEY *k;
-+      int ret;
-+      k = EVP_PKEY_new();
-+      if (!k)
-+              return 0;
-+
-+      EVP_PKEY_set1_RSA(k, x);
-+
-+      ret = fips_PEM_write_PrivateKey(fp, k, enc, kstr, klen, cb, u);
-+      EVP_PKEY_free(k);
-+      return ret;
-+}
-+#endif
-+
-+#else
-+
- IMPLEMENT_PEM_write_cb_const(RSAPrivateKey, RSA, PEM_STRING_RSA, RSAPrivateKey)
-+
-+#endif
-+
- IMPLEMENT_PEM_rw_const(RSAPublicKey, RSA, PEM_STRING_RSA_PUBLIC, RSAPublicKey)
- IMPLEMENT_PEM_rw(RSA_PUBKEY, RSA, PEM_STRING_PUBLIC, RSA_PUBKEY)
-@@ -223,7 +295,47 @@ DSA *PEM_read_bio_DSAPrivateKey(BIO *bp,
-       return pkey_get_dsa(pktmp, dsa);        /* will free pktmp */
- }
-+#ifdef OPENSSL_FIPS
-+
-+int PEM_write_bio_DSAPrivateKey(BIO *bp, DSA *x, const EVP_CIPHER *enc,
-+                                               unsigned char *kstr, int klen,
-+                                               pem_password_cb *cb, void *u)
-+{
-+      EVP_PKEY *k;
-+      int ret;
-+      k = EVP_PKEY_new();
-+      if (!k)
-+              return 0;
-+      EVP_PKEY_set1_DSA(k, x);
-+
-+      ret = fips_PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u);
-+      EVP_PKEY_free(k);
-+      return ret;
-+}
-+
-+#ifndef OPENSSL_NO_FP_API
-+int PEM_write_DSAPrivateKey(FILE *fp, DSA *x, const EVP_CIPHER *enc,
-+                                               unsigned char *kstr, int klen,
-+                                               pem_password_cb *cb, void *u)
-+{
-+      EVP_PKEY *k;
-+      int ret;
-+      k = EVP_PKEY_new();
-+      if (!k)
-+              return 0;
-+      EVP_PKEY_set1_DSA(k, x);
-+      ret = fips_PEM_write_PrivateKey(fp, k, enc, kstr, klen, cb, u);
-+      EVP_PKEY_free(k);
-+      return ret;
-+}
-+#endif
-+
-+#else
-+
- IMPLEMENT_PEM_write_cb_const(DSAPrivateKey, DSA, PEM_STRING_DSA, DSAPrivateKey)
-+
-+#endif
-+
- IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY)
- #ifndef OPENSSL_NO_FP_API
-@@ -269,8 +381,49 @@ EC_KEY *PEM_read_bio_ECPrivateKey(BIO *b
- IMPLEMENT_PEM_rw_const(ECPKParameters, EC_GROUP, PEM_STRING_ECPARAMETERS, ECPKParameters)
-+
-+
-+#ifdef OPENSSL_FIPS
-+
-+int PEM_write_bio_ECPrivateKey(BIO *bp, EC_KEY *x, const EVP_CIPHER *enc,
-+                                               unsigned char *kstr, int klen,
-+                                               pem_password_cb *cb, void *u)
-+{
-+      EVP_PKEY *k;
-+      int ret;
-+      k = EVP_PKEY_new();
-+      if (!k)
-+              return 0;
-+      EVP_PKEY_set1_EC_KEY(k, x);
-+
-+      ret = fips_PEM_write_bio_PrivateKey(bp, k, enc, kstr, klen, cb, u);
-+      EVP_PKEY_free(k);
-+      return ret;
-+}
-+
-+#ifndef OPENSSL_NO_FP_API
-+int PEM_write_ECPrivateKey(FILE *fp, EC_KEY *x, const EVP_CIPHER *enc,
-+                                               unsigned char *kstr, int klen,
-+                                               pem_password_cb *cb, void *u)
-+{
-+      EVP_PKEY *k;
-+      int ret;
-+      k = EVP_PKEY_new();
-+      if (!k)
-+              return 0;
-+      EVP_PKEY_set1_EC_KEY(k, x);
-+      ret = fips_PEM_write_PrivateKey(fp, k, enc, kstr, klen, cb, u);
-+      EVP_PKEY_free(k);
-+      return ret;
-+}
-+#endif
-+
-+#else
-+
- IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, ECPrivateKey)
-+#endif
-+
- IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY)
- #ifndef OPENSSL_NO_FP_API
index 8acd0ae356c9fe638fdb8df88a30738c249c4c66..831aa61a6b2787a5fcf3dbeecd7d16e4ef903e96 100644 (file)
@@ -18,18 +18,6 @@ diff -up openssl-1.0.1/crypto/cversion.c.version openssl-1.0.1/crypto/cversion.c
  
 +__asm__(".symver _original_SSLeay,SSLeay@");
 +__asm__(".symver _current_SSLeay,SSLeay@@OPENSSL_1.0.1");
-diff -up openssl-1.0.1/crypto/opensslv.h.version openssl-1.0.1/crypto/opensslv.h
---- openssl-1.0.1/crypto/opensslv.h.version    2012-03-14 20:58:19.914337879 +0100
-+++ openssl-1.0.1/crypto/opensslv.h    2012-03-14 20:58:20.630352536 +0100
-@@ -83,7 +83,7 @@
-  * should only keep the versions that are binary compatible with the current.
-  */
- #define SHLIB_VERSION_HISTORY ""
--#define SHLIB_VERSION_NUMBER "1.0.0"
-+#define SHLIB_VERSION_NUMBER "1.0.1b"
- #endif /* HEADER_OPENSSLV_H */
 diff -up openssl-1.0.1/Makefile.shared.version openssl-1.0.1/Makefile.shared
 --- openssl-1.0.1/Makefile.shared.version      2012-03-14 20:58:20.553350959 +0100
 +++ openssl-1.0.1/Makefile.shared      2012-03-14 20:58:20.631352556 +0100
diff --git a/openssl/patches/openssl-1.0.1e-backports.patch b/openssl/patches/openssl-1.0.1e-backports.patch
new file mode 100644 (file)
index 0000000..d6b7224
--- /dev/null
@@ -0,0 +1,256 @@
+From 08f8933fa34d242383a1e12d4701acb1855686bf Mon Sep 17 00:00:00 2001
+From: Nick Alcock <nix@esperi.org.uk>
+Date: Fri, 15 Feb 2013 17:44:11 +0000
+Subject: [PATCH] Fix POD errors to stop make install_docs dying with pod2man
+ 2.5.0+
+
+podlators 2.5.0 has switched to dying on POD syntax errors. This means
+that a bunch of long-standing erroneous POD in the openssl documentation
+now leads to fatal errors from pod2man, halting installation.
+
+Unfortunately POD constraints mean that you have to sort numeric lists
+in ascending order if they start with 1: you cannot do 1, 0, 2 even if
+you want 1 to appear first. I've reshuffled such (alas, I wish there
+were a better way but I don't know of one).
+(cherry picked from commit 5cc270774258149235f69e1789b3370f57b0e27b)
+---
+ doc/crypto/X509_STORE_CTX_get_error.pod   |    2 ++
+ doc/ssl/SSL_CTX_set_client_CA_list.pod    |    8 ++++----
+ doc/ssl/SSL_CTX_use_psk_identity_hint.pod |    4 ++++
+ doc/ssl/SSL_accept.pod                    |   10 +++++-----
+ doc/ssl/SSL_connect.pod                   |   10 +++++-----
+ doc/ssl/SSL_do_handshake.pod              |   10 +++++-----
+ doc/ssl/SSL_shutdown.pod                  |   10 +++++-----
+ 7 files changed, 30 insertions(+), 24 deletions(-)
+
+diff --git a/doc/crypto/X509_STORE_CTX_get_error.pod b/doc/crypto/X509_STORE_CTX_get_error.pod
+index a883f6c..60e8332 100644
+--- a/doc/crypto/X509_STORE_CTX_get_error.pod
++++ b/doc/crypto/X509_STORE_CTX_get_error.pod
+@@ -278,6 +278,8 @@ happen if extended CRL checking is enabled.
+ an application specific error. This will never be returned unless explicitly
+ set by an application.
++=back
++
+ =head1 NOTES
+ The above functions should be used instead of directly referencing the fields
+diff --git a/doc/ssl/SSL_CTX_set_client_CA_list.pod b/doc/ssl/SSL_CTX_set_client_CA_list.pod
+index 632b556..5e66133 100644
+--- a/doc/ssl/SSL_CTX_set_client_CA_list.pod
++++ b/doc/ssl/SSL_CTX_set_client_CA_list.pod
+@@ -66,16 +66,16 @@ values:
+ =over 4
+-=item 1
+-
+-The operation succeeded.
+-
+ =item 0
+ A failure while manipulating the STACK_OF(X509_NAME) object occurred or
+ the X509_NAME could not be extracted from B<cacert>. Check the error stack
+ to find out the reason.
++=item 1
++
++The operation succeeded.
++
+ =back
+ =head1 EXAMPLES
+diff --git a/doc/ssl/SSL_CTX_use_psk_identity_hint.pod b/doc/ssl/SSL_CTX_use_psk_identity_hint.pod
+index b80e25b..7e60df5 100644
+--- a/doc/ssl/SSL_CTX_use_psk_identity_hint.pod
++++ b/doc/ssl/SSL_CTX_use_psk_identity_hint.pod
+@@ -81,6 +81,8 @@ SSL_CTX_use_psk_identity_hint() and SSL_use_psk_identity_hint() return
+ Return values from the server callback are interpreted as follows:
++=over 4
++
+ =item > 0
+ PSK identity was found and the server callback has provided the PSK
+@@ -99,4 +101,6 @@ completely.
+ PSK identity was not found. An "unknown_psk_identity" alert message
+ will be sent and the connection setup fails.
++=back
++
+ =cut
+diff --git a/doc/ssl/SSL_accept.pod b/doc/ssl/SSL_accept.pod
+index cc724c0..b1c34d1 100644
+--- a/doc/ssl/SSL_accept.pod
++++ b/doc/ssl/SSL_accept.pod
+@@ -44,17 +44,17 @@ The following return values can occur:
+ =over 4
+-=item 1
+-
+-The TLS/SSL handshake was successfully completed, a TLS/SSL connection has been
+-established.
+-
+ =item 0
+ The TLS/SSL handshake was not successful but was shut down controlled and
+ by the specifications of the TLS/SSL protocol. Call SSL_get_error() with the
+ return value B<ret> to find out the reason.
++=item 1
++
++The TLS/SSL handshake was successfully completed, a TLS/SSL connection has been
++established.
++
+ =item E<lt>0
+ The TLS/SSL handshake was not successful because a fatal error occurred either
+diff --git a/doc/ssl/SSL_connect.pod b/doc/ssl/SSL_connect.pod
+index cc56ebb..946ca89 100644
+--- a/doc/ssl/SSL_connect.pod
++++ b/doc/ssl/SSL_connect.pod
+@@ -41,17 +41,17 @@ The following return values can occur:
+ =over 4
+-=item 1
+-
+-The TLS/SSL handshake was successfully completed, a TLS/SSL connection has been
+-established.
+-
+ =item 0
+ The TLS/SSL handshake was not successful but was shut down controlled and
+ by the specifications of the TLS/SSL protocol. Call SSL_get_error() with the
+ return value B<ret> to find out the reason.
++=item 1
++
++The TLS/SSL handshake was successfully completed, a TLS/SSL connection has been
++established.
++
+ =item E<lt>0
+ The TLS/SSL handshake was not successful, because a fatal error occurred either
+diff --git a/doc/ssl/SSL_do_handshake.pod b/doc/ssl/SSL_do_handshake.pod
+index 2435764..7f8cf24 100644
+--- a/doc/ssl/SSL_do_handshake.pod
++++ b/doc/ssl/SSL_do_handshake.pod
+@@ -45,17 +45,17 @@ The following return values can occur:
+ =over 4
+-=item 1
+-
+-The TLS/SSL handshake was successfully completed, a TLS/SSL connection has been
+-established.
+-
+ =item 0
+ The TLS/SSL handshake was not successful but was shut down controlled and
+ by the specifications of the TLS/SSL protocol. Call SSL_get_error() with the
+ return value B<ret> to find out the reason.
++=item 1
++
++The TLS/SSL handshake was successfully completed, a TLS/SSL connection has been
++established.
++
+ =item E<lt>0
+ The TLS/SSL handshake was not successful because a fatal error occurred either
+diff --git a/doc/ssl/SSL_shutdown.pod b/doc/ssl/SSL_shutdown.pod
+index 89911ac..42a89b7 100644
+--- a/doc/ssl/SSL_shutdown.pod
++++ b/doc/ssl/SSL_shutdown.pod
+@@ -92,11 +92,6 @@ The following return values can occur:
+ =over 4
+-=item 1
+-
+-The shutdown was successfully completed. The "close notify" alert was sent
+-and the peer's "close notify" alert was received.
+-
+ =item 0
+ The shutdown is not yet finished. Call SSL_shutdown() for a second time,
+@@ -104,6 +99,11 @@ if a bidirectional shutdown shall be performed.
+ The output of L<SSL_get_error(3)|SSL_get_error(3)> may be misleading, as an
+ erroneous SSL_ERROR_SYSCALL may be flagged even though no error occurred.
++=item 1
++
++The shutdown was successfully completed. The "close notify" alert was sent
++and the peer's "close notify" alert was received.
++
+ =item -1
+ The shutdown was not successful because a fatal error occurred either
+-- 
+1.7.9.5
+
+From 147dbb2fe3bead7a10e2f280261b661ce7af7adc Mon Sep 17 00:00:00 2001
+From: "Dr. Stephen Henson" <steve@openssl.org>
+Date: Mon, 11 Feb 2013 18:24:03 +0000
+Subject: [PATCH] Fix for SSL_get_certificate
+
+Now we set the current certificate to the one used by a server
+there is no need to call ssl_get_server_send_cert which will
+fail if we haven't sent a certificate yet.
+---
+ ssl/ssl_lib.c |    4 +---
+ 1 file changed, 1 insertion(+), 3 deletions(-)
+
+diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c
+index 14d143d..ff5a85a 100644
+--- a/ssl/ssl_lib.c
++++ b/ssl/ssl_lib.c
+@@ -2792,9 +2792,7 @@ void ssl_clear_cipher_ctx(SSL *s)
+ /* Fix this function so that it takes an optional type parameter */
+ X509 *SSL_get_certificate(const SSL *s)
+       {
+-      if (s->server)
+-              return(ssl_get_server_send_cert(s));
+-      else if (s->cert != NULL)
++      if (s->cert != NULL)
+               return(s->cert->key->x509);
+       else
+               return(NULL);
+-- 
+1.7.9.5
+
+From 9fe4603b8245425a4c46986ed000fca054231253 Mon Sep 17 00:00:00 2001
+From: David Woodhouse <dwmw2@infradead.org>
+Date: Tue, 12 Feb 2013 14:55:32 +0000
+Subject: [PATCH] Check DTLS_BAD_VER for version number.
+
+The version check for DTLS1_VERSION was redundant as
+DTLS1_VERSION > TLS1_1_VERSION, however we do need to
+check for DTLS1_BAD_VER for compatibility.
+
+PR:2984
+(cherry picked from commit d980abb22e22661e98e5cee33d760ab0c7584ecc)
+---
+ ssl/s3_cbc.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ssl/s3_cbc.c b/ssl/s3_cbc.c
+index 02edf3f..443a31e 100644
+--- a/ssl/s3_cbc.c
++++ b/ssl/s3_cbc.c
+@@ -148,7 +148,7 @@ int tls1_cbc_remove_padding(const SSL* s,
+       unsigned padding_length, good, to_check, i;
+       const unsigned overhead = 1 /* padding length byte */ + mac_size;
+       /* Check if version requires explicit IV */
+-      if (s->version >= TLS1_1_VERSION || s->version == DTLS1_VERSION)
++      if (s->version >= TLS1_1_VERSION || s->version == DTLS1_BAD_VER)
+               {
+               /* These lengths are all public so we can test them in
+                * non-constant time.
+-- 
+1.7.9.5
+
diff --git a/openssl/patches/openssl-1.0.1e-env-zlib.patch b/openssl/patches/openssl-1.0.1e-env-zlib.patch
new file mode 100644 (file)
index 0000000..b702acb
--- /dev/null
@@ -0,0 +1,38 @@
+diff -up openssl-1.0.1e/doc/ssl/SSL_COMP_add_compression_method.pod.env-zlib openssl-1.0.1e/doc/ssl/SSL_COMP_add_compression_method.pod
+--- openssl-1.0.1e/doc/ssl/SSL_COMP_add_compression_method.pod.env-zlib        2013-02-11 16:02:48.000000000 +0100
++++ openssl-1.0.1e/doc/ssl/SSL_COMP_add_compression_method.pod 2013-02-19 16:32:51.000000000 +0100
+@@ -47,6 +47,13 @@ Once the identities of the compression m
+ been standardized, the compression API will most likely be changed. Using
+ it in the current state is not recommended.
++It is also not recommended to use compression if data transfered contain
++untrusted parts that can be manipulated by an attacker as he could then
++get information about the encrypted data. See the CRIME attack. For
++that reason the default loading of the zlib compression method is
++disabled and enabled only if the environment variable B<OPENSSL_DEFAULT_ZLIB>
++is present during the library initialization.
++
+ =head1 RETURN VALUES
+ SSL_COMP_add_compression_method() may return the following values:
+diff -up openssl-1.0.1e/ssl/ssl_ciph.c.env-zlib openssl-1.0.1e/ssl/ssl_ciph.c
+--- openssl-1.0.1e/ssl/ssl_ciph.c.env-zlib     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/ssl/ssl_ciph.c      2013-02-19 16:37:36.163545085 +0100
+@@ -140,6 +140,8 @@
+  * OTHERWISE.
+  */
++/* for secure_getenv */
++#define _GNU_SOURCE
+ #include <stdio.h>
+ #include <openssl/objects.h>
+ #ifndef OPENSSL_NO_COMP
+@@ -455,7 +457,7 @@ static void load_builtin_compressions(vo
+                       MemCheck_off();
+                       ssl_comp_methods=sk_SSL_COMP_new(sk_comp_cmp);
+-                      if (ssl_comp_methods != NULL)
++                      if (ssl_comp_methods != NULL && secure_getenv("OPENSSL_DEFAULT_ZLIB") != NULL)
+                               {
+                               comp=(SSL_COMP *)OPENSSL_malloc(sizeof(SSL_COMP));
+                               if (comp != NULL)
similarity index 95%
rename from openssl/patches/openssl-1.0.1b-fips.patch
rename to openssl/patches/openssl-1.0.1e-fips.patch
index 96037a78f86434453e93de484c6dc660b6a3102d..01757546ecd11fae003c01c46040a2004973f7b4 100644 (file)
@@ -1,6 +1,6 @@
-diff -up openssl-1.0.1b/apps/pkcs12.c.fips openssl-1.0.1b/apps/pkcs12.c
---- openssl-1.0.1b/apps/pkcs12.c.fips  2011-03-13 19:20:23.000000000 +0100
-+++ openssl-1.0.1b/apps/pkcs12.c       2012-04-26 18:00:51.379768840 +0200
+diff -up openssl-1.0.1e/apps/pkcs12.c.fips openssl-1.0.1e/apps/pkcs12.c
+--- openssl-1.0.1e/apps/pkcs12.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/apps/pkcs12.c       2013-02-19 12:47:33.714118364 +0100
 @@ -67,6 +67,9 @@
  #include <openssl/err.h>
  #include <openssl/pem.h>
@@ -23,9 +23,9 @@ diff -up openssl-1.0.1b/apps/pkcs12.c.fips openssl-1.0.1b/apps/pkcs12.c
      enc = EVP_des_ede3_cbc();
      if (bio_err == NULL ) bio_err = BIO_new_fp (stderr, BIO_NOCLOSE);
  
-diff -up openssl-1.0.1b/apps/speed.c.fips openssl-1.0.1b/apps/speed.c
---- openssl-1.0.1b/apps/speed.c.fips   2012-01-11 22:49:16.000000000 +0100
-+++ openssl-1.0.1b/apps/speed.c        2012-04-26 18:00:51.380768861 +0200
+diff -up openssl-1.0.1e/apps/speed.c.fips openssl-1.0.1e/apps/speed.c
+--- openssl-1.0.1e/apps/speed.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/apps/speed.c        2013-02-19 12:47:33.715118384 +0100
 @@ -195,7 +195,6 @@
  #ifdef OPENSSL_DOING_MAKEDEPEND
  #undef AES_set_encrypt_key
@@ -123,10 +123,10 @@ diff -up openssl-1.0.1b/apps/speed.c.fips openssl-1.0.1b/apps/speed.c
  #endif
  #ifndef OPENSSL_NO_RSA
        memset(rsa_c,0,sizeof(rsa_c));
-diff -up openssl-1.0.1b/Configure.fips openssl-1.0.1b/Configure
---- openssl-1.0.1b/Configure.fips      2012-04-26 18:00:51.341768009 +0200
-+++ openssl-1.0.1b/Configure   2012-04-26 18:00:51.381768883 +0200
-@@ -993,11 +993,6 @@ if (defined($disabled{"md5"}) || defined
+diff -up openssl-1.0.1e/Configure.fips openssl-1.0.1e/Configure
+--- openssl-1.0.1e/Configure.fips      2013-02-19 12:47:33.670117470 +0100
++++ openssl-1.0.1e/Configure   2013-02-19 12:47:33.716118405 +0100
+@@ -995,11 +995,6 @@ if (defined($disabled{"md5"}) || defined
        $disabled{"ssl2"} = "forced";
        }
  
@@ -138,7 +138,7 @@ diff -up openssl-1.0.1b/Configure.fips openssl-1.0.1b/Configure
  # RSAX ENGINE sets default non-FIPS RSA method.
  if ($fips)
        {
-@@ -1472,7 +1467,6 @@ $cflags.=" -DOPENSSL_BN_ASM_GF2m" if ($b
+@@ -1474,7 +1469,6 @@ $cflags.=" -DOPENSSL_BN_ASM_GF2m" if ($b
  if ($fips)
        {
        $openssl_other_defines.="#define OPENSSL_FIPS\n";
@@ -146,7 +146,7 @@ diff -up openssl-1.0.1b/Configure.fips openssl-1.0.1b/Configure
        }
  
  $cpuid_obj="mem_clr.o"        unless ($cpuid_obj =~ /\.o$/);
-@@ -1659,9 +1653,12 @@ while (<IN>)
+@@ -1661,9 +1655,12 @@ while (<IN>)
  
        s/^FIPSDIR=.*/FIPSDIR=$fipsdir/;
        s/^FIPSLIBDIR=.*/FIPSLIBDIR=$fipslibdir/;
@@ -160,9 +160,9 @@ diff -up openssl-1.0.1b/Configure.fips openssl-1.0.1b/Configure
        s/^SHLIB_TARGET=.*/SHLIB_TARGET=$shared_target/;
        s/^SHLIB_MARK=.*/SHLIB_MARK=$shared_mark/;
        s/^SHARED_LIBS=.*/SHARED_LIBS=\$(SHARED_CRYPTO) \$(SHARED_SSL)/ if (!$no_shared);
-diff -up openssl-1.0.1b/crypto/aes/aes_misc.c.fips openssl-1.0.1b/crypto/aes/aes_misc.c
---- openssl-1.0.1b/crypto/aes/aes_misc.c.fips  2011-06-05 19:36:33.000000000 +0200
-+++ openssl-1.0.1b/crypto/aes/aes_misc.c       2012-04-26 18:00:51.382768906 +0200
+diff -up openssl-1.0.1e/crypto/aes/aes_misc.c.fips openssl-1.0.1e/crypto/aes/aes_misc.c
+--- openssl-1.0.1e/crypto/aes/aes_misc.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/aes/aes_misc.c       2013-02-19 12:47:33.717118426 +0100
 @@ -69,17 +69,11 @@ const char *AES_options(void) {
  int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
                        AES_KEY *key)
@@ -181,9 +181,9 @@ diff -up openssl-1.0.1b/crypto/aes/aes_misc.c.fips openssl-1.0.1b/crypto/aes/aes
 -#endif
        return private_AES_set_decrypt_key(userKey, bits, key);
        }
-diff -up openssl-1.0.1b/crypto/cmac/cmac.c.fips openssl-1.0.1b/crypto/cmac/cmac.c
---- openssl-1.0.1b/crypto/cmac/cmac.c.fips     2012-04-11 17:11:16.000000000 +0200
-+++ openssl-1.0.1b/crypto/cmac/cmac.c  2012-04-26 18:00:51.382768906 +0200
+diff -up openssl-1.0.1e/crypto/cmac/cmac.c.fips openssl-1.0.1e/crypto/cmac/cmac.c
+--- openssl-1.0.1e/crypto/cmac/cmac.c.fips     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/cmac/cmac.c  2013-02-19 12:47:33.717118426 +0100
 @@ -107,13 +107,6 @@ CMAC_CTX *CMAC_CTX_new(void)
  
  void CMAC_CTX_cleanup(CMAC_CTX *ctx)
@@ -232,9 +232,9 @@ diff -up openssl-1.0.1b/crypto/cmac/cmac.c.fips openssl-1.0.1b/crypto/cmac/cmac.
        if (ctx->nlast_block == -1)
                return 0;
        bl = EVP_CIPHER_CTX_block_size(&ctx->cctx);
-diff -up openssl-1.0.1b/crypto/crypto.h.fips openssl-1.0.1b/crypto/crypto.h
---- openssl-1.0.1b/crypto/crypto.h.fips        2012-04-26 18:00:51.094762613 +0200
-+++ openssl-1.0.1b/crypto/crypto.h     2012-04-26 18:00:51.382768906 +0200
+diff -up openssl-1.0.1e/crypto/crypto.h.fips openssl-1.0.1e/crypto/crypto.h
+--- openssl-1.0.1e/crypto/crypto.h.fips        2013-02-19 12:47:33.444112876 +0100
++++ openssl-1.0.1e/crypto/crypto.h     2013-02-19 12:47:33.718118447 +0100
 @@ -553,24 +553,29 @@ int FIPS_mode_set(int r);
  void OPENSSL_init(void);
  
@@ -270,7 +270,7 @@ diff -up openssl-1.0.1b/crypto/crypto.h.fips openssl-1.0.1b/crypto/crypto.h
  #define fips_cipher_abort(alg) while(0)
  #endif
  
-@@ -580,6 +585,9 @@ void OPENSSL_init(void);
+@@ -587,6 +592,9 @@ int CRYPTO_memcmp(const void *a, const v
   */
  void ERR_load_CRYPTO_strings(void);
  
@@ -280,9 +280,9 @@ diff -up openssl-1.0.1b/crypto/crypto.h.fips openssl-1.0.1b/crypto/crypto.h
  /* Error codes for the CRYPTO functions. */
  
  /* Function codes. */
-diff -up openssl-1.0.1b/crypto/des/des.h.fips openssl-1.0.1b/crypto/des/des.h
---- openssl-1.0.1b/crypto/des/des.h.fips       2012-04-26 18:00:51.173764340 +0200
-+++ openssl-1.0.1b/crypto/des/des.h    2012-04-26 18:00:51.383768928 +0200
+diff -up openssl-1.0.1e/crypto/des/des.h.fips openssl-1.0.1e/crypto/des/des.h
+--- openssl-1.0.1e/crypto/des/des.h.fips       2013-02-19 12:47:33.516114340 +0100
++++ openssl-1.0.1e/crypto/des/des.h    2013-02-19 12:47:33.718118447 +0100
 @@ -224,9 +224,6 @@ int DES_set_key(const_DES_cblock *key,DE
  int DES_key_sched(const_DES_cblock *key,DES_key_schedule *schedule);
  int DES_set_key_checked(const_DES_cblock *key,DES_key_schedule *schedule);
@@ -293,10 +293,10 @@ diff -up openssl-1.0.1b/crypto/des/des.h.fips openssl-1.0.1b/crypto/des/des.h
  void DES_string_to_key(const char *str,DES_cblock *key);
  void DES_string_to_2keys(const char *str,DES_cblock *key1,DES_cblock *key2);
  void DES_cfb64_encrypt(const unsigned char *in,unsigned char *out,long length,
-diff -up openssl-1.0.1b/crypto/des/set_key.c.fips openssl-1.0.1b/crypto/des/set_key.c
---- openssl-1.0.1b/crypto/des/set_key.c.fips   2011-06-01 18:54:04.000000000 +0200
-+++ openssl-1.0.1b/crypto/des/set_key.c        2012-04-26 18:00:51.383768928 +0200
-@@ -337,13 +337,6 @@ int DES_set_key_checked(const_DES_cblock
+diff -up openssl-1.0.1e/crypto/des/set_key.c.fips openssl-1.0.1e/crypto/des/set_key.c
+--- openssl-1.0.1e/crypto/des/set_key.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/des/set_key.c        2013-02-19 12:47:33.719118468 +0100
+@@ -336,13 +336,6 @@ int DES_set_key_checked(const_DES_cblock
        }
  
  void DES_set_key_unchecked(const_DES_cblock *key, DES_key_schedule *schedule)
@@ -310,9 +310,9 @@ diff -up openssl-1.0.1b/crypto/des/set_key.c.fips openssl-1.0.1b/crypto/des/set_
        {
        static const int shifts2[16]={0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0};
        register DES_LONG c,d,t,s,t2;
-diff -up openssl-1.0.1b/crypto/dh/dh_gen.c.fips openssl-1.0.1b/crypto/dh/dh_gen.c
---- openssl-1.0.1b/crypto/dh/dh_gen.c.fips     2011-06-09 17:21:46.000000000 +0200
-+++ openssl-1.0.1b/crypto/dh/dh_gen.c  2012-04-26 18:00:51.383768928 +0200
+diff -up openssl-1.0.1e/crypto/dh/dh_gen.c.fips openssl-1.0.1e/crypto/dh/dh_gen.c
+--- openssl-1.0.1e/crypto/dh/dh_gen.c.fips     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dh/dh_gen.c  2013-02-19 12:47:33.719118468 +0100
 @@ -84,11 +84,6 @@ int DH_generate_parameters_ex(DH *ret, i
  #endif
        if(ret->meth->generate_params)
@@ -346,9 +346,9 @@ diff -up openssl-1.0.1b/crypto/dh/dh_gen.c.fips openssl-1.0.1b/crypto/dh/dh_gen.
        ctx=BN_CTX_new();
        if (ctx == NULL) goto err;
        BN_CTX_start(ctx);
-diff -up openssl-1.0.1b/crypto/dh/dh.h.fips openssl-1.0.1b/crypto/dh/dh.h
---- openssl-1.0.1b/crypto/dh/dh.h.fips 2012-04-26 18:00:51.033761281 +0200
-+++ openssl-1.0.1b/crypto/dh/dh.h      2012-04-26 18:00:51.384768950 +0200
+diff -up openssl-1.0.1e/crypto/dh/dh.h.fips openssl-1.0.1e/crypto/dh/dh.h
+--- openssl-1.0.1e/crypto/dh/dh.h.fips 2013-02-19 12:47:33.388111739 +0100
++++ openssl-1.0.1e/crypto/dh/dh.h      2013-02-19 12:47:33.719118468 +0100
 @@ -77,6 +77,8 @@
  # define OPENSSL_DH_MAX_MODULUS_BITS  10000
  #endif
@@ -358,9 +358,9 @@ diff -up openssl-1.0.1b/crypto/dh/dh.h.fips openssl-1.0.1b/crypto/dh/dh.h
  #define DH_FLAG_CACHE_MONT_P     0x01
  #define DH_FLAG_NO_EXP_CONSTTIME 0x02 /* new with 0.9.7h; the built-in DH
                                         * implementation now uses constant time
-diff -up openssl-1.0.1b/crypto/dh/dh_key.c.fips openssl-1.0.1b/crypto/dh/dh_key.c
---- openssl-1.0.1b/crypto/dh/dh_key.c.fips     2011-11-14 15:16:09.000000000 +0100
-+++ openssl-1.0.1b/crypto/dh/dh_key.c  2012-04-26 18:00:51.384768950 +0200
+diff -up openssl-1.0.1e/crypto/dh/dh_key.c.fips openssl-1.0.1e/crypto/dh/dh_key.c
+--- openssl-1.0.1e/crypto/dh/dh_key.c.fips     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dh/dh_key.c  2013-02-19 12:47:33.720118488 +0100
 @@ -61,6 +61,9 @@
  #include <openssl/bn.h>
  #include <openssl/rand.h>
@@ -419,9 +419,9 @@ diff -up openssl-1.0.1b/crypto/dh/dh_key.c.fips openssl-1.0.1b/crypto/dh/dh_key.
        dh->flags |= DH_FLAG_CACHE_MONT_P;
        return(1);
        }
-diff -up openssl-1.0.1b/crypto/dh/dh_lib.c.fips openssl-1.0.1b/crypto/dh/dh_lib.c
---- openssl-1.0.1b/crypto/dh/dh_lib.c.fips     2011-06-20 21:41:11.000000000 +0200
-+++ openssl-1.0.1b/crypto/dh/dh_lib.c  2012-04-26 18:00:51.384768950 +0200
+diff -up openssl-1.0.1e/crypto/dh/dh_lib.c.fips openssl-1.0.1e/crypto/dh/dh_lib.c
+--- openssl-1.0.1e/crypto/dh/dh_lib.c.fips     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dh/dh_lib.c  2013-02-19 12:47:33.720118488 +0100
 @@ -81,14 +81,7 @@ const DH_METHOD *DH_get_default_method(v
        {
        if(!default_DH_method)
@@ -437,9 +437,9 @@ diff -up openssl-1.0.1b/crypto/dh/dh_lib.c.fips openssl-1.0.1b/crypto/dh/dh_lib.
                }
        return default_DH_method;
        }
-diff -up openssl-1.0.1b/crypto/dsa/dsa_err.c.fips openssl-1.0.1b/crypto/dsa/dsa_err.c
---- openssl-1.0.1b/crypto/dsa/dsa_err.c.fips   2011-10-10 01:13:49.000000000 +0200
-+++ openssl-1.0.1b/crypto/dsa/dsa_err.c        2012-04-26 18:00:51.385768972 +0200
+diff -up openssl-1.0.1e/crypto/dsa/dsa_err.c.fips openssl-1.0.1e/crypto/dsa/dsa_err.c
+--- openssl-1.0.1e/crypto/dsa/dsa_err.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dsa/dsa_err.c        2013-02-19 12:47:33.720118488 +0100
 @@ -74,6 +74,8 @@ static ERR_STRING_DATA DSA_str_functs[]=
  {ERR_FUNC(DSA_F_DO_DSA_PRINT),        "DO_DSA_PRINT"},
  {ERR_FUNC(DSA_F_DSAPARAMS_PRINT),     "DSAparams_print"},
@@ -458,9 +458,9 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_err.c.fips openssl-1.0.1b/crypto/dsa/dsa_
  {ERR_REASON(DSA_R_MISSING_PARAMETERS)    ,"missing parameters"},
  {ERR_REASON(DSA_R_MODULUS_TOO_LARGE)     ,"modulus too large"},
  {ERR_REASON(DSA_R_NEED_NEW_SETUP_VALUES) ,"need new setup values"},
-diff -up openssl-1.0.1b/crypto/dsa/dsa_gen.c.fips openssl-1.0.1b/crypto/dsa/dsa_gen.c
---- openssl-1.0.1b/crypto/dsa/dsa_gen.c.fips   2011-06-09 17:21:46.000000000 +0200
-+++ openssl-1.0.1b/crypto/dsa/dsa_gen.c        2012-04-26 18:00:51.385768972 +0200
+diff -up openssl-1.0.1e/crypto/dsa/dsa_gen.c.fips openssl-1.0.1e/crypto/dsa/dsa_gen.c
+--- openssl-1.0.1e/crypto/dsa/dsa_gen.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dsa/dsa_gen.c        2013-02-19 12:47:33.721118508 +0100
 @@ -85,6 +85,14 @@
  #include <openssl/fips.h>
  #endif
@@ -867,9 +867,9 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_gen.c.fips openssl-1.0.1b/crypto/dsa/dsa_
                }
        if (mont != NULL) BN_MONT_CTX_free(mont);
        return ok;
-diff -up openssl-1.0.1b/crypto/dsa/dsa.h.fips openssl-1.0.1b/crypto/dsa/dsa.h
---- openssl-1.0.1b/crypto/dsa/dsa.h.fips       2012-04-26 18:00:50.840757065 +0200
-+++ openssl-1.0.1b/crypto/dsa/dsa.h    2012-04-26 18:00:51.386768993 +0200
+diff -up openssl-1.0.1e/crypto/dsa/dsa.h.fips openssl-1.0.1e/crypto/dsa/dsa.h
+--- openssl-1.0.1e/crypto/dsa/dsa.h.fips       2013-02-19 12:47:33.205108020 +0100
++++ openssl-1.0.1e/crypto/dsa/dsa.h    2013-02-19 12:47:33.721118508 +0100
 @@ -88,6 +88,8 @@
  # define OPENSSL_DSA_MAX_MODULUS_BITS 10000
  #endif
@@ -930,10 +930,10 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa.h.fips openssl-1.0.1b/crypto/dsa/dsa.h
  #define DSA_R_PARAMETER_ENCODING_ERROR                         105
  
  #ifdef  __cplusplus
-diff -up openssl-1.0.1b/crypto/dsa/dsa_key.c.fips openssl-1.0.1b/crypto/dsa/dsa_key.c
---- openssl-1.0.1b/crypto/dsa/dsa_key.c.fips   2011-06-09 17:21:46.000000000 +0200
-+++ openssl-1.0.1b/crypto/dsa/dsa_key.c        2012-04-26 18:00:51.386768993 +0200
-@@ -66,6 +66,24 @@
+diff -up openssl-1.0.1e/crypto/dsa/dsa_key.c.fips openssl-1.0.1e/crypto/dsa/dsa_key.c
+--- openssl-1.0.1e/crypto/dsa/dsa_key.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dsa/dsa_key.c        2013-02-19 12:47:33.722118528 +0100
+@@ -66,6 +66,35 @@
  
  #ifdef OPENSSL_FIPS
  #include <openssl/fips.h>
@@ -941,24 +941,35 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_key.c.fips openssl-1.0.1b/crypto/dsa/dsa_
 +
 +static int fips_check_dsa(DSA *dsa)
 +      {
-+      EVP_PKEY pk;
++      EVP_PKEY *pk;
 +      unsigned char tbs[] = "DSA Pairwise Check Data";
-+      pk.type = EVP_PKEY_DSA;
-+      pk.pkey.dsa = dsa;
++      int ret = 0;
 +
-+      if (!fips_pkey_signature_test(&pk, tbs, 0, NULL, 0, NULL, 0, NULL))
++      if ((pk=EVP_PKEY_new()) == NULL)
++              goto err;
++
++      EVP_PKEY_set1_DSA(pk, dsa);
++
++      if (fips_pkey_signature_test(pk, tbs, 0, NULL, 0, NULL, 0, NULL))
++              ret = 1;
++
++      err:
++      if (ret == 0)
 +              {
 +              FIPSerr(FIPS_F_FIPS_CHECK_DSA,FIPS_R_PAIRWISE_TEST_FAILED);
 +              fips_set_selftest_fail();
-+              return 0;
 +              }
-+      return 1;
++
++      if (pk)
++              EVP_PKEY_free(pk);
++
++      return ret;
 +      }
 +
  #endif
  
  static int dsa_builtin_keygen(DSA *dsa);
-@@ -82,10 +100,6 @@ int DSA_generate_key(DSA *dsa)
+@@ -82,10 +111,6 @@ int DSA_generate_key(DSA *dsa)
  #endif
        if(dsa->meth->dsa_keygen)
                return dsa->meth->dsa_keygen(dsa);
@@ -969,7 +980,7 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_key.c.fips openssl-1.0.1b/crypto/dsa/dsa_
        return dsa_builtin_keygen(dsa);
        }
  
-@@ -95,6 +109,15 @@ static int dsa_builtin_keygen(DSA *dsa)
+@@ -95,6 +120,15 @@ static int dsa_builtin_keygen(DSA *dsa)
        BN_CTX *ctx=NULL;
        BIGNUM *pub_key=NULL,*priv_key=NULL;
  
@@ -985,7 +996,7 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_key.c.fips openssl-1.0.1b/crypto/dsa/dsa_
        if ((ctx=BN_CTX_new()) == NULL) goto err;
  
        if (dsa->priv_key == NULL)
-@@ -133,6 +156,14 @@ static int dsa_builtin_keygen(DSA *dsa)
+@@ -133,6 +167,14 @@ static int dsa_builtin_keygen(DSA *dsa)
  
        dsa->priv_key=priv_key;
        dsa->pub_key=pub_key;
@@ -1000,9 +1011,9 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_key.c.fips openssl-1.0.1b/crypto/dsa/dsa_
        ok=1;
  
  err:
-diff -up openssl-1.0.1b/crypto/dsa/dsa_lib.c.fips openssl-1.0.1b/crypto/dsa/dsa_lib.c
---- openssl-1.0.1b/crypto/dsa/dsa_lib.c.fips   2011-11-14 15:16:09.000000000 +0100
-+++ openssl-1.0.1b/crypto/dsa/dsa_lib.c        2012-04-26 18:00:51.387769014 +0200
+diff -up openssl-1.0.1e/crypto/dsa/dsa_lib.c.fips openssl-1.0.1e/crypto/dsa/dsa_lib.c
+--- openssl-1.0.1e/crypto/dsa/dsa_lib.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dsa/dsa_lib.c        2013-02-19 12:47:33.722118528 +0100
 @@ -87,14 +87,7 @@ const DSA_METHOD *DSA_get_default_method
        {
        if(!default_DSA_method)
@@ -1018,18 +1029,18 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_lib.c.fips openssl-1.0.1b/crypto/dsa/dsa_
                }
        return default_DSA_method;
        }
-diff -up openssl-1.0.1b/crypto/dsa/dsa_locl.h.fips openssl-1.0.1b/crypto/dsa/dsa_locl.h
---- openssl-1.0.1b/crypto/dsa/dsa_locl.h.fips  2012-04-26 18:00:50.844757152 +0200
-+++ openssl-1.0.1b/crypto/dsa/dsa_locl.h       2012-04-26 18:00:51.387769014 +0200
+diff -up openssl-1.0.1e/crypto/dsa/dsa_locl.h.fips openssl-1.0.1e/crypto/dsa/dsa_locl.h
+--- openssl-1.0.1e/crypto/dsa/dsa_locl.h.fips  2013-02-19 12:47:33.209108100 +0100
++++ openssl-1.0.1e/crypto/dsa/dsa_locl.h       2013-02-19 12:47:33.722118528 +0100
 @@ -56,5 +56,4 @@
  
  int dsa_builtin_paramgen(DSA *ret, size_t bits, size_t qbits,
        const EVP_MD *evpmd, const unsigned char *seed_in, size_t seed_len,
 -      unsigned char *seed_out,
        int *counter_ret, unsigned long *h_ret, BN_GENCB *cb);
-diff -up openssl-1.0.1b/crypto/dsa/dsa_ossl.c.fips openssl-1.0.1b/crypto/dsa/dsa_ossl.c
---- openssl-1.0.1b/crypto/dsa/dsa_ossl.c.fips  2011-02-01 13:53:47.000000000 +0100
-+++ openssl-1.0.1b/crypto/dsa/dsa_ossl.c       2012-04-26 18:00:51.388769035 +0200
+diff -up openssl-1.0.1e/crypto/dsa/dsa_ossl.c.fips openssl-1.0.1e/crypto/dsa/dsa_ossl.c
+--- openssl-1.0.1e/crypto/dsa/dsa_ossl.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dsa/dsa_ossl.c       2013-02-19 12:47:33.723118548 +0100
 @@ -65,6 +65,9 @@
  #include <openssl/dsa.h>
  #include <openssl/rand.h>
@@ -1103,9 +1114,9 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_ossl.c.fips openssl-1.0.1b/crypto/dsa/dsa
        dsa->flags|=DSA_FLAG_CACHE_MONT_P;
        return(1);
  }
-diff -up openssl-1.0.1b/crypto/dsa/dsa_pmeth.c.fips openssl-1.0.1b/crypto/dsa/dsa_pmeth.c
---- openssl-1.0.1b/crypto/dsa/dsa_pmeth.c.fips 2011-06-20 22:05:13.000000000 +0200
-+++ openssl-1.0.1b/crypto/dsa/dsa_pmeth.c      2012-04-26 18:00:51.388769035 +0200
+diff -up openssl-1.0.1e/crypto/dsa/dsa_pmeth.c.fips openssl-1.0.1e/crypto/dsa/dsa_pmeth.c
+--- openssl-1.0.1e/crypto/dsa/dsa_pmeth.c.fips 2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dsa/dsa_pmeth.c      2013-02-19 12:47:33.723118548 +0100
 @@ -255,7 +255,7 @@ static int pkey_dsa_paramgen(EVP_PKEY_CT
        if (!dsa)
                return 0;
@@ -1115,9 +1126,9 @@ diff -up openssl-1.0.1b/crypto/dsa/dsa_pmeth.c.fips openssl-1.0.1b/crypto/dsa/ds
        if (ret)
                EVP_PKEY_assign_DSA(pkey, dsa);
        else
-diff -up openssl-1.0.1b/crypto/dsa/dsatest.c.fips openssl-1.0.1b/crypto/dsa/dsatest.c
---- openssl-1.0.1b/crypto/dsa/dsatest.c.fips   2008-08-06 17:54:11.000000000 +0200
-+++ openssl-1.0.1b/crypto/dsa/dsatest.c        2012-04-26 18:00:51.389769058 +0200
+diff -up openssl-1.0.1e/crypto/dsa/dsatest.c.fips openssl-1.0.1e/crypto/dsa/dsatest.c
+--- openssl-1.0.1e/crypto/dsa/dsatest.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/dsa/dsatest.c        2013-02-19 12:47:33.723118548 +0100
 @@ -96,36 +96,41 @@ static int MS_CALLBACK dsa_cb(int p, int
  /* seed, out_p, out_q, out_g are taken from the updated Appendix 5 to
   * FIPS PUB 186 and also appear in Appendix 5 to FIPS PIB 186-1 */
@@ -1202,9 +1213,9 @@ diff -up openssl-1.0.1b/crypto/dsa/dsatest.c.fips openssl-1.0.1b/crypto/dsa/dsat
                goto end;
                }
        if (h != 2)
-diff -up openssl-1.0.1b/crypto/engine/eng_all.c.fips openssl-1.0.1b/crypto/engine/eng_all.c
---- openssl-1.0.1b/crypto/engine/eng_all.c.fips        2011-08-10 20:53:13.000000000 +0200
-+++ openssl-1.0.1b/crypto/engine/eng_all.c     2012-04-26 18:00:51.389769058 +0200
+diff -up openssl-1.0.1e/crypto/engine/eng_all.c.fips openssl-1.0.1e/crypto/engine/eng_all.c
+--- openssl-1.0.1e/crypto/engine/eng_all.c.fips        2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/engine/eng_all.c     2013-02-19 12:47:33.724118569 +0100
 @@ -58,11 +58,25 @@
  
  #include "cryptlib.h"
@@ -1231,32 +1242,9 @@ diff -up openssl-1.0.1b/crypto/engine/eng_all.c.fips openssl-1.0.1b/crypto/engin
  #if 0
        /* There's no longer any need for an "openssl" ENGINE unless, one day,
         * it is the *only* way for standard builtin implementations to be be
-diff -up openssl-1.0.1b/crypto/err/err_all.c.fips openssl-1.0.1b/crypto/err/err_all.c
---- openssl-1.0.1b/crypto/err/err_all.c.fips   2011-06-21 18:58:10.000000000 +0200
-+++ openssl-1.0.1b/crypto/err/err_all.c        2012-04-26 18:00:51.390769081 +0200
-@@ -96,6 +96,9 @@
- #include <openssl/ocsp.h>
- #include <openssl/err.h>
- #include <openssl/ts.h>
-+#ifdef OPENSSL_FIPS
-+#include <openssl/fips.h>
-+#endif
- #ifndef OPENSSL_NO_CMS
- #include <openssl/cms.h>
- #endif
-@@ -153,6 +156,9 @@ void ERR_load_crypto_strings(void)
- #endif
-       ERR_load_OCSP_strings();
-       ERR_load_UI_strings();
-+#ifdef OPENSSL_FIPS
-+      ERR_load_FIPS_strings();
-+#endif
- #ifndef OPENSSL_NO_CMS
-       ERR_load_CMS_strings();
- #endif
-diff -up openssl-1.0.1b/crypto/evp/c_allc.c.fips openssl-1.0.1b/crypto/evp/c_allc.c
---- openssl-1.0.1b/crypto/evp/c_allc.c.fips    2011-11-14 22:13:35.000000000 +0100
-+++ openssl-1.0.1b/crypto/evp/c_allc.c 2012-04-26 18:00:51.390769081 +0200
+diff -up openssl-1.0.1e/crypto/evp/c_allc.c.fips openssl-1.0.1e/crypto/evp/c_allc.c
+--- openssl-1.0.1e/crypto/evp/c_allc.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/c_allc.c 2013-02-19 12:47:33.725118589 +0100
 @@ -65,6 +65,11 @@
  void OpenSSL_add_all_ciphers(void)
        {
@@ -1330,9 +1318,9 @@ diff -up openssl-1.0.1b/crypto/evp/c_allc.c.fips openssl-1.0.1b/crypto/evp/c_all
 +              }
 +#endif
        }
-diff -up openssl-1.0.1b/crypto/evp/c_alld.c.fips openssl-1.0.1b/crypto/evp/c_alld.c
---- openssl-1.0.1b/crypto/evp/c_alld.c.fips    2009-07-08 10:50:53.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/c_alld.c 2012-04-26 18:00:51.390769081 +0200
+diff -up openssl-1.0.1e/crypto/evp/c_alld.c.fips openssl-1.0.1e/crypto/evp/c_alld.c
+--- openssl-1.0.1e/crypto/evp/c_alld.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/c_alld.c 2013-02-19 12:47:33.725118589 +0100
 @@ -64,6 +64,11 @@
  
  void OpenSSL_add_all_digests(void)
@@ -1378,9 +1366,9 @@ diff -up openssl-1.0.1b/crypto/evp/c_alld.c.fips openssl-1.0.1b/crypto/evp/c_all
 +              }
 +#endif
        }
-diff -up openssl-1.0.1b/crypto/evp/digest.c.fips openssl-1.0.1b/crypto/evp/digest.c
---- openssl-1.0.1b/crypto/evp/digest.c.fips    2011-05-29 17:55:13.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/digest.c 2012-04-26 18:00:51.391769103 +0200
+diff -up openssl-1.0.1e/crypto/evp/digest.c.fips openssl-1.0.1e/crypto/evp/digest.c
+--- openssl-1.0.1e/crypto/evp/digest.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/digest.c 2013-02-19 12:51:41.276779877 +0100
 @@ -142,9 +142,50 @@ int EVP_DigestInit(EVP_MD_CTX *ctx, cons
        return EVP_DigestInit_ex(ctx, type, NULL);
        }
@@ -1480,7 +1468,7 @@ diff -up openssl-1.0.1b/crypto/evp/digest.c.fips openssl-1.0.1b/crypto/evp/diges
        }
  
  /* The caller can assume that this removes any secret data from the context */
-@@ -263,10 +305,11 @@ int EVP_DigestFinal(EVP_MD_CTX *ctx, uns
+@@ -263,11 +305,11 @@ int EVP_DigestFinal(EVP_MD_CTX *ctx, uns
  /* The caller can assume that this removes any secret data from the context */
  int EVP_DigestFinal_ex(EVP_MD_CTX *ctx, unsigned char *md, unsigned int *size)
        {
@@ -1488,14 +1476,14 @@ diff -up openssl-1.0.1b/crypto/evp/digest.c.fips openssl-1.0.1b/crypto/evp/diges
 -      return FIPS_digestfinal(ctx, md, size);
 -#else
        int ret;
 +#ifdef OPENSSL_FIPS
 +      FIPS_selftest_check();
 +#endif
-+
        OPENSSL_assert(ctx->digest->md_size <= EVP_MAX_MD_SIZE);
        ret=ctx->digest->final(ctx,md);
        if (size != NULL)
-@@ -278,7 +321,6 @@ int EVP_DigestFinal_ex(EVP_MD_CTX *ctx,
+@@ -279,7 +321,6 @@ int EVP_DigestFinal_ex(EVP_MD_CTX *ctx,
                }
        memset(ctx->md_data,0,ctx->digest->ctx_size);
        return ret;
@@ -1503,7 +1491,7 @@ diff -up openssl-1.0.1b/crypto/evp/digest.c.fips openssl-1.0.1b/crypto/evp/diges
        }
  
  int EVP_MD_CTX_copy(EVP_MD_CTX *out, const EVP_MD_CTX *in)
-@@ -372,7 +414,6 @@ void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx)
+@@ -373,7 +414,6 @@ void EVP_MD_CTX_destroy(EVP_MD_CTX *ctx)
  /* This call frees resources associated with the context */
  int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
        {
@@ -1511,7 +1499,7 @@ diff -up openssl-1.0.1b/crypto/evp/digest.c.fips openssl-1.0.1b/crypto/evp/diges
        /* Don't assume ctx->md_data was cleaned in EVP_Digest_Final,
         * because sometimes only copies of the context are ever finalised.
         */
-@@ -385,7 +426,6 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
+@@ -386,7 +426,6 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
                OPENSSL_cleanse(ctx->md_data,ctx->digest->ctx_size);
                OPENSSL_free(ctx->md_data);
                }
@@ -1519,7 +1507,7 @@ diff -up openssl-1.0.1b/crypto/evp/digest.c.fips openssl-1.0.1b/crypto/evp/diges
        if (ctx->pctx)
                EVP_PKEY_CTX_free(ctx->pctx);
  #ifndef OPENSSL_NO_ENGINE
-@@ -394,9 +434,6 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
+@@ -395,9 +434,6 @@ int EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
                 * functional reference we held for this reason. */
                ENGINE_finish(ctx->engine);
  #endif
@@ -1529,9 +1517,9 @@ diff -up openssl-1.0.1b/crypto/evp/digest.c.fips openssl-1.0.1b/crypto/evp/diges
        memset(ctx,'\0',sizeof *ctx);
  
        return 1;
-diff -up openssl-1.0.1b/crypto/evp/e_aes.c.fips openssl-1.0.1b/crypto/evp/e_aes.c
---- openssl-1.0.1b/crypto/evp/e_aes.c.fips     2011-11-15 13:19:56.000000000 +0100
-+++ openssl-1.0.1b/crypto/evp/e_aes.c  2012-04-26 18:00:51.391769103 +0200
+diff -up openssl-1.0.1e/crypto/evp/e_aes.c.fips openssl-1.0.1e/crypto/evp/e_aes.c
+--- openssl-1.0.1e/crypto/evp/e_aes.c.fips     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/e_aes.c  2013-02-19 12:47:33.726118609 +0100
 @@ -56,7 +56,6 @@
  #include <assert.h>
  #include <openssl/aes.h>
@@ -1558,14 +1546,14 @@ diff -up openssl-1.0.1b/crypto/evp/e_aes.c.fips openssl-1.0.1b/crypto/evp/e_aes.
                        (len > (1UL<<20)*16))
                {
                EVPerr(EVP_F_AES_XTS_CIPHER, EVP_R_TOO_LARGE);
-@@ -1310,4 +1309,3 @@ BLOCK_CIPHER_custom(NID_aes,192,1,12,ccm
+@@ -1311,4 +1310,3 @@ BLOCK_CIPHER_custom(NID_aes,192,1,12,ccm
  BLOCK_CIPHER_custom(NID_aes,256,1,12,ccm,CCM,EVP_CIPH_FLAG_FIPS|CUSTOM_FLAGS)
  
  #endif
 -#endif
-diff -up openssl-1.0.1b/crypto/evp/e_des3.c.fips openssl-1.0.1b/crypto/evp/e_des3.c
---- openssl-1.0.1b/crypto/evp/e_des3.c.fips    2011-05-29 01:01:26.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/e_des3.c 2012-04-26 18:00:51.392769125 +0200
+diff -up openssl-1.0.1e/crypto/evp/e_des3.c.fips openssl-1.0.1e/crypto/evp/e_des3.c
+--- openssl-1.0.1e/crypto/evp/e_des3.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/e_des3.c 2013-02-19 12:47:33.727118629 +0100
 @@ -65,8 +65,6 @@
  #include <openssl/des.h>
  #include <openssl/rand.h>
@@ -1624,9 +1612,9 @@ diff -up openssl-1.0.1b/crypto/evp/e_des3.c.fips openssl-1.0.1b/crypto/evp/e_des
  }
  #endif
 -#endif
-diff -up openssl-1.0.1b/crypto/evp/e_null.c.fips openssl-1.0.1b/crypto/evp/e_null.c
---- openssl-1.0.1b/crypto/evp/e_null.c.fips    2011-06-20 22:00:10.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/e_null.c 2012-04-26 18:00:51.392769125 +0200
+diff -up openssl-1.0.1e/crypto/evp/e_null.c.fips openssl-1.0.1e/crypto/evp/e_null.c
+--- openssl-1.0.1e/crypto/evp/e_null.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/e_null.c 2013-02-19 12:47:33.727118629 +0100
 @@ -61,8 +61,6 @@
  #include <openssl/evp.h>
  #include <openssl/objects.h>
@@ -1650,9 +1638,9 @@ diff -up openssl-1.0.1b/crypto/evp/e_null.c.fips openssl-1.0.1b/crypto/evp/e_nul
        return 1;
        }
 -#endif
-diff -up openssl-1.0.1b/crypto/evp/evp_enc.c.fips openssl-1.0.1b/crypto/evp/evp_enc.c
---- openssl-1.0.1b/crypto/evp/evp_enc.c.fips   2012-04-20 02:07:48.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/evp_enc.c        2012-04-26 18:02:25.419823276 +0200
+diff -up openssl-1.0.1e/crypto/evp/evp_enc.c.fips openssl-1.0.1e/crypto/evp/evp_enc.c
+--- openssl-1.0.1e/crypto/evp/evp_enc.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/evp_enc.c        2013-02-19 12:47:33.728118649 +0100
 @@ -69,17 +69,58 @@
  #endif
  #include "evp_locl.h"
@@ -1801,9 +1789,9 @@ diff -up openssl-1.0.1b/crypto/evp/evp_enc.c.fips openssl-1.0.1b/crypto/evp/evp_
        memset(c,0,sizeof(EVP_CIPHER_CTX));
        return 1;
        }
-diff -up openssl-1.0.1b/crypto/evp/evp.h.fips openssl-1.0.1b/crypto/evp/evp.h
---- openssl-1.0.1b/crypto/evp/evp.h.fips       2012-04-26 18:00:51.128763357 +0200
-+++ openssl-1.0.1b/crypto/evp/evp.h    2012-04-26 18:00:51.394769168 +0200
+diff -up openssl-1.0.1e/crypto/evp/evp.h.fips openssl-1.0.1e/crypto/evp/evp.h
+--- openssl-1.0.1e/crypto/evp/evp.h.fips       2013-02-19 12:47:33.474113487 +0100
++++ openssl-1.0.1e/crypto/evp/evp.h    2013-02-19 12:47:33.728118649 +0100
 @@ -75,6 +75,10 @@
  #include <openssl/bio.h>
  #endif
@@ -1856,9 +1844,9 @@ diff -up openssl-1.0.1b/crypto/evp/evp.h.fips openssl-1.0.1b/crypto/evp/evp.h
  /* Cipher handles any and all padding logic as well
   * as finalisation.
   */
-diff -up openssl-1.0.1b/crypto/evp/evp_lib.c.fips openssl-1.0.1b/crypto/evp/evp_lib.c
---- openssl-1.0.1b/crypto/evp/evp_lib.c.fips   2011-05-29 04:32:05.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/evp_lib.c        2012-04-26 18:00:51.394769168 +0200
+diff -up openssl-1.0.1e/crypto/evp/evp_lib.c.fips openssl-1.0.1e/crypto/evp/evp_lib.c
+--- openssl-1.0.1e/crypto/evp/evp_lib.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/evp_lib.c        2013-02-19 12:47:33.729118669 +0100
 @@ -190,6 +190,9 @@ int EVP_CIPHER_CTX_block_size(const EVP_
  
  int EVP_Cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, unsigned int inl)
@@ -1869,9 +1857,9 @@ diff -up openssl-1.0.1b/crypto/evp/evp_lib.c.fips openssl-1.0.1b/crypto/evp/evp_
        return ctx->cipher->do_cipher(ctx,out,in,inl);
        }
  
-diff -up openssl-1.0.1b/crypto/evp/evp_locl.h.fips openssl-1.0.1b/crypto/evp/evp_locl.h
---- openssl-1.0.1b/crypto/evp/evp_locl.h.fips  2012-04-26 18:00:51.118763138 +0200
-+++ openssl-1.0.1b/crypto/evp/evp_locl.h       2012-04-26 18:00:51.395769190 +0200
+diff -up openssl-1.0.1e/crypto/evp/evp_locl.h.fips openssl-1.0.1e/crypto/evp/evp_locl.h
+--- openssl-1.0.1e/crypto/evp/evp_locl.h.fips  2013-02-19 12:47:33.465113304 +0100
++++ openssl-1.0.1e/crypto/evp/evp_locl.h       2013-02-19 12:47:33.729118669 +0100
 @@ -258,10 +258,9 @@ const EVP_CIPHER *EVP_##cname##_ecb(void
        BLOCK_CIPHER_func_cfb(cipher##_##keysize,cprefix,cbits,kstruct,ksched) \
        BLOCK_CIPHER_def_cfb(cipher##_##keysize,kstruct, \
@@ -1906,9 +1894,9 @@ diff -up openssl-1.0.1b/crypto/evp/evp_locl.h.fips openssl-1.0.1b/crypto/evp/evp
  #define Camellia_set_key      private_Camellia_set_key
  
  #endif
-diff -up openssl-1.0.1b/crypto/evp/Makefile.fips openssl-1.0.1b/crypto/evp/Makefile
---- openssl-1.0.1b/crypto/evp/Makefile.fips    2012-04-26 12:42:19.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/Makefile 2012-04-26 18:00:51.395769190 +0200
+diff -up openssl-1.0.1e/crypto/evp/Makefile.fips openssl-1.0.1e/crypto/evp/Makefile
+--- openssl-1.0.1e/crypto/evp/Makefile.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/Makefile 2013-02-19 12:53:25.468917386 +0100
 @@ -28,7 +28,7 @@ LIBSRC= encode.c digest.c evp_enc.c evp_
        bio_md.c bio_b64.c bio_enc.c evp_err.c e_null.c \
        c_all.c c_allc.c c_alld.c evp_lib.c bio_ok.c \
@@ -1917,7 +1905,7 @@ diff -up openssl-1.0.1b/crypto/evp/Makefile.fips openssl-1.0.1b/crypto/evp/Makef
 +      e_old.c pmeth_lib.c pmeth_fn.c pmeth_gn.c m_sigver.c \
        e_aes_cbc_hmac_sha1.c e_rc4_hmac_md5.c
  
- LIBOBJ=       encode.o digest.o evp_enc.o evp_key.o evp_acnf.o \
+ LIBOBJ=       encode.o digest.o evp_enc.o evp_key.o evp_acnf.o evp_cnf.o \
 @@ -41,7 +41,7 @@ LIBOBJ=      encode.o digest.o evp_enc.o evp_
        bio_md.o bio_b64.o bio_enc.o evp_err.o e_null.o \
        c_all.o c_allc.o c_alld.o evp_lib.o bio_ok.o \
@@ -1927,9 +1915,9 @@ diff -up openssl-1.0.1b/crypto/evp/Makefile.fips openssl-1.0.1b/crypto/evp/Makef
        e_aes_cbc_hmac_sha1.o e_rc4_hmac_md5.o
  
  SRC= $(LIBSRC)
-diff -up openssl-1.0.1b/crypto/evp/m_dss1.c.fips openssl-1.0.1b/crypto/evp/m_dss1.c
---- openssl-1.0.1b/crypto/evp/m_dss1.c.fips    2011-06-01 17:11:00.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/m_dss1.c 2012-04-26 18:00:51.396769212 +0200
+diff -up openssl-1.0.1e/crypto/evp/m_dss1.c.fips openssl-1.0.1e/crypto/evp/m_dss1.c
+--- openssl-1.0.1e/crypto/evp/m_dss1.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/m_dss1.c 2013-02-19 12:47:33.730118689 +0100
 @@ -68,8 +68,6 @@
  #include <openssl/dsa.h>
  #endif
@@ -1953,9 +1941,9 @@ diff -up openssl-1.0.1b/crypto/evp/m_dss1.c.fips openssl-1.0.1b/crypto/evp/m_dss
        }
  #endif
 -#endif
-diff -up openssl-1.0.1b/crypto/evp/m_dss.c.fips openssl-1.0.1b/crypto/evp/m_dss.c
---- openssl-1.0.1b/crypto/evp/m_dss.c.fips     2011-06-01 17:11:00.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/m_dss.c  2012-04-26 18:00:51.396769212 +0200
+diff -up openssl-1.0.1e/crypto/evp/m_dss.c.fips openssl-1.0.1e/crypto/evp/m_dss.c
+--- openssl-1.0.1e/crypto/evp/m_dss.c.fips     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/m_dss.c  2013-02-19 12:47:33.730118689 +0100
 @@ -66,7 +66,6 @@
  #endif
  
@@ -1978,9 +1966,9 @@ diff -up openssl-1.0.1b/crypto/evp/m_dss.c.fips openssl-1.0.1b/crypto/evp/m_dss.
        }
  #endif
 -#endif
-diff -up openssl-1.0.1b/crypto/evp/m_md2.c.fips openssl-1.0.1b/crypto/evp/m_md2.c
---- openssl-1.0.1b/crypto/evp/m_md2.c.fips     2005-07-16 14:37:32.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/m_md2.c  2012-04-26 18:00:51.396769212 +0200
+diff -up openssl-1.0.1e/crypto/evp/m_md2.c.fips openssl-1.0.1e/crypto/evp/m_md2.c
+--- openssl-1.0.1e/crypto/evp/m_md2.c.fips     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/m_md2.c  2013-02-19 12:47:33.731118710 +0100
 @@ -68,6 +68,7 @@
  #ifndef OPENSSL_NO_RSA
  #include <openssl/rsa.h>
@@ -1989,9 +1977,9 @@ diff -up openssl-1.0.1b/crypto/evp/m_md2.c.fips openssl-1.0.1b/crypto/evp/m_md2.
  
  static int init(EVP_MD_CTX *ctx)
        { return MD2_Init(ctx->md_data); }
-diff -up openssl-1.0.1b/crypto/evp/m_sha1.c.fips openssl-1.0.1b/crypto/evp/m_sha1.c
---- openssl-1.0.1b/crypto/evp/m_sha1.c.fips    2011-05-29 01:01:26.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/m_sha1.c 2012-04-26 18:00:51.396769212 +0200
+diff -up openssl-1.0.1e/crypto/evp/m_sha1.c.fips openssl-1.0.1e/crypto/evp/m_sha1.c
+--- openssl-1.0.1e/crypto/evp/m_sha1.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/m_sha1.c 2013-02-19 12:47:33.731118710 +0100
 @@ -59,8 +59,6 @@
  #include <stdio.h>
  #include "cryptlib.h"
@@ -2056,9 +2044,9 @@ diff -up openssl-1.0.1b/crypto/evp/m_sha1.c.fips openssl-1.0.1b/crypto/evp/m_sha
  #endif        /* ifndef OPENSSL_NO_SHA512 */
  
 -#endif
-diff -up openssl-1.0.1b/crypto/evp/p_sign.c.fips openssl-1.0.1b/crypto/evp/p_sign.c
---- openssl-1.0.1b/crypto/evp/p_sign.c.fips    2011-06-09 18:02:39.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/p_sign.c 2012-04-26 18:00:51.396769212 +0200
+diff -up openssl-1.0.1e/crypto/evp/p_sign.c.fips openssl-1.0.1e/crypto/evp/p_sign.c
+--- openssl-1.0.1e/crypto/evp/p_sign.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/p_sign.c 2013-02-19 12:47:33.731118710 +0100
 @@ -61,6 +61,7 @@
  #include <openssl/evp.h>
  #include <openssl/objects.h>
@@ -2090,9 +2078,9 @@ diff -up openssl-1.0.1b/crypto/evp/p_sign.c.fips openssl-1.0.1b/crypto/evp/p_sig
                if (EVP_PKEY_sign(pkctx, sigret, &sltmp, m, m_len) <= 0)
                        goto err;
                *siglen = sltmp;
-diff -up openssl-1.0.1b/crypto/evp/p_verify.c.fips openssl-1.0.1b/crypto/evp/p_verify.c
---- openssl-1.0.1b/crypto/evp/p_verify.c.fips  2011-06-09 18:02:39.000000000 +0200
-+++ openssl-1.0.1b/crypto/evp/p_verify.c       2012-04-26 18:00:51.396769212 +0200
+diff -up openssl-1.0.1e/crypto/evp/p_verify.c.fips openssl-1.0.1e/crypto/evp/p_verify.c
+--- openssl-1.0.1e/crypto/evp/p_verify.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/evp/p_verify.c       2013-02-19 12:47:33.732118731 +0100
 @@ -61,6 +61,7 @@
  #include <openssl/evp.h>
  #include <openssl/objects.h>
@@ -2124,9 +2112,9 @@ diff -up openssl-1.0.1b/crypto/evp/p_verify.c.fips openssl-1.0.1b/crypto/evp/p_v
                i = EVP_PKEY_verify(pkctx, sigbuf, siglen, m, m_len);
                err:
                EVP_PKEY_CTX_free(pkctx);
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_aesavs.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_aesavs.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_aesavs.c.fips 2012-04-26 18:00:51.397769234 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_aesavs.c      2012-04-26 18:00:51.397769234 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_aesavs.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_aesavs.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_aesavs.c.fips 2013-02-19 12:47:33.732118731 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_aesavs.c      2013-02-19 12:47:33.732118731 +0100
 @@ -0,0 +1,939 @@
 +/* ====================================================================
 + * Copyright (c) 2004 The OpenSSL Project.  All rights reserved.
@@ -3067,9 +3055,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_aesavs.c.fips openssl-1.0.1b/crypt
 +    }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_cmactest.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_cmactest.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_cmactest.c.fips       2012-04-26 18:00:51.397769234 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_cmactest.c    2012-04-26 18:00:51.397769234 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_cmactest.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_cmactest.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_cmactest.c.fips       2013-02-19 12:47:33.732118731 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_cmactest.c    2013-02-19 12:47:33.732118731 +0100
 @@ -0,0 +1,517 @@
 +/* fips_cmactest.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -3588,9 +3576,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_cmactest.c.fips openssl-1.0.1b/cry
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_desmovs.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_desmovs.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_desmovs.c.fips        2012-04-26 18:00:51.398769255 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_desmovs.c     2012-04-26 18:00:51.398769255 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_desmovs.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_desmovs.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_desmovs.c.fips        2013-02-19 12:47:33.733118752 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_desmovs.c     2013-02-19 12:47:33.733118752 +0100
 @@ -0,0 +1,702 @@
 +/* ====================================================================
 + * Copyright (c) 2004 The OpenSSL Project.  All rights reserved.
@@ -4294,9 +4282,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_desmovs.c.fips openssl-1.0.1b/cryp
 +    }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_dhvs.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_dhvs.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_dhvs.c.fips   2012-04-26 18:00:51.398769255 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_dhvs.c        2012-04-26 18:00:51.398769255 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_dhvs.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_dhvs.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_dhvs.c.fips   2013-02-19 12:47:33.733118752 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_dhvs.c        2013-02-19 12:47:33.733118752 +0100
 @@ -0,0 +1,292 @@
 +/* fips/dh/fips_dhvs.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -4590,9 +4578,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_dhvs.c.fips openssl-1.0.1b/crypto/
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_drbgvs.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_drbgvs.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_drbgvs.c.fips 2012-04-26 18:00:51.398769255 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_drbgvs.c      2012-04-26 18:00:51.398769255 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_drbgvs.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_drbgvs.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_drbgvs.c.fips 2013-02-19 12:47:33.733118752 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_drbgvs.c      2013-02-19 12:47:33.733118752 +0100
 @@ -0,0 +1,416 @@
 +/* fips/rand/fips_drbgvs.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -5010,9 +4998,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_drbgvs.c.fips openssl-1.0.1b/crypt
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_dssvs.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_dssvs.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_dssvs.c.fips  2012-04-26 18:00:51.398769255 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_dssvs.c       2012-04-26 18:00:51.398769255 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_dssvs.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_dssvs.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_dssvs.c.fips  2013-02-19 12:47:33.733118752 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_dssvs.c       2013-02-19 12:47:33.733118752 +0100
 @@ -0,0 +1,537 @@
 +#include <openssl/opensslconf.h>
 +
@@ -5551,9 +5539,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_dssvs.c.fips openssl-1.0.1b/crypto
 +    }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_gcmtest.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_gcmtest.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_gcmtest.c.fips        2012-04-26 18:00:51.399769276 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_gcmtest.c     2012-04-26 18:00:51.399769276 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_gcmtest.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_gcmtest.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_gcmtest.c.fips        2013-02-19 12:47:33.734118772 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_gcmtest.c     2013-02-19 12:47:33.734118772 +0100
 @@ -0,0 +1,571 @@
 +/* fips/aes/fips_gcmtest.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -6126,9 +6114,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_gcmtest.c.fips openssl-1.0.1b/cryp
 +}
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_rngvs.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_rngvs.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_rngvs.c.fips  2012-04-26 18:00:51.399769276 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_rngvs.c       2012-04-26 18:00:51.399769276 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_rngvs.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_rngvs.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_rngvs.c.fips  2013-02-19 12:47:33.734118772 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_rngvs.c       2013-02-19 12:47:33.734118772 +0100
 @@ -0,0 +1,230 @@
 +/*
 + * Crude test driver for processing the VST and MCT testvector files
@@ -6360,9 +6348,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_rngvs.c.fips openssl-1.0.1b/crypto
 +    return 0;
 +    }
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_rsagtest.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_rsagtest.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_rsagtest.c.fips       2012-04-26 18:00:51.399769276 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_rsagtest.c    2012-04-26 18:00:51.399769276 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_rsagtest.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_rsagtest.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_rsagtest.c.fips       2013-02-19 12:47:33.734118772 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_rsagtest.c    2013-02-19 12:47:33.734118772 +0100
 @@ -0,0 +1,390 @@
 +/* fips_rsagtest.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -6754,9 +6742,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_rsagtest.c.fips openssl-1.0.1b/cry
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_rsastest.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_rsastest.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_rsastest.c.fips       2012-04-26 18:00:51.400769298 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_rsastest.c    2012-04-26 18:00:51.400769298 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_rsastest.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_rsastest.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_rsastest.c.fips       2013-02-19 12:47:33.734118772 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_rsastest.c    2013-02-19 12:47:33.734118772 +0100
 @@ -0,0 +1,370 @@
 +/* fips_rsastest.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -7128,9 +7116,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_rsastest.c.fips openssl-1.0.1b/cry
 +      return ret;
 +      }
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_rsavtest.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_rsavtest.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_rsavtest.c.fips       2012-04-26 18:00:51.400769298 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_rsavtest.c    2012-04-26 18:00:51.400769298 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_rsavtest.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_rsavtest.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_rsavtest.c.fips       2013-02-19 12:47:33.735118792 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_rsavtest.c    2013-02-19 12:47:33.735118792 +0100
 @@ -0,0 +1,377 @@
 +/* fips_rsavtest.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -7509,9 +7497,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_rsavtest.c.fips openssl-1.0.1b/cry
 +      return ret;
 +      }
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_shatest.c.fips openssl-1.0.1b/crypto/fips/cavs/fips_shatest.c
---- openssl-1.0.1b/crypto/fips/cavs/fips_shatest.c.fips        2012-04-26 18:00:51.400769298 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_shatest.c     2012-04-26 18:00:51.400769298 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_shatest.c.fips openssl-1.0.1e/crypto/fips/cavs/fips_shatest.c
+--- openssl-1.0.1e/crypto/fips/cavs/fips_shatest.c.fips        2013-02-19 12:47:33.735118792 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_shatest.c     2013-02-19 12:47:33.735118792 +0100
 @@ -0,0 +1,388 @@
 +/* fips_shatest.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -7901,9 +7889,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_shatest.c.fips openssl-1.0.1b/cryp
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/cavs/fips_utl.h.fips openssl-1.0.1b/crypto/fips/cavs/fips_utl.h
---- openssl-1.0.1b/crypto/fips/cavs/fips_utl.h.fips    2012-04-26 18:00:51.400769298 +0200
-+++ openssl-1.0.1b/crypto/fips/cavs/fips_utl.h 2012-04-26 18:00:51.400769298 +0200
+diff -up openssl-1.0.1e/crypto/fips/cavs/fips_utl.h.fips openssl-1.0.1e/crypto/fips/cavs/fips_utl.h
+--- openssl-1.0.1e/crypto/fips/cavs/fips_utl.h.fips    2013-02-19 12:47:33.735118792 +0100
++++ openssl-1.0.1e/crypto/fips/cavs/fips_utl.h 2013-02-19 12:47:33.735118792 +0100
 @@ -0,0 +1,343 @@
 +/* ====================================================================
 + * Copyright (c) 2007 The OpenSSL Project.  All rights reserved.
@@ -8248,9 +8236,9 @@ diff -up openssl-1.0.1b/crypto/fips/cavs/fips_utl.h.fips openssl-1.0.1b/crypto/f
 +#endif
 +    }
 +
-diff -up openssl-1.0.1b/crypto/fips/fips_aes_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_aes_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_aes_selftest.c.fips        2012-04-26 18:00:51.401769321 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_aes_selftest.c     2012-04-26 18:00:51.401769321 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_aes_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_aes_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_aes_selftest.c.fips        2013-02-19 12:47:33.735118792 +0100
++++ openssl-1.0.1e/crypto/fips/fips_aes_selftest.c     2013-02-19 12:47:33.735118792 +0100
 @@ -0,0 +1,359 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -8611,9 +8599,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_aes_selftest.c.fips openssl-1.0.1b/cryp
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips.c.fips openssl-1.0.1b/crypto/fips/fips.c
---- openssl-1.0.1b/crypto/fips/fips.c.fips     2012-04-26 18:00:51.401769321 +0200
-+++ openssl-1.0.1b/crypto/fips/fips.c  2012-04-26 18:00:51.401769321 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips.c.fips openssl-1.0.1e/crypto/fips/fips.c
+--- openssl-1.0.1e/crypto/fips/fips.c.fips     2013-02-19 12:47:33.735118792 +0100
++++ openssl-1.0.1e/crypto/fips/fips.c  2013-02-19 12:47:33.736118812 +0100
 @@ -0,0 +1,489 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -9104,9 +9092,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips.c.fips openssl-1.0.1b/crypto/fips/fips.
 +
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_cmac_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_cmac_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_cmac_selftest.c.fips       2012-04-26 18:00:51.401769321 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_cmac_selftest.c    2012-04-26 18:00:51.401769321 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_cmac_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_cmac_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_cmac_selftest.c.fips       2013-02-19 12:47:33.736118812 +0100
++++ openssl-1.0.1e/crypto/fips/fips_cmac_selftest.c    2013-02-19 12:47:33.736118812 +0100
 @@ -0,0 +1,161 @@
 +/* ====================================================================
 + * Copyright (c) 2011 The OpenSSL Project.  All rights reserved.
@@ -9269,9 +9257,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_cmac_selftest.c.fips openssl-1.0.1b/cry
 +      return rv;
 +      }
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_des_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_des_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_des_selftest.c.fips        2012-04-26 18:00:51.401769321 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_des_selftest.c     2012-04-26 18:00:51.401769321 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_des_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_des_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_des_selftest.c.fips        2013-02-19 12:47:33.736118812 +0100
++++ openssl-1.0.1e/crypto/fips/fips_des_selftest.c     2013-02-19 12:47:33.736118812 +0100
 @@ -0,0 +1,147 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -9420,9 +9408,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_des_selftest.c.fips openssl-1.0.1b/cryp
 +    return ret;
 +    }
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_drbg_ctr.c.fips openssl-1.0.1b/crypto/fips/fips_drbg_ctr.c
---- openssl-1.0.1b/crypto/fips/fips_drbg_ctr.c.fips    2012-04-26 18:00:51.401769321 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_drbg_ctr.c 2012-04-26 18:00:51.402769343 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_drbg_ctr.c.fips openssl-1.0.1e/crypto/fips/fips_drbg_ctr.c
+--- openssl-1.0.1e/crypto/fips/fips_drbg_ctr.c.fips    2013-02-19 12:47:33.736118812 +0100
++++ openssl-1.0.1e/crypto/fips/fips_drbg_ctr.c 2013-02-19 12:47:33.736118812 +0100
 @@ -0,0 +1,436 @@
 +/* fips/rand/fips_drbg_ctr.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -9860,9 +9848,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_drbg_ctr.c.fips openssl-1.0.1b/crypto/f
 +
 +      return 1;
 +      }
-diff -up openssl-1.0.1b/crypto/fips/fips_drbg_hash.c.fips openssl-1.0.1b/crypto/fips/fips_drbg_hash.c
---- openssl-1.0.1b/crypto/fips/fips_drbg_hash.c.fips   2012-04-26 18:00:51.402769343 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_drbg_hash.c        2012-04-26 18:00:51.402769343 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_drbg_hash.c.fips openssl-1.0.1e/crypto/fips/fips_drbg_hash.c
+--- openssl-1.0.1e/crypto/fips/fips_drbg_hash.c.fips   2013-02-19 12:47:33.736118812 +0100
++++ openssl-1.0.1e/crypto/fips/fips_drbg_hash.c        2013-02-19 12:47:33.736118812 +0100
 @@ -0,0 +1,378 @@
 +/* fips/rand/fips_drbg_hash.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -10242,9 +10230,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_drbg_hash.c.fips openssl-1.0.1b/crypto/
 +
 +      return 1;
 +      }
-diff -up openssl-1.0.1b/crypto/fips/fips_drbg_hmac.c.fips openssl-1.0.1b/crypto/fips/fips_drbg_hmac.c
---- openssl-1.0.1b/crypto/fips/fips_drbg_hmac.c.fips   2012-04-26 18:00:51.402769343 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_drbg_hmac.c        2012-04-26 18:00:51.402769343 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_drbg_hmac.c.fips openssl-1.0.1e/crypto/fips/fips_drbg_hmac.c
+--- openssl-1.0.1e/crypto/fips/fips_drbg_hmac.c.fips   2013-02-19 12:47:33.737118832 +0100
++++ openssl-1.0.1e/crypto/fips/fips_drbg_hmac.c        2013-02-19 12:47:33.737118832 +0100
 @@ -0,0 +1,281 @@
 +/* fips/rand/fips_drbg_hmac.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -10527,9 +10515,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_drbg_hmac.c.fips openssl-1.0.1b/crypto/
 +
 +      return 1;
 +      }
-diff -up openssl-1.0.1b/crypto/fips/fips_drbg_lib.c.fips openssl-1.0.1b/crypto/fips/fips_drbg_lib.c
---- openssl-1.0.1b/crypto/fips/fips_drbg_lib.c.fips    2012-04-26 18:00:51.402769343 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_drbg_lib.c 2012-04-26 18:00:51.402769343 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_drbg_lib.c.fips openssl-1.0.1e/crypto/fips/fips_drbg_lib.c
+--- openssl-1.0.1e/crypto/fips/fips_drbg_lib.c.fips    2013-02-19 12:47:33.737118832 +0100
++++ openssl-1.0.1e/crypto/fips/fips_drbg_lib.c 2013-02-19 12:47:33.737118832 +0100
 @@ -0,0 +1,578 @@
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
 + * project.
@@ -11109,9 +11097,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_drbg_lib.c.fips openssl-1.0.1b/crypto/f
 +      memcpy(dctx->lb, out, dctx->blocklength);
 +      return 1;
 +      }
-diff -up openssl-1.0.1b/crypto/fips/fips_drbg_rand.c.fips openssl-1.0.1b/crypto/fips/fips_drbg_rand.c
---- openssl-1.0.1b/crypto/fips/fips_drbg_rand.c.fips   2012-04-26 18:00:51.403769365 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_drbg_rand.c        2012-04-26 18:00:51.403769365 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_drbg_rand.c.fips openssl-1.0.1e/crypto/fips/fips_drbg_rand.c
+--- openssl-1.0.1e/crypto/fips/fips_drbg_rand.c.fips   2013-02-19 12:47:33.737118832 +0100
++++ openssl-1.0.1e/crypto/fips/fips_drbg_rand.c        2013-02-19 12:47:33.737118832 +0100
 @@ -0,0 +1,172 @@
 +/* fips/rand/fips_drbg_rand.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -11285,9 +11273,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_drbg_rand.c.fips openssl-1.0.1b/crypto/
 +      return &rand_drbg_meth;
 +      }
 +
-diff -up openssl-1.0.1b/crypto/fips/fips_drbg_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_drbg_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_drbg_selftest.c.fips       2012-04-26 18:00:51.403769365 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_drbg_selftest.c    2012-04-26 18:00:51.403769365 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_drbg_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_drbg_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_drbg_selftest.c.fips       2013-02-19 12:47:33.737118832 +0100
++++ openssl-1.0.1e/crypto/fips/fips_drbg_selftest.c    2013-02-19 12:47:33.737118832 +0100
 @@ -0,0 +1,862 @@
 +/* fips/rand/fips_drbg_selftest.c */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -12151,9 +12139,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_drbg_selftest.c.fips openssl-1.0.1b/cry
 +      return rv;
 +      }
 +
-diff -up openssl-1.0.1b/crypto/fips/fips_drbg_selftest.h.fips openssl-1.0.1b/crypto/fips/fips_drbg_selftest.h
---- openssl-1.0.1b/crypto/fips/fips_drbg_selftest.h.fips       2012-04-26 18:00:51.404769387 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_drbg_selftest.h    2012-04-26 18:00:51.404769387 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_drbg_selftest.h.fips openssl-1.0.1e/crypto/fips/fips_drbg_selftest.h
+--- openssl-1.0.1e/crypto/fips/fips_drbg_selftest.h.fips       2013-02-19 12:47:33.738118852 +0100
++++ openssl-1.0.1e/crypto/fips/fips_drbg_selftest.h    2013-02-19 12:47:33.738118852 +0100
 @@ -0,0 +1,2335 @@
 +/* ====================================================================
 + * Copyright (c) 2011 The OpenSSL Project.  All rights reserved.
@@ -14490,9 +14478,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_drbg_selftest.h.fips openssl-1.0.1b/cry
 +      0xc2,0xd6,0xfd,0xa5
 +      };
 +
-diff -up openssl-1.0.1b/crypto/fips/fips_dsa_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_dsa_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_dsa_selftest.c.fips        2012-04-26 18:00:51.404769387 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_dsa_selftest.c     2012-04-26 18:00:51.404769387 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_dsa_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_dsa_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_dsa_selftest.c.fips        2013-02-19 12:47:33.739118872 +0100
++++ openssl-1.0.1e/crypto/fips/fips_dsa_selftest.c     2013-02-19 12:47:33.739118872 +0100
 @@ -0,0 +1,193 @@
 +/* ====================================================================
 + * Copyright (c) 2011 The OpenSSL Project.  All rights reserved.
@@ -14687,9 +14675,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_dsa_selftest.c.fips openssl-1.0.1b/cryp
 +      return ret;
 +      }
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_enc.c.fips openssl-1.0.1b/crypto/fips/fips_enc.c
---- openssl-1.0.1b/crypto/fips/fips_enc.c.fips 2012-04-26 18:00:51.405769408 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_enc.c      2012-04-26 18:00:51.405769408 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_enc.c.fips openssl-1.0.1e/crypto/fips/fips_enc.c
+--- openssl-1.0.1e/crypto/fips/fips_enc.c.fips 2013-02-19 12:47:33.739118872 +0100
++++ openssl-1.0.1e/crypto/fips/fips_enc.c      2013-02-19 12:47:33.739118872 +0100
 @@ -0,0 +1,191 @@
 +/* fipe/evp/fips_enc.c */
 +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
@@ -14882,9 +14870,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_enc.c.fips openssl-1.0.1b/crypto/fips/f
 +              }
 +      }
 +
-diff -up openssl-1.0.1b/crypto/fips/fips.h.fips openssl-1.0.1b/crypto/fips/fips.h
---- openssl-1.0.1b/crypto/fips/fips.h.fips     2012-04-26 18:00:51.405769408 +0200
-+++ openssl-1.0.1b/crypto/fips/fips.h  2012-04-26 18:00:51.405769408 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips.h.fips openssl-1.0.1e/crypto/fips/fips.h
+--- openssl-1.0.1e/crypto/fips/fips.h.fips     2013-02-19 12:47:33.739118872 +0100
++++ openssl-1.0.1e/crypto/fips/fips.h  2013-02-19 12:47:33.739118872 +0100
 @@ -0,0 +1,279 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -15165,9 +15153,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips.h.fips openssl-1.0.1b/crypto/fips/fips.
 +}
 +#endif
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_hmac_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_hmac_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_hmac_selftest.c.fips       2012-04-26 18:00:51.405769408 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_hmac_selftest.c    2012-04-26 18:00:51.405769408 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_hmac_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_hmac_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_hmac_selftest.c.fips       2013-02-19 12:47:33.739118872 +0100
++++ openssl-1.0.1e/crypto/fips/fips_hmac_selftest.c    2013-02-19 12:47:33.740118893 +0100
 @@ -0,0 +1,137 @@
 +/* ====================================================================
 + * Copyright (c) 2005 The OpenSSL Project.  All rights reserved.
@@ -15306,9 +15294,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_hmac_selftest.c.fips openssl-1.0.1b/cry
 +    return 1;
 +    }
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_locl.h.fips openssl-1.0.1b/crypto/fips/fips_locl.h
---- openssl-1.0.1b/crypto/fips/fips_locl.h.fips        2012-04-26 18:00:51.405769408 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_locl.h     2012-04-26 18:00:51.405769408 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_locl.h.fips openssl-1.0.1e/crypto/fips/fips_locl.h
+--- openssl-1.0.1e/crypto/fips/fips_locl.h.fips        2013-02-19 12:47:33.740118893 +0100
++++ openssl-1.0.1e/crypto/fips/fips_locl.h     2013-02-19 12:47:33.740118893 +0100
 @@ -0,0 +1,71 @@
 +/* ====================================================================
 + * Copyright (c) 2011 The OpenSSL Project.  All rights reserved.
@@ -15381,9 +15369,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_locl.h.fips openssl-1.0.1b/crypto/fips/
 +}
 +#endif
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_md.c.fips openssl-1.0.1b/crypto/fips/fips_md.c
---- openssl-1.0.1b/crypto/fips/fips_md.c.fips  2012-04-26 18:00:51.405769408 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_md.c       2012-04-26 18:00:51.405769408 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_md.c.fips openssl-1.0.1e/crypto/fips/fips_md.c
+--- openssl-1.0.1e/crypto/fips/fips_md.c.fips  2013-02-19 12:47:33.740118893 +0100
++++ openssl-1.0.1e/crypto/fips/fips_md.c       2013-02-19 12:47:33.740118893 +0100
 @@ -0,0 +1,145 @@
 +/* fips/evp/fips_md.c */
 +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
@@ -15530,9 +15518,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_md.c.fips openssl-1.0.1b/crypto/fips/fi
 +              return NULL;
 +              }
 +      }
-diff -up openssl-1.0.1b/crypto/fips/fips_post.c.fips openssl-1.0.1b/crypto/fips/fips_post.c
---- openssl-1.0.1b/crypto/fips/fips_post.c.fips        2012-04-26 18:00:51.406769429 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_post.c     2012-04-26 18:00:51.406769429 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_post.c.fips openssl-1.0.1e/crypto/fips/fips_post.c
+--- openssl-1.0.1e/crypto/fips/fips_post.c.fips        2013-02-19 12:47:33.740118893 +0100
++++ openssl-1.0.1e/crypto/fips/fips_post.c     2013-02-19 12:47:33.740118893 +0100
 @@ -0,0 +1,205 @@
 +/* ====================================================================
 + * Copyright (c) 2011 The OpenSSL Project.  All rights reserved.
@@ -15739,9 +15727,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_post.c.fips openssl-1.0.1b/crypto/fips/
 +      return 1;
 +      }
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_rand.c.fips openssl-1.0.1b/crypto/fips/fips_rand.c
---- openssl-1.0.1b/crypto/fips/fips_rand.c.fips        2012-04-26 18:00:51.406769429 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_rand.c     2012-04-26 18:00:51.406769429 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_rand.c.fips openssl-1.0.1e/crypto/fips/fips_rand.c
+--- openssl-1.0.1e/crypto/fips/fips_rand.c.fips        2013-02-19 12:47:33.740118893 +0100
++++ openssl-1.0.1e/crypto/fips/fips_rand.c     2013-02-19 12:47:33.740118893 +0100
 @@ -0,0 +1,457 @@
 +/* ====================================================================
 + * Copyright (c) 2007 The OpenSSL Project.  All rights reserved.
@@ -16200,9 +16188,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_rand.c.fips openssl-1.0.1b/crypto/fips/
 +}
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_rand.h.fips openssl-1.0.1b/crypto/fips/fips_rand.h
---- openssl-1.0.1b/crypto/fips/fips_rand.h.fips        2012-04-26 18:00:51.406769429 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_rand.h     2012-04-26 18:00:51.406769429 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_rand.h.fips openssl-1.0.1e/crypto/fips/fips_rand.h
+--- openssl-1.0.1e/crypto/fips/fips_rand.h.fips        2013-02-19 12:47:33.740118893 +0100
++++ openssl-1.0.1e/crypto/fips/fips_rand.h     2013-02-19 12:47:33.741118914 +0100
 @@ -0,0 +1,145 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -16349,9 +16337,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_rand.h.fips openssl-1.0.1b/crypto/fips/
 +#endif
 +#endif
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_rand_lcl.h.fips openssl-1.0.1b/crypto/fips/fips_rand_lcl.h
---- openssl-1.0.1b/crypto/fips/fips_rand_lcl.h.fips    2012-04-26 18:00:51.406769429 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_rand_lcl.h 2012-04-26 18:00:51.406769429 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_rand_lcl.h.fips openssl-1.0.1e/crypto/fips/fips_rand_lcl.h
+--- openssl-1.0.1e/crypto/fips/fips_rand_lcl.h.fips    2013-02-19 12:47:33.741118914 +0100
++++ openssl-1.0.1e/crypto/fips/fips_rand_lcl.h 2013-02-19 12:47:33.741118914 +0100
 @@ -0,0 +1,219 @@
 +/* fips/rand/fips_rand_lcl.h */
 +/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
@@ -16572,9 +16560,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_rand_lcl.h.fips openssl-1.0.1b/crypto/f
 +#define FIPS_digestupdate EVP_DigestUpdate
 +#define FIPS_digestfinal EVP_DigestFinal
 +#define M_EVP_MD_size EVP_MD_size
-diff -up openssl-1.0.1b/crypto/fips/fips_rand_lib.c.fips openssl-1.0.1b/crypto/fips/fips_rand_lib.c
---- openssl-1.0.1b/crypto/fips/fips_rand_lib.c.fips    2012-04-26 18:00:51.407769451 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_rand_lib.c 2012-04-26 18:00:51.407769451 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_rand_lib.c.fips openssl-1.0.1e/crypto/fips/fips_rand_lib.c
+--- openssl-1.0.1e/crypto/fips/fips_rand_lib.c.fips    2013-02-19 12:47:33.741118914 +0100
++++ openssl-1.0.1e/crypto/fips/fips_rand_lib.c 2013-02-19 12:47:33.741118914 +0100
 @@ -0,0 +1,191 @@
 +/* ====================================================================
 + * Copyright (c) 2011 The OpenSSL Project.  All rights reserved.
@@ -16767,9 +16755,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_rand_lib.c.fips openssl-1.0.1b/crypto/f
 +              }
 +      return 0;
 +      }
-diff -up openssl-1.0.1b/crypto/fips/fips_rand_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_rand_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_rand_selftest.c.fips       2012-04-26 18:00:51.407769451 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_rand_selftest.c    2012-04-26 18:00:51.407769451 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_rand_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_rand_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_rand_selftest.c.fips       2013-02-19 12:47:33.741118914 +0100
++++ openssl-1.0.1e/crypto/fips/fips_rand_selftest.c    2013-02-19 12:47:33.741118914 +0100
 @@ -0,0 +1,183 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -16954,9 +16942,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_rand_selftest.c.fips openssl-1.0.1b/cry
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_randtest.c.fips openssl-1.0.1b/crypto/fips/fips_randtest.c
---- openssl-1.0.1b/crypto/fips/fips_randtest.c.fips    2012-04-26 18:00:51.407769451 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_randtest.c 2012-04-26 18:00:51.407769451 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_randtest.c.fips openssl-1.0.1e/crypto/fips/fips_randtest.c
+--- openssl-1.0.1e/crypto/fips/fips_randtest.c.fips    2013-02-19 12:47:33.741118914 +0100
++++ openssl-1.0.1e/crypto/fips/fips_randtest.c 2013-02-19 12:47:33.741118914 +0100
 @@ -0,0 +1,250 @@
 +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
 + * All rights reserved.
@@ -17208,9 +17196,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_randtest.c.fips openssl-1.0.1b/crypto/f
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_rsa_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_rsa_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_rsa_selftest.c.fips        2012-04-26 18:00:51.407769451 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_rsa_selftest.c     2012-04-26 18:00:51.407769451 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_rsa_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_rsa_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_rsa_selftest.c.fips        2013-02-19 12:47:33.742118935 +0100
++++ openssl-1.0.1e/crypto/fips/fips_rsa_selftest.c     2013-02-19 12:47:33.742118935 +0100
 @@ -0,0 +1,444 @@
 +/* ====================================================================
 + * Copyright (c) 2003-2007 The OpenSSL Project.  All rights reserved.
@@ -17656,9 +17644,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_rsa_selftest.c.fips openssl-1.0.1b/cryp
 +      }
 +
 +#endif /* def OPENSSL_FIPS */
-diff -up openssl-1.0.1b/crypto/fips/fips_rsa_x931g.c.fips openssl-1.0.1b/crypto/fips/fips_rsa_x931g.c
---- openssl-1.0.1b/crypto/fips/fips_rsa_x931g.c.fips   2012-04-26 18:00:51.408769474 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_rsa_x931g.c        2012-04-26 18:00:51.408769474 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_rsa_x931g.c.fips openssl-1.0.1e/crypto/fips/fips_rsa_x931g.c
+--- openssl-1.0.1e/crypto/fips/fips_rsa_x931g.c.fips   2013-02-19 12:47:33.742118935 +0100
++++ openssl-1.0.1e/crypto/fips/fips_rsa_x931g.c        2013-02-19 12:47:33.742118935 +0100
 @@ -0,0 +1,282 @@
 +/* crypto/rsa/rsa_gen.c */
 +/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
@@ -17942,9 +17930,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_rsa_x931g.c.fips openssl-1.0.1b/crypto/
 +      return 0;
 +
 +      }
-diff -up openssl-1.0.1b/crypto/fips/fips_sha_selftest.c.fips openssl-1.0.1b/crypto/fips/fips_sha_selftest.c
---- openssl-1.0.1b/crypto/fips/fips_sha_selftest.c.fips        2012-04-26 18:00:51.408769474 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_sha_selftest.c     2012-04-26 18:00:51.408769474 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_sha_selftest.c.fips openssl-1.0.1e/crypto/fips/fips_sha_selftest.c
+--- openssl-1.0.1e/crypto/fips/fips_sha_selftest.c.fips        2013-02-19 12:47:33.742118935 +0100
++++ openssl-1.0.1e/crypto/fips/fips_sha_selftest.c     2013-02-19 12:47:33.742118935 +0100
 @@ -0,0 +1,140 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -18086,9 +18074,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_sha_selftest.c.fips openssl-1.0.1b/cryp
 +      }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/fips_standalone_hmac.c.fips openssl-1.0.1b/crypto/fips/fips_standalone_hmac.c
---- openssl-1.0.1b/crypto/fips/fips_standalone_hmac.c.fips     2012-04-26 18:00:51.408769474 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_standalone_hmac.c  2012-04-26 18:00:51.408769474 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_standalone_hmac.c.fips openssl-1.0.1e/crypto/fips/fips_standalone_hmac.c
+--- openssl-1.0.1e/crypto/fips/fips_standalone_hmac.c.fips     2013-02-19 12:47:33.742118935 +0100
++++ openssl-1.0.1e/crypto/fips/fips_standalone_hmac.c  2013-02-19 12:47:33.742118935 +0100
 @@ -0,0 +1,180 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -18270,9 +18258,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_standalone_hmac.c.fips openssl-1.0.1b/c
 +    }
 +
 +
-diff -up openssl-1.0.1b/crypto/fips/fips_test_suite.c.fips openssl-1.0.1b/crypto/fips/fips_test_suite.c
---- openssl-1.0.1b/crypto/fips/fips_test_suite.c.fips  2012-04-26 18:00:51.408769474 +0200
-+++ openssl-1.0.1b/crypto/fips/fips_test_suite.c       2012-04-26 18:00:51.408769474 +0200
+diff -up openssl-1.0.1e/crypto/fips/fips_test_suite.c.fips openssl-1.0.1e/crypto/fips/fips_test_suite.c
+--- openssl-1.0.1e/crypto/fips/fips_test_suite.c.fips  2013-02-19 12:47:33.743118955 +0100
++++ openssl-1.0.1e/crypto/fips/fips_test_suite.c       2013-02-19 12:47:33.743118955 +0100
 @@ -0,0 +1,588 @@
 +/* ====================================================================
 + * Copyright (c) 2003 The OpenSSL Project.  All rights reserved.
@@ -18862,9 +18850,9 @@ diff -up openssl-1.0.1b/crypto/fips/fips_test_suite.c.fips openssl-1.0.1b/crypto
 +    }
 +
 +#endif
-diff -up openssl-1.0.1b/crypto/fips/Makefile.fips openssl-1.0.1b/crypto/fips/Makefile
---- openssl-1.0.1b/crypto/fips/Makefile.fips   2012-04-26 18:00:51.409769496 +0200
-+++ openssl-1.0.1b/crypto/fips/Makefile        2012-04-26 18:00:51.409769496 +0200
+diff -up openssl-1.0.1e/crypto/fips/Makefile.fips openssl-1.0.1e/crypto/fips/Makefile
+--- openssl-1.0.1e/crypto/fips/Makefile.fips   2013-02-19 12:47:33.743118955 +0100
++++ openssl-1.0.1e/crypto/fips/Makefile        2013-02-19 12:47:33.743118955 +0100
 @@ -0,0 +1,340 @@
 +#
 +# OpenSSL/crypto/fips/Makefile
@@ -19206,9 +19194,9 @@ diff -up openssl-1.0.1b/crypto/fips/Makefile.fips openssl-1.0.1b/crypto/fips/Mak
 +fips_sha_selftest.o: ../../include/openssl/safestack.h
 +fips_sha_selftest.o: ../../include/openssl/sha.h ../../include/openssl/stack.h
 +fips_sha_selftest.o: ../../include/openssl/symhacks.h fips_sha_selftest.c
-diff -up openssl-1.0.1b/crypto/hmac/hmac.c.fips openssl-1.0.1b/crypto/hmac/hmac.c
---- openssl-1.0.1b/crypto/hmac/hmac.c.fips     2011-06-12 17:07:26.000000000 +0200
-+++ openssl-1.0.1b/crypto/hmac/hmac.c  2012-04-26 18:00:51.409769496 +0200
+diff -up openssl-1.0.1e/crypto/hmac/hmac.c.fips openssl-1.0.1e/crypto/hmac/hmac.c
+--- openssl-1.0.1e/crypto/hmac/hmac.c.fips     2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/hmac/hmac.c  2013-02-19 12:47:33.743118955 +0100
 @@ -81,11 +81,6 @@ int HMAC_Init_ex(HMAC_CTX *ctx, const vo
                        EVPerr(EVP_F_HMAC_INIT_EX, EVP_R_DISABLED_FOR_FIPS);
                        return 0;
@@ -19271,9 +19259,9 @@ diff -up openssl-1.0.1b/crypto/hmac/hmac.c.fips openssl-1.0.1b/crypto/hmac/hmac.
        EVP_MD_CTX_cleanup(&ctx->i_ctx);
        EVP_MD_CTX_cleanup(&ctx->o_ctx);
        EVP_MD_CTX_cleanup(&ctx->md_ctx);
-diff -up openssl-1.0.1b/crypto/md2/md2_dgst.c.fips openssl-1.0.1b/crypto/md2/md2_dgst.c
---- openssl-1.0.1b/crypto/md2/md2_dgst.c.fips  2011-06-01 15:39:43.000000000 +0200
-+++ openssl-1.0.1b/crypto/md2/md2_dgst.c       2012-04-26 18:00:51.409769496 +0200
+diff -up openssl-1.0.1e/crypto/md2/md2_dgst.c.fips openssl-1.0.1e/crypto/md2/md2_dgst.c
+--- openssl-1.0.1e/crypto/md2/md2_dgst.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/md2/md2_dgst.c       2013-02-19 12:47:33.743118955 +0100
 @@ -62,6 +62,11 @@
  #include <openssl/md2.h>
  #include <openssl/opensslv.h>
@@ -19295,9 +19283,9 @@ diff -up openssl-1.0.1b/crypto/md2/md2_dgst.c.fips openssl-1.0.1b/crypto/md2/md2
        {
        c->num=0;
        memset(c->state,0,sizeof c->state);
-diff -up openssl-1.0.1b/crypto/md4/md4_dgst.c.fips openssl-1.0.1b/crypto/md4/md4_dgst.c
---- openssl-1.0.1b/crypto/md4/md4_dgst.c.fips  2011-06-01 15:39:43.000000000 +0200
-+++ openssl-1.0.1b/crypto/md4/md4_dgst.c       2012-04-26 18:00:51.409769496 +0200
+diff -up openssl-1.0.1e/crypto/md4/md4_dgst.c.fips openssl-1.0.1e/crypto/md4/md4_dgst.c
+--- openssl-1.0.1e/crypto/md4/md4_dgst.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/md4/md4_dgst.c       2013-02-19 12:47:33.744118975 +0100
 @@ -71,7 +71,7 @@ const char MD4_version[]="MD4" OPENSSL_V
  #define INIT_DATA_C (unsigned long)0x98badcfeL
  #define INIT_DATA_D (unsigned long)0x10325476L
@@ -19307,9 +19295,9 @@ diff -up openssl-1.0.1b/crypto/md4/md4_dgst.c.fips openssl-1.0.1b/crypto/md4/md4
        {
        memset (c,0,sizeof(*c));
        c->A=INIT_DATA_A;
-diff -up openssl-1.0.1b/crypto/md5/md5_dgst.c.fips openssl-1.0.1b/crypto/md5/md5_dgst.c
---- openssl-1.0.1b/crypto/md5/md5_dgst.c.fips  2011-06-01 15:39:43.000000000 +0200
-+++ openssl-1.0.1b/crypto/md5/md5_dgst.c       2012-04-26 18:00:51.409769496 +0200
+diff -up openssl-1.0.1e/crypto/md5/md5_dgst.c.fips openssl-1.0.1e/crypto/md5/md5_dgst.c
+--- openssl-1.0.1e/crypto/md5/md5_dgst.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/md5/md5_dgst.c       2013-02-19 12:47:33.744118975 +0100
 @@ -71,7 +71,7 @@ const char MD5_version[]="MD5" OPENSSL_V
  #define INIT_DATA_C (unsigned long)0x98badcfeL
  #define INIT_DATA_D (unsigned long)0x10325476L
@@ -19319,9 +19307,9 @@ diff -up openssl-1.0.1b/crypto/md5/md5_dgst.c.fips openssl-1.0.1b/crypto/md5/md5
        {
        memset (c,0,sizeof(*c));
        c->A=INIT_DATA_A;
-diff -up openssl-1.0.1b/crypto/mdc2/mdc2dgst.c.fips openssl-1.0.1b/crypto/mdc2/mdc2dgst.c
---- openssl-1.0.1b/crypto/mdc2/mdc2dgst.c.fips 2011-06-01 15:39:44.000000000 +0200
-+++ openssl-1.0.1b/crypto/mdc2/mdc2dgst.c      2012-04-26 18:00:51.691775656 +0200
+diff -up openssl-1.0.1e/crypto/mdc2/mdc2dgst.c.fips openssl-1.0.1e/crypto/mdc2/mdc2dgst.c
+--- openssl-1.0.1e/crypto/mdc2/mdc2dgst.c.fips 2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/mdc2/mdc2dgst.c      2013-02-19 12:47:33.744118975 +0100
 @@ -76,7 +76,7 @@
                        *((c)++)=(unsigned char)(((l)>>24L)&0xff))
  
@@ -19331,9 +19319,21 @@ diff -up openssl-1.0.1b/crypto/mdc2/mdc2dgst.c.fips openssl-1.0.1b/crypto/mdc2/m
        {
        c->num=0;
        c->pad_type=1;
-diff -up openssl-1.0.1b/crypto/o_init.c.fips openssl-1.0.1b/crypto/o_init.c
---- openssl-1.0.1b/crypto/o_init.c.fips        2011-05-26 16:19:19.000000000 +0200
-+++ openssl-1.0.1b/crypto/o_init.c     2012-04-26 18:00:51.696775766 +0200
+diff -up openssl-1.0.1e/crypto/o_fips.c.fips openssl-1.0.1e/crypto/o_fips.c
+--- openssl-1.0.1e/crypto/o_fips.c.fips        2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/o_fips.c     2013-02-19 12:47:33.744118975 +0100
+@@ -79,6 +79,8 @@ int FIPS_mode_set(int r)
+ #ifndef FIPS_AUTH_USER_PASS
+ #define FIPS_AUTH_USER_PASS   "Default FIPS Crypto User Password"
+ #endif
++      if (FIPS_module_mode()) /* can be implicitly initialized by OPENSSL_init() */
++              return 1;
+       if (!FIPS_module_mode_set(r, FIPS_AUTH_USER_PASS))
+               return 0;
+       if (r)
+diff -up openssl-1.0.1e/crypto/o_init.c.fips openssl-1.0.1e/crypto/o_init.c
+--- openssl-1.0.1e/crypto/o_init.c.fips        2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/o_init.c     2013-02-19 12:47:33.744118975 +0100
 @@ -55,28 +55,63 @@
  #include <e_os.h>
  #include <openssl/err.h>
@@ -19402,9 +19402,9 @@ diff -up openssl-1.0.1b/crypto/o_init.c.fips openssl-1.0.1b/crypto/o_init.c
 +      {
 +      OPENSSL_init_library();
 +      }
-diff -up openssl-1.0.1b/crypto/opensslconf.h.in.fips openssl-1.0.1b/crypto/opensslconf.h.in
---- openssl-1.0.1b/crypto/opensslconf.h.in.fips        2005-12-16 11:37:23.000000000 +0100
-+++ openssl-1.0.1b/crypto/opensslconf.h.in     2012-04-26 18:00:51.702775897 +0200
+diff -up openssl-1.0.1e/crypto/opensslconf.h.in.fips openssl-1.0.1e/crypto/opensslconf.h.in
+--- openssl-1.0.1e/crypto/opensslconf.h.in.fips        2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/opensslconf.h.in     2013-02-19 12:47:33.744118975 +0100
 @@ -1,5 +1,20 @@
  /* crypto/opensslconf.h.in */
  
@@ -19426,9 +19426,9 @@ diff -up openssl-1.0.1b/crypto/opensslconf.h.in.fips openssl-1.0.1b/crypto/opens
  /* Generate 80386 code? */
  #undef I386_ONLY
  
-diff -up openssl-1.0.1b/crypto/pkcs12/p12_crt.c.fips openssl-1.0.1b/crypto/pkcs12/p12_crt.c
---- openssl-1.0.1b/crypto/pkcs12/p12_crt.c.fips        2009-03-09 14:08:04.000000000 +0100
-+++ openssl-1.0.1b/crypto/pkcs12/p12_crt.c     2012-04-26 18:00:51.708776028 +0200
+diff -up openssl-1.0.1e/crypto/pkcs12/p12_crt.c.fips openssl-1.0.1e/crypto/pkcs12/p12_crt.c
+--- openssl-1.0.1e/crypto/pkcs12/p12_crt.c.fips        2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/pkcs12/p12_crt.c     2013-02-19 12:47:33.744118975 +0100
 @@ -59,6 +59,10 @@
  #include <stdio.h>
  #include "cryptlib.h"
@@ -19455,9 +19455,9 @@ diff -up openssl-1.0.1b/crypto/pkcs12/p12_crt.c.fips openssl-1.0.1b/crypto/pkcs1
        if (!nid_key)
                nid_key = NID_pbe_WithSHA1And3_Key_TripleDES_CBC;
        if (!iter)
-diff -up openssl-1.0.1b/crypto/rand/md_rand.c.fips openssl-1.0.1b/crypto/rand/md_rand.c
---- openssl-1.0.1b/crypto/rand/md_rand.c.fips  2011-01-26 15:55:23.000000000 +0100
-+++ openssl-1.0.1b/crypto/rand/md_rand.c       2012-04-26 18:00:51.713776137 +0200
+diff -up openssl-1.0.1e/crypto/rand/md_rand.c.fips openssl-1.0.1e/crypto/rand/md_rand.c
+--- openssl-1.0.1e/crypto/rand/md_rand.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/rand/md_rand.c       2013-02-19 12:47:33.745118995 +0100
 @@ -389,7 +389,10 @@ static int ssleay_rand_bytes(unsigned ch
        CRYPTO_w_unlock(CRYPTO_LOCK_RAND2);
        crypto_lock_rand = 1;
@@ -19470,9 +19470,9 @@ diff -up openssl-1.0.1b/crypto/rand/md_rand.c.fips openssl-1.0.1b/crypto/rand/md
                {
                RAND_poll();
                initialized = 1;
-diff -up openssl-1.0.1b/crypto/rand/rand.h.fips openssl-1.0.1b/crypto/rand/rand.h
---- openssl-1.0.1b/crypto/rand/rand.h.fips     2012-04-26 18:00:50.809756388 +0200
-+++ openssl-1.0.1b/crypto/rand/rand.h  2012-04-26 18:00:51.714776159 +0200
+diff -up openssl-1.0.1e/crypto/rand/rand.h.fips openssl-1.0.1e/crypto/rand/rand.h
+--- openssl-1.0.1e/crypto/rand/rand.h.fips     2013-02-19 12:47:33.176107430 +0100
++++ openssl-1.0.1e/crypto/rand/rand.h  2013-02-19 12:47:33.745118995 +0100
 @@ -133,15 +133,33 @@ void ERR_load_RAND_strings(void);
  /* Error codes for the RAND functions. */
  
@@ -19511,9 +19511,9 @@ diff -up openssl-1.0.1b/crypto/rand/rand.h.fips openssl-1.0.1b/crypto/rand/rand.
  
  #ifdef  __cplusplus
  }
-diff -up openssl-1.0.1b/crypto/ripemd/rmd_dgst.c.fips openssl-1.0.1b/crypto/ripemd/rmd_dgst.c
---- openssl-1.0.1b/crypto/ripemd/rmd_dgst.c.fips       2011-06-01 15:39:44.000000000 +0200
-+++ openssl-1.0.1b/crypto/ripemd/rmd_dgst.c    2012-04-26 18:00:51.715776181 +0200
+diff -up openssl-1.0.1e/crypto/ripemd/rmd_dgst.c.fips openssl-1.0.1e/crypto/ripemd/rmd_dgst.c
+--- openssl-1.0.1e/crypto/ripemd/rmd_dgst.c.fips       2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/ripemd/rmd_dgst.c    2013-02-19 12:47:33.745118995 +0100
 @@ -70,7 +70,7 @@ const char RMD160_version[]="RIPE-MD160"
       void ripemd160_block(RIPEMD160_CTX *c, unsigned long *p,size_t num);
  #  endif
@@ -19523,9 +19523,9 @@ diff -up openssl-1.0.1b/crypto/ripemd/rmd_dgst.c.fips openssl-1.0.1b/crypto/ripe
        {
        memset (c,0,sizeof(*c));
        c->A=RIPEMD160_A;
-diff -up openssl-1.0.1b/crypto/rsa/rsa_crpt.c.fips openssl-1.0.1b/crypto/rsa/rsa_crpt.c
---- openssl-1.0.1b/crypto/rsa/rsa_crpt.c.fips  2011-06-02 20:22:42.000000000 +0200
-+++ openssl-1.0.1b/crypto/rsa/rsa_crpt.c       2012-04-26 18:00:51.715776181 +0200
+diff -up openssl-1.0.1e/crypto/rsa/rsa_crpt.c.fips openssl-1.0.1e/crypto/rsa/rsa_crpt.c
+--- openssl-1.0.1e/crypto/rsa/rsa_crpt.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/rsa/rsa_crpt.c       2013-02-19 12:47:33.745118995 +0100
 @@ -90,10 +90,9 @@ int RSA_private_encrypt(int flen, const
             RSA *rsa, int padding)
        {
@@ -19552,9 +19552,9 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa_crpt.c.fips openssl-1.0.1b/crypto/rsa/rsa
                return -1;
                }
  #endif
-diff -up openssl-1.0.1b/crypto/rsa/rsa_eay.c.fips openssl-1.0.1b/crypto/rsa/rsa_eay.c
---- openssl-1.0.1b/crypto/rsa/rsa_eay.c.fips   2011-10-19 16:58:59.000000000 +0200
-+++ openssl-1.0.1b/crypto/rsa/rsa_eay.c        2012-04-26 18:00:51.716776203 +0200
+diff -up openssl-1.0.1e/crypto/rsa/rsa_eay.c.fips openssl-1.0.1e/crypto/rsa/rsa_eay.c
+--- openssl-1.0.1e/crypto/rsa/rsa_eay.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/rsa/rsa_eay.c        2013-02-19 12:47:33.745118995 +0100
 @@ -114,6 +114,10 @@
  #include <openssl/bn.h>
  #include <openssl/rsa.h>
@@ -19675,22 +19675,6 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa_eay.c.fips openssl-1.0.1b/crypto/rsa/rsa_
        if (BN_num_bits(rsa->n) > OPENSSL_RSA_MAX_MODULUS_BITS)
                {
                RSAerr(RSA_F_RSA_EAY_PUBLIC_DECRYPT, RSA_R_MODULUS_TOO_LARGE);
-@@ -847,12 +923,12 @@ static int RSA_eay_mod_exp(BIGNUM *r0, c
-       if (!BN_mod(r0,pr1,rsa->p,ctx)) goto err;
-       /* If p < q it is occasionally possible for the correction of
--         * adding 'p' if r0 is negative above to leave the result still
-+       * adding 'p' if r0 is negative above to leave the result still
-        * negative. This can break the private key operations: the following
-        * second correction should *always* correct this rare occurrence.
-        * This will *never* happen with OpenSSL generated keys because
--         * they ensure p > q [steve]
--         */
-+       * they ensure p > q [steve]
-+       */
-       if (BN_is_negative(r0))
-               if (!BN_add(r0,r0,rsa->p)) goto err;
-       if (!BN_mul(r1,r0,rsa->q,ctx)) goto err;
 @@ -897,6 +973,9 @@ err:
  
  static int RSA_eay_init(RSA *rsa)
@@ -19701,9 +19685,9 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa_eay.c.fips openssl-1.0.1b/crypto/rsa/rsa_
        rsa->flags|=RSA_FLAG_CACHE_PUBLIC|RSA_FLAG_CACHE_PRIVATE;
        return(1);
        }
-diff -up openssl-1.0.1b/crypto/rsa/rsa_err.c.fips openssl-1.0.1b/crypto/rsa/rsa_err.c
---- openssl-1.0.1b/crypto/rsa/rsa_err.c.fips   2011-10-10 01:13:50.000000000 +0200
-+++ openssl-1.0.1b/crypto/rsa/rsa_err.c        2012-04-26 18:00:51.717776225 +0200
+diff -up openssl-1.0.1e/crypto/rsa/rsa_err.c.fips openssl-1.0.1e/crypto/rsa/rsa_err.c
+--- openssl-1.0.1e/crypto/rsa/rsa_err.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/rsa/rsa_err.c        2013-02-19 12:47:33.746119015 +0100
 @@ -121,6 +121,8 @@ static ERR_STRING_DATA RSA_str_functs[]=
  {ERR_FUNC(RSA_F_RSA_PUBLIC_ENCRYPT),  "RSA_public_encrypt"},
  {ERR_FUNC(RSA_F_RSA_PUB_DECODE),      "RSA_PUB_DECODE"},
@@ -19713,9 +19697,9 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa_err.c.fips openssl-1.0.1b/crypto/rsa/rsa_
  {ERR_FUNC(RSA_F_RSA_SIGN),    "RSA_sign"},
  {ERR_FUNC(RSA_F_RSA_SIGN_ASN1_OCTET_STRING),  "RSA_sign_ASN1_OCTET_STRING"},
  {ERR_FUNC(RSA_F_RSA_VERIFY),  "RSA_verify"},
-diff -up openssl-1.0.1b/crypto/rsa/rsa_gen.c.fips openssl-1.0.1b/crypto/rsa/rsa_gen.c
---- openssl-1.0.1b/crypto/rsa/rsa_gen.c.fips   2011-06-09 15:18:07.000000000 +0200
-+++ openssl-1.0.1b/crypto/rsa/rsa_gen.c        2012-04-26 18:00:51.718776246 +0200
+diff -up openssl-1.0.1e/crypto/rsa/rsa_gen.c.fips openssl-1.0.1e/crypto/rsa/rsa_gen.c
+--- openssl-1.0.1e/crypto/rsa/rsa_gen.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/rsa/rsa_gen.c        2013-02-19 12:47:33.746119015 +0100
 @@ -69,6 +69,78 @@
  #include <openssl/rsa.h>
  #ifdef OPENSSL_FIPS
@@ -19857,9 +19841,9 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa_gen.c.fips openssl-1.0.1b/crypto/rsa/rsa_
        ok=1;
  err:
        if (ok == -1)
-diff -up openssl-1.0.1b/crypto/rsa/rsa.h.fips openssl-1.0.1b/crypto/rsa/rsa.h
---- openssl-1.0.1b/crypto/rsa/rsa.h.fips       2012-04-26 18:00:51.140763619 +0200
-+++ openssl-1.0.1b/crypto/rsa/rsa.h    2012-04-26 18:00:51.718776246 +0200
+diff -up openssl-1.0.1e/crypto/rsa/rsa.h.fips openssl-1.0.1e/crypto/rsa/rsa.h
+--- openssl-1.0.1e/crypto/rsa/rsa.h.fips       2013-02-19 12:47:33.485113710 +0100
++++ openssl-1.0.1e/crypto/rsa/rsa.h    2013-02-19 12:47:33.746119015 +0100
 @@ -164,6 +164,8 @@ struct rsa_st
  # define OPENSSL_RSA_MAX_MODULUS_BITS 16384
  #endif
@@ -19944,9 +19928,9 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa.h.fips openssl-1.0.1b/crypto/rsa/rsa.h
  #define RSA_R_OPERATION_NOT_SUPPORTED_FOR_THIS_KEYTYPE         148
  #define RSA_R_PADDING_CHECK_FAILED                     114
  #define RSA_R_P_NOT_PRIME                              128
-diff -up openssl-1.0.1b/crypto/rsa/rsa_lib.c.fips openssl-1.0.1b/crypto/rsa/rsa_lib.c
---- openssl-1.0.1b/crypto/rsa/rsa_lib.c.fips   2011-06-20 21:41:13.000000000 +0200
-+++ openssl-1.0.1b/crypto/rsa/rsa_lib.c        2012-04-26 18:00:51.719776267 +0200
+diff -up openssl-1.0.1e/crypto/rsa/rsa_lib.c.fips openssl-1.0.1e/crypto/rsa/rsa_lib.c
+--- openssl-1.0.1e/crypto/rsa/rsa_lib.c.fips   2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/rsa/rsa_lib.c        2013-02-19 12:47:33.746119015 +0100
 @@ -84,6 +84,13 @@ RSA *RSA_new(void)
  
  void RSA_set_default_method(const RSA_METHOD *meth)
@@ -20022,9 +20006,9 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa_lib.c.fips openssl-1.0.1b/crypto/rsa/rsa_
        if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_RSA, ret, &ret->ex_data))
                {
  #ifndef OPENSSL_NO_ENGINE
-diff -up openssl-1.0.1b/crypto/rsa/rsa_pmeth.c.fips openssl-1.0.1b/crypto/rsa/rsa_pmeth.c
---- openssl-1.0.1b/crypto/rsa/rsa_pmeth.c.fips 2012-02-15 15:14:01.000000000 +0100
-+++ openssl-1.0.1b/crypto/rsa/rsa_pmeth.c      2012-04-26 18:00:51.720776289 +0200
+diff -up openssl-1.0.1e/crypto/rsa/rsa_pmeth.c.fips openssl-1.0.1e/crypto/rsa/rsa_pmeth.c
+--- openssl-1.0.1e/crypto/rsa/rsa_pmeth.c.fips 2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/rsa/rsa_pmeth.c      2013-02-19 12:47:33.746119015 +0100
 @@ -206,22 +206,6 @@ static int pkey_rsa_sign(EVP_PKEY_CTX *c
                                        RSA_R_INVALID_DIGEST_LENGTH);
                        return -1;
@@ -20068,9 +20052,9 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa_pmeth.c.fips openssl-1.0.1b/crypto/rsa/rs
                if (rctx->pad_mode == RSA_PKCS1_PADDING)
                        return RSA_verify(EVP_MD_type(rctx->md), tbs, tbslen,
                                        sig, siglen, rsa);
-diff -up openssl-1.0.1b/crypto/rsa/rsa_sign.c.fips openssl-1.0.1b/crypto/rsa/rsa_sign.c
---- openssl-1.0.1b/crypto/rsa/rsa_sign.c.fips  2012-02-15 15:00:09.000000000 +0100
-+++ openssl-1.0.1b/crypto/rsa/rsa_sign.c       2012-04-26 18:00:51.720776289 +0200
+diff -up openssl-1.0.1e/crypto/rsa/rsa_sign.c.fips openssl-1.0.1e/crypto/rsa/rsa_sign.c
+--- openssl-1.0.1e/crypto/rsa/rsa_sign.c.fips  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/rsa/rsa_sign.c       2013-02-19 12:47:33.747119035 +0100
 @@ -138,7 +138,8 @@ int RSA_sign(int type, const unsigned ch
                i2d_X509_SIG(&sig,&p);
                s=tmps;
@@ -20102,9 +20086,9 @@ diff -up openssl-1.0.1b/crypto/rsa/rsa_sign.c.fips openssl-1.0.1b/crypto/rsa/rsa
  
        if (i <= 0) goto err;
        /* Oddball MDC2 case: signature can be OCTET STRING.
-diff -up openssl-1.0.1b/crypto/sha/sha256.c.fips openssl-1.0.1b/crypto/sha/sha256.c
---- openssl-1.0.1b/crypto/sha/sha256.c.fips    2011-06-01 15:39:44.000000000 +0200
-+++ openssl-1.0.1b/crypto/sha/sha256.c 2012-04-26 18:00:51.721776312 +0200
+diff -up openssl-1.0.1e/crypto/sha/sha256.c.fips openssl-1.0.1e/crypto/sha/sha256.c
+--- openssl-1.0.1e/crypto/sha/sha256.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/sha/sha256.c 2013-02-19 12:47:33.747119035 +0100
 @@ -12,12 +12,19 @@
  
  #include <openssl/crypto.h>
@@ -20135,9 +20119,9 @@ diff -up openssl-1.0.1b/crypto/sha/sha256.c.fips openssl-1.0.1b/crypto/sha/sha25
        memset (c,0,sizeof(*c));
        c->h[0]=0x6a09e667UL;   c->h[1]=0xbb67ae85UL;
        c->h[2]=0x3c6ef372UL;   c->h[3]=0xa54ff53aUL;
-diff -up openssl-1.0.1b/crypto/sha/sha512.c.fips openssl-1.0.1b/crypto/sha/sha512.c
---- openssl-1.0.1b/crypto/sha/sha512.c.fips    2011-11-14 21:58:01.000000000 +0100
-+++ openssl-1.0.1b/crypto/sha/sha512.c 2012-04-26 18:00:51.722776334 +0200
+diff -up openssl-1.0.1e/crypto/sha/sha512.c.fips openssl-1.0.1e/crypto/sha/sha512.c
+--- openssl-1.0.1e/crypto/sha/sha512.c.fips    2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/sha/sha512.c 2013-02-19 12:47:33.747119035 +0100
 @@ -5,6 +5,10 @@
   * ====================================================================
   */
@@ -20169,9 +20153,9 @@ diff -up openssl-1.0.1b/crypto/sha/sha512.c.fips openssl-1.0.1b/crypto/sha/sha51
        c->h[0]=U64(0x6a09e667f3bcc908);
        c->h[1]=U64(0xbb67ae8584caa73b);
        c->h[2]=U64(0x3c6ef372fe94f82b);
-diff -up openssl-1.0.1b/crypto/sha/sha.h.fips openssl-1.0.1b/crypto/sha/sha.h
---- openssl-1.0.1b/crypto/sha/sha.h.fips       2012-04-26 18:00:50.616752170 +0200
-+++ openssl-1.0.1b/crypto/sha/sha.h    2012-04-26 18:00:51.722776334 +0200
+diff -up openssl-1.0.1e/crypto/sha/sha.h.fips openssl-1.0.1e/crypto/sha/sha.h
+--- openssl-1.0.1e/crypto/sha/sha.h.fips       2013-02-19 12:47:32.986103568 +0100
++++ openssl-1.0.1e/crypto/sha/sha.h    2013-02-19 12:47:33.747119035 +0100
 @@ -116,9 +116,6 @@ unsigned char *SHA(const unsigned char *
  void SHA_Transform(SHA_CTX *c, const unsigned char *data);
  #endif
@@ -20204,9 +20188,9 @@ diff -up openssl-1.0.1b/crypto/sha/sha.h.fips openssl-1.0.1b/crypto/sha/sha.h
  int SHA384_Init(SHA512_CTX *c);
  int SHA384_Update(SHA512_CTX *c, const void *data, size_t len);
  int SHA384_Final(unsigned char *md, SHA512_CTX *c);
-diff -up openssl-1.0.1b/crypto/sha/sha_locl.h.fips openssl-1.0.1b/crypto/sha/sha_locl.h
---- openssl-1.0.1b/crypto/sha/sha_locl.h.fips  2012-04-26 18:00:50.622752302 +0200
-+++ openssl-1.0.1b/crypto/sha/sha_locl.h       2012-04-26 18:00:51.723776356 +0200
+diff -up openssl-1.0.1e/crypto/sha/sha_locl.h.fips openssl-1.0.1e/crypto/sha/sha_locl.h
+--- openssl-1.0.1e/crypto/sha/sha_locl.h.fips  2013-02-19 12:47:32.991103670 +0100
++++ openssl-1.0.1e/crypto/sha/sha_locl.h       2013-02-19 12:47:33.747119035 +0100
 @@ -123,11 +123,14 @@ void sha1_block_data_order (SHA_CTX *c,
  #define INIT_DATA_h4 0xc3d2e1f0UL
  
@@ -20223,9 +20207,9 @@ diff -up openssl-1.0.1b/crypto/sha/sha_locl.h.fips openssl-1.0.1b/crypto/sha/sha
        memset (c,0,sizeof(*c));
        c->h0=INIT_DATA_h0;
        c->h1=INIT_DATA_h1;
-diff -up openssl-1.0.1b/crypto/whrlpool/wp_dgst.c.fips openssl-1.0.1b/crypto/whrlpool/wp_dgst.c
---- openssl-1.0.1b/crypto/whrlpool/wp_dgst.c.fips      2011-06-01 15:39:45.000000000 +0200
-+++ openssl-1.0.1b/crypto/whrlpool/wp_dgst.c   2012-04-26 18:00:51.724776378 +0200
+diff -up openssl-1.0.1e/crypto/whrlpool/wp_dgst.c.fips openssl-1.0.1e/crypto/whrlpool/wp_dgst.c
+--- openssl-1.0.1e/crypto/whrlpool/wp_dgst.c.fips      2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/whrlpool/wp_dgst.c   2013-02-19 12:47:33.748119055 +0100
 @@ -55,7 +55,7 @@
  #include <openssl/crypto.h>
  #include <string.h>
@@ -20235,9 +20219,9 @@ diff -up openssl-1.0.1b/crypto/whrlpool/wp_dgst.c.fips openssl-1.0.1b/crypto/whr
        {
        memset (c,0,sizeof(*c));
        return(1);
-diff -up openssl-1.0.1b/Makefile.org.fips openssl-1.0.1b/Makefile.org
---- openssl-1.0.1b/Makefile.org.fips   2012-04-26 18:00:51.350768207 +0200
-+++ openssl-1.0.1b/Makefile.org        2012-04-26 18:00:51.724776378 +0200
+diff -up openssl-1.0.1e/Makefile.org.fips openssl-1.0.1e/Makefile.org
+--- openssl-1.0.1e/Makefile.org.fips   2013-02-19 12:47:33.678117634 +0100
++++ openssl-1.0.1e/Makefile.org        2013-02-19 12:47:33.748119055 +0100
 @@ -136,6 +136,9 @@ FIPSCANLIB=
  
  BASEADDR=
@@ -20265,9 +20249,9 @@ diff -up openssl-1.0.1b/Makefile.org.fips openssl-1.0.1b/Makefile.org
                THIS=$${THIS:-$@} MAKEFILE=Makefile MAKEOVERRIDES=
  # MAKEOVERRIDES= effectively "equalizes" GNU-ish and SysV-ish make flavors,
  # which in turn eliminates ambiguities in variable treatment with -e.
-diff -up openssl-1.0.1b/ssl/ssl_algs.c.fips openssl-1.0.1b/ssl/ssl_algs.c
---- openssl-1.0.1b/ssl/ssl_algs.c.fips 2012-01-15 14:42:50.000000000 +0100
-+++ openssl-1.0.1b/ssl/ssl_algs.c      2012-04-26 18:00:51.725776399 +0200
+diff -up openssl-1.0.1e/ssl/ssl_algs.c.fips openssl-1.0.1e/ssl/ssl_algs.c
+--- openssl-1.0.1e/ssl/ssl_algs.c.fips 2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/ssl/ssl_algs.c      2013-02-19 12:47:33.748119055 +0100
 @@ -64,6 +64,12 @@
  int SSL_library_init(void)
        {
@@ -20281,7 +20265,7 @@ diff -up openssl-1.0.1b/ssl/ssl_algs.c.fips openssl-1.0.1b/ssl/ssl_algs.c
  #ifndef OPENSSL_NO_DES
        EVP_add_cipher(EVP_des_cbc());
        EVP_add_cipher(EVP_des_ede3_cbc());
-@@ -136,6 +142,50 @@ int SSL_library_init(void)
+@@ -137,6 +143,50 @@ int SSL_library_init(void)
        EVP_add_digest(EVP_sha());
        EVP_add_digest(EVP_dss());
  #endif
diff --git a/openssl/patches/openssl-1.0.1e-issuer-hash.patch b/openssl/patches/openssl-1.0.1e-issuer-hash.patch
new file mode 100644 (file)
index 0000000..0f3bfdb
--- /dev/null
@@ -0,0 +1,11 @@
+diff -up openssl-1.0.1e/crypto/x509/x509_cmp.c.issuer-hash openssl-1.0.1e/crypto/x509/x509_cmp.c
+--- openssl-1.0.1e/crypto/x509/x509_cmp.c.issuer-hash  2013-02-11 16:26:04.000000000 +0100
++++ openssl-1.0.1e/crypto/x509/x509_cmp.c      2013-02-19 12:46:11.315788592 +0100
+@@ -85,6 +85,7 @@ unsigned long X509_issuer_and_serial_has
+       char *f;
+       EVP_MD_CTX_init(&ctx);
++      EVP_MD_CTX_set_flags(&ctx, EVP_MD_CTX_FLAG_NON_FIPS_ALLOW);
+       f=X509_NAME_oneline(a->cert_info->issuer,NULL,0);
+       if (!EVP_DigestInit_ex(&ctx, EVP_md5(), NULL))
+               goto err;
index b4dfa3b6eed1b739bbbdfd69569529002d4d5c45..7b0a0e4acbd982c7a927d5ee5923a19cf67c8c0d 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = openvswitch
-version    = 1.7.0
-release    = 3
+version    = 1.9.0
+release    = 1
 
 groups     = Networking/Tools
 url        = http://openvswitch.org/
@@ -29,7 +29,8 @@ build
 
        configure_options += \
                --enable-ssl \
-               --with-pkidir=%{sharedstatedir}/openvswitch/pki
+               --with-pkidir=%{sharedstatedir}/openvswitch/pki \
+               OVSKMOD=openvswitch
 
        install_cmds
                # Install logrotate file.
index 6186a8f1a81e4593e20505263d6446ff830fc658..fc7517d982b3598f52bf781c92d2058966e46a86 100644 (file)
@@ -4,7 +4,6 @@ After=syslog.target
 
 [Service]
 Type=oneshot
-ExecStartPre=/usr/share/openvswitch/scripts/ovs-ctl enable-protocol --protocol=gre
 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl --system-id=random start --delete-bridges
 ExecStop=/usr/share/openvswitch/scripts/ovs-ctl stop
 RemainAfterExit=yes
index be4f7a242816dbc5e07cab93056b867e4d2d088e..54be8d075c85d881721a924ed5d0dd202a318afc 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = pam
-version    = 1.1.5
-release    = 3
+version    = 1.1.6
+release    = 1
 thisapp    = Linux-PAM-%{version}
 
 groups     = System/Base
@@ -60,10 +60,6 @@ end
 
 packages
        package %{name}
-               requires
-                       pam_ldap
-               end
-
                configfiles
                        /etc/pam.d
                end
diff --git a/pam/patches/pam-1.1.5-unix-build.patch b/pam/patches/pam-1.1.5-unix-build.patch
new file mode 100644 (file)
index 0000000..d1f30d0
--- /dev/null
@@ -0,0 +1,34 @@
+diff -up Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c.build Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c
+--- Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c.build     2012-07-23 18:46:27.709804094 +0200
++++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix_acct.c   2012-07-23 18:46:27.764805293 +0200
+@@ -47,6 +47,8 @@
+ #include <time.h>             /* for time() */
+ #include <errno.h>
+ #include <sys/wait.h>
++#include <sys/time.h>
++#include <sys/resource.h>
+ #include <security/_pam_macros.h>
+diff -up Linux-PAM-1.1.5/modules/pam_unix/pam_unix_passwd.c.build Linux-PAM-1.1.5/modules/pam_unix/pam_unix_passwd.c
+--- Linux-PAM-1.1.5/modules/pam_unix/pam_unix_passwd.c.build   2012-07-23 18:55:16.433314731 +0200
++++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix_passwd.c 2012-07-23 18:54:48.064697131 +0200
+@@ -53,6 +53,7 @@
+ #include <fcntl.h>
+ #include <ctype.h>
+ #include <sys/time.h>
++#include <sys/resource.h>
+ #include <sys/stat.h>
+ #include <signal.h>
+diff -up Linux-PAM-1.1.5/modules/pam_unix/support.c.build Linux-PAM-1.1.5/modules/pam_unix/support.c
+--- Linux-PAM-1.1.5/modules/pam_unix/support.c.build   2012-07-23 18:46:27.000000000 +0200
++++ Linux-PAM-1.1.5/modules/pam_unix/support.c 2012-07-23 18:54:23.645165507 +0200
+@@ -18,6 +18,7 @@
+ #include <signal.h>
+ #include <ctype.h>
+ #include <syslog.h>
++#include <sys/time.h>
+ #include <sys/resource.h>
+ #ifdef HAVE_RPCSVC_YPCLNT_H
+ #include <rpcsvc/ypclnt.h>
diff --git a/pam/patches/pam-1.1.5-unix-no-fallback.patch b/pam/patches/pam-1.1.5-unix-no-fallback.patch
new file mode 100644 (file)
index 0000000..7857196
--- /dev/null
@@ -0,0 +1,69 @@
+diff -up Linux-PAM-1.1.5/modules/pam_unix/pam_unix.8.xml.no-fallback Linux-PAM-1.1.5/modules/pam_unix/pam_unix.8.xml
+--- Linux-PAM-1.1.5/modules/pam_unix/pam_unix.8.xml.no-fallback        2011-06-21 11:04:56.000000000 +0200
++++ Linux-PAM-1.1.5/modules/pam_unix/pam_unix.8.xml    2012-05-09 11:54:34.442036404 +0200
+@@ -265,11 +265,10 @@
+         <listitem>
+           <para>
+             When a user changes their password next,
+-            encrypt it with the SHA256 algorithm. If the
+-            SHA256 algorithm is not known to the <citerefentry>
++            encrypt it with the SHA256 algorithm. The
++            SHA256 algorithm must be supported by the <citerefentry>
+           <refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
+-            </citerefentry> function,
+-            fall back to MD5.
++            </citerefentry> function.
+           </para>
+         </listitem>
+       </varlistentry>
+@@ -280,11 +279,10 @@
+         <listitem>
+           <para>
+             When a user changes their password next,
+-            encrypt it with the SHA512 algorithm. If the
+-            SHA512 algorithm is not known to the <citerefentry>
++            encrypt it with the SHA512 algorithm. The
++            SHA512 algorithm must be supported by the <citerefentry>
+           <refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
+-            </citerefentry> function,
+-            fall back to MD5.
++            </citerefentry> function.
+           </para>
+         </listitem>
+       </varlistentry>
+@@ -295,11 +293,10 @@
+         <listitem>
+           <para>
+             When a user changes their password next,
+-            encrypt it with the blowfish algorithm. If the
+-            blowfish algorithm is not known to the <citerefentry>
++            encrypt it with the blowfish algorithm. The
++            blowfish algorithm must be supported by the <citerefentry>
+           <refentrytitle>crypt</refentrytitle><manvolnum>3</manvolnum>
+-            </citerefentry> function,
+-            fall back to MD5.
++            </citerefentry> function.
+           </para>
+         </listitem>
+       </varlistentry>
+diff -up Linux-PAM-1.1.5/modules/pam_unix/passverify.c.no-fallback Linux-PAM-1.1.5/modules/pam_unix/passverify.c
+--- Linux-PAM-1.1.5/modules/pam_unix/passverify.c.no-fallback  2012-05-09 11:48:12.409632377 +0200
++++ Linux-PAM-1.1.5/modules/pam_unix/passverify.c      2012-05-09 11:48:36.953172291 +0200
+@@ -427,15 +427,14 @@ PAMH_ARG_DECL(char * create_password_has
+       if (!sp || strncmp(algoid, sp, strlen(algoid)) != 0) {
+               /* libxcrypt/libc doesn't know the algorithm, use MD5 */
+               pam_syslog(pamh, LOG_ERR,
+-                         "Algo %s not supported by the crypto backend, "
+-                         "falling back to MD5\n",
++                         "Algo %s not supported by the crypto backend.\n",
+                          on(UNIX_BLOWFISH_PASS, ctrl) ? "blowfish" :
+                          on(UNIX_SHA256_PASS, ctrl) ? "sha256" :
+                          on(UNIX_SHA512_PASS, ctrl) ? "sha512" : algoid);
+               if(sp) {
+                  memset(sp, '\0', strlen(sp));
+               }
+-              return crypt_md5_wrapper(password);
++              return NULL;
+       }
+       return x_strdup(sp);
diff --git a/perl-libintl-perl/perl-libintl-perl.nm b/perl-libintl-perl/perl-libintl-perl.nm
new file mode 100644 (file)
index 0000000..eb511b0
--- /dev/null
@@ -0,0 +1,49 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = perl-libintl-perl
+version    = 1.23
+release    = 1
+thisapp    = libintl-perl-%{version}
+
+groups     = Development/Libraries
+url        = http://search.cpan.org/dist/libintl-perl/
+license    = GPL+ or Artistic
+summary    = An internationalization library for Perl
+
+description
+       The package libintl-perl is an internationalization library for Perl
+       that aims to be compatible with the Uniforum message translations
+       system as implemented for example in GNU gettext.
+end
+
+source_dl  = http://search.cpan.org/CPAN/authors/id/G/GU/GUIDO/
+
+build
+       requires
+               # required for perl macros
+               pakfire-builder >= 0.9.23-6
+               perl(ExtUtils::MakeMaker)
+       end
+
+       build
+               perl Makefile.PL INSTALLDIRS=vendor
+               make %{PARALLELISMFLAGS}
+       end
+
+       test
+               make test
+       end
+
+       make_install_targets = pure_install DESTDIR=%{BUILDROOT}
+end
+
+packages
+       package %{name}
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
index cc3a3f5e21ae0ffdbb957c23d8a9ea8f50f644e9..53851f265f36175c96e2884f73290ec206333910 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = pkg-config
-version    = 0.27.1
+version    = 0.28
 release    = 1
 
 groups     = Development/Tools
index 78fcbbaf50f09308a2eb125eb4ae6c59d8a2dc9b..0610edb09d43098c5dbc3692d8fdeaa9fe194224 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = python-tornado
-version    = 2.4
+version    = 3.0
 release    = 1
 arch       = noarch
 thisapp    = tornado-%{version}
@@ -21,15 +21,14 @@ description
        and reasonably fast.
 end
 
-source_dl  = http://github.com/downloads/facebook/tornado/
+source_dl  = https://pypi.python.org/packages/source/t/tornado/
+source_dl += http://github.com/downloads/facebook/tornado/
 
 build
        requires
                pakfire-builder >= 0.9.23-2
                python-devel
                python3-devel
-               python3-setuptools
-               python3-tools
        end
 
        DIR_APP3 = %{DIR_APP}-python3
@@ -38,7 +37,6 @@ build
                find tornado -name "*py" | xargs sed -e '/^#!\//, 1d' -i
 
                cp -a %{DIR_APP} %{DIR_APP3}
-               2to3 --write --nobackups %{DIR_APP3}
        end
 
        build
diff --git a/sssd/sssd.conf b/sssd/sssd.conf
new file mode 100644 (file)
index 0000000..0aef9be
--- /dev/null
@@ -0,0 +1,25 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+[sssd]
+domains = LDAP
+services = nss, pam
+config_file_version = 2
+
+[nss]
+filter_groups = root
+filter_users = root
+
+[pam]
+
+[domain/LDAP]
+id_provider = ldap
+ldap_uri = ldapi://
+ldap_search_base = @SUFFIX@
+
+cache_credentials = true
+
+min_id = 1000
+enumerate = False
diff --git a/sssd/sssd.nm b/sssd/sssd.nm
new file mode 100644 (file)
index 0000000..2f4c6ad
--- /dev/null
@@ -0,0 +1,240 @@
+###############################################################################
+# IPFire.org    - An Open Source Firewall Solution                            #
+# Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
+###############################################################################
+
+name       = sssd
+version    = 1.9.4
+release    = 2
+
+groups     = System/Tools
+url        = http://fedorahosted.org/sssd/
+license    = GPLv3+
+summary    = System Security Services Daemon.
+
+description
+       Provides a set of daemons to manage access to remote directories and
+       authentication mechanisms. It provides an NSS and PAM interface toward
+       the system and a pluggable backend system to connect to multiple different
+       account sources.
+end
+
+source_dl  = https://fedorahosted.org/released/sssd/
+
+build
+       requires
+               /usr/bin/nsupdate
+               c-ares-devel
+               cyrus-sasl-devel
+               dbus-devel
+               docbook-xsl
+               glib2-devel
+               krb5-devel >= 1.10.3
+               libcollection-devel
+               libdhash-devel
+               libini_config-devel
+               libldb-devel
+               libnl-devel
+               libsemanage-devel
+               libtalloc-devel
+               libtdb-devel
+               libtevent-devel
+               openldap-devel
+               openssl-devel
+               pam-devel >= 1.1.6
+               pcre-devel
+               popt-devel
+               python-devel
+       end
+
+       configure_options += \
+               --with-crypto=libcrypto \
+               --with-db-path=%{localstatedir}/sss/db \
+               --with-pipe-path=%{localstatedir}/sss/pipe \
+               --with-pubconf-path=%{localstatedir}/sss/pubconf \
+               --with-mcache-path=%{localstatedir}/sss/mc \
+               --with-krb5-rcache-dir=%{localstatedir}/cache/krb5rcache \
+               --with-default-ccache-dir=/run/user/%U \
+               --with-default-ccname-template=DIR:%d/krb5cc \
+               --with-initscript=systemd \
+               --with-systemdunitdir=%{unitdir} \
+               --enable-pammoddir=%{libdir}/security \
+               --disable-static \
+               --disable-rpath
+
+       install_cmds
+               # Install default config file.
+               install -m 600 %{DIR_SOURCE}/sssd.conf \
+                       %{BUILDROOT}%{sysconfdir}/sssd/sssd.conf
+
+               # Remove old sysVinit stuff.
+               rm -rvf %{BUILDROOT}%{sysconfdir}/rc.d
+       end
+end
+
+packages
+       package %{name}
+               groups += Base
+
+               configfiles
+                       %{sysconfdir}/sssd/sssd.conf
+               end
+
+               prerequires += systemd-units
+
+               script postin
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script preun
+                       systemctl --no-reload disable sssd.service >/dev/null 2>&1 || :
+                       systemctl stop sssd.service >/dev/null 2>&1 || :
+               end
+
+               script postun
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+               end
+
+               script postup
+                       systemctl daemon-reload >/dev/null 2>&1 || :
+                       systemctl try-restart sssd.service >/dev/null 2>&1 || :
+               end
+       end
+
+       package %{name}-client
+               summary = SSSD Client libraries.
+               description = %{summary}
+               groups += Base
+
+               requires
+                       %{name} = %{thisver}
+               end
+
+               obsoletes
+                       nss_ldap
+                       pam_ldap
+               end
+
+               files
+                       %{libdir}/libnss_sss.so.*
+                       %{libdir}/security/pam_sss.so
+                       %{libdir}/krb5/
+                       %{mandir}/man8/pam_sss.8*
+                       %{mandir}/man8/sssd_krb5*.8*
+               end
+
+               prerequires += \
+                       authconfig >= 6.2.5
+
+               script postin
+                       authconfig --update --enableldap --enablesssd --enablesssdauth
+               end
+
+               script postun
+                       authconfig --update --disableldap --disablesssd --disablesssdauth
+               end
+       end
+
+       package %{name}-tools
+               summary = Userspace tools for use with the SSSD.
+               description
+                       Provides userspace tools for manipulating users, groups, and nested groups in
+                       SSSD when using id_provider = local in /etc/sssd/sssd.conf.
+               end
+
+               requires
+                       %{name} = %{thisver}
+               end
+
+               files
+                       %{sbindir}/sss_*
+                       %{mandir}/man8/sss_*.8*
+               end
+       end
+
+       package %{name}-devel
+               template DEVEL
+       end
+
+       package libsss_idmap
+               summary = FreeIPA Idmap library.
+               description
+                       Utility library to convert SIDs to Unix uids and gids.
+               end
+
+               files
+                       %{libdir}/libsss_idmap.so.*
+               end
+       end
+
+       package libsss_idmap-devel
+               summary = Development files for libsss_idmap.
+               description = %{summary}
+
+               files
+                       %{libdir}/libsss_idmap.so
+                       %{libdir}/pkgconfig/sss_idmap.pc
+                       %{includedir}/sss_idmap.h
+               end
+       end
+
+       package libipa_hbac
+               summary = FreeIPA HBAC Evaluator library.
+               description
+                       Utility library to validate FreeIPA HBAC rules for authorization requests.
+               end
+
+               files
+                       %{libdir}/libipa_hbac.so.*
+               end
+       end
+
+       package libipa_hbac-devel
+               summary = Development files for libipa_hbac.
+               description = %{summary}
+
+               files
+                       %{libdir}/libipa_hbac.so
+                       %{libdir}/pkgconfig/ipa_hbac.pc
+                       %{includedir}/ipa_hbac.h
+               end
+       end
+
+       package python-libipa_hbac
+               summary = Python bindings for the FreeIPA HBAC Evaluator library.
+               description
+                       This package contains the bindings so that libipa_hbac can be
+                       used by Python applications.
+               end
+
+               files
+                       %{python_sitearch}/pyhbac.so
+               end
+       end
+
+       package libsss_sudo
+               summary = A library to allow communication between SUDO and SSSD.
+               description
+                       A utility library to allow communication between SUDO and SSSD.
+               end
+
+               files
+                       %{libdir}/libsss_sudo.so.*
+               end
+       end
+
+       package libsss_sudo-devel
+               summary = Development header for libsss_sudo.
+               description = %{summary}
+
+               files
+                       %{libdir}/libsss_sudo.so
+                       %{libdir}/pkgconfig/sss_sudo.pc
+                       %{includedir}/sss_sudo.h
+               end
+       end
+
+       package %{name}-debuginfo
+               template DEBUGINFO
+       end
+end
diff --git a/systemd/patches/systemd-187-ipfire.patch b/systemd/patches/systemd-187-ipfire.patch
deleted file mode 100644 (file)
index fbd8ea6..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-diff -Nur a/configure.ac b/configure.ac
---- a/configure.ac     2012-07-20 00:40:32.000000000 +0200
-+++ b/configure.ac     2012-07-26 21:01:58.319135633 +0200
-@@ -504,7 +504,7 @@
- AC_PATH_PROG([XSLTPROC], [xsltproc])
- AM_CONDITIONAL(HAVE_XSLTPROC, test x"$XSLTPROC" != x)
--AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux, mandriva, mageia, angstrom or other]))
-+AC_ARG_WITH(distro, AS_HELP_STRING([--with-distro=DISTRO],[Specify the distribution to target: One of fedora, suse, debian, ubuntu, arch, gentoo, slackware, altlinux, mandriva, mageia, angstrom, ipfire or other]))
- if test "z$with_distro" = "z"; then
-         if test "$cross_compiling" = yes; then
-                 AC_MSG_WARN([Target distribution cannot be reliably detected when cross-compiling. You should specify it with --with-distro (see $0 --help for recognized distros)])
-@@ -587,6 +587,12 @@
-                 AC_DEFINE(TARGET_MAGEIA, [], [Target is Mageia])
-                 M4_DEFINES=-DTARGET_MAGEIA=1
-                 ;;
-+      ipfire)
-+              SYSTEM_SYSVINIT_PATH=
-+              SYSTEM_SYSVRCND_PATH=
-+              AC_DEFINE(TARGET_IPFIRE, [], [Target is IPFire])
-+                M4_DEFINES=-DTARGET_IPFIRE=1
-+              ;;
-         other)
-                 ;;
-         *)
-@@ -639,6 +645,7 @@
- AM_CONDITIONAL(TARGET_MANDRIVA, test x"$with_distro" = xmandriva)
- AM_CONDITIONAL(TARGET_ANGSTROM, test x"$with_distro" = xangstrom)
- AM_CONDITIONAL(TARGET_MAGEIA, test x"$with_distro" = xmageia)
-+AM_CONDITIONAL(TARGET_IPFIRE, test x"$with_distro" = xipfire)
- AM_CONDITIONAL(HAVE_SYSV_COMPAT, test "$SYSTEM_SYSV_COMPAT" = "yes")
index d93414bc3f712bf8d3398cb8817e1ba89c9886ce..9c1ca212ccf7f8e805e340135d01d3b8b3c7698b 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = systemd
-version    = 196
-release    = 3
+version    = 201
+release    = 1
 
 maintainer = Stefan Schantl <stefan.schantl@ipfire.org>
 groups     = System/Base
@@ -54,7 +54,9 @@ build
        end
 
        configure_options += \
-               --with-distro=ipfire \
+               --with-sysvinit-path= \
+               --with-sysvrcnd-path= \
+               --enable-introspection=yes \
                --disable-static
 
        prepare_cmds
@@ -101,15 +103,18 @@ build
 
                # Replace absolute symlinks by relative ones.
                cd %{BUILDROOT}%{unitdir}/../user
-               for i in bluetooth local-fs printer remote-fs shutdown sockets sound swap; do
+               for i in bluetooth local-fs paths printer remote-fs shutdown smartcard sockets sound swap timers; do
                        ln -svf ../system/${i}.target ${i}.target || exit 1
                done
 
                # Remove tmpfile for X11
                rm -rfv %{BUILDROOT}/usr/lib/tmpfiles.d/x11.conf
 
-               # Remove unneeded symlink for xdg
-               rm -rfv %{BUILDROOT}/etc/xdg/systemd
+               # Remove unneeded stuff for xdg
+               rm -rfv %{BUILDROOT}/etc/xdg
+
+               # Remove unneeded stuff for rpm.
+               rm -rvf %{BUILDROOT}/etc/rpm
 
                # Use journald. Enable the import of kernel messages.
                # Stop forwarding to a syslog daemon.
@@ -134,6 +139,7 @@ packages
                        hwdata
                        python-cairo
                        python-dbus
+                       python-gobject3
                        %{name}-units=%{thisver}
                        util-linux>=2.19
                end
@@ -151,6 +157,7 @@ packages
                end
 
                conflicts
+                       bash-completion < 2.1
                        dracut < 019
                        filesystem < 002
                        rsyslog < 5.8.6-4
diff --git a/texinfo/patches/texinfo-4.12-zlib.patch b/texinfo/patches/texinfo-4.12-zlib.patch
deleted file mode 100644 (file)
index 3635b55..0000000
+++ /dev/null
@@ -1,169 +0,0 @@
-diff -up texinfo-4.12/install-info/Makefile.in_old texinfo-4.12/install-info/Makefile.in
---- texinfo-4.12/install-info/Makefile.in_old  2008-05-13 13:33:55.000000000 +0200
-+++ texinfo-4.12/install-info/Makefile.in      2008-05-13 13:52:35.000000000 +0200
-@@ -114,7 +114,7 @@ binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
- PROGRAMS = $(bin_PROGRAMS)
- am_ginstall_info_OBJECTS = install-info.$(OBJEXT)
- ginstall_info_OBJECTS = $(am_ginstall_info_OBJECTS)
--ginstall_info_LDADD = $(LDADD)
-+ginstall_info_LDADD = $(LDADD) -lz
- am__DEPENDENCIES_1 =
- ginstall_info_DEPENDENCIES = ../lib/libtxi.a \
-       $(top_builddir)/gnulib/lib/libgnu.a $(am__DEPENDENCIES_1)
-diff -up texinfo-4.12/install-info/install-info.c_old texinfo-4.12/install-info/install-info.c
---- texinfo-4.12/install-info/install-info.c_old       2008-05-13 13:52:44.000000000 +0200
-+++ texinfo-4.12/install-info/install-info.c   2008-05-14 10:30:53.000000000 +0200
-@@ -21,6 +21,7 @@
- #include <getopt.h>
- #include <regex.h>
- #include <argz.h>
-+#include <zlib.h>
- #define TAB_WIDTH 8
-@@ -638,7 +639,7 @@ The first time you invoke Info you start
-    COMPRESSION_PROGRAM.  The compression program is determined by the
-    magic number, not the filename.  */
--FILE *
-+void *
- open_possibly_compressed_file (char *filename,
-     void (*create_callback) (char *),
-     char **opened_filename, char **compression_program, int *is_pipe) 
-@@ -646,7 +647,7 @@ open_possibly_compressed_file (char *fil
-   char *local_opened_filename, *local_compression_program;
-   int nread;
-   char data[13];
--  FILE *f;
-+  gzFile *f;
-   /* We let them pass NULL if they don't want this info, but it's easier
-      to always determine it.  */
-@@ -654,22 +655,22 @@ open_possibly_compressed_file (char *fil
-     opened_filename = &local_opened_filename;
-   *opened_filename = filename;
--  f = fopen (*opened_filename, FOPEN_RBIN);
-+  f = gzopen (*opened_filename, FOPEN_RBIN);
-   if (!f)
-     {
-       *opened_filename = concat (filename, ".gz", "");
--      f = fopen (*opened_filename, FOPEN_RBIN);
-+      f = gzopen (*opened_filename, FOPEN_RBIN);
-   if (!f)
-     {
-       free (*opened_filename);
-       *opened_filename = concat (filename, ".bz2", "");
--      f = fopen (*opened_filename, FOPEN_RBIN);
-+      f = gzopen (*opened_filename, FOPEN_RBIN);
-     }
-   if (!f)
-     {
-      free (*opened_filename);
-      *opened_filename = concat (filename, ".lzma", "");
--     f = fopen (*opened_filename, FOPEN_RBIN);
-+     f = gzopen (*opened_filename, FOPEN_RBIN);
-     }
- #ifdef __MSDOS__
-@@ -677,13 +678,13 @@ open_possibly_compressed_file (char *fil
-         {
-           free (*opened_filename);
-           *opened_filename = concat (filename, ".igz", "");
--          f = fopen (*opened_filename, FOPEN_RBIN);
-+          f = gzopen (*opened_filename, FOPEN_RBIN);
-         }
-       if (!f)
-         {
-           free (*opened_filename);
-           *opened_filename = concat (filename, ".inz", "");
--          f = fopen (*opened_filename, FOPEN_RBIN);
-+          f = gzopen (*opened_filename, FOPEN_RBIN);
-         }
- #endif
-       if (!f)
-@@ -695,7 +696,7 @@ open_possibly_compressed_file (char *fil
-               /* And try opening it again.  */
-               free (*opened_filename);
-               *opened_filename = filename;
--              f = fopen (*opened_filename, FOPEN_RBIN);
-+              f = gzopen (*opened_filename, FOPEN_RBIN);
-               if (!f)
-                 pfatal_with_name (filename);
-             }
-@@ -706,12 +707,12 @@ open_possibly_compressed_file (char *fil
-   /* Read first few bytes of file rather than relying on the filename.
-      If the file is shorter than this it can't be usable anyway.  */
--  nread = fread (data, sizeof (data), 1, f);
--  if (nread != 1)
-+  nread = gzread (f, data, sizeof (data));
-+  if (nread != sizeof (data))
-     {
-       /* Empty files don't set errno, so we get something like
-          "install-info: No error for foo", which is confusing.  */
--      if (nread == 0)
-+      if (nread >= 0)
-         fatal (_("%s: empty file"), *opened_filename, 0);
-       pfatal_with_name (*opened_filename);
-     }
-@@ -758,20 +759,22 @@ open_possibly_compressed_file (char *fil
-   if (*compression_program)
-     { /* It's compressed, so fclose the file and then open a pipe.  */
-+      FILE *p;
-       char *command = concat (*compression_program," -cd <", *opened_filename);
--      if (fclose (f) < 0)
-+      if (gzclose (f) < 0)
-         pfatal_with_name (*opened_filename);
--      f = popen (command, "r");
--      if (f)
-+      p = popen (command, "r");
-+      if (p)
-         *is_pipe = 1;
-       else
-         pfatal_with_name (command);
-+      return p;
-     }
-   else
-     { /* It's a plain file, seek back over the magic bytes.  */
--      if (fseek (f, 0, 0) < 0)
-+      if (gzseek (f, 0, SEEK_SET) < 0)
-         pfatal_with_name (*opened_filename);
--#if O_BINARY
-+#if 0 && O_BINARY
-       /* Since this is a text file, and we opened it in binary mode,
-          switch back to text mode.  */
-       f = freopen (*opened_filename, "r", f);
-@@ -796,7 +799,7 @@ readfile (char *filename, int *sizep,
-     char **compression_program)
- {
-   char *real_name;
--  FILE *f;
-+  void *f;
-   int pipe_p;
-   int filled = 0;
-   int data_size = 8192;
-@@ -810,7 +813,12 @@ readfile (char *filename, int *sizep,
-   for (;;)
-     {
--      int nread = fread (data + filled, 1, data_size - filled, f);
-+      int nread;
-+      
-+      if (pipe_p)
-+       nread = fread (data + filled, 1, data_size - filled, f);
-+      else
-+       nread = gzread (f, data + filled, data_size - filled);
-       if (nread < 0)
-         pfatal_with_name (real_name);
-       if (nread == 0)
-@@ -832,7 +840,7 @@ readfile (char *filename, int *sizep,
-   if (pipe_p)
-     pclose (f);
-   else
--    fclose (f);
-+    gzclose (f);
-   *sizep = filled;
-   return data;
diff --git a/texinfo/patches/texinfo-4.13a-data_types.patch b/texinfo/patches/texinfo-4.13a-data_types.patch
deleted file mode 100644 (file)
index 2a87c21..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-diff -up texinfo-4.13/info/window.c_old texinfo-4.13/info/window.c
---- texinfo-4.13/info/window.c_old     2009-08-04 13:46:15.000000000 +0200
-+++ texinfo-4.13/info/window.c 2009-08-04 13:47:29.000000000 +0200
-@@ -1581,7 +1581,7 @@ process_node_text (WINDOW *win, char *st
-       const char *carried_over_ptr;
-       size_t carried_over_len, carried_over_count;
-       const char *cur_ptr = mbi_cur_ptr (iter);
--      int cur_len = mb_len (mbi_cur (iter));
-+      size_t cur_len = mb_len (mbi_cur (iter));
-       int replen;
-       int delim = 0;
-       int rc;
-@@ -1754,7 +1754,7 @@ clean_manpage (char *manpage)
-        mbi_advance (iter))
-     {
-       const char *cur_ptr = mbi_cur_ptr (iter);
--      int cur_len = mb_len (mbi_cur (iter));
-+      size_t cur_len = mb_len (mbi_cur (iter));
-       if (cur_len == 1)
-       {
-@@ -1852,8 +1852,8 @@ window_scan_line (WINDOW *win, int line,
-        mbi_advance (iter))
-     {
-       const char *cur_ptr = mbi_cur_ptr (iter);
--      int cur_len = mb_len (mbi_cur (iter));
--      int replen;
-+      size_t cur_len = mb_len (mbi_cur (iter));
-+      size_t replen;
-       if (cur_ptr >= endp)
-       break;
diff --git a/texinfo/patches/texinfo-4.13a-help-index-segfault.patch b/texinfo/patches/texinfo-4.13a-help-index-segfault.patch
deleted file mode 100644 (file)
index 6194176..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -up texinfo-4.13/info/indices.c.orig texinfo-4.13/info/indices.c
---- texinfo-4.13/info/indices.c.orig   2010-08-31 12:04:38.317462471 +0200
-+++ texinfo-4.13/info/indices.c        2010-08-31 12:11:49.322624552 +0200
-@@ -192,6 +192,7 @@ do_info_index_search (WINDOW *window, in
-      index for, build and remember an index now. */
-   fb = file_buffer_of_window (window);
-   if (!initial_index_filename ||
-+      !fb ||
-       (FILENAME_CMP (initial_index_filename, fb->filename) != 0))
-     {
-       info_free_references (index_index);
-@@ -287,8 +288,9 @@ index_entry_exists (WINDOW *window, char
-     return 0;
-   fb = file_buffer_of_window (window);
--  if (!initial_index_filename
--      || (FILENAME_CMP (initial_index_filename, fb->filename) != 0))
-+  if (!initial_index_filename ||
-+      !fb ||
-+      (FILENAME_CMP (initial_index_filename, fb->filename) != 0))
-     {
-       info_free_references (index_index);
-       index_index = info_indices_of_file_buffer (fb);
diff --git a/texinfo/patches/texinfo-4.13a-makeinfo-sectioning.patch b/texinfo/patches/texinfo-4.13a-makeinfo-sectioning.patch
deleted file mode 100644 (file)
index 75a2986..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-diff -up texinfo-4.13/makeinfo/sectioning.c.orig texinfo-4.13/makeinfo/sectioning.c
---- texinfo-4.13/makeinfo/sectioning.c.orig    2010-11-10 11:24:53.000000000 +0100
-+++ texinfo-4.13/makeinfo/sectioning.c 2010-11-10 11:25:28.000000000 +0100
-@@ -256,14 +256,14 @@ current_chapter_number (void)
-     return xstrdup ("");
-   else if (enum_marker == APPENDIX_MAGIC)
-     {
--      char s[1];
-+      char s[2];
-       sprintf (s, "%c", numbers[0] + 64);
-       return xstrdup (s);
-     }
-   else
-     {
-       char s[5];
--      sprintf (s, "%d", numbers[0]);
-+      sprintf (s, "%4d", numbers[0]);
-       return xstrdup (s);
-     }
- }
diff --git a/texinfo/patches/texinfo-4.13a-mosdo-crash.patch b/texinfo/patches/texinfo-4.13a-mosdo-crash.patch
deleted file mode 100644 (file)
index 77e3a76..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
---- texinfo-4.13/install-info/install-info.c.mosdo-crash       2009-09-02 20:18:44.000000000 -0400
-+++ texinfo-4.13/install-info/install-info.c   2009-09-02 20:19:53.000000000 -0400
-@@ -1765,7 +1765,7 @@
-             err = argz_add (&argz, &argz_len, opt);
-           free (opt); opt = NULL;
--          opt = xmalloc (strlen (regex) + sizeof ("--section="));
-+          opt = xmalloc (strlen (title) + sizeof ("--section="));
-           if (sprintf (opt, "--section=%s", title) == -1)
-             err = 1;
-           if (!err)
diff --git a/texinfo/patches/texinfo-4.13a-powerpc.patch b/texinfo/patches/texinfo-4.13a-powerpc.patch
deleted file mode 100644 (file)
index b6c046e..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up texinfo-4.13/install-info/install-info.c.patch texinfo-4.13/install-info/install-info.c
---- texinfo-4.13/install-info/install-info.c.patch     2010-01-11 14:46:32.000000000 +0100
-+++ texinfo-4.13/install-info/install-info.c   2010-01-11 14:48:47.162152695 +0100
-@@ -772,7 +772,7 @@ open_possibly_compressed_file (char *fil
-     }
-   else
-     { /* It's a plain file, seek back over the magic bytes.  */
--      if (gzseek (f, 0, SEEK_SET) < 0)
-+      if (gzseek (f, 0, SEEK_SET) == -1)
-         pfatal_with_name (*opened_filename);
- #if 0 && O_BINARY
-       /* Since this is a text file, and we opened it in binary mode,
diff --git a/texinfo/patches/texinfo-4.13a-testsuite_fix.patch b/texinfo/patches/texinfo-4.13a-testsuite_fix.patch
deleted file mode 100644 (file)
index 5286e7d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-diff -Nur a/makeinfo/tests/accentenc b/makeinfo/tests/accentenc
---- a/makeinfo/tests/accentenc 2004-04-11 19:56:47.000000000 +0200
-+++ b/makeinfo/tests/accentenc 2011-07-27 20:24:36.603237061 +0200
-@@ -1,7 +1,8 @@
- #!/bin/sh
- # Test encoded accent info output.
--unset TEXINFO_OUTPUT
-+unset TEXINFO_OUTPUT LANG LANGUAGE
-+LC_ALL=POSIX; export LC_ALL
- : ${srcdir=.}
- input=`basename $0`.txi
- output=`basename $0`.info
diff --git a/texinfo/patches/texinfo-4.13a-texi2dvi-regexp.patch b/texinfo/patches/texinfo-4.13a-texi2dvi-regexp.patch
deleted file mode 100644 (file)
index 54dabac..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -up texinfo-4.13/util/texi2dvi.orig texinfo-4.13/util/texi2dvi
---- texinfo-4.13/util/texi2dvi.orig    2010-10-11 14:08:21.340831908 +0200
-+++ texinfo-4.13/util/texi2dvi 2010-10-11 14:12:14.235841752 +0200
-@@ -1683,7 +1683,7 @@ input_file_name_decode ()
-   # If the COMMAND_LINE_FILENAME is not absolute (e.g., --debug.tex),
-   # prepend `./' in order to avoid that the tools take it as an option.
--  echo "$command_line_filename" | $EGREP '^(/|[A-z]:/)' >&6 \
-+  echo "$command_line_filename" | $EGREP '^(/|[A-Za-z]:/)' >&6 \
-   || command_line_filename="./$command_line_filename"
-   # See if the file exists.  If it doesn't we're in trouble since, even
index a59e45017ec44a0b88b1d957233d26ff7e91c469..e96c7310bb794c819f871ff0fefdc1a8b2128568 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = texinfo
-version    = 4.13a
-release    = 2
+version    = 5.1
+release    = 1
 
 groups     = Applications/Publishing
 url        = http://www.gnu.org/software/texinfo/
@@ -24,11 +24,10 @@ build
        requires
                help2man
                ncurses-devel
+               perl-libintl-perl
                zlib-devel
        end
 
-       DIR_APP = %{DIR_SRC}/%{name}-4.13
-
        test
                make check
        end
index 79ef3ed81a9cba2b9e24f130fbb8a5039e13ae4b..a758b5cdeb48c87a8db97a79c679b632fb939ea4 100644 (file)
@@ -3,8 +3,8 @@
 # Copyright (C) - IPFire Development Team <info@ipfire.org>                   #
 ###############################################################################
 
-tzdata_version = 2011n
-tzcode_version = 2011i
+tzdata_version = 2013b
+tzcode_version = 2013b
 
 name       = tzdata
 version    = %{tzdata_version}
@@ -12,7 +12,7 @@ release    = 1
 arch       = noarch
 
 groups     = System/Base
-url        = ftp://munnari.oz.au/pub/
+url        = http://www.iana.org/time-zones
 license    = Public Domain
 summary    = Timezone data.
 
@@ -21,8 +21,8 @@ description
        the world.
 end
 
-source_dl += ftp://elsie.nci.nih.gov/pub/
-sources    = tzdata-base-0.tar.bz2 tzdata%{tzdata_version}.tar.gz tzcode%{tzcode_version}.tar.gz
+source_dl += http://www.iana.org/time-zones/repository/releases/
+sources    = tzdata%{tzdata_version}.tar.gz tzcode%{tzcode_version}.tar.gz
 
 build
        requires
@@ -30,25 +30,20 @@ build
                perl
        end
 
-       DIR_APP = %{DIR_SRC}/tzdata
+       DIR_APP = %{DIR_SRC}/tzdata%{tzdata_version}
 
        prepare
-               %{MACRO_EXTRACT} %{DIR_DL}/tzdata-base-0.tar.bz2
-               cd %{DIR_APP}
-
-               mkdir tzdata%{tzdata_version} tzcode%{tzcode_version}
+               mkdir tzdata%{tzdata_version}
+               %{MACRO_EXTRACT} %{DIR_DL}/tzcode%{tzcode_version}.tar.gz -C tzdata%{tzdata_version}
                %{MACRO_EXTRACT} %{DIR_DL}/tzdata%{tzdata_version}.tar.gz -C tzdata%{tzdata_version}
-               %{MACRO_EXTRACT} %{DIR_DL}/tzcode%{tzcode_version}.tar.gz -C tzcode%{tzcode_version}
-
-               sed -e 's|@objpfx@|'`pwd`'/obj/|' \
-                       -e 's|@datadir@|/usr/share|' \
-                       -e 's|@install_root@|%{BUILDROOT}|' \
-                       Makeconfig.in > Makeconfig
        end
-
-       #test
-       #       make check
-       #end
+       install
+               make TOPDIR=%{BUILDROOT}/usr ETCDIR=/tmp LIBDIR=/tmp MANDIR=/tmp \
+                       TZDIR=%{BUILDROOT}/usr/share/zoneinfo install
+               mv %{BUILDROOT}/usr/share/zoneinfo-posix/ %{BUILDROOT}/usr/share/posix
+               mv %{BUILDROOT}/usr/share/zoneinfo-leaps/ %{BUILDROOT}/usr/share/right
+               rm -f %{BUILDROOT}/usr/share/zoneinfo/localtime
+       end
 end
 
 packages
index 8c2d4864702ac1a396844ab7984ccae14fd02372..621327f545a15674d8b3d35034f1d8008ba860f5 100644 (file)
@@ -4,7 +4,7 @@
 ###############################################################################
 
 name       = ulogd2
-version    = 2.0.1
+version    = 2.0.2
 release    = 1
 epoch      = 1
 thisapp    = ulogd-%{version}