[gentoo-commits] proj/linux-patches:4.5 commit in: /

2016-06-08 Thread Mike Pagano
commit: 0ee489d1a3a6a217d26da42a6151dc67d33ca20c
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Jun  8 10:11:15 2016 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Jun  8 10:11:15 2016 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=0ee489d1

Linux patch 4.5.7

 _README|4 +
 1006_linux-4.5.7.patch | 3944 
 2 files changed, 3948 insertions(+)

diff --git a/_README b/_README
index 9a3ebeb..67c9b4b 100644
--- a/_README
+++ b/_README
@@ -67,6 +67,10 @@ Patch:  1005_linux-4.5.6.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.5.6
 
+Patch:  1006_linux-4.5.7.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.5.7
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1006_linux-4.5.7.patch b/1006_linux-4.5.7.patch
new file mode 100644
index 000..a6fbea9
--- /dev/null
+++ b/1006_linux-4.5.7.patch
@@ -0,0 +1,3944 @@
+diff --git a/Documentation/devicetree/bindings/clock/imx35-clock.txt 
b/Documentation/devicetree/bindings/clock/imx35-clock.txt
+index a70356452a82..f49783213c56 100644
+--- a/Documentation/devicetree/bindings/clock/imx35-clock.txt
 b/Documentation/devicetree/bindings/clock/imx35-clock.txt
+@@ -94,6 +94,7 @@ clocks and IDs.
+   csi_sel 79
+   iim_gate80
+   gpu2d_gate  81
++  ckli_gate   82
+ 
+ Examples:
+ 
+diff --git a/Makefile b/Makefile
+index 07a1786f695a..90e4bd904d36 100644
+--- a/Makefile
 b/Makefile
+@@ -1,6 +1,6 @@
+ VERSION = 4
+ PATCHLEVEL = 5
+-SUBLEVEL = 6
++SUBLEVEL = 7
+ EXTRAVERSION =
+ NAME = Blurry Fish Butt
+ 
+@@ -364,7 +364,7 @@ AFLAGS_MODULE   =
+ LDFLAGS_MODULE  =
+ CFLAGS_KERNEL =
+ AFLAGS_KERNEL =
+-CFLAGS_GCOV   = -fprofile-arcs -ftest-coverage
++CFLAGS_GCOV   = -fprofile-arcs -ftest-coverage -fno-tree-loop-im
+ 
+ 
+ # Use USERINCLUDE when you must reference the UAPI directories only.
+diff --git a/arch/arm/boot/dts/armada-385-linksys.dtsi 
b/arch/arm/boot/dts/armada-385-linksys.dtsi
+index 85d2c377c332..8450944b28e6 100644
+--- a/arch/arm/boot/dts/armada-385-linksys.dtsi
 b/arch/arm/boot/dts/armada-385-linksys.dtsi
+@@ -245,7 +245,7 @@
+   button@2 {
+   label = "Factory Reset Button";
+   linux,code = ;
+-  gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
++  gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
+   };
+   };
+ 
+@@ -260,7 +260,7 @@
+   };
+ 
+   sata {
+-  gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
++  gpios = <&gpio1 22 GPIO_ACTIVE_LOW>;
+   default-state = "off";
+   };
+   };
+@@ -313,7 +313,7 @@
+ 
+ &pinctrl {
+   keys_pin: keys-pin {
+-  marvell,pins = "mpp24", "mpp47";
++  marvell,pins = "mpp24", "mpp29";
+   marvell,function = "gpio";
+   };
+ 
+diff --git a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts 
b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+index b89e6cf1271a..7a461541ce50 100644
+--- a/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
 b/arch/arm/boot/dts/armada-xp-linksys-mamba.dts
+@@ -304,13 +304,13 @@
+   button@1 {
+   label = "WPS";
+   linux,code = ;
+-  gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
++  gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
+   };
+ 
+   button@2 {
+   label = "Factory Reset Button";
+   linux,code = ;
+-  gpios = <&gpio1 1 GPIO_ACTIVE_HIGH>;
++  gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
+   };
+   };
+ 
+diff --git a/arch/arm/boot/dts/exynos4210-trats.dts 
b/arch/arm/boot/dts/exynos4210-trats.dts
+index a50be640f1b0..59411e447fa0 100644
+--- a/arch/arm/boot/dts/exynos4210-trats.dts
 b/arch/arm/boot/dts/exynos4210-trats.dts
