[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 507cd00e6660d01124973a211ab0aba2ea237495 Author: Mike Pagano gentoo org> AuthorDate: Thu Mar 2 16:16:08 2017 + Commit: Mike Pagano gentoo org> CommitDate: Thu Mar 2 16:33:51 2017 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=507cd00e Enable crypto API for systemd as its required for systemd versions >= 233. See bug #611368. 4567_distro-Gentoo-Kconfig.patch | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch index 4a88040..b8a 100644 --- a/4567_distro-Gentoo-Kconfig.patch +++ b/4567_distro-Gentoo-Kconfig.patch @@ -7,9 +7,9 @@ +source "distro/Kconfig" + source "arch/$SRCARCH/Kconfig" /dev/null 2017-02-18 04:25:56.900821893 -0500 -+++ b/distro/Kconfig 2017-02-18 10:41:16.512328155 -0500 -@@ -0,0 +1,142 @@ +--- /dev/null 2017-03-02 01:55:04.096566155 -0500 b/distro/Kconfig 2017-03-02 11:12:05.049448255 -0500 +@@ -0,0 +1,145 @@ +menu "Gentoo Linux" + +config GENTOO_LINUX @@ -114,6 +114,9 @@ + select BLK_DEV_BSG + select CGROUPS + select CHECKPOINT_RESTORE ++ select CRYPTO_HMAC ++ select CRYPTO_SHA256 ++ select CRYPTO_USER_API_HASH + select DEVPTS_MULTIPLE_INSTANCES + select DMIID if X86_32 || X86_64 || X86 + select EPOLL
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: d1a782c44d9630c3bd20cc835a5254752984dc13 Author: Mike Pagano gentoo org> AuthorDate: Sat Feb 18 20:36:37 2017 + Commit: Mike Pagano gentoo org> CommitDate: Thu Mar 2 16:33:32 2017 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=d1a782c4 For GENTOO_LINUX_INIT_SYSTEMD don't add DMIID for non X86 architectures. See bug #609590. 4567_distro-Gentoo-Kconfig.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch index acb0972..4a88040 100644 --- a/4567_distro-Gentoo-Kconfig.patch +++ b/4567_distro-Gentoo-Kconfig.patch @@ -7,8 +7,8 @@ +source "distro/Kconfig" + source "arch/$SRCARCH/Kconfig" /dev/null 2016-11-15 00:56:18.320838834 -0500 -+++ b/distro/Kconfig 2016-11-16 06:24:29.457357409 -0500 +--- /dev/null 2017-02-18 04:25:56.900821893 -0500 b/distro/Kconfig 2017-02-18 10:41:16.512328155 -0500 @@ -0,0 +1,142 @@ +menu "Gentoo Linux" + @@ -115,7 +115,7 @@ + select CGROUPS + select CHECKPOINT_RESTORE + select DEVPTS_MULTIPLE_INSTANCES -+ select DMIID ++ select DMIID if X86_32 || X86_64 || X86 + select EPOLL + select FANOTIFY + select FHANDLE
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 219e6220b29d24e43cc5b8304c8a365bdcb4e4ba Author: Mike Pagano gentoo org> AuthorDate: Wed Feb 8 11:16:27 2017 + Commit: Mike Pagano gentoo org> CommitDate: Wed Feb 8 11:16:27 2017 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=219e6220 Linux patch 3.18.48 _README |4 + 1047_linux-3.18.48.patch | 1219 ++ 2 files changed, 1223 insertions(+) diff --git a/_README b/_README index 957c01d..4676a64 100644 --- a/_README +++ b/_README @@ -231,6 +231,10 @@ Patch: 1046_linux-3.18.47.patch From: http://www.kernel.org Desc: Linux 3.18.47 +Patch: 1047_linux-3.18.48.patch +From: http://www.kernel.org +Desc: Linux 3.18.48 + 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/1047_linux-3.18.48.patch b/1047_linux-3.18.48.patch new file mode 100644 index 000..7884316 --- /dev/null +++ b/1047_linux-3.18.48.patch @@ -0,0 +1,1219 @@ +diff --git a/Documentation/Makefile b/Documentation/Makefile +index 6883a1b9b351..bc0548201755 100644 +--- a/Documentation/Makefile b/Documentation/Makefile +@@ -1,4 +1,4 @@ +-subdir-y := accounting arm auxdisplay blackfin connector \ ++subdir-y := accounting auxdisplay blackfin connector \ + filesystems filesystems ia64 laptops mic misc-devices \ + networking pcmcia prctl ptp spi timers vDSO video4linux \ + watchdog +diff --git a/Documentation/arm/Makefile b/Documentation/arm/Makefile +deleted file mode 100644 +index 732c77050cff.. +--- a/Documentation/arm/Makefile /dev/null +@@ -1 +0,0 @@ +-subdir-y := SH-Mobile +diff --git a/Documentation/arm/SH-Mobile/Makefile b/Documentation/arm/SH-Mobile/Makefile +deleted file mode 100644 +index bca8a7ef6bbe.. +--- a/Documentation/arm/SH-Mobile/Makefile /dev/null +@@ -1,7 +0,0 @@ +-# List of programs to build +-hostprogs-y := vrl4 +- +-# Tell kbuild to always build the programs +-always := $(hostprogs-y) +- +-HOSTCFLAGS_vrl4.o += -I$(objtree)/usr/include -I$(srctree)/tools/include +diff --git a/Documentation/arm/SH-Mobile/vrl4.c b/Documentation/arm/SH-Mobile/vrl4.c +deleted file mode 100644 +index f4cd8ad4e720.. +--- a/Documentation/arm/SH-Mobile/vrl4.c /dev/null +@@ -1,170 +0,0 @@ +-/* +- * vrl4 format generator +- * +- * Copyright (C) 2010 Simon Horman +- * +- * This file is subject to the terms and conditions of the GNU General Public +- * License. See the file "COPYING" in the main directory of this archive +- * for more details. +- */ +- +-/* +- * usage: vrl4 < zImage > out +- * dd if=out of=/dev/sdx bs=512 seek=1 # Write the image to sector 1 +- * +- * Reads a zImage from stdin and writes a vrl4 image to stdout. +- * In practice this means writing a padded vrl4 header to stdout followed +- * by the zImage. +- * +- * The padding places the zImage at ALIGN bytes into the output. +- * The vrl4 uses ALIGN + START_BASE as the start_address. +- * This is where the mask ROM will jump to after verifying the header. +- * +- * The header sets copy_size to min(sizeof(zImage), MAX_BOOT_PROG_LEN) + ALIGN. +- * That is, the mask ROM will load the padded header (ALIGN bytes) +- * And then MAX_BOOT_PROG_LEN bytes of the image, or the entire image, +- * whichever is smaller. +- * +- * The zImage is not modified in any way. +- */ +- +-#define _BSD_SOURCE +-#include +-#include +-#include +-#include +-#include +-#include +- +-struct hdr { +- uint32_t magic1; +- uint32_t reserved1; +- uint32_t magic2; +- uint32_t reserved2; +- uint16_t copy_size; +- uint16_t boot_options; +- uint32_t reserved3; +- uint32_t start_address; +- uint32_t reserved4; +- uint32_t reserved5; +- char reserved6[308]; +-}; +- +-#define DECLARE_HDR(h)\ +- struct hdr (h) = { \ +- .magic1 = htole32(0xea00),\ +- .reserved1 =htole32(0x56), \ +- .magic2 = htole32(0xe59ff008),\ +- .reserved3 =htole16(0x1) } +- +-/* Align to 512 bytes, the MMCIF sector size */ +-#define ALIGN_BITS9 +-#define ALIGN (1 << ALIGN_BITS) +- +-#define START_BASE0xe55b +- +-/* +- * With an alignment of 512 the header uses the first sector. +- * There is a 128 sector (64kbyte) limit on the data loaded by the mask ROM. +- * So there are 127 sectors left for the boot programme. But in practice +- * Only a small portion of a zImage is needed, 16 sectors should be more +- * than enough. +- * +- * Note that this sets how much of the zImage is copied by the mask ROM. +- * The entire zImage is present after the header and is loaded +- * by the code in the boot program (which is the first portion of the zImage). +- */ +-#define
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 01cda1ddf8ce6fac303a4eb38985d4497b54bda3 Author: Mike Pagano gentoo org> AuthorDate: Wed Jan 18 21:46:15 2017 + Commit: Mike Pagano gentoo org> CommitDate: Wed Jan 18 21:46:15 2017 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=01cda1dd Removal of redundant patch _README | 4 -- 1520_fix-race-condition-in-packet-set-ring.patch | 62 2 files changed, 66 deletions(-) diff --git a/_README b/_README index 4efb409..957c01d 100644 --- a/_README +++ b/_README @@ -239,10 +239,6 @@ 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: 1520_fix-race-condition-in-packet-set-ring.patch -From: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=84ac7260236a49c79eede91617700174c2c19b0c -Desc: packet: fix race condition in packet_set_ring. CVE-2016-8655. Bug #601926. - Patch: 1700_ARM-dts-patch-to-support-popoplug-e02.patch From: https://bugs.gentoo.org/show_bug.cgi?id=508248 Desc: ARM: dts: Add support for Pogoplug E02. diff --git a/1520_fix-race-condition-in-packet-set-ring.patch b/1520_fix-race-condition-in-packet-set-ring.patch deleted file mode 100644 index d85527f..000 --- a/1520_fix-race-condition-in-packet-set-ring.patch +++ /dev/null @@ -1,62 +0,0 @@ a/net/packet/af_packet.c 2016-12-07 18:10:25.785812861 -0500 -+++ b/net/packet/af_packet.c 2016-12-07 18:18:45.597933525 -0500 -@@ -3648,19 +3648,25 @@ packet_setsockopt(struct socket *sock, i - - if (optlen != sizeof(val)) - return -EINVAL; -- if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) -- return -EBUSY; - if (copy_from_user(, optval, sizeof(val))) - return -EFAULT; - switch (val) { - case TPACKET_V1: - case TPACKET_V2: - case TPACKET_V3: -- po->tp_version = val; -- return 0; -+ break; - default: - return -EINVAL; - } -+ lock_sock(sk); -+ if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) { -+ ret = -EBUSY; -+ } else { -+ po->tp_version = val; -+ ret = 0; -+ } -+ release_sock(sk); -+ return ret; - } - case PACKET_RESERVE: - { -@@ -4164,6 +4170,7 @@ static int packet_set_ring(struct sock * - /* Added to avoid minimal code churn */ - struct tpacket_req *req = _u->req; - -+ lock_sock(sk); - /* Opening a Tx-ring is NOT supported in TPACKET_V3 */ - if (!closing && tx_ring && (po->tp_version > TPACKET_V2)) { - net_warn_ratelimited("Tx-ring is not supported.\n"); -@@ -4245,8 +4252,6 @@ static int packet_set_ring(struct sock * - goto out; - } - -- lock_sock(sk); -- - /* Detach socket from network */ - spin_lock(>bind_lock); - was_running = po->running; -@@ -4294,11 +4299,11 @@ static int packet_set_ring(struct sock * - if (!tx_ring) - prb_shutdown_retire_blk_timer(po, rb_queue); - } -- release_sock(sk); - - if (pg_vec) - free_pg_vec(pg_vec, order, req->tp_block_nr); - out: -+ release_sock(sk); - return err; - } -
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 54ad828df23ad0b32ae21e574ae1fe38fd441918 Author: Mike Pagano gentoo org> AuthorDate: Wed Jan 18 21:38:20 2017 + Commit: Mike Pagano gentoo org> CommitDate: Wed Jan 18 21:38:20 2017 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=54ad828d Linux patches 3.18.46 and 3.18.47 _README |8 + 1045_linux-3.18.46.patch | 728 ++ 1046_linux-3.18.47.patch | 1831 ++ 3 files changed, 2567 insertions(+) diff --git a/_README b/_README index 7eda87f..4efb409 100644 --- a/_README +++ b/_README @@ -223,6 +223,14 @@ Patch: 1044_linux-3.18.45.patch From: http://www.kernel.org Desc: Linux 3.18.45 +Patch: 1045_linux-3.18.46.patch +From: http://www.kernel.org +Desc: Linux 3.18.46 + +Patch: 1046_linux-3.18.47.patch +From: http://www.kernel.org +Desc: Linux 3.18.47 + 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/1045_linux-3.18.46.patch b/1045_linux-3.18.46.patch new file mode 100644 index 000..d6886bb --- /dev/null +++ b/1045_linux-3.18.46.patch @@ -0,0 +1,728 @@ +diff --git a/Documentation/arm/CCN.txt b/Documentation/arm/CCN.txt +index 0632b3aad83e..715776f06df6 100644 +--- a/Documentation/arm/CCN.txt b/Documentation/arm/CCN.txt +@@ -38,7 +38,7 @@ Example of perf tool use: + / # perf list | grep ccn + ccn/cycles/[Kernel PMU event] + <...> +- ccn/xp_valid_flit/ [Kernel PMU event] ++ ccn/xp_valid_flit,xp=?,port=?,vc=?,dir=?/ [Kernel PMU event] + <...> + + / # perf stat -C 0 -e ccn/cycles/,ccn/xp_valid_flit,xp=1,port=0,vc=1,dir=1/ \ +diff --git a/Makefile b/Makefile +index de29f33d03a9..e73fd98d4cfc 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 45 ++SUBLEVEL = 46 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h +index 85738b200023..260308cd9b83 100644 +--- a/arch/arm/include/asm/dma-mapping.h b/arch/arm/include/asm/dma-mapping.h +@@ -117,7 +117,7 @@ static inline dma_addr_t virt_to_dma(struct device *dev, void *addr) + /* The ARM override for dma_max_pfn() */ + static inline unsigned long dma_max_pfn(struct device *dev) + { +- return PHYS_PFN_OFFSET + dma_to_pfn(dev, *dev->dma_mask); ++ return dma_to_pfn(dev, *dev->dma_mask); + } + #define dma_max_pfn(dev) dma_max_pfn(dev) + +diff --git a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h +index cd791948b286..7e459b7ee708 100644 +--- a/arch/x86/include/asm/tlbflush.h b/arch/x86/include/asm/tlbflush.h +@@ -32,7 +32,7 @@ DECLARE_PER_CPU_SHARED_ALIGNED(struct tlb_state, cpu_tlbstate); + /* Initialize cr4 shadow for this CPU. */ + static inline void cr4_init_shadow(void) + { +- this_cpu_write(cpu_tlbstate.cr4, __read_cr4()); ++ this_cpu_write(cpu_tlbstate.cr4, __read_cr4_safe()); + } + + /* Set in this cpu's CR4. */ +diff --git a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile +index f52e033557c9..43653ba4d784 100644 +--- a/arch/x86/purgatory/Makefile b/arch/x86/purgatory/Makefile +@@ -12,6 +12,7 @@ targets += purgatory.ro + + KBUILD_CFLAGS := -fno-strict-aliasing -Wall -Wstrict-prototypes -fno-zero-initialized-in-bss -fno-builtin -ffreestanding -c -MD -Os -mcmodel=large + KBUILD_CFLAGS += -m$(BITS) ++KBUILD_CFLAGS += $(call cc-option,-fno-PIE) + + $(obj)/purgatory.ro: $(PURGATORY_OBJS) FORCE + $(call if_changed,ld) +diff --git a/drivers/bus/arm-ccn.c b/drivers/bus/arm-ccn.c +index 27fd0dacad5f..4d523cfe51ce 100644 +--- a/drivers/bus/arm-ccn.c b/drivers/bus/arm-ccn.c +@@ -183,6 +183,7 @@ struct arm_ccn { + struct arm_ccn_component *xp; + + struct arm_ccn_dt dt; ++ int mn_id; + }; + + +@@ -322,6 +323,7 @@ struct arm_ccn_pmu_event { + static ssize_t arm_ccn_pmu_event_show(struct device *dev, + struct device_attribute *attr, char *buf) + { ++ struct arm_ccn *ccn = pmu_to_arm_ccn(dev_get_drvdata(dev)); + struct arm_ccn_pmu_event *event = container_of(attr, + struct arm_ccn_pmu_event, attr); + ssize_t res; +@@ -336,6 +338,26 @@ static ssize_t arm_ccn_pmu_event_show(struct device *dev, + if (event->mask) + res += snprintf(buf + res, PAGE_SIZE - res, ",mask=0x%x", + event->mask); ++ ++ /* Arguments required by an event */ ++ switch (event->type) { ++ case CCN_TYPE_CYCLES: ++ break; ++ case CCN_TYPE_XP: ++ res += snprintf(buf + res, PAGE_SIZE - res, ++ ",xp=?,port=?,vc=?,dir=?"); ++ if (event->event == CCN_EVENT_WATCHPOINT) ++ res += snprintf(buf + res, PAGE_SIZE -
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 87b13d6bac6d00a8642f237b111b7b16150c4342 Author: Mike Pagano gentoo org> AuthorDate: Fri Dec 9 00:21:01 2016 + Commit: Mike Pagano gentoo org> CommitDate: Fri Dec 9 00:21:01 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=87b13d6b Fix race condition in packet_set_ring. CVE-2016-8655. Bug #601926. _README | 4 ++ 1520_fix-race-condition-in-packet-set-ring.patch | 62 2 files changed, 66 insertions(+) diff --git a/_README b/_README index bdec9ea..7eda87f 100644 --- a/_README +++ b/_README @@ -231,6 +231,10 @@ 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: 1520_fix-race-condition-in-packet-set-ring.patch +From: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=84ac7260236a49c79eede91617700174c2c19b0c +Desc: packet: fix race condition in packet_set_ring. CVE-2016-8655. Bug #601926. + Patch: 1700_ARM-dts-patch-to-support-popoplug-e02.patch From: https://bugs.gentoo.org/show_bug.cgi?id=508248 Desc: ARM: dts: Add support for Pogoplug E02. diff --git a/1520_fix-race-condition-in-packet-set-ring.patch b/1520_fix-race-condition-in-packet-set-ring.patch new file mode 100644 index 000..d85527f --- /dev/null +++ b/1520_fix-race-condition-in-packet-set-ring.patch @@ -0,0 +1,62 @@ +--- a/net/packet/af_packet.c 2016-12-07 18:10:25.785812861 -0500 b/net/packet/af_packet.c 2016-12-07 18:18:45.597933525 -0500 +@@ -3648,19 +3648,25 @@ packet_setsockopt(struct socket *sock, i + + if (optlen != sizeof(val)) + return -EINVAL; +- if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) +- return -EBUSY; + if (copy_from_user(, optval, sizeof(val))) + return -EFAULT; + switch (val) { + case TPACKET_V1: + case TPACKET_V2: + case TPACKET_V3: +- po->tp_version = val; +- return 0; ++ break; + default: + return -EINVAL; + } ++ lock_sock(sk); ++ if (po->rx_ring.pg_vec || po->tx_ring.pg_vec) { ++ ret = -EBUSY; ++ } else { ++ po->tp_version = val; ++ ret = 0; ++ } ++ release_sock(sk); ++ return ret; + } + case PACKET_RESERVE: + { +@@ -4164,6 +4170,7 @@ static int packet_set_ring(struct sock * + /* Added to avoid minimal code churn */ + struct tpacket_req *req = _u->req; + ++ lock_sock(sk); + /* Opening a Tx-ring is NOT supported in TPACKET_V3 */ + if (!closing && tx_ring && (po->tp_version > TPACKET_V2)) { + net_warn_ratelimited("Tx-ring is not supported.\n"); +@@ -4245,8 +4252,6 @@ static int packet_set_ring(struct sock * + goto out; + } + +- lock_sock(sk); +- + /* Detach socket from network */ + spin_lock(>bind_lock); + was_running = po->running; +@@ -4294,11 +4299,11 @@ static int packet_set_ring(struct sock * + if (!tx_ring) + prb_shutdown_retire_blk_timer(po, rb_queue); + } +- release_sock(sk); + + if (pg_vec) + free_pg_vec(pg_vec, order, req->tp_block_nr); + out: ++ release_sock(sk); + return err; + } +
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 111437b328d0310b3e4cdc09a811ef99e1b64c5e Author: Mike Pagano gentoo org> AuthorDate: Wed Nov 30 15:42:27 2016 + Commit: Mike Pagano gentoo org> CommitDate: Wed Nov 30 15:42:27 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=111437b3 Linux patch 3.18.45 _README |4 + 1044_linux-3.18.45.patch | 1239 ++ 2 files changed, 1243 insertions(+) diff --git a/_README b/_README index bfb562d..bdec9ea 100644 --- a/_README +++ b/_README @@ -219,6 +219,10 @@ Patch: 1043_linux-3.18.44.patch From: http://www.kernel.org Desc: Linux 3.18.44 +Patch: 1044_linux-3.18.45.patch +From: http://www.kernel.org +Desc: Linux 3.18.45 + 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/1044_linux-3.18.45.patch b/1044_linux-3.18.45.patch new file mode 100644 index 000..dbe8f9b --- /dev/null +++ b/1044_linux-3.18.45.patch @@ -0,0 +1,1239 @@ +diff --git a/Makefile b/Makefile +index 05b64e6d1456..de29f33d03a9 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 44 ++SUBLEVEL = 45 + EXTRAVERSION = + NAME = Diseased Newt + +@@ -610,6 +610,8 @@ all: vmlinux + include $(srctree)/arch/$(SRCARCH)/Makefile + + KBUILD_CFLAGS += $(call cc-option,-fno-delete-null-pointer-checks,) ++KBUILD_CFLAGS += $(call cc-option,-fno-PIE) ++KBUILD_AFLAGS += $(call cc-option,-fno-PIE) + + ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE + KBUILD_CFLAGS += -Os $(call cc-disable-warning,maybe-uninitialized,) +diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c +index 824be0da92cd..f49289f7fd2a 100644 +--- a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c +@@ -752,15 +752,15 @@ enum emulation_result kvm_mips_emul_eret(struct kvm_vcpu *vcpu) + struct mips_coproc *cop0 = vcpu->arch.cop0; + enum emulation_result er = EMULATE_DONE; + +- if (kvm_read_c0_guest_status(cop0) & ST0_EXL) { ++ if (kvm_read_c0_guest_status(cop0) & ST0_ERL) { ++ kvm_clear_c0_guest_status(cop0, ST0_ERL); ++ vcpu->arch.pc = kvm_read_c0_guest_errorepc(cop0); ++ } else if (kvm_read_c0_guest_status(cop0) & ST0_EXL) { + kvm_debug("[%#lx] ERET to %#lx\n", vcpu->arch.pc, + kvm_read_c0_guest_epc(cop0)); + kvm_clear_c0_guest_status(cop0, ST0_EXL); + vcpu->arch.pc = kvm_read_c0_guest_epc(cop0); + +- } else if (kvm_read_c0_guest_status(cop0) & ST0_ERL) { +- kvm_clear_c0_guest_status(cop0, ST0_ERL); +- vcpu->arch.pc = kvm_read_c0_guest_errorepc(cop0); + } else { + kvm_err("[%#lx] ERET when MIPS_SR_EXL|MIPS_SR_ERL == 0\n", + vcpu->arch.pc); +diff --git a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S +index 099c23616901..8f13c7facdd7 100644 +--- a/arch/parisc/kernel/syscall.S b/arch/parisc/kernel/syscall.S +@@ -106,8 +106,6 @@ linux_gateway_entry: + mtsp%r0,%sr4/* get kernel space into sr4 */ + mtsp%r0,%sr5/* get kernel space into sr5 */ + mtsp%r0,%sr6/* get kernel space into sr6 */ +- mfsp%sr7,%r1/* save user sr7 */ +- mtsp%r1,%sr3/* and store it in sr3 */ + + #ifdef CONFIG_64BIT + /* for now we can *always* set the W bit on entry to the syscall +@@ -133,6 +131,14 @@ linux_gateway_entry: + depdi 0, 31, 32, %r21 + 1: + #endif ++ ++ /* We use a rsm/ssm pair to prevent sr3 from being clobbered ++ * by external interrupts. ++ */ ++ mfsp%sr7,%r1/* save user sr7 */ ++ rsm PSW_SM_I, %r0 /* disable interrupts */ ++ mtsp%r1,%sr3/* and store it in sr3 */ ++ + mfctl %cr30,%r1 + xor %r1,%r30,%r30 /* ye olde xor trick */ + xor %r1,%r30,%r1 +@@ -147,6 +153,7 @@ linux_gateway_entry: +*/ + + mtsp%r0,%sr7/* get kernel space into sr7 */ ++ ssm PSW_SM_I, %r0 /* enable interrupts */ + STREGM %r1,FRAME_SIZE(%r30)/* save r1 (usp) here for now */ + mfctl %cr30,%r1 /* get task ptr in %r1 */ + LDREG TI_TASK(%r1),%r1 +diff --git a/arch/powerpc/kernel/idle_power7.S b/arch/powerpc/kernel/idle_power7.S +index 283c603716a0..df448d17641d 100644 +--- a/arch/powerpc/kernel/idle_power7.S b/arch/powerpc/kernel/idle_power7.S +@@ -28,7 +28,7 @@ + std r0,0(r1); \ + ptesync;\ + ld r0,0(r1); \ +-1:
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 619d312826a34e59bb3fd59038653308f704a690 Author: Mike Pagano gentoo org> AuthorDate: Fri Nov 25 22:57:46 2016 + Commit: Mike Pagano gentoo org> CommitDate: Fri Nov 25 22:57:46 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=619d3128 Update gentoo kconfig patch adding CHECKPOINT_RESTORE for GENTOO_LINUX_INIT_SYSTEMD. See bug #598623. 4567_distro-Gentoo-Kconfig.patch | 49 +--- 1 file changed, 41 insertions(+), 8 deletions(-) diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch index 690454a..acb0972 100644 --- a/4567_distro-Gentoo-Kconfig.patch +++ b/4567_distro-Gentoo-Kconfig.patch @@ -1,5 +1,5 @@ a/Kconfig 2014-04-02 09:45:05.389224541 -0400 -+++ b/Kconfig 2014-04-02 09:45:39.269224273 -0400 +--- a/Kconfig 2016-07-01 19:22:17.117439707 -0400 b/Kconfig 2016-07-01 19:21:54.371440596 -0400 @@ -8,4 +8,6 @@ config SRCARCH string option env="SRCARCH" @@ -7,9 +7,9 @@ +source "distro/Kconfig" + source "arch/$SRCARCH/Kconfig" a/distro/Kconfig 1969-12-31 19:00:00.0 -0500 -+++ b/distro/Kconfig 2015-01-02 13:54:45.589830665 -0500 -@@ -0,0 +1,109 @@ +--- /dev/null 2016-11-15 00:56:18.320838834 -0500 b/distro/Kconfig 2016-11-16 06:24:29.457357409 -0500 +@@ -0,0 +1,142 @@ +menu "Gentoo Linux" + +config GENTOO_LINUX @@ -30,9 +30,10 @@ + + depends on GENTOO_LINUX + default y if GENTOO_LINUX -+ ++ + select DEVTMPFS + select TMPFS ++ select UNIX + + select MMU + select SHMEM @@ -51,7 +52,32 @@ + boot process; if not available, it causes sysfs and udev to malfunction. + + To ensure Gentoo Linux boots, it is best to leave this setting enabled; -+ if you run a custom setup, you could consider whether to disable this. ++ if you run a custom setup, you could consider whether to disable this. ++ ++config GENTOO_LINUX_PORTAGE ++ bool "Select options required by Portage features" ++ ++ depends on GENTOO_LINUX ++ default y if GENTOO_LINUX ++ ++ select CGROUPS ++ select NAMESPACES ++ select IPC_NS ++ select NET_NS ++ select SYSVIPC ++ ++ help ++ This enables options required by various Portage FEATURES. ++ Currently this selects: ++ ++ CGROUPS (required for FEATURES=cgroup) ++ IPC_NS (required for FEATURES=ipc-sandbox) ++ NET_NS (required for FEATURES=network-sandbox) ++ SYSVIPC (required by IPC_NS) ++ ++ ++ It is highly recommended that you leave this enabled as these FEATURES ++ are, or will soon be, enabled by default. + +menu "Support for init systems, system and service managers" + visible if GENTOO_LINUX @@ -87,17 +113,24 @@ + select AUTOFS4_FS + select BLK_DEV_BSG + select CGROUPS ++ select CHECKPOINT_RESTORE + select DEVPTS_MULTIPLE_INSTANCES ++ select DMIID + select EPOLL + select FANOTIFY + select FHANDLE + select INOTIFY_USER ++ select IPV6 + select NET -+ select NET_NS ++ select NET_NS + select PROC_FS ++ select SECCOMP ++ select SECCOMP_FILTER + select SIGNALFD + select SYSFS + select TIMERFD ++ select TMPFS_POSIX_ACL ++ select TMPFS_XATTR + + select ANON_INODES + select BLOCK
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 97a0e1c0517542f965b73dac372a47f9e72d2562 Author: Alice Ferrazzi gentoo org> AuthorDate: Tue Nov 1 09:35:09 2016 + Commit: Alice Ferrazzi gentoo org> CommitDate: Tue Nov 1 09:35:09 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=97a0e1c0 Linux patch 3.18.44 _README | 4 ++ 1043_linux-3.18.44.patch | 174 +++ 2 files changed, 178 insertions(+) diff --git a/_README b/_README index cc667fc..bfb562d 100644 --- a/_README +++ b/_README @@ -215,6 +215,10 @@ Patch: 1042_linux-3.18.43.patch From: http://www.kernel.org Desc: Linux 3.18.43 +Patch: 1043_linux-3.18.44.patch +From: http://www.kernel.org +Desc: Linux 3.18.44 + 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/1043_linux-3.18.44.patch b/1043_linux-3.18.44.patch new file mode 100644 index 000..2661d2c --- /dev/null +++ b/1043_linux-3.18.44.patch @@ -0,0 +1,174 @@ +diff --git a/Makefile b/Makefile +index 28912c341bd8..05b64e6d1456 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 43 ++SUBLEVEL = 44 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c +index 88635b301694..69608a4f554b 100644 +--- a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c +@@ -291,10 +291,9 @@ __setup("nosmap", setup_disable_smap); + + static __always_inline void setup_smap(struct cpuinfo_x86 *c) + { +- unsigned long eflags; ++ unsigned long eflags = native_save_fl(); + + /* This should have been cleared long ago */ +- raw_local_save_flags(eflags); + BUG_ON(eflags & X86_EFLAGS_AC); + + if (cpu_has(c, X86_FEATURE_SMAP)) { +diff --git a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c +index dfe835d21b15..0fa8fd9adeba 100644 +--- a/drivers/usb/host/xhci-hub.c b/drivers/usb/host/xhci-hub.c +@@ -619,8 +619,30 @@ static u32 xhci_get_port_status(struct usb_hcd *hcd, + if ((raw_port_status & PORT_RESET) || + !(raw_port_status & PORT_PE)) + return 0x; +- if (time_after_eq(jiffies, +- bus_state->resume_done[wIndex])) { ++ /* did port event handler already start resume timing? */ ++ if (!bus_state->resume_done[wIndex]) { ++ /* If not, maybe we are in a host initated resume? */ ++ if (test_bit(wIndex, _state->resuming_ports)) { ++ /* Host initated resume doesn't time the resume ++ * signalling using resume_done[]. ++ * It manually sets RESUME state, sleeps 20ms ++ * and sets U0 state. This should probably be ++ * changed, but not right now. ++ */ ++ } else { ++ /* port resume was discovered now and here, ++ * start resume timing ++ */ ++ unsigned long timeout = jiffies + ++ msecs_to_jiffies(USB_RESUME_TIMEOUT); ++ ++ set_bit(wIndex, _state->resuming_ports); ++ bus_state->resume_done[wIndex] = timeout; ++ mod_timer(>rh_timer, timeout); ++ } ++ /* Has resume been signalled for USB_RESUME_TIME yet? */ ++ } else if (time_after_eq(jiffies, ++ bus_state->resume_done[wIndex])) { + int time_left; + + xhci_dbg(xhci, "Resume USB2 port %d\n", +@@ -661,13 +683,24 @@ static u32 xhci_get_port_status(struct usb_hcd *hcd, + } else { + /* +* The resume has been signaling for less than +- * 20ms. Report the port status as SUSPEND, +- * let the usbcore check port status again +- * and clear resume signaling later. ++ * USB_RESUME_TIME. Report the port status as SUSPEND, ++ * let the usbcore check port status again and clear ++ * resume signaling later. +*/ + status |= USB_PORT_STAT_SUSPEND; + } + } ++ /* ++ * Clear stale usb2 resume signalling variables in case port changed ++ * state during resume signalling. For example on error ++ */ ++ if ((bus_state->resume_done[wIndex] || ++ test_bit(wIndex, _state->resuming_ports)) &&
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: e847c6fdd3e89d7a472571c54c47bbf87ef0cd0c Author: Mike Pagano gentoo org> AuthorDate: Wed Oct 12 19:51:03 2016 + Commit: Mike Pagano gentoo org> CommitDate: Wed Oct 12 19:51:03 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=e847c6fd Linux patch 3.18.43 _README |4 + 1042_linux-3.18.43.patch | 3150 ++ 2 files changed, 3154 insertions(+) diff --git a/_README b/_README index 7228605..cc667fc 100644 --- a/_README +++ b/_README @@ -211,6 +211,10 @@ Patch: 1041_linux-3.18.42.patch From: http://www.kernel.org Desc: Linux 3.18.42 +Patch: 1042_linux-3.18.43.patch +From: http://www.kernel.org +Desc: Linux 3.18.43 + 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/1042_linux-3.18.43.patch b/1042_linux-3.18.43.patch new file mode 100644 index 000..8356192 --- /dev/null +++ b/1042_linux-3.18.43.patch @@ -0,0 +1,3150 @@ +diff --git a/Makefile b/Makefile +index dafc1eade47e..28912c341bd8 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 42 ++SUBLEVEL = 43 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h +index 30c9baffa96f..08770c750696 100644 +--- a/arch/arc/include/asm/uaccess.h b/arch/arc/include/asm/uaccess.h +@@ -83,7 +83,10 @@ + "2: ;nop\n" \ + " .section .fixup, \"ax\"\n" \ + " .align 4\n" \ +- "3: mov %0, %3\n" \ ++ "3: # return -EFAULT\n" \ ++ " mov %0, %3\n" \ ++ " # zero out dst ptr\n" \ ++ " mov %1, 0\n" \ + " j 2b\n" \ + " .previous\n"\ + " .section __ex_table, \"a\"\n" \ +@@ -101,7 +104,11 @@ + "2: ;nop\n" \ + " .section .fixup, \"ax\"\n" \ + " .align 4\n" \ +- "3: mov %0, %3\n" \ ++ "3: # return -EFAULT\n" \ ++ " mov %0, %3\n" \ ++ " # zero out dst ptr\n" \ ++ " mov %1, 0\n" \ ++ " mov %R1, 0\n" \ + " j 2b\n" \ + " .previous\n"\ + " .section __ex_table, \"a\"\n" \ +diff --git a/arch/arm/boot/dts/kirkwood-ib62x0.dts b/arch/arm/boot/dts/kirkwood-ib62x0.dts +index bfa5edde179c..2c1e7f09205f 100644 +--- a/arch/arm/boot/dts/kirkwood-ib62x0.dts b/arch/arm/boot/dts/kirkwood-ib62x0.dts +@@ -113,7 +113,7 @@ + + partition@e { + label = "u-boot environment"; +- reg = <0xe 0x10>; ++ reg = <0xe 0x2>; + }; + + partition@10 { +diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c +index e8193b987313..6c3dc428a881 100644 +--- a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c +@@ -153,8 +153,6 @@ void kvm_arch_destroy_vm(struct kvm *kvm) + { + int i; + +- kvm_free_stage2_pgd(kvm); +- + for (i = 0; i < KVM_MAX_VCPUS; ++i) { + if (kvm->vcpus[i]) { + kvm_arch_vcpu_free(kvm->vcpus[i]); +diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c +index 0310b03697e0..feda3ff185e9 100644 +--- a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c +@@ -1493,6 +1493,7 @@ void kvm_arch_memslots_updated(struct kvm *kvm) + + void kvm_arch_flush_shadow_all(struct kvm *kvm) + { ++ kvm_free_stage2_pgd(kvm); + } + + void kvm_arch_flush_shadow_memslot(struct kvm *kvm, +diff --git a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c +index 5c3af8f993d0..bdd1d9061759 100644 +--- a/arch/arm/mach-imx/pm-imx6.c b/arch/arm/mach-imx/pm-imx6.c +@@ -293,7 +293,7 @@ int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode) + val |= 0x3 << BP_CLPCR_STBY_COUNT; + val |= BM_CLPCR_VSTBY; + val |= BM_CLPCR_SBYOS; +- if (cpu_is_imx6sl()) ++ if (cpu_is_imx6sl() || cpu_is_imx6sx()) + val |= BM_CLPCR_BYPASS_PMIC_READY; + if (cpu_is_imx6sl() || cpu_is_imx6sx()) + val |= BM_CLPCR_BYP_MMDC_CH0_LPM_HS; +diff --git a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +index 2a78b093c0ce..e74ddb373131 100644 +--- a/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c b/arch/arm/mach-omap2/omap_hwmod_3xxx_data.c +@@ -724,8 +724,20 @@ static struct omap_hwmod omap3xxx_dss_dispc_hwmod = { + * display serial interface controller + */ + ++static struct
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: a3730ed4142f4394f432aa12a5f8371eadd992a9 Author: Mike Pagano gentoo org> AuthorDate: Sun Sep 18 12:43:17 2016 + Commit: Mike Pagano gentoo org> CommitDate: Sun Sep 18 12:43:17 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=a3730ed4 Linux patch 3.18.41 and 3.18.42. _README |8 + 1040_linux-3.18.41.patch | 1139 ++ 1041_linux-3.18.42.patch | 611 + 3 files changed, 1758 insertions(+) diff --git a/_README b/_README index c85b470..7228605 100644 --- a/_README +++ b/_README @@ -203,6 +203,14 @@ Patch: 1039_linux-3.18.40.patch From: http://www.kernel.org Desc: Linux 3.18.40 +Patch: 1040_linux-3.18.41.patch +From: http://www.kernel.org +Desc: Linux 3.18.41 + +Patch: 1041_linux-3.18.42.patch +From: http://www.kernel.org +Desc: Linux 3.18.42 + 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/1040_linux-3.18.41.patch b/1040_linux-3.18.41.patch new file mode 100644 index 000..ca98c36 --- /dev/null +++ b/1040_linux-3.18.41.patch @@ -0,0 +1,1139 @@ +diff --git a/Makefile b/Makefile +index 39e8b5638789..e31123a1d511 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 40 ++SUBLEVEL = 41 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arc/include/asm/entry.h b/arch/arc/include/asm/entry.h +index 884081099f80..81cdbc36699b 100644 +--- a/arch/arc/include/asm/entry.h b/arch/arc/include/asm/entry.h +@@ -143,8 +143,6 @@ + POP r13 + .endm + +-#define OFF_USER_R25_FROM_R24 (SZ_CALLEE_REGS + SZ_PT_REGS - 8)/4 +- + /*-- + * Collect User Mode callee regs as struct callee_regs - needed by + * fork/do_signal/unaligned-access-emulation. +@@ -157,12 +155,13 @@ + *-*/ + .macro SAVE_CALLEE_SAVED_USER + ++ mov r12, sp ; save SP as ref to pt_regs + SAVE_R13_TO_R24 + + #ifdef CONFIG_ARC_CURR_IN_REG +- ; Retrieve orig r25 and save it on stack +- ld.as r12, [sp, OFF_USER_R25_FROM_R24] +- st.ar12, [sp, -4] ++ ; Retrieve orig r25 and save it with rest of callee_regs ++ ld r12, [r12, PT_user_r25] ++ PUSHr12 + #else + PUSHr25 + #endif +@@ -209,12 +208,16 @@ + .macro RESTORE_CALLEE_SAVED_USER + + #ifdef CONFIG_ARC_CURR_IN_REG +- ld.ab r12, [sp, 4] +- st.as r12, [sp, OFF_USER_R25_FROM_R24] ++ POP r12 + #else + POP r25 + #endif + RESTORE_R24_TO_R13 ++ ++ ; SP is back to start of pt_regs ++#ifdef CONFIG_ARC_CURR_IN_REG ++ st r12, [sp, PT_user_r25] ++#endif + .endm + + /*-- +diff --git a/arch/arc/include/asm/irqflags.h b/arch/arc/include/asm/irqflags.h +index 742816f1b210..ec8276de345e 100644 +--- a/arch/arc/include/asm/irqflags.h b/arch/arc/include/asm/irqflags.h +@@ -159,10 +159,10 @@ static inline int arch_irqs_disabled(void) + .endm + + .macro IRQ_ENABLE scratch ++ TRACE_ASM_IRQ_ENABLE + lr \scratch, [status32] + or \scratch, \scratch, (STATUS_E1_MASK | STATUS_E2_MASK) + flag\scratch +- TRACE_ASM_IRQ_ENABLE + .endm + + #endif/* __ASSEMBLY__ */ +diff --git a/arch/arc/include/uapi/asm/elf.h b/arch/arc/include/uapi/asm/elf.h +index 0f99ac8fcbb2..0037a587320d 100644 +--- a/arch/arc/include/uapi/asm/elf.h b/arch/arc/include/uapi/asm/elf.h +@@ -13,8 +13,15 @@ + + /* Machine specific ELF Hdr flags */ + #define EF_ARC_OSABI_MSK 0x0f00 +-#define EF_ARC_OSABI_ORIG 0x /* MUST be zero for back-compat */ +-#define EF_ARC_OSABI_CURRENT 0x0300 /* v3 (no legacy syscalls) */ ++ ++#define EF_ARC_OSABI_V3 0x0300 /* v3 (no legacy syscalls) */ ++#define EF_ARC_OSABI_V4 0x0400 /* v4 (64bit data any reg align) */ ++ ++#if __GNUC__ < 6 ++#define EF_ARC_OSABI_CURRENT EF_ARC_OSABI_V3 ++#else ++#define EF_ARC_OSABI_CURRENT EF_ARC_OSABI_V4 ++#endif + + typedef unsigned long elf_greg_t; + typedef unsigned long elf_fpregset_t; +diff --git a/arch/arc/kernel/arcksyms.c b/arch/arc/kernel/arcksyms.c +index 4d9e77724bed..000dd041ab42 100644 +--- a/arch/arc/kernel/arcksyms.c b/arch/arc/kernel/arcksyms.c +@@ -28,6 +28,7 @@ extern void __muldf3(void); + extern void __divdf3(void); + extern void __floatunsidf(void); + extern void __floatunsisf(void); ++extern void __udivdi3(void); + + EXPORT_SYMBOL(__ashldi3); + EXPORT_SYMBOL(__ashrdi3); +@@ -45,6 +46,7 @@ EXPORT_SYMBOL(__muldf3); + EXPORT_SYMBOL(__divdf3); + EXPORT_SYMBOL(__floatunsidf); + EXPORT_SYMBOL(__floatunsisf); ++EXPORT_SYMBOL(__udivdi3); + + /* ARC optimised assembler routines */ +
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 05e153f62c470439f15a6039465f162032ea1643 Author: Mike Pagano gentoo org> AuthorDate: Mon Aug 22 23:27:31 2016 + Commit: Mike Pagano gentoo org> CommitDate: Mon Aug 22 23:27:31 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=05e153f6 Linux patch 3.18.40 _README |4 + 1039_linux-3.18.40.patch | 4290 ++ 2 files changed, 4294 insertions(+) diff --git a/_README b/_README index 2568ef1..c85b470 100644 --- a/_README +++ b/_README @@ -199,6 +199,10 @@ Patch: 1038_linux-3.18.39.patch From: http://www.kernel.org Desc: Linux 3.18.39 +Patch: 1039_linux-3.18.40.patch +From: http://www.kernel.org +Desc: Linux 3.18.40 + 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/1039_linux-3.18.40.patch b/1039_linux-3.18.40.patch new file mode 100644 index 000..e19eec8 --- /dev/null +++ b/1039_linux-3.18.40.patch @@ -0,0 +1,4290 @@ +diff --git a/.mailmap b/.mailmap +index 1ad68731fb47..cf92e1ea6fd3 100644 +--- a/.mailmap b/.mailmap +@@ -78,6 +78,7 @@ Leonid I Ananiev+ Linas Vepstas + Mark Brown + Matthieu CASTET ++Mauro Carvalho Chehab + Mayuresh Janorkar + Michael Buesch + Michel Dänzer +diff --git a/CREDITS b/CREDITS +index bb6278884f89..89d2297b70cb 100644 +--- a/CREDITS b/CREDITS +@@ -636,6 +636,7 @@ D: Configure, Menuconfig, xconfig + + N: Mauro Carvalho Chehab + E: m.che...@samsung.org ++E: mche...@osg.samsung.com + E: mche...@infradead.org + D: Media subsystem (V4L/DVB) drivers and core + D: EDAC drivers and EDAC 3.0 core rework +diff --git a/Documentation/module-signing.txt b/Documentation/module-signing.txt +index 09c2382ad055..e3af8c27eef2 100644 +--- a/Documentation/module-signing.txt b/Documentation/module-signing.txt +@@ -239,3 +239,9 @@ Since the private key is used to sign modules, viruses and malware could use + the private key to sign modules and compromise the operating system. The + private key must be either destroyed or moved to a secure location and not kept + in the root node of the kernel source tree. ++ ++If you use the same private key to sign modules for multiple kernel ++configurations, you must ensure that the module version information is ++sufficient to prevent loading a module into a different kernel. Either ++set CONFIG_MODVERSIONS=y or ensure that each configuration has a different ++kernel release string by changing EXTRAVERSION or CONFIG_LOCALVERSION. +diff --git a/MAINTAINERS b/MAINTAINERS +index f553cf7abe6a..bcfe54f2aa13 100644 +--- a/MAINTAINERS b/MAINTAINERS +@@ -1828,7 +1828,8 @@ F: include/net/ax25.h + F:net/ax25/ + + AZ6007 DVB DRIVER +-M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab + L:linux-me...@vger.kernel.org + W:http://linuxtv.org + T:git git://linuxtv.org/media_tree.git +@@ -2198,7 +2199,8 @@ F: Documentation/filesystems/btrfs.txt + F:fs/btrfs/ + + BTTV VIDEO4LINUX DRIVER +-M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab + L:linux-me...@vger.kernel.org + W:http://linuxtv.org + T:git git://linuxtv.org/media_tree.git +@@ -2719,7 +2721,8 @@ F: drivers/media/common/cx2341x* + F:include/media/cx2341x* + + CX88 VIDEO4LINUX DRIVER +-M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab + L:linux-me...@vger.kernel.org + W:http://linuxtv.org + T:git git://linuxtv.org/media_tree.git +@@ -3402,7 +3405,8 @@ F: fs/ecryptfs/ + EDAC-CORE + M:Doug Thompson + M:Borislav Petkov +-M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab + L:linux-e...@vger.kernel.org + W:bluesmoke.sourceforge.net + S:Supported +@@ -3451,7 +3455,8 @@ S: Maintained + F:drivers/edac/e7xxx_edac.c + + EDAC-GHES +-M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab ++M:Mauro Carvalho Chehab + L:linux-e...@vger.kernel.org + W:bluesmoke.sourceforge.net + S:Maintained +@@ -3479,21 +3484,24 @@ S: Maintained + F:
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 08b477679e9842d315b7e455240f89e00bfdf694 Author: Mike Pagano gentoo org> AuthorDate: Wed Aug 10 12:54:25 2016 + Commit: Mike Pagano gentoo org> CommitDate: Wed Aug 10 12:54:25 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=08b47767 Linux patch 3.18.39 _README |4 + 1038_linux-3.18.39.patch | 1354 ++ 2 files changed, 1358 insertions(+) diff --git a/_README b/_README index b5306ef..2568ef1 100644 --- a/_README +++ b/_README @@ -195,6 +195,10 @@ Patch: 1037_linux-3.18.38.patch From: http://www.kernel.org Desc: Linux 3.18.38 +Patch: 1038_linux-3.18.39.patch +From: http://www.kernel.org +Desc: Linux 3.18.39 + 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/1038_linux-3.18.39.patch b/1038_linux-3.18.39.patch new file mode 100644 index 000..1812d18 --- /dev/null +++ b/1038_linux-3.18.39.patch @@ -0,0 +1,1354 @@ +diff --git a/Makefile b/Makefile +index 2940c7532661..758b8efbb881 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 38 ++SUBLEVEL = 39 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c +index 01efe130912e..9e5c29df91f5 100644 +--- a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c +@@ -315,22 +315,16 @@ static void __init armada_370_coherency_init(struct device_node *np) + } + + /* +- * This ioremap hook is used on Armada 375/38x to ensure that PCIe +- * memory areas are mapped as MT_UNCACHED instead of MT_DEVICE. This +- * is needed as a workaround for a deadlock issue between the PCIe +- * interface and the cache controller. ++ * This ioremap hook is used on Armada 375/38x to ensure that all MMIO ++ * areas are mapped as MT_UNCACHED instead of MT_DEVICE. This is ++ * needed for the HW I/O coherency mechanism to work properly without ++ * deadlock. + */ + static void __iomem * +-armada_pcie_wa_ioremap_caller(phys_addr_t phys_addr, size_t size, +-unsigned int mtype, void *caller) ++armada_wa_ioremap_caller(phys_addr_t phys_addr, size_t size, ++ unsigned int mtype, void *caller) + { +- struct resource pcie_mem; +- +- mvebu_mbus_get_pcie_mem_aperture(_mem); +- +- if (pcie_mem.start <= phys_addr && (phys_addr + size) <= pcie_mem.end) +- mtype = MT_UNCACHED; +- ++ mtype = MT_UNCACHED; + return __arm_ioremap_caller(phys_addr, size, mtype, caller); + } + +@@ -339,7 +333,7 @@ static void __init armada_375_380_coherency_init(struct device_node *np) + struct device_node *cache_dn; + + coherency_cpu_base = of_iomap(np, 0); +- arch_ioremap_caller = armada_pcie_wa_ioremap_caller; ++ arch_ioremap_caller = armada_wa_ioremap_caller; + + /* +* We should switch the PL310 to I/O coherency mode only if +diff --git a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c +index 2168355591f5..f3b635f86c39 100644 +--- a/arch/mips/kernel/setup.c b/arch/mips/kernel/setup.c +@@ -685,9 +685,6 @@ static void __init arch_mem_init(char **cmdline_p) + for_each_memblock(reserved, reg) + if (reg->size != 0) + reserve_bootmem(reg->base, reg->size, BOOTMEM_DEFAULT); +- +- reserve_bootmem_region(__pa_symbol(&__nosave_begin), +- __pa_symbol(&__nosave_end)); /* Reserve for hibernation */ + } + + static void __init resource_init(void) +diff --git a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c +index 7dd57626da19..c30a5ec6498c 100644 +--- a/arch/sparc/mm/init_64.c b/arch/sparc/mm/init_64.c +@@ -1300,18 +1300,10 @@ static int __init numa_parse_sun4u(void) + + static int __init bootmem_init_numa(void) + { +- int i, j; + int err = -1; + + numadbg("bootmem_init_numa()\n"); + +- /* Some sane defaults for numa latency values */ +- for (i = 0; i < MAX_NUMNODES; i++) { +- for (j = 0; j < MAX_NUMNODES; j++) +- numa_latency[i][j] = (i == j) ? +- LOCAL_DISTANCE : REMOTE_DISTANCE; +- } +- + if (numa_enabled) { + if (tlb_type == hypervisor) + err = numa_parse_mdesc(); +diff --git a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c +index 2e1a6853e00c..2fa494f59828 100644 +--- a/arch/x86/kernel/early-quirks.c b/arch/x86/kernel/early-quirks.c +@@ -11,7 +11,11 @@ + + #include + #include ++#include ++#include + #include ++#include ++#include + #include + #include + #include +@@ -21,6 +25,9 @@ + #include + #include + #include ++#include ++ ++#define dev_err(msg) pr_err("pci :%02x:%02x.%d: %s", bus, slot, func, msg) + + static void __init
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 3d17cc6a46a7b90b3002170d6b61600732112f22 Author: Mike Pagano gentoo org> AuthorDate: Sun Jul 31 15:27:06 2016 + Commit: Mike Pagano gentoo org> CommitDate: Sun Jul 31 15:27:06 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3d17cc6a Linux patch 3.18.38 _README | 4 + 1037_linux-3.18.38.patch | 360 +++ 2 files changed, 364 insertions(+) diff --git a/_README b/_README index 35319e8..b5306ef 100644 --- a/_README +++ b/_README @@ -191,6 +191,10 @@ Patch: 1036_linux-3.18.37.patch From: http://www.kernel.org Desc: Linux 3.18.37 +Patch: 1037_linux-3.18.38.patch +From: http://www.kernel.org +Desc: Linux 3.18.38 + 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/1037_linux-3.18.38.patch b/1037_linux-3.18.38.patch new file mode 100644 index 000..35be23d --- /dev/null +++ b/1037_linux-3.18.38.patch @@ -0,0 +1,360 @@ +diff --git a/Makefile b/Makefile +index e6953a43fe64..2940c7532661 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 37 ++SUBLEVEL = 38 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h +index 060fc2e50cd2..825dd09e80a4 100644 +--- a/arch/mips/include/asm/pgtable.h b/arch/mips/include/asm/pgtable.h +@@ -596,7 +596,8 @@ static inline struct page *pmd_page(pmd_t pmd) + + static inline pmd_t pmd_modify(pmd_t pmd, pgprot_t newprot) + { +- pmd_val(pmd) = (pmd_val(pmd) & _PAGE_CHG_MASK) | pgprot_val(newprot); ++ pmd_val(pmd) = (pmd_val(pmd) & (_PAGE_CHG_MASK | _PAGE_HUGE)) | ++ (pgprot_val(newprot) & ~_PAGE_CHG_MASK); + return pmd; + } + +diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c +index 7a218ab7e941..269ae9b58d74 100644 +--- a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c +@@ -166,8 +166,7 @@ static struct ibm_pa_feature { +* we don't want to turn on TM here, so we use the *_COMP versions +* which are 0 if the kernel doesn't support TM. +*/ +- {CPU_FTR_TM_COMP, 0, 0, +- PPC_FEATURE2_HTM_COMP|PPC_FEATURE2_HTM_NOSC_COMP, 22, 0, 0}, ++ {CPU_FTR_TM_COMP, 0, 0, PPC_FEATURE2_HTM_COMP, 22, 0, 0}, + }; + + static void __init scan_features(unsigned long node, const unsigned char *ftrs, +diff --git a/arch/x86/kernel/amd_nb.c b/arch/x86/kernel/amd_nb.c +index f04dbb3069b8..29f0c55d6efc 100644 +--- a/arch/x86/kernel/amd_nb.c b/arch/x86/kernel/amd_nb.c +@@ -69,8 +69,8 @@ int amd_cache_northbridges(void) + while ((misc = next_northbridge(misc, amd_nb_misc_ids)) != NULL) + i++; + +- if (i == 0) +- return 0; ++ if (!i) ++ return -ENODEV; + + nb = kzalloc(i * sizeof(struct amd_northbridge), GFP_KERNEL); + if (!nb) +diff --git a/block/ioprio.c b/block/ioprio.c +index 31666c92b46a..563435684c3c 100644 +--- a/block/ioprio.c b/block/ioprio.c +@@ -149,8 +149,10 @@ static int get_task_ioprio(struct task_struct *p) + if (ret) + goto out; + ret = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_NONE, IOPRIO_NORM); ++ task_lock(p); + if (p->io_context) + ret = p->io_context->ioprio; ++ task_unlock(p); + out: + return ret; + } +diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c +index c2679bfe7f66..d23138b87af3 100644 +--- a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c +@@ -911,6 +911,7 @@ static void qeth_l2_remove_device(struct ccwgroup_device *cgdev) + qeth_l2_set_offline(cgdev); + + if (card->dev) { ++ netif_napi_del(>napi); + unregister_netdev(card->dev); + card->dev = NULL; + } +diff --git a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c +index afebb9709763..0513d11b741e 100644 +--- a/drivers/s390/net/qeth_l3_main.c b/drivers/s390/net/qeth_l3_main.c +@@ -3337,6 +3337,7 @@ static void qeth_l3_remove_device(struct ccwgroup_device *cgdev) + qeth_l3_set_offline(cgdev); + + if (card->dev) { ++ netif_napi_del(>napi); + unregister_netdev(card->dev); + card->dev = NULL; + } +diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c +index f2e1b92eb314..105adb4cf6a8 100644 +--- a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c +@@ -9759,6 +9759,7 @@ static int ipr_probe_ioa(struct pci_dev *pdev, + ioa_cfg->intr_flag = IPR_USE_MSI; + else { + ioa_cfg->intr_flag = IPR_USE_LSI; ++ ioa_cfg->clear_isr = 1; + ioa_cfg->nvectors = 1; + dev_info(>dev, "Cannot enable MSI.\n"); + } +diff --git a/drivers/xen/xen-acpi-processor.c
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: adba88cd57526f2f189fb86125bca5bfd9af3801 Author: Mike Pagano gentoo org> AuthorDate: Fri Jul 15 14:46:26 2016 + Commit: Mike Pagano gentoo org> CommitDate: Fri Jul 15 14:46:26 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=adba88cd Revert commit 8f182270dfec mm/swap.c: flush lru pvecs on compound page arrival to fix OOM error. _README | 4 1800_fix-lru-cache-add-oom-regression.patch | 17 + 2 files changed, 21 insertions(+) diff --git a/_README b/_README index 1863a89..35319e8 100644 --- a/_README +++ b/_README @@ -207,6 +207,10 @@ Patch: 2700_ThinkPad-30-brightness-control-fix.patch From: Seth ForsheeDesc: ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads. +Patch: 1800_fix-lru-cache-add-oom-regression.patch +From: http://thread.gmane.org/gmane.linux.kernel.stable/184384 +Desc: Revert commit 8f182270dfec mm/swap.c: flush lru pvecs on compound page arrival to fix OOM error. + 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. diff --git a/1800_fix-lru-cache-add-oom-regression.patch b/1800_fix-lru-cache-add-oom-regression.patch new file mode 100644 index 000..f1ca64b --- /dev/null +++ b/1800_fix-lru-cache-add-oom-regression.patch @@ -0,0 +1,17 @@ +Revert commit 8f182270dfec mm/swap.c: flush lru pvecs on compound page arrival to fix OOM error. + +Signed-off-by: Steven Rostedt goodmis.org> +--- +diff --git a/mm/swap.c b/mm/swap.c +index b523f0a4cbfb..ab3b9c2dd783 100644 +--- a/mm/swap.c b/mm/swap.c + -631,7 +631,7 static void __lru_cache_add(struct page *page) +struct pagevec *pvec = _cpu_var(lru_add_pvec); + +page_cache_get(page); +- if (!pagevec_space(pvec) || PageCompound(page)) ++ if (!pagevec_add(pvec, page) || PageCompound(page)) +__pagevec_lru_add(pvec); +put_cpu_var(lru_add_pvec); + }
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 8f00680e929b129178c148c4e9eb119d644d2924 Author: Mike Pagano gentoo org> AuthorDate: Fri Jul 1 20:49:58 2016 + Commit: Mike Pagano gentoo org> CommitDate: Fri Jul 1 20:49:58 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8f00680e Update gcc 4.9+ optimization patch. Bug #587578 ...-additional-cpu-optimizations-for-gcc-4.9.patch | 90 ++ 1 file changed, 57 insertions(+), 33 deletions(-) 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..d9729b2 100644 --- a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch +++ b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch @@ -21,11 +21,12 @@ bug report to see if I'm right: https://bugzilla.kernel.org/show_bug.cgi?id=7746 This patch will expand the number of microarchitectures to include newer processors including: AMD K10-family, AMD Family 10h (Barcelona), AMD Family 14h (Bobcat), AMD Family 15h (Bulldozer), AMD Family 15h (Piledriver), AMD -Family 16h (Jaguar), Intel 1st Gen Core i3/i5/i7 (Nehalem), Intel 1.5 Gen Core -i3/i5/i7 (Westmere), Intel 2nd Gen Core i3/i5/i7 (Sandybridge), Intel 3rd Gen -Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), Intel 5th -Gen Core i3/i5/i7 (Broadwell), and the low power Silvermont series of Atom -processors (Silvermont). It also offers the compiler the 'native' flag. +Family 15h (Steamroller), Family 16h (Jaguar), Intel 1st Gen Core i3/i5/i7 +(Nehalem), Intel 1.5 Gen Core i3/i5/i7 (Westmere), Intel 2nd Gen Core i3/i5/i7 +(Sandybridge), Intel 3rd Gen Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core +i3/i5/i7 (Haswell), Intel 5th Gen Core i3/i5/i7 (Broadwell), and the low power +Silvermont series of Atom processors (Silvermont). It also offers the compiler +the 'native' flag. Small but real speed increases are measurable using a make endpoint comparing a generic kernel to one built with one of the respective microarchs. @@ -37,9 +38,9 @@ REQUIREMENTS linux version >=3.15 gcc version >=4.9 a/arch/x86/include/asm/module.h2014-06-16 16:44:27.0 -0400 -+++ b/arch/x86/include/asm/module.h2015-03-07 03:27:32.556672424 -0500 -@@ -15,6 +15,22 @@ +--- a/arch/x86/include/asm/module.h2015-08-30 14:34:09.0 -0400 b/arch/x86/include/asm/module.h2015-11-06 14:18:24.234941036 -0500 +@@ -15,6 +15,24 @@ #define MODULE_PROC_FAMILY "586MMX " #elif defined CONFIG_MCORE2 #define MODULE_PROC_FAMILY "CORE2 " @@ -59,10 +60,12 @@ gcc version >=4.9 +#define MODULE_PROC_FAMILY "HASWELL " +#elif defined CONFIG_MBROADWELL +#define MODULE_PROC_FAMILY "BROADWELL " ++#elif defined CONFIG_MSKYLAKE ++#define MODULE_PROC_FAMILY "SKYLAKE " #elif defined CONFIG_MATOM #define MODULE_PROC_FAMILY "ATOM " #elif defined CONFIG_M686 -@@ -33,6 +49,20 @@ +@@ -33,6 +51,22 @@ #define MODULE_PROC_FAMILY "K7 " #elif defined CONFIG_MK8 #define MODULE_PROC_FAMILY "K8 " @@ -77,14 +80,16 @@ gcc version >=4.9 +#elif defined CONFIG_MBULLDOZER +#define MODULE_PROC_FAMILY "BULLDOZER " +#elif defined CONFIG_MPILEDRIVER ++#define MODULE_PROC_FAMILY "STEAMROLLER " ++#elif defined CONFIG_MSTEAMROLLER +#define MODULE_PROC_FAMILY "PILEDRIVER " +#elif defined CONFIG_MJAGUAR +#define MODULE_PROC_FAMILY "JAGUAR " #elif defined CONFIG_MELAN #define MODULE_PROC_FAMILY "ELAN " #elif defined CONFIG_MCRUSOE a/arch/x86/Kconfig.cpu 2014-06-16 16:44:27.0 -0400 -+++ b/arch/x86/Kconfig.cpu 2015-03-07 03:32:14.337713226 -0500 +--- a/arch/x86/Kconfig.cpu 2015-08-30 14:34:09.0 -0400 b/arch/x86/Kconfig.cpu 2015-11-06 14:20:14.948369244 -0500 @@ -137,9 +137,8 @@ config MPENTIUM4 -Paxville -Dempsey @@ -105,7 +110,7 @@ gcc version >=4.9 depends on X86_32 ---help--- Select this for an AMD Athlon K7-family processor. Enables use of -@@ -155,12 +154,62 @@ config MK7 +@@ -155,12 +154,69 @@ config MK7 flags to GCC. config MK8 @@ -159,6 +164,13 @@ gcc version >=4.9 + +Enables -march=bdver2 + ++config MSTEAMROLLER ++ bool "AMD Steamroller" ++ ---help--- ++Select this for AMD Steamroller processors. ++ ++Enables -march=bdver3 ++ +config MJAGUAR + bool "AMD Jaguar" + ---help--- @@ -169,7 +181,7 @@ gcc version >=4.9 config MCRUSOE bool "Crusoe" depends on X86_32 -@@ -251,8 +300,17 @@ config MPSC +@@ -251,8 +307,17 @@ config MPSC using the cpu family field in /proc/cpuinfo. Family 15 is an older Xeon, Family 6 a newer one. @@ -188,7 +200,7 @@ gcc version >=4.9 ---help--- Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and -@@ -260,14 +318,63 @@ config MCORE2 +@@ -260,14 +325,71 @@ config MCORE2 family in /proc/cpuinfo. Newer ones have 6 and older ones 15 (not a typo)
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 10f7e262ba392916ff8c908256076e7d534817fd Author: Mike Pagano gentoo org> AuthorDate: Thu Jun 23 11:43:57 2016 + Commit: Mike Pagano gentoo org> CommitDate: Thu Jun 23 11:43:57 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=10f7e262 Linux patch 3.18.36 _README |4 + 1035_linux-3.18.36.patch | 1160 ++ 2 files changed, 1164 insertions(+) diff --git a/_README b/_README index 0ce5fde..fcefa63 100644 --- a/_README +++ b/_README @@ -183,6 +183,10 @@ Patch: 1034_linux-3.18.35.patch From: http://www.kernel.org Desc: Linux 3.18.35 +Patch: 1035_linux-3.18.36.patch +From: http://www.kernel.org +Desc: Linux 3.18.36 + 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/1035_linux-3.18.36.patch b/1035_linux-3.18.36.patch new file mode 100644 index 000..82fab96 --- /dev/null +++ b/1035_linux-3.18.36.patch @@ -0,0 +1,1160 @@ +diff --git a/Makefile b/Makefile +index 3ba252c1b187..497f437efebf 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 35 ++SUBLEVEL = 36 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c +index ef9119f7462e..4d9375814b53 100644 +--- a/arch/arm/kernel/ptrace.c b/arch/arm/kernel/ptrace.c +@@ -733,8 +733,8 @@ static int vfp_set(struct task_struct *target, + if (ret) + return ret; + +- vfp_flush_hwstate(thread); + thread->vfpstate.hard = new_vfp; ++ vfp_flush_hwstate(thread); + + return 0; + } +diff --git a/arch/parisc/kernel/unaligned.c b/arch/parisc/kernel/unaligned.c +index d7c0acb35ec2..8d49614d600d 100644 +--- a/arch/parisc/kernel/unaligned.c b/arch/parisc/kernel/unaligned.c +@@ -666,7 +666,7 @@ void handle_unaligned(struct pt_regs *regs) + break; + } + +- if (modify && R1(regs->iir)) ++ if (ret == 0 && modify && R1(regs->iir)) + regs->gr[R1(regs->iir)] = newbase; + + +@@ -677,6 +677,14 @@ void handle_unaligned(struct pt_regs *regs) + + if (ret) + { ++ /* ++ * The unaligned handler failed. ++ * If we were called by __get_user() or __put_user() jump ++ * to it's exception fixup handler instead of crashing. ++ */ ++ if (!user_mode(regs) && fixup_exception(regs)) ++ return; ++ + printk(KERN_CRIT "Unaligned handler failed, ret = %d\n", ret); + die_if_kernel("Unaligned data reference", regs, 28); + +diff --git a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h +index a68ee15964b3..32fd9f6ad6ef 100644 +--- a/arch/powerpc/include/asm/reg.h b/arch/powerpc/include/asm/reg.h +@@ -703,7 +703,7 @@ + #define MMCR0_FCWAIT0x0002UL /* freeze counter in WAIT state */ + #define MMCR0_FCHV 0x0001UL /* freeze conditions in hypervisor mode */ + #define SPRN_MMCR1798 +-#define SPRN_MMCR2769 ++#define SPRN_MMCR2785 + #define SPRN_MMCRA0x312 + #define MMCRA_SDSYNC0x8000UL /* SDAR synced with SIAR */ + #define MMCRA_SDAR_DCACHE_MISS 0x4000UL +@@ -739,13 +739,13 @@ + #define SPRN_PMC6 792 + #define SPRN_PMC7 793 + #define SPRN_PMC8 794 +-#define SPRN_SIAR 780 +-#define SPRN_SDAR 781 + #define SPRN_SIER 784 + #define SIER_SIPR 0x200 /* Sampled MSR_PR */ + #define SIER_SIHV 0x100 /* Sampled MSR_HV */ + #define SIER_SIAR_VALID 0x040 /* SIAR contents valid */ + #define SIER_SDAR_VALID 0x020 /* SDAR contents valid */ ++#define SPRN_SIAR 796 ++#define SPRN_SDAR 797 + #define SPRN_TACR 888 + #define SPRN_TCSCR889 + #define SPRN_CSIGR890 +diff --git a/arch/powerpc/platforms/pseries/eeh_pseries.c b/arch/powerpc/platforms/pseries/eeh_pseries.c +index a6c7e19f5eb3..5c80e02a346c 100644 +--- a/arch/powerpc/platforms/pseries/eeh_pseries.c b/arch/powerpc/platforms/pseries/eeh_pseries.c +@@ -642,29 +642,50 @@ static int pseries_eeh_configure_bridge(struct eeh_pe *pe) + { + int config_addr; + int ret; ++ /* Waiting 0.2s maximum before skipping configuration */ ++ int max_wait = 200; + + /* Figure out the PE address */ + config_addr = pe->config_addr; + if (pe->addr) + config_addr = pe->addr; + +- /* Use new configure-pe function, if supported */ +- if (ibm_configure_pe != RTAS_UNKNOWN_SERVICE) { +- ret = rtas_call(ibm_configure_pe, 3, 1, NULL, +- config_addr, BUID_HI(pe->phb->buid), +- BUID_LO(pe->phb->buid)); +- } else if (ibm_configure_bridge != RTAS_UNKNOWN_SERVICE) { +-
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: fd2734bce6708d405a02613c10722ddd8f0a1857 Author: Mike Pagano gentoo org> AuthorDate: Wed Jun 8 11:20:10 2016 + Commit: Mike Pagano gentoo org> CommitDate: Wed Jun 8 11:20:10 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=fd2734bc Linux patch 3.18.35 _README |4 + 1034_linux-3.18.35.patch | 4097 ++ 2 files changed, 4101 insertions(+) diff --git a/_README b/_README index a6bf155..0ce5fde 100644 --- a/_README +++ b/_README @@ -179,6 +179,10 @@ Patch: 1033_linux-3.18.34.patch From: http://www.kernel.org Desc: Linux 3.18.34 +Patch: 1034_linux-3.18.35.patch +From: http://www.kernel.org +Desc: Linux 3.18.35 + 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/1034_linux-3.18.35.patch b/1034_linux-3.18.35.patch new file mode 100644 index 000..e7bfc48 --- /dev/null +++ b/1034_linux-3.18.35.patch @@ -0,0 +1,4097 @@ +diff --git a/Documentation/devicetree/bindings/crypto/samsung-sss.txt b/Documentation/devicetree/bindings/crypto/samsung-sss.txt +index a6dafa83c6df..7a5ca56683cc 100644 +--- a/Documentation/devicetree/bindings/crypto/samsung-sss.txt b/Documentation/devicetree/bindings/crypto/samsung-sss.txt +@@ -23,10 +23,8 @@ Required properties: + - "samsung,exynos4210-secss" for Exynos4210, Exynos4212, Exynos4412, Exynos5250, + Exynos5260 and Exynos5420 SoCs. + - reg : Offset and length of the register set for the module +-- interrupts : interrupt specifiers of SSS module interrupts, should contain +- following entries: +- - first : feed control interrupt (required for all variants), +- - second : hash interrupt (required only for samsung,s5pv210-secss). ++- interrupts : interrupt specifiers of SSS module interrupts (one feed ++ control interrupt). + + - clocks : list of clock phandle and specifier pairs for all clocks listed in + clock-names property. +diff --git a/Makefile b/Makefile +index 0df57f0a9e11..3ba252c1b187 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 34 ++SUBLEVEL = 35 + EXTRAVERSION = + NAME = Diseased Newt + +@@ -376,7 +376,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. +@@ -686,9 +686,10 @@ KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,) + KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior) + else + +-# This warning generated too much noise in a regular build. +-# Use make W=1 to enable this warning (see scripts/Makefile.build) ++# These warnings generated too much noise in a regular build. ++# Use make W=1 to enable them (see scripts/Makefile.build) + KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable) ++KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable) + endif + + ifdef CONFIG_FRAME_POINTER +diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c +index 3535480e0e6b..0310b03697e0 100644 +--- a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c +@@ -841,11 +841,14 @@ static int stage2_set_pmd_huge(struct kvm *kvm, struct kvm_mmu_memory_cache + VM_BUG_ON(pmd_present(*pmd) && pmd_pfn(*pmd) != pmd_pfn(*new_pmd)); + + old_pmd = *pmd; +- kvm_set_pmd(pmd, *new_pmd); +- if (pmd_present(old_pmd)) ++ if (pmd_present(old_pmd)) { ++ pmd_clear(pmd); + kvm_tlb_flush_vmid_ipa(kvm, addr); +- else ++ } else { + get_page(virt_to_page(pmd)); ++ } ++ ++ kvm_set_pmd(pmd, *new_pmd); + return 0; + } + +@@ -882,12 +885,14 @@ static int stage2_set_pte(struct kvm *kvm, struct kvm_mmu_memory_cache *cache, + + /* Create 2nd stage page table mapping - Level 3 */ + old_pte = *pte; +- kvm_set_pte(pte, *new_pte); +- if (pte_present(old_pte)) ++ if (pte_present(old_pte)) { ++ kvm_set_pte(pte, __pte(0)); + kvm_tlb_flush_vmid_ipa(kvm, addr); +- else ++ } else { + get_page(virt_to_page(pte)); ++ } + ++ kvm_set_pte(pte, *new_pte); + return 0; + } + +diff --git a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h +index 88174e0bfafe..31e6b0477e60 100644 +--- a/arch/arm64/include/asm/pgtable-hwdef.h b/arch/arm64/include/asm/pgtable-hwdef.h +@@ -77,7 +77,6 @@ + * Section + */ + #define PMD_SECT_VALID(_AT(pmdval_t, 1) << 0) +-#define PMD_SECT_PROT_NONE(_AT(pmdval_t, 1) << 58) + #define PMD_SECT_USER (_AT(pmdval_t, 1) << 6) /* AP[1] */ + #define PMD_SECT_RDONLY (_AT(pmdval_t, 1)
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: bd40d08ff68c535adeddd9303c508ca63ac433f4 Author: Mike Pagano gentoo org> AuthorDate: Thu May 12 00:10:44 2016 + Commit: Mike Pagano gentoo org> CommitDate: Thu May 12 00:10:44 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=bd40d08f Linux patches 3.18.32 and 3.18.33 _README |8 + 1031_linux-3.18.32.patch | 2327 ++ 1032_linux-3.18.33.patch | 390 3 files changed, 2725 insertions(+) diff --git a/_README b/_README index 8c2614b..e4866a4 100644 --- a/_README +++ b/_README @@ -167,6 +167,14 @@ Patch: 1030_linux-3.18.31.patch From: http://www.kernel.org Desc: Linux 3.18.31 +Patch: 1031_linux-3.18.32.patch +From: http://www.kernel.org +Desc: Linux 3.18.32 + +Patch: 1032_linux-3.18.33.patch +From: http://www.kernel.org +Desc: Linux 3.18.33 + 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/1031_linux-3.18.32.patch b/1031_linux-3.18.32.patch new file mode 100644 index 000..f1a51f9 --- /dev/null +++ b/1031_linux-3.18.32.patch @@ -0,0 +1,2327 @@ +diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt +index 61f9273d0c46..b2bdea1953e6 100644 +--- a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt +@@ -3651,6 +3651,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted. + sector if the number is odd); + i = IGNORE_DEVICE (don't bind to this + device); ++ j = NO_REPORT_LUNS (don't use report luns ++ command, uas only); + l = NOT_LOCKABLE (don't try to lock and + unlock ejectable media); + m = MAX_SECTORS_64 (don't transfer more +diff --git a/Makefile b/Makefile +index a05c9336722d..7a79cf89bf17 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 31 ++SUBLEVEL = 32 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c +index bb9a148af8cc..e67ffbc9ec40 100644 +--- a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c +@@ -1439,9 +1439,7 @@ static void _enable_sysc(struct omap_hwmod *oh) + (sf & SYSC_HAS_CLOCKACTIVITY)) + _set_clockactivity(oh, oh->class->sysc->clockact, ); + +- /* If the cached value is the same as the new value, skip the write */ +- if (oh->_sysc_cache != v) +- _write_sysconfig(v, oh); ++ _write_sysconfig(v, oh); + + /* +* Set the autoidle bit only after setting the smartidle bit +@@ -1504,7 +1502,9 @@ static void _idle_sysc(struct omap_hwmod *oh) + _set_master_standbymode(oh, idlemode, ); + } + +- _write_sysconfig(v, oh); ++ /* If the cached value is the same as the new value, skip the write */ ++ if (oh->_sysc_cache != v) ++ _write_sysconfig(v, oh); + } + + /** +diff --git a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h +index a5cb070b54bf..df9d8dd72db2 100644 +--- a/arch/parisc/include/asm/uaccess.h b/arch/parisc/include/asm/uaccess.h +@@ -76,6 +76,7 @@ struct exception_table_entry { + */ + struct exception_data { + unsigned long fault_ip; ++ unsigned long fault_gp; + unsigned long fault_space; + unsigned long fault_addr; + }; +diff --git a/arch/parisc/kernel/asm-offsets.c b/arch/parisc/kernel/asm-offsets.c +index dcd55103a4bb..a0dc1e50e3a3 100644 +--- a/arch/parisc/kernel/asm-offsets.c b/arch/parisc/kernel/asm-offsets.c +@@ -292,6 +292,7 @@ int main(void) + DEFINE(ASM_PT_INITIAL, PT_INITIAL); + BLANK(); + DEFINE(EXCDATA_IP, offsetof(struct exception_data, fault_ip)); ++ DEFINE(EXCDATA_GP, offsetof(struct exception_data, fault_gp)); + DEFINE(EXCDATA_SPACE, offsetof(struct exception_data, fault_space)); + DEFINE(EXCDATA_ADDR, offsetof(struct exception_data, fault_addr)); + BLANK(); +diff --git a/arch/parisc/kernel/parisc_ksyms.c b/arch/parisc/kernel/parisc_ksyms.c +index 568b2c61ea02..3cad8aadc69e 100644 +--- a/arch/parisc/kernel/parisc_ksyms.c b/arch/parisc/kernel/parisc_ksyms.c +@@ -47,11 +47,11 @@ EXPORT_SYMBOL(__cmpxchg_u64); + EXPORT_SYMBOL(lclear_user); + EXPORT_SYMBOL(lstrnlen_user); + +-/* Global fixups */ +-extern void fixup_get_user_skip_1(void); +-extern void fixup_get_user_skip_2(void); +-extern void fixup_put_user_skip_1(void); +-extern void fixup_put_user_skip_2(void); ++/* Global fixups - defined as int to avoid creation of function pointers */ ++extern int fixup_get_user_skip_1; ++extern
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: c894a4336e2b325448b757f54c532361f781a813 Author: Mike Pagano gentoo org> AuthorDate: Wed Apr 6 11:21:37 2016 + Commit: Mike Pagano gentoo org> CommitDate: Wed Apr 6 11:21:37 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=c894a433 Linux patch 3.18.30 _README | 4 + 1029_linux-3.18.30.patch | 689 +++ 2 files changed, 693 insertions(+) diff --git a/_README b/_README index 51c140d..eee1fbe 100644 --- a/_README +++ b/_README @@ -159,6 +159,10 @@ Patch: 1028_linux-3.18.29.patch From: http://www.kernel.org Desc: Linux 3.18.29 +Patch: 1029_linux-3.18.30.patch +From: http://www.kernel.org +Desc: Linux 3.18.30 + 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/1029_linux-3.18.30.patch b/1029_linux-3.18.30.patch new file mode 100644 index 000..26bd181 --- /dev/null +++ b/1029_linux-3.18.30.patch @@ -0,0 +1,689 @@ +diff --git a/Makefile b/Makefile +index 13063ba47412..cdc9cf7cb4dd 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 29 ++SUBLEVEL = 30 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi +index 666e796847d8..8ba02cb2955f 100644 +--- a/arch/arm/boot/dts/dra7.dtsi b/arch/arm/boot/dts/dra7.dtsi +@@ -34,6 +34,8 @@ + serial3 = + serial4 = + serial5 = ++ ethernet0 = _emac0; ++ ethernet1 = _emac1; + }; + + timer { +@@ -1265,6 +1267,75 @@ + ti,irqs-skip = <10 133 139 140>; + ti,irqs-safe-map = <0>; + }; ++ ++ mac: ethernet@4a10 { ++ compatible = "ti,cpsw"; ++ ti,hwmods = "gmac"; ++ clocks = <_gmac_ck>, <_gmii_ref_clk_div>; ++ clock-names = "fck", "cpts"; ++ cpdma_channels = <8>; ++ ale_entries = <1024>; ++ bd_ram_size = <0x2000>; ++ no_bd_ram = <0>; ++ rx_descs = <64>; ++ mac_control = <0x20>; ++ slaves = <2>; ++ active_slave = <0>; ++ cpts_clock_mult = <0x8000>; ++ cpts_clock_shift = <29>; ++ reg = <0x48484000 0x1000 ++ 0x48485200 0x2E00>; ++ #address-cells = <1>; ++ #size-cells = <1>; ++ ++ /* ++ * Do not allow gating of cpsw clock as workaround ++ * for errata i877. Keeping internal clock disabled ++ * causes the device switching characteristics ++ * to degrade over time and eventually fail to meet ++ * the data manual delay time/skew specs. ++ */ ++ ti,no-idle; ++ ++ /* ++ * rx_thresh_pend ++ * rx_pend ++ * tx_pend ++ * misc_pend ++ */ ++ interrupts = , ++ , ++ , ++ ; ++ ranges; ++ status = "disabled"; ++ ++ davinci_mdio: mdio@48485000 { ++ compatible = "ti,davinci_mdio"; ++ #address-cells = <1>; ++ #size-cells = <0>; ++ ti,hwmods = "davinci_mdio"; ++ bus_freq = <100>; ++ reg = <0x48485000 0x100>; ++ }; ++ ++ cpsw_emac0: slave@48480200 { ++ /* Filled in by U-Boot */ ++ mac-address = [ 00 00 00 00 00 00 ]; ++ }; ++ ++ cpsw_emac1: slave@48480300 { ++ /* Filled in by U-Boot */ ++ mac-address = [ 00 00 00 00 00 00 ]; ++ }; ++ ++ phy_sel: cpsw-phy-sel@4a002554 { ++ compatible = "ti,dra7xx-cpsw-phy-sel"; ++ reg= <0x4a002554 0x4>; ++ reg-names = "gmii-sel"; ++ }; ++ }; ++ + }; + }; + +diff --git a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile +index da2272811a31..33cba01d4f33 100644 +--- a/arch/arm64/kernel/Makefile b/arch/arm64/kernel/Makefile +@@ -15,7
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 17dfbe391ee8af34cdd598d8871504327cf9c210 Author: Mike Pagano gentoo org> AuthorDate: Thu Mar 17 22:50:28 2016 + Commit: Mike Pagano gentoo org> CommitDate: Thu Mar 17 22:50:28 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=17dfbe39 Linux patch 3.18.29 _README |4 + 1028_linux-3.18.29.patch | 3850 ++ 2 files changed, 3854 insertions(+) diff --git a/_README b/_README index 124258e..51c140d 100644 --- a/_README +++ b/_README @@ -155,6 +155,10 @@ Patch: 1027_linux-3.18.28.patch From: http://www.kernel.org Desc: Linux 3.18.28 +Patch: 1028_linux-3.18.29.patch +From: http://www.kernel.org +Desc: Linux 3.18.29 + 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/1028_linux-3.18.29.patch b/1028_linux-3.18.29.patch new file mode 100644 index 000..c935dc3 --- /dev/null +++ b/1028_linux-3.18.29.patch @@ -0,0 +1,3850 @@ +diff --git a/Makefile b/Makefile +index f849f29ce405..13063ba47412 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 28 ++SUBLEVEL = 29 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/kvm/guest.c b/arch/arm/kvm/guest.c +index 8c97208b9b97..be68848071fd 100644 +--- a/arch/arm/kvm/guest.c b/arch/arm/kvm/guest.c +@@ -173,7 +173,7 @@ static int get_timer_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) + u64 val; + + val = kvm_arm_timer_get_reg(vcpu, reg->id); +- return copy_to_user(uaddr, , KVM_REG_SIZE(reg->id)); ++ return copy_to_user(uaddr, , KVM_REG_SIZE(reg->id)) ? -EFAULT : 0; + } + + static unsigned long num_core_regs(void) +diff --git a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c +index 2d6b6065fe7f..23e35de789f7 100644 +--- a/arch/arm64/kernel/suspend.c b/arch/arm64/kernel/suspend.c +@@ -1,3 +1,4 @@ ++#include + #include + #include + #include +@@ -92,6 +93,13 @@ int __cpu_suspend(unsigned long arg, int (*fn)(unsigned long)) + local_dbg_save(flags); + + /* ++ * Function graph tracer state gets incosistent when the kernel ++ * calls functions that never return (aka suspend finishers) hence ++ * disable graph tracing during their execution. ++ */ ++ pause_graph_tracing(); ++ ++ /* +* mm context saved on the stack, it will be restored when +* the cpu comes out of reset through the identity mapped +* page tables, so that the thread address space is properly +@@ -128,6 +136,8 @@ int __cpu_suspend(unsigned long arg, int (*fn)(unsigned long)) + hw_breakpoint_restore(NULL); + } + ++ unpause_graph_tracing(); ++ + /* +* Restore pstate flags. OS lock and mdscr have been already +* restored, so from this point onwards, debugging is fully +diff --git a/arch/arm64/kvm/guest.c b/arch/arm64/kvm/guest.c +index 84d5959ff874..61ec16bd528b 100644 +--- a/arch/arm64/kvm/guest.c b/arch/arm64/kvm/guest.c +@@ -184,7 +184,7 @@ static int get_timer_reg(struct kvm_vcpu *vcpu, const struct kvm_one_reg *reg) + u64 val; + + val = kvm_arm_timer_get_reg(vcpu, reg->id); +- return copy_to_user(uaddr, , KVM_REG_SIZE(reg->id)); ++ return copy_to_user(uaddr, , KVM_REG_SIZE(reg->id)) ? -EFAULT : 0; + } + + /** +diff --git a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c +index f506c53cb4f5..2012a5a3055b 100644 +--- a/arch/mips/kernel/traps.c b/arch/mips/kernel/traps.c +@@ -692,15 +692,15 @@ static int simulate_sync(struct pt_regs *regs, unsigned int opcode) + asmlinkage void do_ov(struct pt_regs *regs) + { + enum ctx_state prev_state; +- siginfo_t info; ++ siginfo_t info = { ++ .si_signo = SIGFPE, ++ .si_code = FPE_INTOVF, ++ .si_addr = (void __user *)regs->cp0_epc, ++ }; + + prev_state = exception_enter(); + die_if_kernel("Integer overflow", regs); + +- info.si_code = FPE_INTOVF; +- info.si_signo = SIGFPE; +- info.si_errno = 0; +- info.si_addr = (void __user *) regs->cp0_epc; + force_sig_info(SIGFPE, , current); + exception_exit(prev_state); + } +@@ -803,7 +803,7 @@ out: + static void do_trap_or_bp(struct pt_regs *regs, unsigned int code, + const char *str) + { +- siginfo_t info; ++ siginfo_t info = { 0 }; + char b[40]; + + #ifdef CONFIG_KGDB_LOW_LEVEL_TRAP +@@ -831,7 +831,6 @@ static void do_trap_or_bp(struct pt_regs *regs, unsigned int code, + else + info.si_code = FPE_INTOVF; + info.si_signo = SIGFPE; +- info.si_errno = 0; + info.si_addr = (void __user *) regs->cp0_epc; + force_sig_info(SIGFPE, , current); + break; +diff --git
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 41033c2db3e1f066508325a49e17c53e24013843 Author: Mike Pagano gentoo org> AuthorDate: Sun Jan 31 15:36:20 2016 + Commit: Mike Pagano gentoo org> CommitDate: Sun Jan 31 15:36:20 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=41033c2d Linux patch 3.18.26. Removal of redundant patchset. _README|8 +- 1025_linux-3.18.26.patch | 1763 ...ing-refleak-in-join-session-CVE-2016-0728.patch | 81 - 3 files changed, 1767 insertions(+), 85 deletions(-) diff --git a/_README b/_README index 3fe5eec..728c863 100644 --- a/_README +++ b/_README @@ -143,6 +143,10 @@ Patch: 1024_linux-3.18.25.patch From: http://www.kernel.org Desc: Linux 3.18.25 +Patch: 1025_linux-3.18.26.patch +From: http://www.kernel.org +Desc: Linux 3.18.26 + Patch: 1500_XATTR_USER_PREFIX.patch From: https://bugs.gentoo.org/show_bug.cgi?id=470644 Desc: Support for namespace user.pax.* on tmpfs. @@ -151,10 +155,6 @@ 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: 1520_keyring-refleak-in-join-session-CVE-2016-0728.patch -From: https://bugs.gentoo.org/show_bug.cgi?id=572384 -Desc: Ensure that thread joining a session keyring does not leak the keyring reference. CVE-2016-0728. - Patch: 1700_ARM-dts-patch-to-support-popoplug-e02.patch From: https://bugs.gentoo.org/show_bug.cgi?id=508248 Desc: ARM: dts: Add support for Pogoplug E02. diff --git a/1025_linux-3.18.26.patch b/1025_linux-3.18.26.patch new file mode 100644 index 000..5ad05b0 --- /dev/null +++ b/1025_linux-3.18.26.patch @@ -0,0 +1,1763 @@ +diff --git a/Makefile b/Makefile +index 6df25277ea44..03b0c3fb5bfd 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 25 ++SUBLEVEL = 26 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c +index 8f51d6e3883e..c546a93c0f8a 100644 +--- a/drivers/block/rbd.c b/drivers/block/rbd.c +@@ -3394,6 +3394,7 @@ static void rbd_handle_request(struct rbd_device *rbd_dev, struct request *rq) + goto err_rq; + } + img_request->rq = rq; ++ snapc = NULL; /* img_request consumes a ref */ + + if (op_type == OBJ_OP_DISCARD) + result = rbd_img_request_fill(img_request, OBJ_REQUEST_NODATA, +@@ -5172,41 +5173,36 @@ out_err: + static int rbd_dev_probe_parent(struct rbd_device *rbd_dev) + { + struct rbd_device *parent = NULL; +- struct rbd_spec *parent_spec; +- struct rbd_client *rbdc; + int ret; + + if (!rbd_dev->parent_spec) + return 0; +- /* +- * We need to pass a reference to the client and the parent +- * spec when creating the parent rbd_dev. Images related by +- * parent/child relationships always share both. +- */ +- parent_spec = rbd_spec_get(rbd_dev->parent_spec); +- rbdc = __rbd_get_client(rbd_dev->rbd_client); + +- ret = -ENOMEM; +- parent = rbd_dev_create(rbdc, parent_spec); +- if (!parent) ++ parent = rbd_dev_create(rbd_dev->rbd_client, rbd_dev->parent_spec); ++ if (!parent) { ++ ret = -ENOMEM; + goto out_err; ++ } ++ ++ /* ++ * Images related by parent/child relationships always share ++ * rbd_client and spec/parent_spec, so bump their refcounts. ++ */ ++ __rbd_get_client(rbd_dev->rbd_client); ++ rbd_spec_get(rbd_dev->parent_spec); + + ret = rbd_dev_image_probe(parent, false); + if (ret < 0) + goto out_err; ++ + rbd_dev->parent = parent; + atomic_set(_dev->parent_ref, 1); +- + return 0; ++ + out_err: +- if (parent) { +- rbd_dev_unparent(rbd_dev); ++ rbd_dev_unparent(rbd_dev); ++ if (parent) + rbd_dev_destroy(parent); +- } else { +- rbd_put_client(rbdc); +- rbd_spec_put(parent_spec); +- } +- + return ret; + } + +diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c +index a66a3217f1d9..f047d7c2b643 100644 +--- a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c +@@ -3682,6 +3682,11 @@ static int pci_probe(struct pci_dev *dev, + + reg_write(ohci, OHCI1394_IsoXmitIntMaskSet, ~0); + ohci->it_context_support = reg_read(ohci, OHCI1394_IsoXmitIntMaskSet); ++ /* JMicron JMB38x often shows 0 at first read, just ignore it */ ++ if (!ohci->it_context_support) { ++ ohci_notice(ohci, "overriding IsoXmitIntMask\n"); ++ ohci->it_context_support = 0xf; ++ } + reg_write(ohci, OHCI1394_IsoXmitIntMaskClear, ~0); +
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 5976cc60315452fcf49adda2f52e5ff8c966e831 Author: Mike Pagano gentoo org> AuthorDate: Wed Jan 20 14:35:20 2016 + Commit: Mike Pagano gentoo org> CommitDate: Wed Jan 20 14:35:20 2016 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5976cc60 Ensure that thread joining a session keyring does not leak the keyring reference. CVE-2016-0728. _README| 4 ++ ...ing-refleak-in-join-session-CVE-2016-0728.patch | 81 ++ 2 files changed, 85 insertions(+) diff --git a/_README b/_README index 369ed3d..3fe5eec 100644 --- a/_README +++ b/_README @@ -151,6 +151,10 @@ 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: 1520_keyring-refleak-in-join-session-CVE-2016-0728.patch +From: https://bugs.gentoo.org/show_bug.cgi?id=572384 +Desc: Ensure that thread joining a session keyring does not leak the keyring reference. CVE-2016-0728. + Patch: 1700_ARM-dts-patch-to-support-popoplug-e02.patch From: https://bugs.gentoo.org/show_bug.cgi?id=508248 Desc: ARM: dts: Add support for Pogoplug E02. diff --git a/1520_keyring-refleak-in-join-session-CVE-2016-0728.patch b/1520_keyring-refleak-in-join-session-CVE-2016-0728.patch new file mode 100644 index 000..49020d7 --- /dev/null +++ b/1520_keyring-refleak-in-join-session-CVE-2016-0728.patch @@ -0,0 +1,81 @@ +From 23567fd052a9abb6d67fe8e7a9ccdd9800a540f2 Mon Sep 17 00:00:00 2001 +From: Yevgeny Pats+Date: Tue, 19 Jan 2016 22:09:04 + +Subject: KEYS: Fix keyring ref leak in join_session_keyring() + +This fixes CVE-2016-0728. + +If a thread is asked to join as a session keyring the keyring that's already +set as its session, we leak a keyring reference. + +This can be tested with the following program: + + #include + #include + #include + #include + + int main(int argc, const char *argv[]) + { + int i = 0; + key_serial_t serial; + + serial = keyctl(KEYCTL_JOIN_SESSION_KEYRING, + "leaked-keyring"); + if (serial < 0) { + perror("keyctl"); + return -1; + } + + if (keyctl(KEYCTL_SETPERM, serial, + KEY_POS_ALL | KEY_USR_ALL) < 0) { + perror("keyctl"); + return -1; + } + + for (i = 0; i < 100; i++) { + serial = keyctl(KEYCTL_JOIN_SESSION_KEYRING, + "leaked-keyring"); + if (serial < 0) { + perror("keyctl"); + return -1; + } + } + + return 0; + } + +If, after the program has run, there something like the following line in +/proc/keys: + +3f3d898f I--Q--- 100 perm 3f3f 0 0 keyring leaked-keyring: empty + +with a usage count of 100 * the number of times the program has been run, +then the kernel is malfunctioning. If leaked-keyring has zero usages or +has been garbage collected, then the problem is fixed. + +Reported-by: Yevgeny Pats +Signed-off-by: David Howells +Acked-by: Don Zickus +Acked-by: Prarit Bhargava +Acked-by: Jarod Wilson +Signed-off-by: James Morris +--- + security/keys/process_keys.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/security/keys/process_keys.c b/security/keys/process_keys.c +index a3f85d2..e6d50172 100644 +--- a/security/keys/process_keys.c b/security/keys/process_keys.c +@@ -794,6 +794,7 @@ long join_session_keyring(const char *name) + ret = PTR_ERR(keyring); + goto error2; + } else if (keyring == new->session_keyring) { ++ key_put(keyring); + ret = 0; + goto error2; + } +-- +cgit v0.12 +
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 22cf0359e3a1f6a2406230bdd75bb7a63c3212d0 Author: Mike Pagano gentoo org> AuthorDate: Tue Nov 3 18:39:46 2015 + Commit: Mike Pagano gentoo org> CommitDate: Tue Nov 3 18:39:46 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=22cf0359 Linux patch 3.18.24 _README | 4 1023_linux-3.18.24.patch | 24 2 files changed, 28 insertions(+) diff --git a/_README b/_README index 84e11a6..d829823 100644 --- a/_README +++ b/_README @@ -135,6 +135,10 @@ Patch: 1022_linux-3.18.23.patch From: http://www.kernel.org Desc: Linux 3.18.23 +Patch: 1023_linux-3.18.24.patch +From: http://www.kernel.org +Desc: Linux 3.18.24 + 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/1023_linux-3.18.24.patch b/1023_linux-3.18.24.patch new file mode 100644 index 000..bed3a75 --- /dev/null +++ b/1023_linux-3.18.24.patch @@ -0,0 +1,24 @@ +diff --git a/Makefile b/Makefile +index 2ebc49903d33..9769e3bce6a2 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 23 ++SUBLEVEL = 24 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c +index fea7d905e77c..04e7d8e38c53 100644 +--- a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c +@@ -364,7 +364,6 @@ static void n_tty_packet_mode_flush(struct tty_struct *tty) + spin_lock_irqsave(>ctrl_lock, flags); + if (tty->link->packet) { + tty->ctrl_status |= TIOCPKT_FLUSHREAD; +- spin_unlock_irqrestore(>ctrl_lock, flags); + wake_up_interruptible(>link->read_wait); + } + spin_unlock_irqrestore(>ctrl_lock, flags);
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 3e36410423095c3ba385b2850ebad08d7a842228 Author: Mike Pagano gentoo org> AuthorDate: Sat Oct 3 17:45:26 2015 + Commit: Mike Pagano gentoo org> CommitDate: Sat Oct 3 17:45:26 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=3e364104 Linux patch 3.18.22 _README |4 + 1021_linux-3.18.22.patch | 2622 ++ 2 files changed, 2626 insertions(+) diff --git a/_README b/_README index 558f14f..7e934be 100644 --- a/_README +++ b/_README @@ -127,6 +127,10 @@ Patch: 1020_linux-3.18.21.patch From: http://www.kernel.org Desc: Linux 3.18.21 +Patch: 1021_linux-3.18.22.patch +From: http://www.kernel.org +Desc: Linux 3.18.22 + 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/1021_linux-3.18.22.patch b/1021_linux-3.18.22.patch new file mode 100644 index 000..0049146 --- /dev/null +++ b/1021_linux-3.18.22.patch @@ -0,0 +1,2622 @@ +diff --git a/Makefile b/Makefile +index 6be90fab361b..7adbbbeeb421 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 21 ++SUBLEVEL = 22 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c +index 81a02a8762b0..86825f8883de 100644 +--- a/arch/arm64/kvm/inject_fault.c b/arch/arm64/kvm/inject_fault.c +@@ -168,8 +168,8 @@ void kvm_inject_dabt(struct kvm_vcpu *vcpu, unsigned long addr) + { + if (!(vcpu->arch.hcr_el2 & HCR_RW)) + inject_abt32(vcpu, false, addr); +- +- inject_abt64(vcpu, false, addr); ++ else ++ inject_abt64(vcpu, false, addr); + } + + /** +@@ -184,8 +184,8 @@ void kvm_inject_pabt(struct kvm_vcpu *vcpu, unsigned long addr) + { + if (!(vcpu->arch.hcr_el2 & HCR_RW)) + inject_abt32(vcpu, true, addr); +- +- inject_abt64(vcpu, true, addr); ++ else ++ inject_abt64(vcpu, true, addr); + } + + /** +@@ -198,6 +198,6 @@ void kvm_inject_undefined(struct kvm_vcpu *vcpu) + { + if (!(vcpu->arch.hcr_el2 & HCR_RW)) + inject_undef32(vcpu); +- +- inject_undef64(vcpu); ++ else ++ inject_undef64(vcpu); + } +diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S +index 5251565e344b..a6576cf1e6d9 100644 +--- a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S +@@ -80,7 +80,7 @@ syscall_trace_entry: + SAVE_STATIC + moves0, t2 + movea0, sp +- daddiu a1, v0, __NR_64_Linux ++ movea1, v0 + jal syscall_trace_enter + + bltzv0, 2f # seccomp failed? Skip syscall +diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S +index 77e74398b828..a8eb6575edc0 100644 +--- a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S +@@ -72,7 +72,7 @@ n32_syscall_trace_entry: + SAVE_STATIC + moves0, t2 + movea0, sp +- daddiu a1, v0, __NR_N32_Linux ++ movea1, v0 + jal syscall_trace_enter + + bltzv0, 2f # seccomp failed? Skip syscall +diff --git a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h +index a94b82e8f156..69126184c609 100644 +--- a/arch/x86/include/asm/desc.h b/arch/x86/include/asm/desc.h +@@ -280,21 +280,6 @@ static inline void clear_LDT(void) + set_ldt(NULL, 0); + } + +-/* +- * load one particular LDT into the current CPU +- */ +-static inline void load_LDT_nolock(mm_context_t *pc) +-{ +- set_ldt(pc->ldt, pc->size); +-} +- +-static inline void load_LDT(mm_context_t *pc) +-{ +- preempt_disable(); +- load_LDT_nolock(pc); +- preempt_enable(); +-} +- + static inline unsigned long get_desc_base(const struct desc_struct *desc) + { + return (unsigned)(desc->base0 | ((desc->base1) << 16) | ((desc->base2) << 24)); +diff --git a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h +index 876e74e8eec7..b6b7bc3f5d26 100644 +--- a/arch/x86/include/asm/mmu.h b/arch/x86/include/asm/mmu.h +@@ -9,8 +9,7 @@ + * we put the segment information here. + */ + typedef struct { +- void *ldt; +- int size; ++ struct ldt_struct *ldt; + + #ifdef CONFIG_X86_64 + /* True if mm supports a task running in 32 bit compatibility mode. */ +diff --git a/arch/x86/include/asm/mmu_context.h b/arch/x86/include/asm/mmu_context.h +index 166af2a8e865..23e0625a6183 100644 +--- a/arch/x86/include/asm/mmu_context.h b/arch/x86/include/asm/mmu_context.h +@@ -20,6 +20,50 @@ static inline void paravirt_activate_mm(struct mm_struct *prev, + #endif/* !CONFIG_PARAVIRT */ + + /* ++ * ldt_structs can be allocated, used, and freed, but they are never ++ * modified while live. ++ */ ++struct ldt_struct { ++ /* ++ * Xen requires
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 04c03de7a2870462c939837225541746df9057ea Author: Mike Pagano gentoo org> AuthorDate: Thu Sep 10 00:02:49 2015 + Commit: Mike Pagano gentoo org> CommitDate: Thu Sep 10 00:02:49 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=04c03de7 Linux patch 3.18.21. _README |4 + 1020_linux-3.18.21.patch | 4025 ++ 2 files changed, 4029 insertions(+) diff --git a/_README b/_README index 78fbad8..558f14f 100644 --- a/_README +++ b/_README @@ -123,6 +123,10 @@ Patch: 1019_linux-3.18.20.patch From: http://www.kernel.org Desc: Linux 3.18.20 +Patch: 1020_linux-3.18.21.patch +From: http://www.kernel.org +Desc: Linux 3.18.21 + 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/1020_linux-3.18.21.patch b/1020_linux-3.18.21.patch new file mode 100644 index 000..46bb2db --- /dev/null +++ b/1020_linux-3.18.21.patch @@ -0,0 +1,4025 @@ +diff --git a/Documentation/ABI/testing/ima_policy b/Documentation/ABI/testing/ima_policy +index d0d0c578324c..724cd429eac6 100644 +--- a/Documentation/ABI/testing/ima_policy b/Documentation/ABI/testing/ima_policy +@@ -20,17 +20,19 @@ Description: + action: measure | dont_measure | appraise | dont_appraise | audit + condition:= base | lsm [option] + base: [[func=] [mask=] [fsmagic=] [fsuuid=] [uid=] +- [fowner]] ++ [euid=] [fowner=]] + lsm:[[subj_user=] [subj_role=] [subj_type=] +[obj_user=] [obj_role=] [obj_type=]] + option: [[appraise_type=]] [permit_directio] + + base: func:= [BPRM_CHECK][MMAP_CHECK][FILE_CHECK][MODULE_CHECK] + [FIRMWARE_CHECK] +- mask:= [MAY_READ] [MAY_WRITE] [MAY_APPEND] [MAY_EXEC] ++ mask:= [[^]MAY_READ] [[^]MAY_WRITE] [[^]MAY_APPEND] ++ [[^]MAY_EXEC] + fsmagic:= hex value + fsuuid:= file system UUID (e.g 8bcbe394-4f13-4144-be8e-5aa9ea2ce2f6) + uid:= decimal value ++ euid:= decimal value + fowner:=decimal value + lsm:are LSM specific + option: appraise_type:= [imasig] +diff --git a/Documentation/ABI/testing/sysfs-ata b/Documentation/ABI/testing/sysfs-ata +index 0a932155cbba..9231daef3813 100644 +--- a/Documentation/ABI/testing/sysfs-ata b/Documentation/ABI/testing/sysfs-ata +@@ -90,6 +90,17 @@ gscr + 130:SATA_PMP_GSCR_SII_GPIO + Only valid if the device is a PM. + ++trim ++ ++ Shows the DSM TRIM mode currently used by the device. Valid ++ values are: ++ unsupported:Drive does not support DSM TRIM ++ unqueued: Drive supports unqueued DSM TRIM only ++ queued: Drive supports queued DSM TRIM ++ forced_unqueued:Drive's unqueued DSM support is known to be ++ buggy and only unqueued TRIM commands ++ are sent ++ + spdn_cnt + + Number of time libata decided to lower the speed of link due to errors. +diff --git a/Documentation/devicetree/bindings/clock/keystone-pll.txt b/Documentation/devicetree/bindings/clock/keystone-pll.txt +index 225990f79b7c..47570d207215 100644 +--- a/Documentation/devicetree/bindings/clock/keystone-pll.txt b/Documentation/devicetree/bindings/clock/keystone-pll.txt +@@ -15,8 +15,8 @@ Required properties: + - compatible : shall be "ti,keystone,main-pll-clock" or "ti,keystone,pll-clock" + - clocks : parent clock phandle + - reg - pll control0 and pll multipler registers +-- reg-names : control and multiplier. The multiplier is applicable only for +- main pll clock ++- reg-names : control, multiplier and post-divider. The multiplier and ++ post-divider registers are applicable only for main pll clock + - fixed-postdiv : fixed post divider value. If absent, use clkod register bits + for postdiv + +@@ -25,8 +25,8 @@ Example: + #clock-cells = <0>; + compatible = "ti,keystone,main-pll-clock"; + clocks = <>; +- reg = <0x02620350 4>, <0x02310110 4>; +- reg-names = "control", "multiplier"; ++ reg = <0x02620350 4>, <0x02310110 4>, <0x02310108 4>; ++ reg-names = "control", "multiplier", "post-divider"; + fixed-postdiv = <2>; + }; + +diff --git a/Documentation/i2c/busses/i2c-i801 b/Documentation/i2c/busses/i2c-i801 +index 793c83dac738..82f48f774afb 100644 +--- a/Documentation/i2c/busses/i2c-i801
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 8fec14cd594bb552643f75756d5c9d13b0a9c0eb Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Aug 21 12:57:03 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Aug 21 12:57:03 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=8fec14cd Linux patch 3.18.20 _README |4 + 1019_linux-3.18.20.patch | 1847 ++ 2 files changed, 1851 insertions(+) diff --git a/_README b/_README index 21802d2..78fbad8 100644 --- a/_README +++ b/_README @@ -119,6 +119,10 @@ Patch: 1018_linux-3.18.19.patch From: http://www.kernel.org Desc: Linux 3.18.19 +Patch: 1019_linux-3.18.20.patch +From: http://www.kernel.org +Desc: Linux 3.18.20 + 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/1019_linux-3.18.20.patch b/1019_linux-3.18.20.patch new file mode 100644 index 000..7f76c65 --- /dev/null +++ b/1019_linux-3.18.20.patch @@ -0,0 +1,1847 @@ +diff --git a/Documentation/devicetree/bindings/spi/spi_pl022.txt b/Documentation/devicetree/bindings/spi/spi_pl022.txt +index 22ed6797216d..4d1673ca8cf8 100644 +--- a/Documentation/devicetree/bindings/spi/spi_pl022.txt b/Documentation/devicetree/bindings/spi/spi_pl022.txt +@@ -4,9 +4,9 @@ Required properties: + - compatible : arm,pl022, arm,primecell + - reg : Offset and length of the register set for the device + - interrupts : Should contain SPI controller interrupt ++- num-cs : total number of chipselects + + Optional properties: +-- num-cs : total number of chipselects + - cs-gpios : should specify GPIOs used for chipselects. + The gpios will be referred to as reg = index in the SPI child nodes. + If unspecified, a single SPI device without a chip select can be used. +diff --git a/Makefile b/Makefile +index eab97c3d462d..3ef589539cca 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 19 ++SUBLEVEL = 20 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c +index 2de9d2e59d96..0eeb4f0930a0 100644 +--- a/arch/arm64/mm/hugetlbpage.c b/arch/arm64/mm/hugetlbpage.c +@@ -40,13 +40,13 @@ int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep) + + int pmd_huge(pmd_t pmd) + { +- return !(pmd_val(pmd) PMD_TABLE_BIT); ++ return pmd_val(pmd) !(pmd_val(pmd) PMD_TABLE_BIT); + } + + int pud_huge(pud_t pud) + { + #ifndef __PAGETABLE_PMD_FOLDED +- return !(pud_val(pud) PUD_TABLE_BIT); ++ return pud_val(pud) !(pud_val(pud) PUD_TABLE_BIT); + #else + return 0; + #endif +diff --git a/block/blk-mq.c b/block/blk-mq.c +index 849479debac3..691959ecb80f 100644 +--- a/block/blk-mq.c b/block/blk-mq.c +@@ -1473,22 +1473,6 @@ static int blk_mq_hctx_cpu_offline(struct blk_mq_hw_ctx *hctx, int cpu) + return NOTIFY_OK; + } + +-static int blk_mq_hctx_cpu_online(struct blk_mq_hw_ctx *hctx, int cpu) +-{ +- struct request_queue *q = hctx-queue; +- struct blk_mq_tag_set *set = q-tag_set; +- +- if (set-tags[hctx-queue_num]) +- return NOTIFY_OK; +- +- set-tags[hctx-queue_num] = blk_mq_init_rq_map(set, hctx-queue_num); +- if (!set-tags[hctx-queue_num]) +- return NOTIFY_STOP; +- +- hctx-tags = set-tags[hctx-queue_num]; +- return NOTIFY_OK; +-} +- + static int blk_mq_hctx_notify(void *data, unsigned long action, + unsigned int cpu) + { +@@ -1496,8 +1480,11 @@ static int blk_mq_hctx_notify(void *data, unsigned long action, + + if (action == CPU_DEAD || action == CPU_DEAD_FROZEN) + return blk_mq_hctx_cpu_offline(hctx, cpu); +- else if (action == CPU_ONLINE || action == CPU_ONLINE_FROZEN) +- return blk_mq_hctx_cpu_online(hctx, cpu); ++ ++ /* ++ * In case of CPU online, tags may be reallocated ++ * in blk_mq_map_swqueue() after mapping is updated. ++ */ + + return NOTIFY_OK; + } +@@ -1682,6 +1669,7 @@ static void blk_mq_map_swqueue(struct request_queue *q) + unsigned int i; + struct blk_mq_hw_ctx *hctx; + struct blk_mq_ctx *ctx; ++ struct blk_mq_tag_set *set = q-tag_set; + + queue_for_each_hw_ctx(q, hctx, i) { + cpumask_clear(hctx-cpumask); +@@ -1708,16 +1696,20 @@ static void blk_mq_map_swqueue(struct request_queue *q) +* disable it and free the request entries. +*/ + if (!hctx-nr_ctx) { +- struct blk_mq_tag_set *set = q-tag_set; +- + if (set-tags[i]) { + blk_mq_free_rq_map(set, set-tags[i], i); + set-tags[i] = NULL; +- hctx-tags = NULL; + } ++
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 5e0dbb42f182a56251c6e532d2fe2b922305a021 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Thu Jul 30 12:43:15 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Thu Jul 30 12:43:15 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=5e0dbb42 BFQ v7r8 _README| 12 +- ...oups-kconfig-build-bits-for-BFQ-v7r8-3.18.patch | 8 +- ...ntroduce-the-BFQ-v7r8-I-O-sched-for-3.18.patch1 | 198 ++--- ...arly-Queue-Merge-EQM-to-BFQ-v7r8-for-3.18.patch | 96 +- 4 files changed, 149 insertions(+), 165 deletions(-) diff --git a/_README b/_README index 61cb27a..21802d2 100644 --- a/_README +++ b/_README @@ -155,17 +155,17 @@ Patch: 5000_enable-additional-cpu-optimizations-for-gcc.patch From: https://github.com/graysky2/kernel_gcc_patch/ Desc: Kernel patch enables gcc optimizations for additional CPUs. -Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch +Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r8-3.18.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 1 for 3.18: Build, cgroups and kconfig bits +Desc: BFQ v7r8 patch 1 for 3.18: Build, cgroups and kconfig bits -Patch: 5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 +Patch: 5002_block-introduce-the-BFQ-v7r8-I-O-sched-for-3.18.patch1 From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 2 for 3.18: BFQ Scheduler +Desc: BFQ v7r8 patch 2 for 3.18: BFQ Scheduler -Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r7-for-3.18.0.patch +Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r8-for-3.18.0.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 3 for 3.18: Early Queue Merge (EQM) +Desc: BFQ v7r8 patch 3 for 3.18: Early Queue Merge (EQM) Patch: 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch From: https://github.com/graysky2/kernel_gcc_patch/ diff --git a/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch b/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r8-3.18.patch similarity index 96% rename from 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch rename to 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r8-3.18.patch index 9f0a7b3..f563b15 100644 --- a/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch +++ b/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r8-3.18.patch @@ -1,7 +1,7 @@ -From e5cfe6a861feffa55dda77cd60bdb571fc7c3065 Mon Sep 17 00:00:00 2001 +From cd515f7eea26e74f58a1f49562ff84cd115fce2e Mon Sep 17 00:00:00 2001 From: Paolo Valente paolo.vale...@unimore.it -Date: Mon, 8 Dec 2014 16:04:25 +0100 -Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r7-3.18 +Date: Sat, 6 Jun 2015 17:56:31 +0200 +Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r8-3.18.0 Update Kconfig.iosched and do the related Makefile changes to include kernel configuration options for BFQ. Also add the bfqio controller @@ -100,5 +100,5 @@ index 98c4f9b..13b010d 100644 SUBSYS(perf_event) #endif -- -2.1.3 +2.1.4 diff --git a/5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 b/5002_block-introduce-the-BFQ-v7r8-I-O-sched-for-3.18.patch1 similarity index 98% rename from 5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 rename to 5002_block-introduce-the-BFQ-v7r8-I-O-sched-for-3.18.patch1 index dcd10f7..7cf1815 100644 --- a/5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 +++ b/5002_block-introduce-the-BFQ-v7r8-I-O-sched-for-3.18.patch1 @@ -1,9 +1,9 @@ -From df04e0bc0d8b72775a74d45e355af9433f8e420e Mon Sep 17 00:00:00 2001 +From 4c8586fb29eb664cb379a179c0f851c693d49ce9 Mon Sep 17 00:00:00 2001 From: Paolo Valente paolo.vale...@unimore.it Date: Thu, 9 May 2013 19:10:02 +0200 -Subject: [PATCH 2/3] block: introduce the BFQ-v7r7 I/O sched for 3.18 +Subject: [PATCH 2/3] block: introduce the BFQ-v7r8 I/O sched for 3.18.0 -Add the BFQ-v7r7 I/O scheduler to 3.18. +Add the BFQ-v7r8 I/O scheduler to 3.18.0. The general structure is borrowed from CFQ, as much of the code for handling I/O contexts. Over time, several useful features have been ported from CFQ as well (details in the changelog in README.BFQ). A @@ -56,12 +56,12 @@ until it expires. Signed-off-by: Paolo Valente paolo.vale...@unimore.it Signed-off-by: Arianna Avanzini avanzini.aria...@gmail.com --- - block/bfq-cgroup.c | 936 + block/bfq-cgroup.c | 936 + block/bfq-ioc.c | 36 + - block/bfq-iosched.c | 3902 +++ - block/bfq-sched.c | 1214 - block/bfq.h | 775 ++ - 5 files changed, 6863 insertions(+) + block/bfq-iosched.c | 3898 +++ + block/bfq-sched.c | 1208 + block/bfq.h
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: f8c7c0cb868106263d4b863504609171d27c8d11 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Wed Jul 22 10:12:58 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Wed Jul 22 10:12:58 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f8c7c0cb Linux patch 3.18.19 _README |4 + 1018_linux-3.18.19.patch | 1822 ++ 2 files changed, 1826 insertions(+) diff --git a/_README b/_README index 4092093..61cb27a 100644 --- a/_README +++ b/_README @@ -115,6 +115,10 @@ Patch: 1017_linux-3.18.18.patch From: http://www.kernel.org Desc: Linux 3.18.18 +Patch: 1018_linux-3.18.19.patch +From: http://www.kernel.org +Desc: Linux 3.18.19 + 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/1018_linux-3.18.19.patch b/1018_linux-3.18.19.patch new file mode 100644 index 000..67377c5 --- /dev/null +++ b/1018_linux-3.18.19.patch @@ -0,0 +1,1822 @@ +diff --git a/Makefile b/Makefile +index 35faaf8fb651..eab97c3d462d 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 18 ++SUBLEVEL = 19 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/kvm/interrupts.S b/arch/arm/kvm/interrupts.S +index 01dcb0e752d9..d66d608f7ce7 100644 +--- a/arch/arm/kvm/interrupts.S b/arch/arm/kvm/interrupts.S +@@ -159,13 +159,9 @@ __kvm_vcpu_return: + @ Don't trap coprocessor accesses for host kernel + set_hstr vmexit + set_hdcr vmexit +- set_hcptr vmexit, (HCPTR_TTA | HCPTR_TCP(10) | HCPTR_TCP(11)) ++ set_hcptr vmexit, (HCPTR_TTA | HCPTR_TCP(10) | HCPTR_TCP(11)), after_vfp_restore + + #ifdef CONFIG_VFPv3 +- @ Save floating point registers we if let guest use them. +- tst r2, #(HCPTR_TCP(10) | HCPTR_TCP(11)) +- bne after_vfp_restore +- + @ Switch VFP/NEON hardware state to the host's + add r7, vcpu, #VCPU_VFP_GUEST + store_vfp_state r7 +@@ -177,6 +173,8 @@ after_vfp_restore: + @ Restore FPEXC_EN which we clobbered on entry + pop {r2} + VFPFMXR FPEXC, r2 ++#else ++after_vfp_restore: + #endif + + @ Reset Hyp-role +@@ -472,7 +470,7 @@ switch_to_guest_vfp: + push{r3-r7} + + @ NEON/VFP used. Turn on VFP access. +- set_hcptr vmexit, (HCPTR_TCP(10) | HCPTR_TCP(11)) ++ set_hcptr vmtrap, (HCPTR_TCP(10) | HCPTR_TCP(11)) + + @ Switch VFP/NEON hardware state to the guest's + add r7, r0, #VCPU_VFP_HOST +diff --git a/arch/arm/kvm/interrupts_head.S b/arch/arm/kvm/interrupts_head.S +index 14d488388480..f6f14812d106 100644 +--- a/arch/arm/kvm/interrupts_head.S b/arch/arm/kvm/interrupts_head.S +@@ -599,8 +599,13 @@ ARM_BE8(rev r6, r6 ) + .endm + + /* Configures the HCPTR (Hyp Coprocessor Trap Register) on entry/return +- * (hardware reset value is 0). Keep previous value in r2. */ +-.macro set_hcptr operation, mask ++ * (hardware reset value is 0). Keep previous value in r2. ++ * An ISB is emited on vmexit/vmtrap, but executed on vmexit only if ++ * VFP wasn't already enabled (always executed on vmtrap). ++ * If a label is specified with vmexit, it is branched to if VFP wasn't ++ * enabled. ++ */ ++.macro set_hcptr operation, mask, label = none + mrc p15, 4, r2, c1, c1, 2 + ldr r3, =\mask + .if \operation == vmentry +@@ -609,6 +614,17 @@ ARM_BE8(rev r6, r6 ) + bic r3, r2, r3 @ Don't trap defined coproc-accesses + .endif + mcr p15, 4, r3, c1, c1, 2 ++ .if \operation != vmentry ++ .if \operation == vmexit ++ tst r2, #(HCPTR_TCP(10) | HCPTR_TCP(11)) ++ beq 1f ++ .endif ++ isb ++ .if \label != none ++ b \label ++ .endif ++1: ++ .endif + .endm + + /* Configures the HDCR (Hyp Debug Configuration Register) on entry/return +diff --git a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c +index 2daef619d053..5474a76803f0 100644 +--- a/arch/arm/mach-imx/clk-imx6q.c b/arch/arm/mach-imx/clk-imx6q.c +@@ -439,7 +439,7 @@ static void __init imx6q_clocks_init(struct device_node *ccm_node) + clk[IMX6QDL_CLK_GPMI_IO] = imx_clk_gate2(gpmi_io, enfc, base + 0x78, 28); + clk[IMX6QDL_CLK_GPMI_APB] = imx_clk_gate2(gpmi_apb, usdhc3,base + 0x78, 30); + clk[IMX6QDL_CLK_ROM] = imx_clk_gate2(rom, ahb, base + 0x7c, 0); +- clk[IMX6QDL_CLK_SATA] = imx_clk_gate2(sata, ipg, base + 0x7c, 4); ++ clk[IMX6QDL_CLK_SATA] = imx_clk_gate2(sata, ahb, base + 0x7c, 4); + clk[IMX6QDL_CLK_SDMA] = imx_clk_gate2(sdma, ahb, base + 0x7c, 6); +
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 222b4c13d2ac52934cc4a22b01e3ae84ab3ab930 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Wed Apr 29 17:19:35 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Wed Apr 29 17:19:35 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=222b4c13 Fix BFQ descriptions. _README | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/_README b/_README index 8dd852f..7f90a3b 100644 --- a/_README +++ b/_README @@ -129,15 +129,15 @@ Desc: Kernel patch enables gcc optimizations for additional CPUs. Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 1 for 3.17: Build, cgroups and kconfig bits +Desc: BFQ v7r7 patch 1 for 3.18: Build, cgroups and kconfig bits Patch: 5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 2 for 3.17: BFQ Scheduler +Desc: BFQ v7r7 patch 2 for 3.18: BFQ Scheduler Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r7-for-3.18.0.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r7 patch 3 for 3.17: Early Queue Merge (EQM) +Desc: BFQ v7r7 patch 3 for 3.18: Early Queue Merge (EQM) Patch: 5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch From: https://github.com/graysky2/kernel_gcc_patch/
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 7aba46559287bc51c362786a611c31b910e0934b Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Mon Apr 27 17:18:01 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Mon Apr 27 17:18:01 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=7aba4655 Linux patch 3.18.12 _README |4 + 1011_linux-3.18.12.patch | 2634 ++ 2 files changed, 2638 insertions(+) diff --git a/_README b/_README index 7616ed8..8dd852f 100644 --- a/_README +++ b/_README @@ -87,6 +87,10 @@ Patch: 1010_linux-3.18.11.patch From: http://www.kernel.org Desc: Linux 3.18.11 +Patch: 1011_linux-3.18.12.patch +From: http://www.kernel.org +Desc: Linux 3.18.12 + 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/1011_linux-3.18.12.patch b/1011_linux-3.18.12.patch new file mode 100644 index 000..182f8ae --- /dev/null +++ b/1011_linux-3.18.12.patch @@ -0,0 +1,2634 @@ +diff --git a/Makefile b/Makefile +index da8dc1350de3..d64f6bf7cd55 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 11 ++SUBLEVEL = 12 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h +index a9eee33dfa62..101a42bde728 100644 +--- a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h +@@ -151,6 +151,15 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next, + { + unsigned int cpu = smp_processor_id(); + ++ /* ++ * init_mm.pgd does not contain any user mappings and it is always ++ * active for kernel addresses in TTBR1. Just set the reserved TTBR0. ++ */ ++ if (next == init_mm) { ++ cpu_set_reserved_ttbr0(); ++ return; ++ } ++ + if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next) + check_and_switch_context(next, tsk); + } +diff --git a/arch/powerpc/boot/dts/fsl/pq3-etsec2-0.dtsi b/arch/powerpc/boot/dts/fsl/pq3-etsec2-0.dtsi +index 1382fec9e8c5..7fcb1ac0f232 100644 +--- a/arch/powerpc/boot/dts/fsl/pq3-etsec2-0.dtsi b/arch/powerpc/boot/dts/fsl/pq3-etsec2-0.dtsi +@@ -50,6 +50,7 @@ ethernet@b { + fsl,num_tx_queues = 0x8; + fsl,magic-packet; + local-mac-address = [ 00 00 00 00 00 00 ]; ++ ranges; + + queue-group@b { + #address-cells = 1; +diff --git a/arch/powerpc/boot/dts/fsl/pq3-etsec2-1.dtsi b/arch/powerpc/boot/dts/fsl/pq3-etsec2-1.dtsi +index 221cd2ea5b31..9f25427c1527 100644 +--- a/arch/powerpc/boot/dts/fsl/pq3-etsec2-1.dtsi b/arch/powerpc/boot/dts/fsl/pq3-etsec2-1.dtsi +@@ -50,6 +50,7 @@ ethernet@b1000 { + fsl,num_tx_queues = 0x8; + fsl,magic-packet; + local-mac-address = [ 00 00 00 00 00 00 ]; ++ ranges; + + queue-group@b1000 { + #address-cells = 1; +diff --git a/arch/powerpc/boot/dts/fsl/pq3-etsec2-2.dtsi b/arch/powerpc/boot/dts/fsl/pq3-etsec2-2.dtsi +index 61456c317609..cd7c318ab131 100644 +--- a/arch/powerpc/boot/dts/fsl/pq3-etsec2-2.dtsi b/arch/powerpc/boot/dts/fsl/pq3-etsec2-2.dtsi +@@ -49,6 +49,7 @@ ethernet@b2000 { + fsl,num_tx_queues = 0x8; + fsl,magic-packet; + local-mac-address = [ 00 00 00 00 00 00 ]; ++ ranges; + + queue-group@b2000 { + #address-cells = 1; +diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S +index 72e783ea0681..5e0198425194 100644 +--- a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S +@@ -1399,7 +1399,7 @@ machine_check_handle_early: + bne 9f /* continue in V mode if we are. */ + + 5: +-#ifdef CONFIG_KVM_BOOK3S_64_HV ++#ifdef CONFIG_KVM_BOOK3S_64_HANDLER + /* +* We are coming from kernel context. Check if we are coming from +* guest. if yes, then we can continue. We will fall through +diff --git a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c +index e7cb6d4a871a..f8c9ff7886e1 100644 +--- a/arch/powerpc/platforms/pseries/mobility.c b/arch/powerpc/platforms/pseries/mobility.c +@@ -25,10 +25,10 @@ + static struct kobject *mobility_kobj; + + struct update_props_workarea { +- u32 phandle; +- u32 state; +- u64 reserved; +- u32 nprops; ++ __be32 phandle; ++ __be32 state; ++ __be64 reserved; ++ __be32 nprops; + } __packed; + + #define NODE_ACTION_MASK 0xff00 +@@ -54,11 +54,11 @@ static int mobility_rtas_call(int token, char *buf, s32 scope) + return rc; + } + +-static int delete_dt_node(u32 phandle) ++static int delete_dt_node(__be32 phandle) + { + struct device_node *dn; + +- dn = of_find_node_by_phandle(phandle); ++
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 910ecd3eef3cf941070f0586d5de977a58c16ba7 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sat Apr 4 23:53:54 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sat Apr 4 23:53:54 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=910ecd3e Linux patch 3.18.11 _README |4 + 1010_linux-3.18.11.patch | 3765 ++ 2 files changed, 3769 insertions(+) diff --git a/_README b/_README index ab13f61..7616ed8 100644 --- a/_README +++ b/_README @@ -83,6 +83,10 @@ Patch: 1009_linux-3.18.10.patch From: http://www.kernel.org Desc: Linux 3.18.10 +Patch: 1010_linux-3.18.11.patch +From: http://www.kernel.org +Desc: Linux 3.18.11 + 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/1010_linux-3.18.11.patch b/1010_linux-3.18.11.patch new file mode 100644 index 000..ed524c8 --- /dev/null +++ b/1010_linux-3.18.11.patch @@ -0,0 +1,3765 @@ +diff --git a/Makefile b/Makefile +index d4ce2cb674c8..da8dc1350de3 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 10 ++SUBLEVEL = 11 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/boot/dts/am33xx-clocks.dtsi b/arch/arm/boot/dts/am33xx-clocks.dtsi +index 712edce7d6fb..071b56aa0c7e 100644 +--- a/arch/arm/boot/dts/am33xx-clocks.dtsi b/arch/arm/boot/dts/am33xx-clocks.dtsi +@@ -99,7 +99,7 @@ + ehrpwm0_tbclk: ehrpwm0_tbclk@44e10664 { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 0; + reg = 0x0664; + }; +@@ -107,7 +107,7 @@ + ehrpwm1_tbclk: ehrpwm1_tbclk@44e10664 { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 1; + reg = 0x0664; + }; +@@ -115,7 +115,7 @@ + ehrpwm2_tbclk: ehrpwm2_tbclk@44e10664 { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 2; + reg = 0x0664; + }; +diff --git a/arch/arm/boot/dts/am43xx-clocks.dtsi b/arch/arm/boot/dts/am43xx-clocks.dtsi +index c7dc9dab93a4..cfb49686ab6a 100644 +--- a/arch/arm/boot/dts/am43xx-clocks.dtsi b/arch/arm/boot/dts/am43xx-clocks.dtsi +@@ -107,7 +107,7 @@ + ehrpwm0_tbclk: ehrpwm0_tbclk { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 0; + reg = 0x0664; + }; +@@ -115,7 +115,7 @@ + ehrpwm1_tbclk: ehrpwm1_tbclk { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 1; + reg = 0x0664; + }; +@@ -123,7 +123,7 @@ + ehrpwm2_tbclk: ehrpwm2_tbclk { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 2; + reg = 0x0664; + }; +@@ -131,7 +131,7 @@ + ehrpwm3_tbclk: ehrpwm3_tbclk { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 4; + reg = 0x0664; + }; +@@ -139,7 +139,7 @@ + ehrpwm4_tbclk: ehrpwm4_tbclk { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 5; + reg = 0x0664; + }; +@@ -147,7 +147,7 @@ + ehrpwm5_tbclk: ehrpwm5_tbclk { + #clock-cells = 0; + compatible = ti,gate-clock; +- clocks = dpll_per_m2_ck; ++ clocks = l4ls_gclk; + ti,bit-shift = 6; + reg = 0x0664; + }; +diff --git a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/dra7xx-clocks.dtsi +index 2c05b3f017fa..64c0f75b5444 100644 +--- a/arch/arm/boot/dts/dra7xx-clocks.dtsi b/arch/arm/boot/dts/dra7xx-clocks.dtsi +@@ -243,10 +243,18 @@ + ti,invert-autoidle-bit; + }; + ++ dpll_core_byp_mux: dpll_core_byp_mux { ++ #clock-cells = 0; ++ compatible = ti,mux-clock; ++ clocks = sys_clkin1, dpll_abe_m3x2_ck; ++ ti,bit-shift = 23; ++ reg = 0x012c; ++ }; ++ +
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: f6c3a6c5c3db66d698c0aa726dac52387ac1c8d4 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sat Mar 28 19:46:03 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sat Mar 28 19:46:03 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f6c3a6c5 Add check to saved_root_name for supported filesystem path naming. 2900_dev-root-proc-mount-fix.patch | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/2900_dev-root-proc-mount-fix.patch b/2900_dev-root-proc-mount-fix.patch index 6ea86e2..aa6fa19 100644 --- a/2900_dev-root-proc-mount-fix.patch +++ b/2900_dev-root-proc-mount-fix.patch @@ -1,6 +1,6 @@ a/init/do_mounts.c 2014-08-26 08:03:30.13100 -0400 -+++ b/init/do_mounts.c 2014-08-26 08:11:19.720014712 -0400 -@@ -484,7 +484,10 @@ void __init change_floppy(char *fmt, ... +--- a/init/do_mounts.c 2015-03-28 15:38:01.750855358 -0400 b/init/do_mounts.c 2015-03-28 15:41:47.873853202 -0400 +@@ -485,7 +485,10 @@ void __init change_floppy(char *fmt, ... va_start(args, fmt); vsprintf(buf, fmt, args); va_end(args); @@ -12,13 +12,13 @@ if (fd = 0) { sys_ioctl(fd, FDEJECT, 0); sys_close(fd); -@@ -527,8 +530,13 @@ void __init mount_root(void) +@@ -528,8 +531,13 @@ void __init mount_root(void) } #endif #ifdef CONFIG_BLOCK - create_dev(/dev/root, ROOT_DEV); - mount_block_root(/dev/root, root_mountflags); -+ if (saved_root_name[0]) { ++ if (saved_root_name[0] == '/') { + create_dev(saved_root_name, ROOT_DEV); + mount_block_root(saved_root_name, root_mountflags); + } else {
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: f43b9706f180d5e95a5c2772dfc0915600a302da Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sat Mar 21 20:02:56 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sat Mar 21 20:02:56 2015 + URL:https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=f43b9706 Update gcc = 4.9 optimization patch. See bug #544028. ...-additional-cpu-optimizations-for-gcc-4.9.patch | 67 +- 1 file changed, 41 insertions(+), 26 deletions(-) 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 f931f75..c4efd06 100644 --- a/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch +++ b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch @@ -18,13 +18,14 @@ should use the newer 'march=bonnell' flag for atom processors. I have made that change to this patch set as well. See the following kernel bug report to see if I'm right: https://bugzilla.kernel.org/show_bug.cgi?id=77461 -This patch will expand the number of microarchitectures to include new +This patch will expand the number of microarchitectures to include newer processors including: AMD K10-family, AMD Family 10h (Barcelona), AMD Family 14h (Bobcat), AMD Family 15h (Bulldozer), AMD Family 15h (Piledriver), AMD Family 16h (Jaguar), Intel 1st Gen Core i3/i5/i7 (Nehalem), Intel 1.5 Gen Core i3/i5/i7 (Westmere), Intel 2nd Gen Core i3/i5/i7 (Sandybridge), Intel 3rd Gen -Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), and Intel 5th -Gen Core i3/i5/i7 (Broadwell). It also offers the compiler the 'native' flag. +Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), Intel 5th +Gen Core i3/i5/i7 (Broadwell), and the low power Silvermont series of Atom +processors (Silvermont). It also offers the compiler the 'native' flag. Small but real speed increases are measurable using a make endpoint comparing a generic kernel to one built with one of the respective microarchs. @@ -36,9 +37,9 @@ REQUIREMENTS linux version =3.15 gcc version =4.9 a/arch/x86/include/asm/module.h2014-08-03 18:25:02.0 -0400 -+++ b/arch/x86/include/asm/module.h2014-09-13 09:37:16.721385247 -0400 -@@ -15,6 +15,20 @@ +--- a/arch/x86/include/asm/module.h2014-06-16 16:44:27.0 -0400 b/arch/x86/include/asm/module.h2015-03-07 03:27:32.556672424 -0500 +@@ -15,6 +15,22 @@ #define MODULE_PROC_FAMILY 586MMX #elif defined CONFIG_MCORE2 #define MODULE_PROC_FAMILY CORE2 @@ -48,6 +49,8 @@ gcc version =4.9 +#define MODULE_PROC_FAMILY NEHALEM +#elif defined CONFIG_MWESTMERE +#define MODULE_PROC_FAMILY WESTMERE ++#elif defined CONFIG_MSILVERMONT ++#define MODULE_PROC_FAMILY SILVERMONT +#elif defined CONFIG_MSANDYBRIDGE +#define MODULE_PROC_FAMILY SANDYBRIDGE +#elif defined CONFIG_MIVYBRIDGE @@ -59,7 +62,7 @@ gcc version =4.9 #elif defined CONFIG_MATOM #define MODULE_PROC_FAMILY ATOM #elif defined CONFIG_M686 -@@ -33,6 +47,20 @@ +@@ -33,6 +49,20 @@ #define MODULE_PROC_FAMILY K7 #elif defined CONFIG_MK8 #define MODULE_PROC_FAMILY K8 @@ -80,8 +83,8 @@ gcc version =4.9 #elif defined CONFIG_MELAN #define MODULE_PROC_FAMILY ELAN #elif defined CONFIG_MCRUSOE a/arch/x86/Kconfig.cpu 2014-08-03 18:25:02.0 -0400 -+++ b/arch/x86/Kconfig.cpu 2014-09-13 09:37:16.721385247 -0400 +--- a/arch/x86/Kconfig.cpu 2014-06-16 16:44:27.0 -0400 b/arch/x86/Kconfig.cpu 2015-03-07 03:32:14.337713226 -0500 @@ -137,9 +137,8 @@ config MPENTIUM4 -Paxville -Dempsey @@ -185,7 +188,7 @@ gcc version =4.9 ---help--- Select this for Intel Core 2 and newer Core 2 Xeons (Xeon 51xx and -@@ -260,14 +318,55 @@ config MCORE2 +@@ -260,14 +318,63 @@ config MCORE2 family in /proc/cpuinfo. Newer ones have 6 and older ones 15 (not a typo) @@ -213,6 +216,14 @@ gcc version =4.9 + +Enables -march=westmere + ++config MSILVERMONT ++ bool Intel Silvermont ++ ---help--- ++ ++Select this for the Intel Silvermont platform. ++ ++Enables -march=silvermont ++ +config MSANDYBRIDGE + bool Intel Sandy Bridge + ---help--- @@ -247,7 +258,7 @@ gcc version =4.9 config GENERIC_CPU bool Generic-x86-64 -@@ -276,6 +375,19 @@ config GENERIC_CPU +@@ -276,6 +383,19 @@ config GENERIC_CPU Generic x86-64 CPU. Run equally well on all x86-64 CPUs. @@ -267,53 +278,53 @@ gcc version =4.9 endchoice config X86_GENERIC -@@ -300,7 +412,7 @@ config X86_INTERNODE_CACHE_SHIFT +@@ -300,7 +420,7 @@ config X86_INTERNODE_CACHE_SHIFT config X86_L1_CACHE_SHIFT 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 ||
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 92d71a68a84f1c78e69d17af7292951a881c1972 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Feb 27 13:26:19 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Feb 27 13:26:19 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=92d71a68 Linux patch 3.18.8 --- _README | 4 + 1007_linux-3.18.8.patch | 668 2 files changed, 672 insertions(+) diff --git a/_README b/_README index bfdd162..7c4ea05 100644 --- a/_README +++ b/_README @@ -71,6 +71,10 @@ Patch: 1006_linux-3.18.7.patch From: http://www.kernel.org Desc: Linux 3.18.7 +Patch: 1007_linux-3.18.8.patch +From: http://www.kernel.org +Desc: Linux 3.18.8 + 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/1007_linux-3.18.8.patch b/1007_linux-3.18.8.patch new file mode 100644 index 000..7cc436c --- /dev/null +++ b/1007_linux-3.18.8.patch @@ -0,0 +1,668 @@ +diff --git a/Makefile b/Makefile +index 0efae2279fbe..0b3f8a1b3715 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 7 ++SUBLEVEL = 8 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/drivers/media/rc/ir-lirc-codec.c b/drivers/media/rc/ir-lirc-codec.c +index ed2c8a1ed8ca..98893a8332c7 100644 +--- a/drivers/media/rc/ir-lirc-codec.c b/drivers/media/rc/ir-lirc-codec.c +@@ -42,11 +42,17 @@ static int ir_lirc_decode(struct rc_dev *dev, struct ir_raw_event ev) + return -EINVAL; + + /* Packet start */ +- if (ev.reset) +- return 0; ++ if (ev.reset) { ++ /* Userspace expects a long space event before the start of ++ * the signal to use as a sync. This may be done with repeat ++ * packets and normal samples. But if a reset has been sent ++ * then we assume that a long time has passed, so we send a ++ * space with the maximum time value. */ ++ sample = LIRC_SPACE(LIRC_VALUE_MASK); ++ IR_dprintk(2, delivering reset sync space to lirc_dev\n); + + /* Carrier reports */ +- if (ev.carrier_report) { ++ } else if (ev.carrier_report) { + sample = LIRC_FREQUENCY(ev.carrier); + IR_dprintk(2, carrier report (freq: %d)\n, sample); + +diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +index 40beef5bca88..ec4cebabff49 100644 +--- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c +@@ -3175,7 +3175,7 @@ static int bnx2x_poll(struct napi_struct *napi, int budget) + } + #endif + if (!bnx2x_fp_lock_napi(fp)) +- return work_done; ++ return budget; + + for_each_cos_in_tx_queue(fp, cos) + if (bnx2x_tx_queue_has_work(fp-txdata_ptr[cos])) +diff --git a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c +index 613037584d08..c531c8ae1be4 100644 +--- a/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c b/drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c +@@ -2388,7 +2388,10 @@ static int netxen_nic_poll(struct napi_struct *napi, int budget) + + work_done = netxen_process_rcv_ring(sds_ring, budget); + +- if ((work_done budget) tx_complete) { ++ if (!tx_complete) ++ work_done = budget; ++ ++ if (work_done budget) { + napi_complete(sds_ring-napi); + if (test_bit(__NX_DEV_UP, adapter-state)) + netxen_nic_enable_int(sds_ring); +diff --git a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c +index 7d76c9523395..63d7a642733d 100644 +--- a/drivers/net/hyperv/netvsc.c b/drivers/net/hyperv/netvsc.c +@@ -716,7 +716,7 @@ int netvsc_send(struct hv_device *device, + u64 req_id; + unsigned int section_index = NETVSC_INVALID_INDEX; + u32 msg_size = 0; +- struct sk_buff *skb; ++ struct sk_buff *skb = NULL; + u16 q_idx = packet-q_idx; + + +@@ -743,8 +743,6 @@ int netvsc_send(struct hv_device *device, + packet); + skb = (struct sk_buff *) + (unsigned long)packet-send_completion_tid; +- if (skb) +- dev_kfree_skb_any(skb); + packet-page_buf_cnt = 0; + } + } +@@ -807,6 +805,13 @@ int netvsc_send(struct hv_device *device, + packet, ret); + } + ++ if (ret != 0) { ++ if (section_index != NETVSC_INVALID_INDEX) ++
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 206f9adb9c02b3dd0a37edc4d204a946c19c8f22 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sat Feb 14 20:32:28 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sat Feb 14 20:32:28 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=206f9adb Enable link security restrictions by default --- _README| 4 ...ble-link-security-restrictions-by-default.patch | 22 ++ 2 files changed, 26 insertions(+) diff --git a/_README b/_README index 116cf1b..bfdd162 100644 --- a/_README +++ b/_README @@ -75,6 +75,10 @@ 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 + Patch: 1700_ARM-dts-patch-to-support-popoplug-e02.patch From: https://bugs.gentoo.org/show_bug.cgi?id=508248 Desc: ARM: dts: Add support for Pogoplug E02. 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 b...@decadent.org.uk +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
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 90f12d61a417b874e654af1f28271d95ca0e1c6d Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Feb 13 01:35:43 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Feb 13 01:35:43 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=90f12d61 Kernel patch enables gcc = v4.9 optimizations for additional CPUs. --- _README| 5 + ...-additional-cpu-optimizations-for-gcc-4.9.patch | 387 + 2 files changed, 392 insertions(+) diff --git a/_README b/_README index d897d2e..116cf1b 100644 --- a/_README +++ b/_README @@ -114,3 +114,8 @@ Desc: BFQ v7r7 patch 2 for 3.17: BFQ Scheduler Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r7-for-3.18.0.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ Desc: BFQ v7r7 patch 3 for 3.17: Early Queue Merge (EQM) + +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/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch new file mode 100644 index 000..f931f75 --- /dev/null +++ b/5010_enable-additional-cpu-optimizations-for-gcc-4.9.patch @@ -0,0 +1,387 @@ +WARNING - this version of the patch works with version 4.9+ of gcc and with +kernel version 3.15.x+ and should NOT be applied when compiling on older +versions due to name changes of the flags with the 4.9 release of gcc. +Use the older version of this patch hosted on the same github for older +versions of gcc. For example: + +corei7 -- nehalem +corei7-avx -- sandybridge +core-avx-i -- ivybridge +core-avx2 -- haswell + +For more, see: https://gcc.gnu.org/gcc-4.9/changes.html + +It also changes 'atom' to 'bonnell' in accordance with the gcc v4.9 changes. +Note that upstream is using the deprecated 'match=atom' flags when I believe it +should use the newer 'march=bonnell' flag for atom processors. + +I have made that change to this patch set as well. See the following kernel +bug report to see if I'm right: https://bugzilla.kernel.org/show_bug.cgi?id=77461 + +This patch will expand the number of microarchitectures to include new +processors including: AMD K10-family, AMD Family 10h (Barcelona), AMD Family +14h (Bobcat), AMD Family 15h (Bulldozer), AMD Family 15h (Piledriver), AMD +Family 16h (Jaguar), Intel 1st Gen Core i3/i5/i7 (Nehalem), Intel 1.5 Gen Core +i3/i5/i7 (Westmere), Intel 2nd Gen Core i3/i5/i7 (Sandybridge), Intel 3rd Gen +Core i3/i5/i7 (Ivybridge), Intel 4th Gen Core i3/i5/i7 (Haswell), and Intel 5th +Gen Core i3/i5/i7 (Broadwell). It also offers the compiler the 'native' flag. + +Small but real speed increases are measurable using a make endpoint comparing +a generic kernel to one built with one of the respective microarchs. + +See the following experimental evidence supporting this statement: +https://github.com/graysky2/kernel_gcc_patch + +REQUIREMENTS +linux version =3.15 +gcc version =4.9 + +--- a/arch/x86/include/asm/module.h2014-08-03 18:25:02.0 -0400 b/arch/x86/include/asm/module.h2014-09-13 09:37:16.721385247 -0400 +@@ -15,6 +15,20 @@ + #define MODULE_PROC_FAMILY 586MMX + #elif defined CONFIG_MCORE2 + #define MODULE_PROC_FAMILY CORE2 ++#elif defined CONFIG_MNATIVE ++#define MODULE_PROC_FAMILY NATIVE ++#elif defined CONFIG_MNEHALEM ++#define MODULE_PROC_FAMILY NEHALEM ++#elif defined CONFIG_MWESTMERE ++#define MODULE_PROC_FAMILY WESTMERE ++#elif defined CONFIG_MSANDYBRIDGE ++#define MODULE_PROC_FAMILY SANDYBRIDGE ++#elif defined CONFIG_MIVYBRIDGE ++#define MODULE_PROC_FAMILY IVYBRIDGE ++#elif defined CONFIG_MHASWELL ++#define MODULE_PROC_FAMILY HASWELL ++#elif defined CONFIG_MBROADWELL ++#define MODULE_PROC_FAMILY BROADWELL + #elif defined CONFIG_MATOM + #define MODULE_PROC_FAMILY ATOM + #elif defined CONFIG_M686 +@@ -33,6 +47,20 @@ + #define MODULE_PROC_FAMILY K7 + #elif defined CONFIG_MK8 + #define MODULE_PROC_FAMILY K8 ++#elif defined CONFIG_MK8SSE3 ++#define MODULE_PROC_FAMILY K8SSE3 ++#elif defined CONFIG_MK10 ++#define MODULE_PROC_FAMILY K10 ++#elif defined CONFIG_MBARCELONA ++#define MODULE_PROC_FAMILY BARCELONA ++#elif defined CONFIG_MBOBCAT ++#define MODULE_PROC_FAMILY BOBCAT ++#elif defined CONFIG_MBULLDOZER ++#define MODULE_PROC_FAMILY BULLDOZER ++#elif defined CONFIG_MPILEDRIVER ++#define MODULE_PROC_FAMILY PILEDRIVER ++#elif defined CONFIG_MJAGUAR ++#define MODULE_PROC_FAMILY JAGUAR + #elif defined CONFIG_MELAN + #define MODULE_PROC_FAMILY ELAN + #elif defined CONFIG_MCRUSOE +--- a/arch/x86/Kconfig.cpu 2014-08-03 18:25:02.0 -0400 b/arch/x86/Kconfig.cpu 2014-09-13 09:37:16.721385247 -0400 +@@ -137,9 +137,8 @@ config MPENTIUM4 + -Paxville + -Dempsey + +- + config MK6 +-
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 12b7e98443115d5b6de4d34d90afc490d3a4fecf Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Wed Feb 11 14:35:42 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Wed Feb 11 14:35:42 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=12b7e984 Linux patch 3.18.7 --- _README |4 + 1006_linux-3.18.7.patch | 1358 +++ 2 files changed, 1362 insertions(+) diff --git a/_README b/_README index 626b2f5..d897d2e 100644 --- a/_README +++ b/_README @@ -67,6 +67,10 @@ Patch: 1005_linux-3.18.6.patch From: http://www.kernel.org Desc: Linux 3.18.6 +Patch: 1006_linux-3.18.7.patch +From: http://www.kernel.org +Desc: Linux 3.18.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-3.18.7.patch b/1006_linux-3.18.7.patch new file mode 100644 index 000..d5ed161 --- /dev/null +++ b/1006_linux-3.18.7.patch @@ -0,0 +1,1358 @@ +diff --git a/Makefile b/Makefile +index d2bff2d5ae25..0efae2279fbe 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 6 ++SUBLEVEL = 7 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi +index e0278ecbc816..98960b7bc518 100644 +--- a/arch/arm/boot/dts/exynos4.dtsi b/arch/arm/boot/dts/exynos4.dtsi +@@ -368,7 +368,7 @@ + }; + + i2s1: i2s@1396 { +- compatible = samsung,s5pv210-i2s; ++ compatible = samsung,s3c6410-i2s; + reg = 0x1396 0x100; + clocks = clock CLK_I2S1; + clock-names = iis; +@@ -378,7 +378,7 @@ + }; + + i2s2: i2s@1397 { +- compatible = samsung,s5pv210-i2s; ++ compatible = samsung,s3c6410-i2s; + reg = 0x1397 0x100; + clocks = clock CLK_I2S2; + clock-names = iis; +diff --git a/arch/arm/mm/context.c b/arch/arm/mm/context.c +index 6eb97b3a7481..4370933f16cd 100644 +--- a/arch/arm/mm/context.c b/arch/arm/mm/context.c +@@ -144,21 +144,17 @@ static void flush_context(unsigned int cpu) + /* Update the list of reserved ASIDs and the ASID bitmap. */ + bitmap_clear(asid_map, 0, NUM_USER_ASIDS); + for_each_possible_cpu(i) { +- if (i == cpu) { +- asid = 0; +- } else { +- asid = atomic64_xchg(per_cpu(active_asids, i), 0); +- /* +- * If this CPU has already been through a +- * rollover, but hasn't run another task in +- * the meantime, we must preserve its reserved +- * ASID, as this is the only trace we have of +- * the process it is still running. +- */ +- if (asid == 0) +- asid = per_cpu(reserved_asids, i); +- __set_bit(asid ~ASID_MASK, asid_map); +- } ++ asid = atomic64_xchg(per_cpu(active_asids, i), 0); ++ /* ++ * If this CPU has already been through a ++ * rollover, but hasn't run another task in ++ * the meantime, we must preserve its reserved ++ * ASID, as this is the only trace we have of ++ * the process it is still running. ++ */ ++ if (asid == 0) ++ asid = per_cpu(reserved_asids, i); ++ __set_bit(asid ~ASID_MASK, asid_map); + per_cpu(reserved_asids, i) = asid; + } + +diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c +index 64c4f0800ee3..38eead12f35b 100644 +--- a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c +@@ -43,6 +43,7 @@ + #include linux/of_fdt.h + #include linux/of_platform.h + #include linux/efi.h ++#include linux/personality.h + + #include asm/fixmap.h + #include asm/cpu.h +@@ -79,7 +80,6 @@ unsigned int compat_elf_hwcap2 __read_mostly; + #endif + + static const char *cpu_name; +-static const char *machine_name; + phys_addr_t __fdt_pointer __initdata; + + /* +@@ -311,8 +311,6 @@ static void __init setup_machine_fdt(phys_addr_t dt_phys) + while (true) + cpu_relax(); + } +- +- machine_name = of_flat_dt_get_machine_name(); + } + + /* +@@ -449,14 +447,50 @@ static const char *hwcap_str[] = { + NULL + }; + ++#ifdef CONFIG_COMPAT ++static const char *compat_hwcap_str[] = { ++ swp, ++ half, ++ thumb, ++ 26bit, ++ fastmult, ++ fpa, ++ vfp, ++ edsp, ++ java, ++ iwmmxt, ++ crunch, ++ thumbee, ++ neon, ++ vfpv3, ++ vfpv3d16, ++ tls, ++
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: a7f210d59ff1a55ddbfcec02749239de6ba95528 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sat Feb 7 01:07:31 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sat Feb 7 01:07:31 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=a7f210d5 Linux patch 3.18.6 --- _README |4 + 1005_linux-3.18.6.patch | 4030 +++ 2 files changed, 4034 insertions(+) diff --git a/_README b/_README index f8b4dcb..626b2f5 100644 --- a/_README +++ b/_README @@ -63,6 +63,10 @@ Patch: 1004_linux-3.18.5.patch From: http://www.kernel.org Desc: Linux 3.18.5 +Patch: 1005_linux-3.18.6.patch +From: http://www.kernel.org +Desc: Linux 3.18.6 + 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/1005_linux-3.18.6.patch b/1005_linux-3.18.6.patch new file mode 100644 index 000..b20fb1d --- /dev/null +++ b/1005_linux-3.18.6.patch @@ -0,0 +1,4030 @@ +diff --git a/Makefile b/Makefile +index 6276fcaabf21..d2bff2d5ae25 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 5 ++SUBLEVEL = 6 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/alpha/mm/fault.c b/arch/alpha/mm/fault.c +index 98838a05ba6d..9d0ac091a52a 100644 +--- a/arch/alpha/mm/fault.c b/arch/alpha/mm/fault.c +@@ -156,6 +156,8 @@ retry: + if (unlikely(fault VM_FAULT_ERROR)) { + if (fault VM_FAULT_OOM) + goto out_of_memory; ++ else if (fault VM_FAULT_SIGSEGV) ++ goto bad_area; + else if (fault VM_FAULT_SIGBUS) + goto do_sigbus; + BUG(); +diff --git a/arch/arc/mm/fault.c b/arch/arc/mm/fault.c +index 6f7e3a68803a..563cb27e37f5 100644 +--- a/arch/arc/mm/fault.c b/arch/arc/mm/fault.c +@@ -161,6 +161,8 @@ good_area: + + if (fault VM_FAULT_OOM) + goto out_of_memory; ++ else if (fault VM_FAULT_SIGSEGV) ++ goto bad_area; + else if (fault VM_FAULT_SIGBUS) + goto do_sigbus; + +diff --git a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h +index 135c24a5ba26..68c739b3fdf4 100644 +--- a/arch/arm/include/asm/xen/page.h b/arch/arm/include/asm/xen/page.h +@@ -107,4 +107,8 @@ static inline bool set_phys_to_machine(unsigned long pfn, unsigned long mfn) + #define xen_remap(cookie, size) ioremap_cache((cookie), (size)) + #define xen_unmap(cookie) iounmap((cookie)) + ++bool xen_arch_need_swiotlb(struct device *dev, ++ unsigned long pfn, ++ unsigned long mfn); ++ + #endif /* _ASM_ARM_XEN_PAGE_H */ +diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c +index 1163a3e9accd..2ffccd4eb084 100644 +--- a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c +@@ -342,6 +342,13 @@ static void __init armada_375_380_coherency_init(struct device_node *np) + arch_ioremap_caller = armada_pcie_wa_ioremap_caller; + + /* ++ * We should switch the PL310 to I/O coherency mode only if ++ * I/O coherency is actually enabled. ++ */ ++ if (!coherency_available()) ++ return; ++ ++ /* +* Add the PL310 property arm,io-coherent. This makes sure the +* outer sync operation is not used, which allows to +* workaround the system erratum that causes deadlocks when +diff --git a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c +index b0e77de99148..f8a576b1d9bb 100644 +--- a/arch/arm/xen/mm.c b/arch/arm/xen/mm.c +@@ -16,6 +16,13 @@ + #include asm/xen/hypercall.h + #include asm/xen/interface.h + ++bool xen_arch_need_swiotlb(struct device *dev, ++ unsigned long pfn, ++ unsigned long mfn) ++{ ++ return (pfn != mfn); ++} ++ + int xen_create_contiguous_region(phys_addr_t pstart, unsigned int order, +unsigned int address_bits, +dma_addr_t *dma_handle) +diff --git a/arch/avr32/mm/fault.c b/arch/avr32/mm/fault.c +index 0eca93327195..d223a8b57c1e 100644 +--- a/arch/avr32/mm/fault.c b/arch/avr32/mm/fault.c +@@ -142,6 +142,8 @@ good_area: + if (unlikely(fault VM_FAULT_ERROR)) { + if (fault VM_FAULT_OOM) + goto out_of_memory; ++ else if (fault VM_FAULT_SIGSEGV) ++ goto bad_area; + else if (fault VM_FAULT_SIGBUS) + goto do_sigbus; + BUG(); +diff --git a/arch/cris/mm/fault.c b/arch/cris/mm/fault.c +index 1790f22e71a2..2686a7aa8ec8 100644 +--- a/arch/cris/mm/fault.c b/arch/cris/mm/fault.c +@@ -176,6 +176,8 @@ retry: + if (unlikely(fault VM_FAULT_ERROR)) { +
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: c006e3c68a07765a9f1aa4d9a1a6b3df0e0a417c Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Jan 30 11:01:48 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Jan 30 11:01:48 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=c006e3c6 Linux patch 3.18.5 --- _README |4 + 1004_linux-3.18.5.patch | 3915 +++ 2 files changed, 3919 insertions(+) diff --git a/_README b/_README index 52cb186..f8b4dcb 100644 --- a/_README +++ b/_README @@ -59,6 +59,10 @@ Patch: 1003_linux-3.18.4.patch From: http://www.kernel.org Desc: Linux 3.18.4 +Patch: 1004_linux-3.18.5.patch +From: http://www.kernel.org +Desc: Linux 3.18.5 + 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/1004_linux-3.18.5.patch b/1004_linux-3.18.5.patch new file mode 100644 index 000..2a470c7 --- /dev/null +++ b/1004_linux-3.18.5.patch @@ -0,0 +1,3915 @@ +diff --git a/Makefile b/Makefile +index 4e9328491c1e..6276fcaabf21 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 4 ++SUBLEVEL = 5 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi +index d238676a9107..e4d3aecc4ed2 100644 +--- a/arch/arm/boot/dts/imx25.dtsi b/arch/arm/boot/dts/imx25.dtsi +@@ -369,7 +369,7 @@ + compatible = fsl,imx25-pwm, fsl,imx27-pwm; + #pwm-cells = 2; + reg = 0x53fa 0x4000; +- clocks = clks 106, clks 36; ++ clocks = clks 106, clks 52; + clock-names = ipg, per; + interrupts = 36; + }; +@@ -388,7 +388,7 @@ + compatible = fsl,imx25-pwm, fsl,imx27-pwm; + #pwm-cells = 2; + reg = 0x53fa8000 0x4000; +- clocks = clks 107, clks 36; ++ clocks = clks 107, clks 52; + clock-names = ipg, per; + interrupts = 41; + }; +@@ -429,7 +429,7 @@ + pwm4: pwm@53fc8000 { + compatible = fsl,imx25-pwm, fsl,imx27-pwm; + reg = 0x53fc8000 0x4000; +- clocks = clks 108, clks 36; ++ clocks = clks 108, clks 52; + clock-names = ipg, per; + interrupts = 42; + }; +@@ -476,7 +476,7 @@ + compatible = fsl,imx25-pwm, fsl,imx27-pwm; + #pwm-cells = 2; + reg = 0x53fe 0x4000; +- clocks = clks 105, clks 36; ++ clocks = clks 105, clks 52; + clock-names = ipg, per; + interrupts = 26; + }; +diff --git a/arch/arm/crypto/aes_glue.c b/arch/arm/crypto/aes_glue.c +index 3003fa1f6fb4..0409b8f89782 100644 +--- a/arch/arm/crypto/aes_glue.c b/arch/arm/crypto/aes_glue.c +@@ -93,6 +93,6 @@ module_exit(aes_fini); + + MODULE_DESCRIPTION(Rijndael (AES) Cipher Algorithm (ASM)); + MODULE_LICENSE(GPL); +-MODULE_ALIAS(aes); +-MODULE_ALIAS(aes-asm); ++MODULE_ALIAS_CRYPTO(aes); ++MODULE_ALIAS_CRYPTO(aes-asm); + MODULE_AUTHOR(David McCullough ucde...@gmail.com); +diff --git a/arch/arm/crypto/sha1_glue.c b/arch/arm/crypto/sha1_glue.c +index 84f2a756588b..e31b0440c613 100644 +--- a/arch/arm/crypto/sha1_glue.c b/arch/arm/crypto/sha1_glue.c +@@ -171,5 +171,5 @@ module_exit(sha1_mod_fini); + + MODULE_LICENSE(GPL); + MODULE_DESCRIPTION(SHA1 Secure Hash Algorithm (ARM)); +-MODULE_ALIAS(sha1); ++MODULE_ALIAS_CRYPTO(sha1); + MODULE_AUTHOR(David McCullough ucde...@gmail.com); +diff --git a/arch/arm/crypto/sha1_neon_glue.c b/arch/arm/crypto/sha1_neon_glue.c +index 6f1b411b1d55..0b0083757d47 100644 +--- a/arch/arm/crypto/sha1_neon_glue.c b/arch/arm/crypto/sha1_neon_glue.c +@@ -194,4 +194,4 @@ module_exit(sha1_neon_mod_fini); + + MODULE_LICENSE(GPL); + MODULE_DESCRIPTION(SHA1 Secure Hash Algorithm, NEON accelerated); +-MODULE_ALIAS(sha1); ++MODULE_ALIAS_CRYPTO(sha1); +diff --git a/arch/arm/crypto/sha512_neon_glue.c b/arch/arm/crypto/sha512_neon_glue.c +index 0d2758ff5e12..f3452c66059d 100644 +--- a/arch/arm/crypto/sha512_neon_glue.c b/arch/arm/crypto/sha512_neon_glue.c +@@ -301,5 +301,5 @@ module_exit(sha512_neon_mod_fini); + MODULE_LICENSE(GPL); + MODULE_DESCRIPTION(SHA512 Secure Hash Algorithm, NEON accelerated);
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 02dc582606fd493ac597591162ed08d4bb5927f7 Author: Anthony G. Basile blueness AT gentoo DOT org AuthorDate: Wed Jan 28 23:58:33 2015 + Commit: Anthony G. Basile blueness AT gentoo DOT org CommitDate: Wed Jan 28 23:58:33 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=02dc5826 Fix _README --- _README | 4 1 file changed, 4 deletions(-) diff --git a/_README b/_README index 6e4c6e3..52cb186 100644 --- a/_README +++ b/_README @@ -79,10 +79,6 @@ Patch: 2905_s2disk-resume-image-fix.patch From: Al Viro viro at ZenIV.linux.org.uk Desc: Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344.) -Patch: 2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch -From: http://www.kernel.org -Desc: drm/i915: Patch to disallow pin ioctl completely for kms drivers. See bug #532926. - Patch: 4200_fbcondecor-3.16.patch From: http://www.mepiscommunity.org/fbcondecor Desc: Bootsplash ported by Uladzimir Bely (bug #513334)
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: bdd559a0e1b3569f98c565cf7aa4f8ac72e5ca70 Author: Anthony G. Basile blueness AT gentoo DOT org AuthorDate: Wed Jan 28 23:57:35 2015 + Commit: Anthony G. Basile blueness AT gentoo DOT org CommitDate: Wed Jan 28 23:57:35 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=bdd559a0 Removal of redundant patch for i915 drm --- ...15-drm-disallow-pin-ioctl-for-kms-drivers.patch | 76 -- 1 file changed, 76 deletions(-) diff --git a/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch b/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch deleted file mode 100644 index f298aa4..000 --- a/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch +++ /dev/null @@ -1,76 +0,0 @@ -From d472fcc8379c062bd56a3876fc6ef22258f14a91 Mon Sep 17 00:00:00 2001 -From: Daniel Vetter daniel.vet...@ffwll.ch -Date: Mon, 24 Nov 2014 11:12:42 +0100 -Subject: drm/i915: Disallow pin ioctl completely for kms drivers - -The problem here is that SNA pins batchbuffers to etch out a bit more -performance. Iirc it started out as a w/a for i830M (which we've -implemented in the kernel since a long time already). The problem is -that the pin ioctl wasn't added in - -commit d23db88c3ab233daed18709e3a24d6c95344117f -Author: Chris Wilson ch...@chris-wilson.co.uk -Date: Fri May 23 08:48:08 2014 +0200 - -drm/i915: Prevent negative relocation deltas from wrapping - -Fix this by simply disallowing pinning from userspace so that the -kernel is in full control of batch placement again. Especially since -distros are moving towards running X as non-root, so most users won't -even be able to see any benefits. - -UMS support is dead now, but we need this minimal patch for -backporting. Follow-up patch will remove the pin ioctl code -completely. - -Note to backporters: You must have both - -commit b45305fce5bb1abec263fcff9d81ebecd6306ede -Author: Daniel Vetter daniel.vet...@ffwll.ch -Date: Mon Dec 17 16:21:27 2012 +0100 - -drm/i915: Implement workaround for broken CS tlb on i830/845 - -which laned in 3.8 and - -commit c4d69da167fa967749aeb70bc0e94a457e5d00c1 -Author: Chris Wilson ch...@chris-wilson.co.uk -Date: Mon Sep 8 14:25:41 2014 +0100 - -drm/i915: Evict CS TLBs between batches - -which is also marked cc: stable. Otherwise this could introduce a -regression by disabling the userspace w/a without the kernel w/a being -fully functional on i830/45. - -References: https://bugs.freedesktop.org/show_bug.cgi?id=76554#c116 -Cc: sta...@vger.kernel.org # requires c4d69da167fa967749a and v3.8 -Cc: Chris Wilson ch...@chris-wilson.co.uk -Signed-off-by: Daniel Vetter daniel.vet...@intel.com - -diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c -index fd17cca..97b86a5 100644 a/drivers/gpu/drm/i915/i915_gem.c -+++ b/drivers/gpu/drm/i915/i915_gem.c -@@ -4263,7 +4263,7 @@ i915_gem_pin_ioctl(struct drm_device *dev, void *data, - struct drm_i915_gem_object *obj; - int ret; - -- if (INTEL_INFO(dev)-gen = 6) -+ if (drm_core_check_feature(dev, DRIVER_MODESET)) - return -ENODEV; - - ret = i915_mutex_lock_interruptible(dev); -@@ -4319,6 +4319,9 @@ i915_gem_unpin_ioctl(struct drm_device *dev, void *data, - struct drm_i915_gem_object *obj; - int ret; - -+ if (drm_core_check_feature(dev, DRIVER_MODESET)) -+ return -ENODEV; -+ - ret = i915_mutex_lock_interruptible(dev); - if (ret) - return ret; --- -cgit v0.10.2 -
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: f9bb09550d8abf4ea422bce7a714bf666e1e7212 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Jan 16 00:28:40 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Jan 16 00:28:40 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=f9bb0955 Patch to not BUG_ON(\!spin_is_locked()) on UP --- _README | 8 ++-- 2800_nouveau-spin-is-locked.patch | 31 +++ 2 files changed, 37 insertions(+), 2 deletions(-) diff --git a/_README b/_README index 3b11b74..d04c7db 100644 --- a/_README +++ b/_README @@ -69,11 +69,15 @@ Desc: Ensure that /dev/root doesn't appear in /proc/mounts when bootint withou Patch: 2905_s2disk-resume-image-fix.patch From: Al Viro viro at ZenIV.linux.org.uk -Desc: Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344) +Desc: Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344.) Patch: 2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch From: http://www.kernel.org -Desc: drm/i915: Patch to disallow pin ioctl completely for kms drivers. See bug #532926 +Desc: drm/i915: Patch to disallow pin ioctl completely for kms drivers. See bug #532926. + +Patch: 2800_nouveau-spin-is-locked.patch +From: http://www.kernel.org +Desc: nouveau: Do not BUG_ON(!spin_is_locked()) on UP. Patch: 4200_fbcondecor-3.16.patch From: http://www.mepiscommunity.org/fbcondecor diff --git a/2800_nouveau-spin-is-locked.patch b/2800_nouveau-spin-is-locked.patch new file mode 100644 index 000..4cd72c9 --- /dev/null +++ b/2800_nouveau-spin-is-locked.patch @@ -0,0 +1,31 @@ +--- a/drivers/gpu/drm/nouveau/core/core/event.c2015-01-12 14:01:30.999164123 -0500 b/drivers/gpu/drm/nouveau/core/core/event.c2015-01-12 14:03:11.229163330 -0500 +@@ -26,7 +26,7 @@ + void + nvkm_event_put(struct nvkm_event *event, u32 types, int index) + { +- BUG_ON(!spin_is_locked(event-refs_lock)); ++ assert_spin_locked(event-refs_lock); + while (types) { + int type = __ffs(types); types = ~(1 type); + if (--event-refs[index * event-types_nr + type] == 0) { +@@ -39,7 +39,7 @@ nvkm_event_put(struct nvkm_event *event, + void + nvkm_event_get(struct nvkm_event *event, u32 types, int index) + { +- BUG_ON(!spin_is_locked(event-refs_lock)); ++ assert_spin_locked(event-refs_lock); + while (types) { + int type = __ffs(types); types = ~(1 type); + if (++event-refs[index * event-types_nr + type] == 1) { +--- a/drivers/gpu/drm/nouveau/core/core/notify.c 2015-01-12 14:01:38.299164065 -0500 b/drivers/gpu/drm/nouveau/core/core/notify.c 2015-01-12 14:03:45.739163057 -0500 +@@ -98,7 +98,7 @@ nvkm_notify_send(struct nvkm_notify *not + struct nvkm_event *event = notify-event; + unsigned long flags; + +- BUG_ON(!spin_is_locked(event-list_lock)); ++ assert_spin_locked(event-list_lock); + BUG_ON(size != notify-size); + + spin_lock_irqsave(event-refs_lock, flags);
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 9075c0bbea7faa9ff0732c954490c3e7658b90d7 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Jan 9 13:39:42 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Jan 9 13:39:42 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=9075c0bb Linux patch 3.18.2 --- _README |4 + 1001_linux-3.18.2.patch | 3472 +++ 2 files changed, 3476 insertions(+) diff --git a/_README b/_README index e650125..3b11b74 100644 --- a/_README +++ b/_README @@ -47,6 +47,10 @@ Patch: 1000_linux-3.18.1.patch From: http://www.kernel.org Desc: Linux 3.18.1 +Patch: 1001_linux-3.18.2.patch +From: http://www.kernel.org +Desc: Linux 3.18.2 + 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/1001_linux-3.18.2.patch b/1001_linux-3.18.2.patch new file mode 100644 index 000..6086fd1 --- /dev/null +++ b/1001_linux-3.18.2.patch @@ -0,0 +1,3472 @@ +diff --git a/Makefile b/Makefile +index 3f84029f2b31..8f73b417dc1a 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 1 ++SUBLEVEL = 2 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts +index a495e5821ab8..d5051358fb1b 100644 +--- a/arch/arm/boot/dts/armada-370-db.dts b/arch/arm/boot/dts/armada-370-db.dts +@@ -102,30 +102,6 @@ + broken-cd; + }; + +- pinctrl { +- /* +- * These pins might be muxed as I2S by +- * the bootloader, but it conflicts +- * with the real I2S pins that are +- * muxed using i2s_pins. We must mux +- * those pins to a function other than +- * I2S. +- */ +- pinctrl-0 = hog_pins1 hog_pins2; +- pinctrl-names = default; +- +- hog_pins1: hog-pins1 { +- marvell,pins = mpp6, mpp8, mpp10, +- mpp12, mpp13; +- marvell,function = gpio; +- }; +- +- hog_pins2: hog-pins2 { +- marvell,pins = mpp5, mpp7, mpp9; +- marvell,function = gpo; +- }; +- }; +- + usb@5 { + status = okay; + }; +diff --git a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi +index 6b3c23b1e138..7513410f7b89 100644 +--- a/arch/arm/boot/dts/armada-370.dtsi b/arch/arm/boot/dts/armada-370.dtsi +@@ -106,11 +106,6 @@ + reg = 0x11100 0x20; + }; + +- system-controller@18200 { +- compatible = marvell,armada-370-xp-system-controller; +- reg = 0x18200 0x100; +- }; +- + pinctrl { + compatible = marvell,mv88f6710-pinctrl; + reg = 0x18000 0x38; +@@ -205,6 +200,11 @@ + interrupts = 91; + }; + ++ system-controller@18200 { ++ compatible = marvell,armada-370-xp-system-controller; ++ reg = 0x18200 0x100; ++ }; ++ + gateclk: clock-gating-control@18220 { + compatible = marvell,armada-370-gating-clock; + reg = 0x18220 0x4; +diff --git a/arch/arm/include/asm/arch_timer.h b/arch/arm/include/asm/arch_timer.h +index 92793ba69c40..d4ebf5679f1f 100644 +--- a/arch/arm/include/asm/arch_timer.h b/arch/arm/include/asm/arch_timer.h +@@ -78,6 +78,15 @@ static inline u32 arch_timer_get_cntfrq(void) + return val; + } + ++static inline u64 arch_counter_get_cntpct(void) ++{ ++ u64 cval; ++ ++ isb(); ++ asm volatile(mrrc p15, 0, %Q0, %R0, c14 : =r (cval)); ++ return cval; ++} ++ + static inline u64 arch_counter_get_cntvct(void) + { + u64 cval; +diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c +index 044b51185fcc..c31f4c00b1fc 100644 +--- a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c +@@ -361,25 +361,41 @@ static int coherency_type(void) + { + struct device_node *np; +
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: ae97d6689a4fcf0ff3e20635be00684011c17fe7 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Mon Jan 5 14:38:56 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Mon Jan 5 14:38:56 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=ae97d668 ARM: dts: Add support for Pogoplug E02. --- _README | 4 + 1700_ARM-dts-patch-to-support-popoplug-e02.patch | 132 +++ 2 files changed, 136 insertions(+) diff --git a/_README b/_README index 62aec14..e650125 100644 --- a/_README +++ b/_README @@ -51,6 +51,10 @@ 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: 1700_ARM-dts-patch-to-support-popoplug-e02.patch +From: https://bugs.gentoo.org/show_bug.cgi?id=508248 +Desc: ARM: dts: Add support for Pogoplug E02. + Patch: 2700_ThinkPad-30-brightness-control-fix.patch From: Seth Forshee seth.fors...@canonical.com Desc: ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads. diff --git a/1700_ARM-dts-patch-to-support-popoplug-e02.patch b/1700_ARM-dts-patch-to-support-popoplug-e02.patch new file mode 100644 index 000..ceaa99d --- /dev/null +++ b/1700_ARM-dts-patch-to-support-popoplug-e02.patch @@ -0,0 +1,132 @@ +diff -uprN a/arch/arm/boot/dts/kirkwood-pogo_e02.dts b/arch/arm/boot/dts/kirkwood-pogo_e02.dts +--- a/arch/arm/boot/dts/kirkwood-pogo_e02.dts 1969-12-31 17:00:00.0 -0700 b/arch/arm/boot/dts/kirkwood-pogo_e02.dts 2014-08-10 03:59:10.616338535 -0600 +@@ -0,0 +1,117 @@ ++/dts-v1/; ++ ++#include kirkwood.dtsi ++#include kirkwood-6281.dtsi ++ ++/ { ++ model = CloudEngines Pogoplug E02; ++ compatible = cloudengines,pogo_e02, marvell,kirkwood-88f6281, marvell,kirkwood; ++ ++ memory { ++ device_type = memory; ++ reg = 0x 0x1000; ++ }; ++ ++ chosen { ++ bootargs = console=ttyS0,115200n8 earlyprintk root=/dev/sda1 rootdelay=10; ++ stdout-path = uart0; ++ }; ++ ++ ocp@f100 { ++ pinctrl: pin-controller@1 { ++ pmx_usb_power_enable: pmx-usb-power-enable { ++ marvell,pins = mpp29; ++ marvell,function = gpio; ++ }; ++ pmx_led_green: pmx-led_green { ++ marvell,pins = mpp48; ++ marvell,function = gpio; ++ }; ++ pmx_led_orange: pmx-led_orange { ++ marvell,pins = mpp49; ++ marvell,function = gpio; ++ }; ++ }; ++ serial@12000 { ++ status = ok; ++ }; ++ ++ }; ++ gpio-leds { ++ compatible = gpio-leds; ++ pinctrl-0 = pmx_led_orange ++ pmx_led_green ++ ; ++ pinctrl-names = default; ++ ++ health { ++ label = status:green:health; ++ gpios = gpio1 16 GPIO_ACTIVE_LOW; ++ default-state = keep; ++ }; ++ fault { ++ label = status:orange:fault; ++ gpios = gpio1 17 GPIO_ACTIVE_LOW; ++ }; ++ }; ++ regulators { ++ compatible = simple-bus; ++ #address-cells = 1; ++ #size-cells = 0; ++ pinctrl-0 = pmx_usb_power_enable; ++ pinctrl-names = default; ++ ++ usb_power: regulator@1 { ++ compatible = regulator-fixed; ++ reg = 1; ++ regulator-name = USB Power; ++ regulator-min-microvolt = 500; ++ regulator-max-microvolt = 500; ++ enable-active-high; ++ regulator-always-on; ++ regulator-boot-on; ++ gpio = gpio0 29 GPIO_ACTIVE_HIGH; ++ }; ++ }; ++}; ++ ++nand { ++ chip-delay = 25; ++ status = okay; ++ ++ partition@0 { ++ label = u-boot; ++ reg = 0x000 0x10; ++ read-only; ++ }; ++ ++ partition@10 { ++ label = uImage; ++ reg = 0x010 0x050; ++ }; ++ ++partition@050 { ++label = pogoplug; ++reg = 0x050 0x250; ++}; ++ ++ partition@250 { ++ label = root; ++ reg = 0x250 0x6c0; ++ }; ++}; ++ ++mdio { ++ status = okay; ++ ++ ethphy0: ethernet-phy@0 { ++ reg = 0; ++
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 18a149bb135ad1bc6d336cdabfbd819e2cb7436f Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Sun Jan 4 19:03:48 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Sun Jan 4 19:03:48 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=18a149bb drm/i915: Patch to disallow pin ioctl completely for kms drivers. See bug #532926 --- _README| 16 +++-- ...15-drm-disallow-pin-ioctl-for-kms-drivers.patch | 76 ++ 2 files changed, 86 insertions(+), 6 deletions(-) diff --git a/_README b/_README index f79b1b4..62aec14 100644 --- a/_README +++ b/_README @@ -63,6 +63,10 @@ Patch: 2905_s2disk-resume-image-fix.patch From: Al Viro viro at ZenIV.linux.org.uk Desc: Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344) +Patch: 2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch +From: http://www.kernel.org +Desc: drm/i915: Patch to disallow pin ioctl completely for kms drivers. See bug #532926 + Patch: 4200_fbcondecor-3.16.patch From: http://www.mepiscommunity.org/fbcondecor Desc: Bootsplash ported by Uladzimir Bely (bug #513334) @@ -75,14 +79,14 @@ Patch: 5000_enable-additional-cpu-optimizations-for-gcc.patch From: https://github.com/graysky2/kernel_gcc_patch/ Desc: Kernel patch enables gcc optimizations for additional CPUs. -Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r6-3.18.patch +Patch: 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r6 patch 1 for 3.17: Build, cgroups and kconfig bits +Desc: BFQ v7r7 patch 1 for 3.17: Build, cgroups and kconfig bits -Patch: 5002_block-introduce-the-BFQ-v7r6-I-O-sched-for-3.18.patch1 +Patch: 5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r6 patch 2 for 3.17: BFQ Scheduler +Desc: BFQ v7r7 patch 2 for 3.17: BFQ Scheduler -Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r6-for-3.18.0.patch +Patch: 5003_block-bfq-add-Early-Queue-Merge-EQM-to-BFQ-v7r7-for-3.18.0.patch From: http://algo.ing.unimo.it/people/paolo/disk_sched/ -Desc: BFQ v7r6 patch 3 for 3.17: Early Queue Merge (EQM) +Desc: BFQ v7r7 patch 3 for 3.17: Early Queue Merge (EQM) diff --git a/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch b/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch new file mode 100644 index 000..f298aa4 --- /dev/null +++ b/2710_i915-drm-disallow-pin-ioctl-for-kms-drivers.patch @@ -0,0 +1,76 @@ +From d472fcc8379c062bd56a3876fc6ef22258f14a91 Mon Sep 17 00:00:00 2001 +From: Daniel Vetter daniel.vet...@ffwll.ch +Date: Mon, 24 Nov 2014 11:12:42 +0100 +Subject: drm/i915: Disallow pin ioctl completely for kms drivers + +The problem here is that SNA pins batchbuffers to etch out a bit more +performance. Iirc it started out as a w/a for i830M (which we've +implemented in the kernel since a long time already). The problem is +that the pin ioctl wasn't added in + +commit d23db88c3ab233daed18709e3a24d6c95344117f +Author: Chris Wilson ch...@chris-wilson.co.uk +Date: Fri May 23 08:48:08 2014 +0200 + +drm/i915: Prevent negative relocation deltas from wrapping + +Fix this by simply disallowing pinning from userspace so that the +kernel is in full control of batch placement again. Especially since +distros are moving towards running X as non-root, so most users won't +even be able to see any benefits. + +UMS support is dead now, but we need this minimal patch for +backporting. Follow-up patch will remove the pin ioctl code +completely. + +Note to backporters: You must have both + +commit b45305fce5bb1abec263fcff9d81ebecd6306ede +Author: Daniel Vetter daniel.vet...@ffwll.ch +Date: Mon Dec 17 16:21:27 2012 +0100 + +drm/i915: Implement workaround for broken CS tlb on i830/845 + +which laned in 3.8 and + +commit c4d69da167fa967749aeb70bc0e94a457e5d00c1 +Author: Chris Wilson ch...@chris-wilson.co.uk +Date: Mon Sep 8 14:25:41 2014 +0100 + +drm/i915: Evict CS TLBs between batches + +which is also marked cc: stable. Otherwise this could introduce a +regression by disabling the userspace w/a without the kernel w/a being +fully functional on i830/45. + +References: https://bugs.freedesktop.org/show_bug.cgi?id=76554#c116 +Cc: sta...@vger.kernel.org # requires c4d69da167fa967749a and v3.8 +Cc: Chris Wilson ch...@chris-wilson.co.uk +Signed-off-by: Daniel Vetter daniel.vet...@intel.com + +diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c +index fd17cca..97b86a5 100644 +--- a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c +@@ -4263,7 +4263,7 @@ i915_gem_pin_ioctl(struct drm_device *dev, void *data, + struct drm_i915_gem_object *obj; + int ret; + +- if (INTEL_INFO(dev)-gen = 6) ++ if
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: bcf85145e9c6f5580f132709daa1d5cfe4f85452 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Fri Jan 2 19:06:37 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Fri Jan 2 19:06:37 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=bcf85145 Add DEVPTS_MULTIPLE_INSTANCES when GENTOO_LINUX_INIT_SYSTEMD is selected. See bug #534216 --- 4567_distro-Gentoo-Kconfig.patch | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/4567_distro-Gentoo-Kconfig.patch b/4567_distro-Gentoo-Kconfig.patch index 652e2a7..690454a 100644 --- a/4567_distro-Gentoo-Kconfig.patch +++ b/4567_distro-Gentoo-Kconfig.patch @@ -7,9 +7,9 @@ +source distro/Kconfig + source arch/$SRCARCH/Kconfig 1969-12-31 19:00:00.0 -0500 -+++ b/distro/Kconfig 2014-04-02 09:57:03.539218861 -0400 -@@ -0,0 +1,108 @@ +--- a/distro/Kconfig 1969-12-31 19:00:00.0 -0500 b/distro/Kconfig 2015-01-02 13:54:45.589830665 -0500 +@@ -0,0 +1,109 @@ +menu Gentoo Linux + +config GENTOO_LINUX @@ -87,6 +87,7 @@ + select AUTOFS4_FS + select BLK_DEV_BSG + select CGROUPS ++ select DEVPTS_MULTIPLE_INSTANCES + select EPOLL + select FANOTIFY + select FHANDLE
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 410aa733bb46912b99ce35684653ffe4466c15a3 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Thu Jan 1 14:15:19 2015 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Thu Jan 1 14:15:19 2015 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=410aa733 Bump BFQ to v7r6. Remove old. --- ...oups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch | 4 +- ...ntroduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 | 74 +-- ...ly-Queue-Merge-EQM-to-BFQ-v7r7-for-3.18.0.patch | 84 -- 3 files changed, 100 insertions(+), 62 deletions(-) diff --git a/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r6-3.18.patch b/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch similarity index 97% rename from 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r6-3.18.patch rename to 5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch index 617e934..9f0a7b3 100644 --- a/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r6-3.18.patch +++ b/5001_block-cgroups-kconfig-build-bits-for-BFQ-v7r7-3.18.patch @@ -1,7 +1,7 @@ -From 419f79b0ff5a322c1d0d88a687a207f948c6b2ee Mon Sep 17 00:00:00 2001 +From e5cfe6a861feffa55dda77cd60bdb571fc7c3065 Mon Sep 17 00:00:00 2001 From: Paolo Valente paolo.vale...@unimore.it Date: Mon, 8 Dec 2014 16:04:25 +0100 -Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r6-3.18 +Subject: [PATCH 1/3] block: cgroups, kconfig, build bits for BFQ-v7r7-3.18 Update Kconfig.iosched and do the related Makefile changes to include kernel configuration options for BFQ. Also add the bfqio controller diff --git a/5002_block-introduce-the-BFQ-v7r6-I-O-sched-for-3.18.patch1 b/5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 similarity index 99% rename from 5002_block-introduce-the-BFQ-v7r6-I-O-sched-for-3.18.patch1 rename to 5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 index 981e93f..dcd10f7 100644 --- a/5002_block-introduce-the-BFQ-v7r6-I-O-sched-for-3.18.patch1 +++ b/5002_block-introduce-the-BFQ-v7r7-I-O-sched-for-3.18.patch1 @@ -1,9 +1,9 @@ -From 37542f69f6f11019b792c0b60ddc468edd0d5487 Mon Sep 17 00:00:00 2001 +From df04e0bc0d8b72775a74d45e355af9433f8e420e Mon Sep 17 00:00:00 2001 From: Paolo Valente paolo.vale...@unimore.it Date: Thu, 9 May 2013 19:10:02 +0200 -Subject: [PATCH 2/3] block: introduce the BFQ-v7r6 I/O sched for 3.18 +Subject: [PATCH 2/3] block: introduce the BFQ-v7r7 I/O sched for 3.18 -Add the BFQ-v7r6 I/O scheduler to 3.18. +Add the BFQ-v7r7 I/O scheduler to 3.18. The general structure is borrowed from CFQ, as much of the code for handling I/O contexts. Over time, several useful features have been ported from CFQ as well (details in the changelog in README.BFQ). A @@ -56,12 +56,12 @@ until it expires. Signed-off-by: Paolo Valente paolo.vale...@unimore.it Signed-off-by: Arianna Avanzini avanzini.aria...@gmail.com --- - block/bfq-cgroup.c | 930 + block/bfq-cgroup.c | 936 block/bfq-ioc.c | 36 + - block/bfq-iosched.c | 3887 +++ - block/bfq-sched.c | 1207 - block/bfq.h | 773 ++ - 5 files changed, 6833 insertions(+) + block/bfq-iosched.c | 3902 +++ + block/bfq-sched.c | 1214 + block/bfq.h | 775 ++ + 5 files changed, 6863 insertions(+) create mode 100644 block/bfq-cgroup.c create mode 100644 block/bfq-ioc.c create mode 100644 block/bfq-iosched.c @@ -70,10 +70,10 @@ Signed-off-by: Arianna Avanzini avanzini.aria...@gmail.com diff --git a/block/bfq-cgroup.c b/block/bfq-cgroup.c new file mode 100644 -index 000..eb140eb +index 000..11e2f1d --- /dev/null +++ b/block/bfq-cgroup.c -@@ -0,0 +1,930 @@ +@@ -0,0 +1,936 @@ +/* + * BFQ: CGROUPS support. + * @@ -154,6 +154,12 @@ index 000..eb140eb + entity-new_weight = bfq_ioprio_to_weight(bgrp-ioprio); + entity-new_ioprio = bgrp-ioprio; + } else { ++ if (bgrp-weight BFQ_MIN_WEIGHT || ++ bgrp-weight BFQ_MAX_WEIGHT) { ++ printk(KERN_CRIT bfq_group_init_entity: ++ bgrp-weight %d\n, bgrp-weight); ++ BUG(); ++ } + entity-new_weight = bgrp-weight; + entity-new_ioprio = bfq_weight_to_ioprio(bgrp-weight); + } @@ -1048,10 +1054,10 @@ index 000..7f6b000 +} diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c new file mode 100644 -index 000..b919b03 +index 000..97ee934 --- /dev/null +++ b/block/bfq-iosched.c -@@ -0,0 +1,3887 @@ +@@ -0,0 +1,3902 @@ +/* + * Budget Fair Queueing (BFQ) disk scheduler. + * @@ -3730,7 +3736,7 @@ index 000..b919b03 + switch (ioprio_class) { + default: + dev_err(bfqq-bfqd-queue-backing_dev_info.dev, -+
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 2746011051bd7572b73c0122fda80ead35cec711 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Tue Dec 16 19:43:56 2014 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Tue Dec 16 19:43:56 2014 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=27460110 Linux patch 3.18.1 --- _README |4 + 1000_linux-3.18.1.patch | 1189 +++ 2 files changed, 1193 insertions(+) diff --git a/_README b/_README index bde1067..f79b1b4 100644 --- a/_README +++ b/_README @@ -43,6 +43,10 @@ EXPERIMENTAL Individual Patch Descriptions: -- +Patch: 1000_linux-3.18.1.patch +From: http://www.kernel.org +Desc: Linux 3.18.1 + 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/1000_linux-3.18.1.patch b/1000_linux-3.18.1.patch new file mode 100644 index 000..1dc8609 --- /dev/null +++ b/1000_linux-3.18.1.patch @@ -0,0 +1,1189 @@ +diff --git a/Makefile b/Makefile +index fd80c6e9bc23..3f84029f2b31 100644 +--- a/Makefile b/Makefile +@@ -1,6 +1,6 @@ + VERSION = 3 + PATCHLEVEL = 18 +-SUBLEVEL = 0 ++SUBLEVEL = 1 + EXTRAVERSION = + NAME = Diseased Newt + +diff --git a/arch/mips/net/bpf_jit.c b/arch/mips/net/bpf_jit.c +index 9b55143d19db..9fd6834a2172 100644 +--- a/arch/mips/net/bpf_jit.c b/arch/mips/net/bpf_jit.c +@@ -426,7 +426,7 @@ static inline void emit_mod(unsigned int dst, unsigned int src, + u32 *p = ctx-target[ctx-idx]; + uasm_i_divu(p, dst, src); + p = ctx-target[ctx-idx + 1]; +- uasm_i_mflo(p, dst); ++ uasm_i_mfhi(p, dst); + } + ctx-idx += 2; /* 2 insts */ + } +@@ -971,7 +971,7 @@ load_ind: + break; + case BPF_ALU | BPF_MOD | BPF_K: + /* A %= k */ +- if (k == 1 || optimize_div(k)) { ++ if (k == 1) { + ctx-flags |= SEEN_A; + emit_jit_reg_move(r_A, r_zero, ctx); + } else { +diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c +index 87ba7cf99cd7..65d633f20d37 100644 +--- a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c +@@ -164,7 +164,7 @@ static void spufs_prune_dir(struct dentry *dir) + struct dentry *dentry, *tmp; + + mutex_lock(dir-d_inode-i_mutex); +- list_for_each_entry_safe(dentry, tmp, dir-d_subdirs, d_u.d_child) { ++ list_for_each_entry_safe(dentry, tmp, dir-d_subdirs, d_child) { + spin_lock(dentry-d_lock); + if (!(d_unhashed(dentry)) dentry-d_inode) { + dget_dlock(dentry); +diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c +index ade067de1689..67a84cfaefa1 100644 +--- a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c +@@ -216,7 +216,7 @@ + /* Various constants */ + + /* Coalescing */ +-#define MVNETA_TXDONE_COAL_PKTS 16 ++#define MVNETA_TXDONE_COAL_PKTS 1 + #define MVNETA_RX_COAL_PKTS 32 + #define MVNETA_RX_COAL_USEC 100 + +@@ -1721,6 +1721,7 @@ static int mvneta_tx(struct sk_buff *skb, struct net_device *dev) + u16 txq_id = skb_get_queue_mapping(skb); + struct mvneta_tx_queue *txq = pp-txqs[txq_id]; + struct mvneta_tx_desc *tx_desc; ++ int len = skb-len; + int frags = 0; + u32 tx_cmd; + +@@ -1788,7 +1789,7 @@ out: + + u64_stats_update_begin(stats-syncp); + stats-tx_packets++; +- stats-tx_bytes += skb-len; ++ stats-tx_bytes += len; + u64_stats_update_end(stats-syncp); + } else { + dev-stats.tx_dropped++; +diff --git a/drivers/net/vxlan.c b/drivers/net/vxlan.c +index be4649a49c5e..42b2d6a56d05 100644 +--- a/drivers/net/vxlan.c b/drivers/net/vxlan.c +@@ -1995,9 +1995,8 @@ static int vxlan_init(struct net_device *dev) + spin_lock(vn-sock_lock); + vs = vxlan_find_sock(vxlan-net, ipv6 ? AF_INET6 : AF_INET, +vxlan-dst_port); +- if (vs) { ++ if (vs atomic_add_unless(vs-refcnt, 1, 0)) { + /* If we have a socket with same port already, reuse it */ +- atomic_inc(vs-refcnt); + vxlan_vs_add_dev(vs, vxlan); + } else { + /* otherwise make new socket outside of RTNL */ +@@ -2396,12 +2395,9 @@ struct vxlan_sock *vxlan_sock_add(struct net *net, __be16 port, + + spin_lock(vn-sock_lock); + vs = vxlan_find_sock(net, ipv6 ? AF_INET6 : AF_INET, port); +- if (vs) { +- if
[gentoo-commits] proj/linux-patches:3.18 commit in: /
commit: 05f871e03f13d99674e5ccce73f8a6dcee968ac8 Author: Mike Pagano mpagano AT gentoo DOT org AuthorDate: Wed Nov 26 00:35:58 2014 + Commit: Mike Pagano mpagano AT gentoo DOT org CommitDate: Wed Nov 26 00:35:58 2014 + URL: http://sources.gentoo.org/gitweb/?p=proj/linux-patches.git;a=commit;h=05f871e0 Support for namespace user.pax.* on tmpfs. ACPI: Disable Windows 8 compatibility for some Lenovo ThinkPads.Ensure that /dev/root doesn't appear in /proc/mounts when bootint without an initramfs. Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344). Bootsplash ported by Uladzimir Bely (bug #513334).Add Gentoo Linux support config settings and defaults.Kernel patch enables gcc optimizations for additional CPUs. --- _README| 20 + 2700_ThinkPad-30-brightness-control-fix.patch | 67 + 2900_dev-root-proc-mount-fix.patch | 30 + 2905_2disk-resume-image-fix.patch | 24 + 4200_fbcondecor-3.16.patch | 2119 ...able-additional-cpu-optimizations-for-gcc.patch | 327 +++ 6 files changed, 2587 insertions(+) diff --git a/_README b/_README index 36c2b96..7a25c41 100644 --- a/_README +++ b/_README @@ -47,6 +47,26 @@ 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: 2700_ThinkPad-30-brightness-control-fix.patch +From: Seth Forshee seth.fors...@canonical.com +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: 2905_s2disk-resume-image-fix.patch +From: Al Viro viro at ZenIV.linux.org.uk +Desc: Do not lock when UMH is waiting on current thread spawned by linuxrc. (bug #481344) + +Patch: 4200_fbcondecor-3.16.patch +From: http://www.mepiscommunity.org/fbcondecor +Desc: Bootsplash ported by Uladzimir Bely (bug #513334) + Patch: 4567_distro-Gentoo-Kconfig.patch From: Tom Wijsman tom...@gentoo.org 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 optimizations for additional CPUs. 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(DMI_PRODUCT_VERSION, ThinkPad T430s), ++ }, ++ }, ++ { ++ .callback = dmi_disable_osi_win8, ++ .ident = Lenovo ThinkPad T530, ++ .matches = { ++ DMI_MATCH(DMI_SYS_VENDOR, LENOVO), ++ DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad T530), ++ }, ++ }, ++ { ++ .callback = dmi_disable_osi_win8, ++ .ident = Lenovo ThinkPad W530, ++ .matches = { ++ DMI_MATCH(DMI_SYS_VENDOR, LENOVO), ++ DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad W530), ++ }, ++ }, ++ { ++ .callback = dmi_disable_osi_win8, ++ .ident = Lenovo ThinkPad X1 Carbon, ++ .matches = { ++ DMI_MATCH(DMI_SYS_VENDOR, LENOVO), ++ DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad X1 Carbon), ++ }, ++ }, ++ { ++ .callback = dmi_disable_osi_win8, ++ .ident = Lenovo ThinkPad X230, ++ .matches = { ++ DMI_MATCH(DMI_SYS_VENDOR, LENOVO), ++ DMI_MATCH(DMI_PRODUCT_VERSION, ThinkPad X230), ++ }, ++ }, ++ ++ /* +* BIOS invocation of _OSI(Linux) is almost always a BIOS bug. +