+@@ -298,6 +298,8 @@
+   compatible = "maxim,max8997-pmic";
+ 
+   reg = <0x66>;
++  interrupt-parent = <&gpx0>;
++  interrupts = <7 0>;
+ 
+   max8997,pmic-buck1-uses-gpio-dvs;
+   max8997,pmic-buck2-uses-gpio-dvs;
+diff --git a/arch/arm/boot/dts/sama5d2-pinfunc.h 
b/arch/arm/boot/dts/sama5d2-pinfunc.h
+index b0c912feaa2f..8a394f336003 100644
+--- a/arch/arm/boot/dts/sama5d2-pinfunc.h
 b/arch/arm/boot/dts/sama5d2-pinfunc.h
+@@ -837,8 +837,8 @@
+ #define PIN_PD23__ISC_FIELD   PINMUX_PIN(PIN_PD23, 6, 4)
+ #define PIN_PD24  120
+ #define PIN_PD24__GPIOPINMUX_PIN(PIN_PD24, 0, 0)
+-#define PIN_PD24__UTXD2   PINMUX_PIN(PIN_PD23, 1, 2)
+-#define PIN_PD24__FLEXCOM4_IO3PINMUX_PIN(PIN_PD23, 3, 3

[gentoo-commits] proj/linux-patches:4.5 commit in: /

2016-05-11 Thread Mike Pagano
commit: 4040e317a60e2caff24458b02c1f87a41a84c644
Author: Mike Pagano  gentoo  org>
AuthorDate: Thu May 12 00:15:55 2016 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Thu May 12 00:15:55 2016 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=4040e317

Linux patch 4.5.4

 _README|4 +
 1003_linux-4.5.4.patch | 2354 
 2 files changed, 2358 insertions(+)

diff --git a/_README b/_README
index 0147ad9..a736c59 100644
--- a/_README
+++ b/_README
@@ -55,6 +55,10 @@ Patch:  1002_linux-4.5.3.patch
 From:   http://www.kernel.org
 Desc:   Linux 4.5.3
 
+Patch:  1003_linux-4.5.4.patch
+From:   http://www.kernel.org
+Desc:   Linux 4.5.4
+
 Patch:  1500_XATTR_USER_PREFIX.patch
 From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
 Desc:   Support for namespace user.pax.* on tmpfs.

diff --git a/1003_linux-4.5.4.patch b/1003_linux-4.5.4.patch
new file mode 100644
index 000..a783ee2
--- /dev/null
+++ b/1003_linux-4.5.4.patch
@@ -0,0 +1,2354 @@
+diff --git a/Documentation/devicetree/bindings/ata/ahci-platform.txt 
b/Documentation/devicetree/bindings/ata/ahci-platform.txt
+index c2340eeeb97f..c000832a7fb9 100644
+--- a/Documentation/devicetree/bindings/ata/ahci-platform.txt
 b/Documentation/devicetree/bindings/ata/ahci-platform.txt
+@@ -30,6 +30,10 @@ Optional properties:
+ - target-supply : regulator for SATA target power
+ - phys  : reference to the SATA PHY node
+ - phy-names : must be "sata-phy"
++- ports-implemented : Mask that indicates which ports that the HBA supports
++are available for software to use. Useful if PORTS_IMPL
++is not programmed by the BIOS, which is true with
++some embedded SOC's.
+ 
+ Required properties when using sub-nodes:
+ - #address-cells: number of cells to encode an address
+diff --git a/MAINTAINERS b/MAINTAINERS
+index 5a389bc68e0e..77e4c10b4c06 100644
+--- a/MAINTAINERS
 b/MAINTAINERS
+@@ -4163,8 +4163,8 @@ F:   Documentation/efi-stub.txt
+ F:arch/ia64/kernel/efi.c
+ F:arch/x86/boot/compressed/eboot.[ch]
+ F:arch/x86/include/asm/efi.h
+-F:arch/x86/platform/efi/*
+-F:drivers/firmware/efi/*
++F:arch/x86/platform/efi/
++F:drivers/firmware/efi/
+ F:include/linux/efi*.h
+ 
+ EFI VARIABLE FILESYSTEM
+diff --git a/Makefile b/Makefile
+index 9b56a6c5e36f..d64eade37241 100644
+--- a/Makefile
 b/Makefile
+@@ -1,6 +1,6 @@
+ VERSION = 4
+ PATCHLEVEL = 5
+-SUBLEVEL = 3
++SUBLEVEL = 4
+ EXTRAVERSION =
+ NAME = Blurry Fish Butt
+ 
+diff --git a/arch/arc/include/asm/io.h b/arch/arc/include/asm/io.h
+index 27b17adea50d..cb69299a492e 100644
+--- a/arch/arc/include/asm/io.h
 b/arch/arc/include/asm/io.h
+@@ -13,6 +13,15 @@
+ #include 
+ #include 
+ 
++#ifdef CONFIG_ISA_ARCV2
++#include 
++#define __iormb() rmb()
++#define __iowmb() wmb()
++#else
++#define __iormb() do { } while (0)
++#define __iowmb() do { } while (0)
++#endif
++
+ extern void __iomem *ioremap(unsigned long physaddr, unsigned long size);
+ extern void __iomem *ioremap_prot(phys_addr_t offset, unsigned long size,
+ unsigned long flags);
+@@ -22,6 +31,15 @@ extern void iounmap(const void __iomem *addr);
+ #define ioremap_wc(phy, sz)   ioremap(phy, sz)
+ #define ioremap_wt(phy, sz)   ioremap(phy, sz)
+ 
++/*
++ * io{read,write}{16,32}be() macros
++ */
++#define ioread16be(p) ({ u16 __v = be16_to_cpu((__force 
__be16)__raw_readw(p)); __iormb(); __v; })
++#define ioread32be(p) ({ u32 __v = be32_to_cpu((__force 
__be32)__raw_readl(p)); __iormb(); __v; })
++
++#define iowrite16be(v,p)  ({ __iowmb(); __raw_writew((__force 
u16)cpu_to_be16(v), p); })
++#define iowrite32be(v,p)  ({ __iowmb(); __raw_writel((__force 
u32)cpu_to_be32(v), p); })
++
+ /* Change struct page to physical address */
+ #define page_to_phys(page)(page_to_pfn(page) << PAGE_SHIFT)
+ 
+@@ -99,15 +117,6 @@ static inline void __raw_writel(u32 w, volatile void 
__iomem *addr)
+ 
+ }
+ 
+-#ifdef CONFIG_ISA_ARCV2
+-#include 
+-#define __iormb() rmb()
+-#define __iowmb() wmb()
+-#else
+-#define __iormb() do { } while (0)
+-#define __iowmb() do { } while (0)
+-#endif
+-
+ /*
+  * MMIO can also get buffered/optimized in micro-arch, so barriers needed
+  * Based on ARM model for the typical use case
+diff --git a/arch/arm/boot/dts/qcom-apq8064.dtsi 
b/arch/arm/boot/dts/qcom-apq8064.dtsi
+index ed521e85e208..e8bc7e8bedd2 100644
+--- a/arch/arm/boot/dts/qcom-apq8064.dtsi
 b/arch/arm/boot/dts/qcom-apq8064.dtsi
+@@ -665,7 +665,7 @@
+   };
+ 
+   sata0: sata@2900 {
+-  compatible  = "generic-ahci";
++  compatible  = "qcom,apq8064-ahci", 
"generic-ahci";
+

[gentoo-commits] proj/linux-patches:4.5 commit in: /

2016-03-28 Thread Anthony G. Basile
commit: dfb0a0a1ae8d29fac2ec39450ba0895328e6ffb6
Author: Anthony G. Basile  gentoo  org>
AuthorDate: Tue Mar 29 00:52:35 2016 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Tue Mar 29 00:52:35 2016 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=dfb0a0a1

Update 1500_XATTR_USER_PREFIX.patch for the new struct syntax in 4.5 kernels

 1500_XATTR_USER_PREFIX.patch | 43 +--
 1 file changed, 29 insertions(+), 14 deletions(-)

diff --git a/1500_XATTR_USER_PREFIX.patch b/1500_XATTR_USER_PREFIX.patch
index cc15cd5..bacd032 100644
--- a/1500_XATTR_USER_PREFIX.patch
+++ b/1500_XATTR_USER_PREFIX.patch
@@ -14,10 +14,10 @@ enabled for tmpfs.  Users who do not enable xattrs will not 
have
 the XATTR_PAX flags preserved.
 
 diff --git a/include/uapi/linux/xattr.h b/include/uapi/linux/xattr.h
-index e4629b9..6958086 100644
+index 1590c49..5eab462 100644
 --- a/include/uapi/linux/xattr.h
 +++ b/include/uapi/linux/xattr.h
-@@ -63,5 +63,9 @@
+@@ -73,5 +73,9 @@
  #define XATTR_POSIX_ACL_DEFAULT  "posix_acl_default"
  #define XATTR_NAME_POSIX_ACL_DEFAULT XATTR_SYSTEM_PREFIX 
XATTR_POSIX_ACL_DEFAULT
  
@@ -28,27 +28,42 @@ index e4629b9..6958086 100644
  
  #endif /* _UAPI_LINUX_XATTR_H */
 diff --git a/mm/shmem.c b/mm/shmem.c
-index 1c44af7..f23bb1b 100644
+index 440e2a7..c377172 100644
 --- a/mm/shmem.c
 +++ b/mm/shmem.c
-@@ -2201,6 +2201,7 @@ static const struct xattr_handler 
*shmem_xattr_handlers[] = {
- static int shmem_xattr_validate(const char *name)
- {
-   struct { const char *prefix; size_t len; } arr[] = {
-+  { XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN},
-   { XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN },
-   { XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN }
-   };
-@@ -2256,6 +2257,12 @@ static int shmem_setxattr(struct dentry *dentry, const 
char *name,
-   if (err)
-   return err;
+@@ -2667,6 +2667,14 @@ static int shmem_xattr_handler_set(const struct 
xattr_handler *handler,
+   struct shmem_inode_info *info = SHMEM_I(d_inode(dentry));
  
+   name = xattr_full_name(handler, name);
++
 +  if (!strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) {
 +  if (strcmp(name, XATTR_NAME_PAX_FLAGS))
 +  return -EOPNOTSUPP;
 +  if (size > 8)
 +  return -EINVAL;
 +  }
++
return simple_xattr_set(&info->xattrs, name, value, size, flags);
  }
  
+@@ -2682,6 +2690,12 @@ static const struct xattr_handler 
shmem_trusted_xattr_handler = {
+   .set = shmem_xattr_handler_set,
+ };
+ 
++static const struct xattr_handler shmem_user_xattr_handler = {
++  .prefix = XATTR_USER_PREFIX,
++  .get = shmem_xattr_handler_get,
++  .set = shmem_xattr_handler_set,
++};
++
+ static const struct xattr_handler *shmem_xattr_handlers[] = {
+ #ifdef CONFIG_TMPFS_POSIX_ACL
+   &posix_acl_access_xattr_handler,
+@@ -2689,6 +2703,7 @@ static const struct xattr_handler 
*shmem_xattr_handlers[] = {
+ #endif
+   &shmem_security_xattr_handler,
+   &shmem_trusted_xattr_handler,
++  &shmem_user_xattr_handler,
+   NULL
+ };
+ 



[gentoo-commits] proj/linux-patches:4.5 commit in: /

2016-03-27 Thread Anthony G. Basile
commit: 86d8d1264cf8a1f897ca565d2b5b08c375f67f01
Author: Anthony G. Basile  gentoo  org>
AuthorDate: Sun Mar 27 19:42:09 2016 +
Commit: Anthony G. Basile  gentoo  org>
CommitDate: Sun Mar 27 19:42:09 2016 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=86d8d126

Forward port 1500_XATTR_USER_PREFIX.patch to 4.5 kernels

 _README  |  4 
 1500_XATTR_USER_PREFIX.patch | 54 
 2 files changed, 58 insertions(+)

diff --git a/_README b/_README
index 1eb82e8..8e70e78 100644
--- a/_README
+++ b/_README
@@ -43,6 +43,10 @@ EXPERIMENTAL
 Individual Patch Descriptions:
 --
 
+Patch:  1500_XATTR_USER_PREFIX.patch
+From:   https://bugs.gentoo.org/show_bug.cgi?id=470644
+Desc:   Support for namespace user.pax.* on tmpfs.
+
 Patch:  1510_fs-enable-link-security-restrictions-by-default.patch
 From:   
http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
 Desc:   Enable link security restrictions by default.

diff --git a/1500_XATTR_USER_PREFIX.patch b/1500_XATTR_USER_PREFIX.patch
new file mode 100644
index 000..cc15cd5
--- /dev/null
+++ b/1500_XATTR_USER_PREFIX.patch
@@ -0,0 +1,54 @@
+From: Anthony G. Basile 
+
+This patch adds support for a restricted user-controlled namespace on
+tmpfs filesystem used to house PaX flags.  The namespace must be of the
+form user.pax.* and its value cannot exceed a size of 8 bytes.
+
+This is needed even on all Gentoo systems so that XATTR_PAX flags
+are preserved for users who might build packages using portage on
+a tmpfs system with a non-hardened kernel and then switch to a
+hardened kernel with XATTR_PAX enabled.
+
+The namespace is added to any user with Extended Attribute support
+enabled for tmpfs.  Users who do not enable xattrs will not have
+the XATTR_PAX flags preserved.
+
+diff --git a/include/uapi/linux/xattr.h b/include/uapi/linux/xattr.h
+index e4629b9..6958086 100644
+--- a/include/uapi/linux/xattr.h
 b/include/uapi/linux/xattr.h
+@@ -63,5 +63,9 @@
+ #define XATTR_POSIX_ACL_DEFAULT  "posix_acl_default"
+ #define XATTR_NAME_POSIX_ACL_DEFAULT XATTR_SYSTEM_PREFIX 
XATTR_POSIX_ACL_DEFAULT
+ 
++/* User namespace */
++#define XATTR_PAX_PREFIX XATTR_USER_PREFIX "pax."
++#define XATTR_PAX_FLAGS_SUFFIX "flags"
++#define XATTR_NAME_PAX_FLAGS XATTR_PAX_PREFIX XATTR_PAX_FLAGS_SUFFIX
+ 
+ #endif /* _UAPI_LINUX_XATTR_H */
+diff --git a/mm/shmem.c b/mm/shmem.c
+index 1c44af7..f23bb1b 100644
+--- a/mm/shmem.c
 b/mm/shmem.c
+@@ -2201,6 +2201,7 @@ static const struct xattr_handler 
*shmem_xattr_handlers[] = {
+ static int shmem_xattr_validate(const char *name)
+ {
+   struct { const char *prefix; size_t len; } arr[] = {
++  { XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN},
+   { XATTR_SECURITY_PREFIX, XATTR_SECURITY_PREFIX_LEN },
+   { XATTR_TRUSTED_PREFIX, XATTR_TRUSTED_PREFIX_LEN }
+   };
+@@ -2256,6 +2257,12 @@ static int shmem_setxattr(struct dentry *dentry, const 
char *name,
+   if (err)
+   return err;
+ 
++  if (!strncmp(name, XATTR_USER_PREFIX, XATTR_USER_PREFIX_LEN)) {
++  if (strcmp(name, XATTR_NAME_PAX_FLAGS))
++  return -EOPNOTSUPP;
++  if (size > 8)
++  return -EINVAL;
++  }
+   return simple_xattr_set(&info->xattrs, name, value, size, flags);
+ }
+ 



[gentoo-commits] proj/linux-patches:4.5 commit in: /

2016-03-22 Thread Mike Pagano
commit: 04c6d4296a591520052d98fabf73b9f4e98ad20e
Author: Mike Pagano  gentoo  org>
AuthorDate: Tue Mar 22 22:46:47 2016 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Tue Mar 22 22:46:47 2016 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=04c6d429

Update for gcc 4.9 CPU optimization patch. See bug #572108

 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch 
b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
index c4efd06..418201d 100644
--- a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
+++ b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
@@ -283,7 +283,7 @@ gcc version >=4.9
int
default "7" if MPENTIUM4 || MPSC
 -  default "6" if MK7 || MK8 || MPENTIUMM || MCORE2 || MATOM || MVIAC7 || 
X86_GENERIC || GENERIC_CPU
-+  default "6" if MK7 || MK8 || MK8SSE3 || MK10 || MBARCELONA || MBOBCAT 
|| MBULLDOZER || MPILEDRIVER || MJAGUAR || MPENTIUMM || MCORE2 || MNEHALEM || 
MWESTMERE || MSILVERMONT || MSANDYBRIDGE || MIVYBRIDGE || MHASWELL || BROADWELL 
|| MNATIVE || MATOM || MVIAC7 || X86_GENERIC || GENERIC_CPU
++  default "6" if MK7 || MK8 || MK8SSE3 || MK10 || MBARCELONA || MBOBCAT 
|| MBULLDOZER || MPILEDRIVER || MJAGUAR || MPENTIUMM || MCORE2 || MNEHALEM || 
MWESTMERE || MSILVERMONT || MSANDYBRIDGE || MIVYBRIDGE || MHASWELL || 
MBROADWELL || MNATIVE || MATOM || MVIAC7 || X86_GENERIC || GENERIC_CPU
default "4" if MELAN || M486 || MGEODEGX1
default "5" if MWINCHIP3D || MWINCHIPC6 || MCRUSOE || MEFFICEON || 
MCYRIXIII || MK6 || MPENTIUMIII || MPENTIUMII || M686 || M586MMX || M586TSC || 
M586 || MVIAC3_2 || MGEODE_LX
  



[gentoo-commits] proj/linux-patches:4.5 commit in: /

2016-03-09 Thread Mike Pagano
commit: 3fd79bcc90be2c6568e911e390079ab09d8009ec
Author: Mike Pagano  gentoo  org>
AuthorDate: Wed Mar  9 17:05:41 2016 +
Commit: Mike Pagano  gentoo  org>
CommitDate: Wed Mar  9 17:05:41 2016 +
URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3fd79bcc

Enable link security restrictions by default. ACPI: Disable Windows 8 
compatibility for some Lenovo ThinkPads. Ensure that /dev/root doesn't appear 
in /proc/mounts when bootint without an initramfs. Bootsplash ported by Marco. 
(Bug #539616). Add Gentoo Linux support config settings and defaults.Kernel 
patch enables gcc < v4.9 optimizations for additional CPUs. Kernel patch 
enables gcc >= v4.9 optimizations for additional CPUs.

 _README|   24 +
 ...ble-link-security-restrictions-by-default.patch |   22 +
 2700_ThinkPad-30-brightness-control-fix.patch  |   67 +
 2900_dev-root-proc-mount-fix.patch |   38 +
 4200_fbcondecor-3.19.patch | 2119 
 ...able-additional-cpu-optimizations-for-gcc.patch |  327 +++
 ...-additional-cpu-optimizations-for-gcc-4.9.patch |  402 
 7 files changed, 2999 insertions(+)

diff --git a/_README b/_README
index 9018993..1eb82e8 100644
--- a/_README
+++ b/_README
@@ -43,6 +43,30 @@ EXPERIMENTAL
 Individual Patch Descriptions:
 --
 
+Patch:  1510_fs-enable-link-security-restrictions-by-default.patch
+From:   
http://sources.debian.net/src/linux/3.16.7-ckt4-3/debian/patches/debian/fs-enable-link-security-restrictions-by-default.patch/
+Desc:   Enable link security restrictions by default.
+
+Patch:  2700_ThinkPad-30-brightness-control-fix.patch
+From:   Seth Forshee 
+Desc:   ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads.
+
+Patch:  2900_dev-root-proc-mount-fix.patch
+From:   https://bugs.gentoo.org/show_bug.cgi?id=438380
+Desc:   Ensure that /dev/root doesn't appear in /proc/mounts when bootint 
without an initramfs.
+
+Patch:  4200_fbcondecor-3.19.patch
+From:   http://www.mepiscommunity.org/fbcondecor
+Desc:   Bootsplash ported by Marco. (Bug #539616)
+
 Patch:  4567_distro-Gentoo-Kconfig.patch
 From:   Tom Wijsman 
 Desc:   Add Gentoo Linux support config settings and defaults.
+
+Patch:  5000_enable-additional-cpu-optimizations-for-gcc.patch
+From:   https://github.com/graysky2/kernel_gcc_patch/
+Desc:   Kernel patch enables gcc < v4.9 optimizations for additional CPUs.
+
+Patch:  5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch
+From:   https://github.com/graysky2/kernel_gcc_patch/
+Desc:   Kernel patch enables gcc >= v4.9 optimizations for additional CPUs.

diff --git a/1510_fs-enable-link-security-restrictions-by-default.patch 
b/1510_fs-enable-link-security-restrictions-by-default.patch
new file mode 100644
index 000..639fb3c
--- /dev/null
+++ b/1510_fs-enable-link-security-restrictions-by-default.patch
@@ -0,0 +1,22 @@
+From: Ben Hutchings 
+Subject: fs: Enable link security restrictions by default
+Date: Fri, 02 Nov 2012 05:32:06 +
+Bug-Debian: https://bugs.debian.org/609455
+Forwarded: not-needed
+
+This reverts commit 561ec64ae67ef25cac8d72bb9c4bfc955edfd415
+('VFS: don't do protected {sym,hard}links by default').
+
+--- a/fs/namei.c
 b/fs/namei.c
+@@ -651,8 +651,8 @@ static inline void put_link(struct namei
+   path_put(link);
+ }
+ 
+-int sysctl_protected_symlinks __read_mostly = 0;
+-int sysctl_protected_hardlinks __read_mostly = 0;
++int sysctl_protected_symlinks __read_mostly = 1;
++int sysctl_protected_hardlinks __read_mostly = 1;
+ 
+ /**
+  * may_follow_link - Check symlink following for unsafe situations

diff --git a/2700_ThinkPad-30-brightness-control-fix.patch 
b/2700_ThinkPad-30-brightness-control-fix.patch
new file mode 100644
index 000..b548c6d
--- /dev/null
+++ b/2700_ThinkPad-30-brightness-control-fix.patch
@@ -0,0 +1,67 @@
+diff --git a/drivers/acpi/blacklist.c b/drivers/acpi/blacklist.c
+index cb96296..6c242ed 100644
+--- a/drivers/acpi/blacklist.c
 b/drivers/acpi/blacklist.c
+@@ -269,6 +276,61 @@  static struct dmi_system_id acpi_osi_dmi_table[] 
__initdata = {
+   },
+ 
+   /*
++   * The following Lenovo models have a broken workaround in the
++   * acpi_video backlight implementation to meet the Windows 8
++   * requirement of 101 backlight levels. Reverting to pre-Win8
++   * behavior fixes the problem.
++   */
++  {
++  .callback = dmi_disable_osi_win8,
++  .ident = "Lenovo ThinkPad L430",
++  .matches = {
++   DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++   DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad L430"),
++  },
++  },
++  {
++  .callback = dmi_disable_osi_win8,
++  .ident = "Lenovo ThinkPad T430s",
++  .matches = {
++   DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
++   DMI_MATCH(DM