Linux 3.10.36
Greg KH
maintainerI'm announcing the release of the 3.10.36 kernel.
All users of the 3.10 kernel series must upgrade.
The updated 3.10.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.10.y
and can be browsed at the normal kernel.org git web browser:
http://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Makefile | 2 arch/x86/include/asm/topology.h | 3 - drivers/block/aoe/aoecmd.c | 2 drivers/input/mouse/cypress_ps2.c | 1 drivers/input/mouse/synaptics.c | 55 ++++++++++++++++++++++++ drivers/input/mousedev.c | 73 ++++++++++++++++++-------------- drivers/net/ethernet/marvell/mvneta.c | 4 - drivers/vfio/vfio_iommu_type1.c | 4 - fs/ext4/inode.c | 15 +++--- fs/proc/page.c | 2 include/linux/bitops.h | 15 ++++++ include/linux/huge_mm.h | 18 ------- include/linux/mm.h | 14 +++++- mm/ksm.c | 2 mm/memory-failure.c | 2 mm/page_alloc.c | 4 + mm/swap.c | 4 - net/netfilter/nf_conntrack_proto_dccp.c | 6 +- virt/kvm/kvm_main.c | 4 - 19 files changed, 154 insertions(+), 76 deletions(-)
Artem Fetishev (1):
x86: fix boot on uniprocessor systems
Benjamin Tissoires (1):
Input: synaptics - add manual min/max quirk
Daniel Borkmann (1):
netfilter: nf_conntrack_dccp: fix skb_header_pointer API usages
David Rientjes (1):
mm: close PageTail race
Dmitry Torokhov (1):
Input: mousedev - fix race when creating mixed device
Greg Kroah-Hartman (1):
Linux 3.10.36
Hans de Goede (2):
Input: synaptics - add manual min/max quirk for ThinkPad X240
Input: cypress_ps2 - don't report as a button pads
Theodore Ts'o (1):
ext4: atomically set inode->i_flags in ext4_set_inode_flags()
Thomas Petazzoni (1):
net: mvneta: rename MVNETA_GMAC2_PSC_ENABLE to MVNETA_GMAC2_PCS_ENABLE
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 10 -SUBLEVEL = 35 +SUBLEVEL = 36 EXTRAVERSION = NAME = TOSSUG Baby Fish
arch/x86/include/asm/topology.h +2 -1
@@ -119,9 +119,10 @@ static inline void setup_node_to_cpumask_map(void) { }extern const struct cpumask *cpu_coregroup_mask (int cpu); -#ifdef ENABLE_TOPO_DEFINES #define topology_physical_package_id (cpu) (cpu_data(cpu).phys_proc_id)#define topology_core_id (cpu) (cpu_data(cpu).cpu_core_id) + +#ifdef ENABLE_TOPO_DEFINES #define topology_core_cpumask (cpu) (per_cpu(cpu_core_map, cpu))#define topology_thread_cpumask (cpu) (per_cpu(cpu_sibling_map, cpu))
drivers/block/aoe/aoecmd.c +1 -1
@@ -899,7 +899,7 @@ bio_pageinc(struct bio *bio)* but this has never been seen here. */ if (unlikely (PageCompound (page))) -if (compound_trans_head (page) != page) { +if (compound_head (page) != page) {pr_crit ("page tail used for block I/O\n" );BUG (); }
drivers/input/mouse/cypress_ps2.c +0 -1
@@ -410,7 +410,6 @@ static int cypress_set_input_params(struct input_dev *input,__clear_bit (REL_X , input->relbit);__clear_bit (REL_Y , input->relbit); -__set_bit (INPUT_PROP_BUTTONPAD , input->propbit);__set_bit (EV_KEY , input->evbit);__set_bit (BTN_LEFT , input->keybit);__set_bit (BTN_RIGHT , input->keybit);
drivers/input/mouse/synaptics.c +55 -0
76 lines not on this page · raw message
drivers/input/mousedev.c +42 -31
159 lines not on this page · raw message
drivers/net/ethernet/marvell/mvneta.c +2 -2
@@ -119,7 +119,7 @@#define MVNETA_GMAC_MAX_RX_SIZE_MASK 0x7ffc#define MVNETA_GMAC0_PORT_ENABLE BIT(0)#define MVNETA_GMAC_CTRL_2 0x2c08 -#define MVNETA_GMAC2_PSC_ENABLE BIT(3) +#define MVNETA_GMAC2_PCS_ENABLE BIT(3)#define MVNETA_GMAC2_PORT_RGMII BIT(4)#define MVNETA_GMAC2_PORT_RESET BIT(6)#define MVNETA_GMAC_STATUS 0x2c10
@@ -655,7 +655,7 @@ static void mvneta_port_sgmii_config(struct mvneta_port *pp)u32 val; val =mvreg_read (pp,MVNETA_GMAC_CTRL_2 ); - val |=MVNETA_GMAC2_PSC_ENABLE ; + val |=MVNETA_GMAC2_PCS_ENABLE ;mvreg_write (pp,MVNETA_GMAC_CTRL_2 , val); }
drivers/vfio/vfio_iommu_type1.c +2 -2
@@ -138,12 +138,12 @@ static bool is_invalid_reserved_pfn(unsigned long pfn)if (pfn_valid (pfn)) {bool reserved;struct page *tail =pfn_to_page (pfn); -struct page *head =compound_trans_head (tail); +struct page *head =compound_head (tail); reserved = !!(PageReserved (head));if (head != tail) {/* * "head" is not a dangling pointer -* (compound_trans_head takes care of that) +* (compound_head takes care of that) * but the hugepage may have been split * from under us (and we may not hold a * reference count on the head page so it can
fs/ext4/inode.c +9 -6
@@ -38,6 +38,7 @@#include <linux/slab.h> #include <linux/ratelimit.h> #include <linux/aio.h> +#include <linux/bitops.h> #include "ext4_jbd2.h" #include "xattr.h"
@@ -4044,18 +4045,20 @@ int ext4_get_inode_loc(struct inode *inode, struct ext4_iloc *iloc)void ext4_set_inode_flags (struct inode *inode) {unsigned int flags =EXT4_I (inode)->i_flags; +unsigned int new_fl =0 ; - inode->i_flags &= ~(S_SYNC |S_APPEND |S_IMMUTABLE |S_NOATIME |S_DIRSYNC );if (flags &EXT4_SYNC_FL ) - inode->i_flags |=S_SYNC ; + new_fl |=S_SYNC ;if (flags &EXT4_APPEND_FL ) - inode->i_flags |=S_APPEND ; + new_fl |=S_APPEND ;if (flags &EXT4_IMMUTABLE_FL ) - inode->i_flags |=S_IMMUTABLE ; + new_fl |=S_IMMUTABLE ;if (flags &EXT4_NOATIME_FL ) - inode->i_flags |=S_NOATIME ; + new_fl |=S_NOATIME ;if (flags &EXT4_DIRSYNC_FL ) - inode->i_flags |=S_DIRSYNC ; + new_fl |=S_DIRSYNC ; +set_mask_bits (&inode->i_flags, +S_SYNC |S_APPEND |S_IMMUTABLE |S_NOATIME |S_DIRSYNC , new_fl); }/* Propagate flags from i_flags to EXT4_I(inode)->i_flags */
fs/proc/page.c +1 -1
@@ -121,7 +121,7 @@ u64 stable_page_flags(struct page *page)* just checks PG_head/PG_tail, so we need to check PageLRU to make * sure a given page is a thp, not a non-huge compound page. */ - else if (PageTransCompound(page) && PageLRU(compound_trans_head(page))) + else if (PageTransCompound(page) && PageLRU(compound_head(page))) u |= 1 << KPF_THP;/*
include/linux/bitops.h +15 -0
@@ -185,6 +185,21 @@ static inline unsigned long __ffs64(u64 word)#ifdef __KERNEL__ +#ifndef set_mask_bits +#define set_mask_bits (ptr, _mask, _bits) \ +({ \ + const typeof(*ptr) mask = (_mask), bits = (_bits); \ + typeof(*ptr) old, new; \ + \ + do { \ + old = ACCESS_ONCE(*ptr); \ + new = (old & ~mask) | bits; \ + } while (cmpxchg(ptr, old, new) != old); \ + \ + new; \ +}) +#endif +#ifndef find_last_bit/** * find_last_bit - find the last set bit in a memory region
include/linux/huge_mm.h +0 -18
@@ -159,23 +159,6 @@ static inline int hpage_nr_pages(struct page *page)return HPAGE_PMD_NR ;return 1 ; } -static inline struct page *compound_trans_head (struct page *page) -{ -if (PageTail (page)) { -struct page *head; - head = page->first_page; -smp_rmb (); -/* -* head may be a dangling pointer. -* __split_huge_page_refcount clears PageTail before -* overwriting first_page, so if PageTail is still -* there it means the head pointer isn't dangling. -*/ -if (PageTail (page)) -return head; - } -return page; -}extern int do_huge_pmd_numa_page (struct mm_struct *mm,struct vm_area_struct *vma,unsigned long addr,pmd_t pmd,pmd_t *pmdp);
@@ -205,7 +188,6 @@ static inline int split_huge_page(struct page *page) do { } while (0)#define split_huge_page_pmd_mm (__mm, __address, __pmd) \ do { } while (0) -#define compound_trans_head (page) compound_head(page)static inline int hugepage_madvise (struct vm_area_struct *vma,unsigned long *vm_flags,int advice) {
include/linux/mm.h +12 -2
@@ -361,8 +361,18 @@ static inline void compound_unlock_irqrestore(struct page *page,static inline struct page *compound_head (struct page *page) { -if (unlikely (PageTail (page))) -return page->first_page; +if (unlikely (PageTail (page))) { +struct page *head = page->first_page; + +/* +* page->first_page may be a dangling pointer to an old +* compound page, so recheck that it is still a tail +* page before returning. +*/ +smp_rmb (); +if (likely (PageTail (page))) +return head; + }return page; }
mm/ksm.c +1 -1
@@ -444,7 +444,7 @@ static void break_cow(struct rmap_item *rmap_item)static struct page *page_trans_compound_anon (struct page *page) {if (PageTransCompound (page)) { -struct page *head =compound_trans_head (page); +struct page *head =compound_head (page);/* * head may actually be splitted and freed from under * us but it's ok here.
mm/memory-failure.c +1 -1
@@ -1544,7 +1544,7 @@ int soft_offline_page(struct page *page, int flags) {int ret;unsigned long pfn =page_to_pfn (page); -struct page *hpage =compound_trans_head (page); +struct page *hpage =compound_head (page);if (PageHWPoison (page)) {pr_info ("soft offline: %#lx page already poisoned\n" , pfn);
mm/page_alloc.c +3 -1
@@ -360,9 +360,11 @@ void prep_compound_page(struct page *page, unsigned long order)__SetPageHead (page);for (i =1 ; i < nr_pages; i++) {struct page *p = page + i; -__SetPageTail (p);set_page_count (p,0 ); p->first_page = page; +/* Make sure p->first_page is always valid for PageTail() */ +smp_wmb (); +__SetPageTail (p); } }
mm/swap.c +2 -2
@@ -81,7 +81,7 @@ static void put_compound_page(struct page *page) {if (unlikely (PageTail (page))) {/* __split_huge_page_refcount can run under us */ -struct page *page_head =compound_trans_head (page); +struct page *page_head =compound_head (page);if (likely (page != page_head &&get_page_unless_zero (page_head))) {
@@ -219,7 +219,7 @@ bool __get_page_tail(struct page *page)*/ unsigned long flags;bool got = false; -struct page *page_head =compound_trans_head (page); +struct page *page_head =compound_head (page);if (likely (page != page_head &&get_page_unless_zero (page_head))) {/* Ref to put_compound_page() comment. */
net/netfilter/nf_conntrack_proto_dccp.c +3 -3
@@ -428,7 +428,7 @@ static bool dccp_new(struct nf_conn *ct, const struct sk_buff *skb,const char *msg;u_int8_t state; - dh =skb_header_pointer (skb, dataoff,sizeof (_dh), &dh); + dh =skb_header_pointer (skb, dataoff,sizeof (_dh), &_dh);BUG_ON (dh ==NULL ); state = dccp_state_table[CT_DCCP_ROLE_CLIENT ][dh->dccph_type][CT_DCCP_NONE ];
@@ -486,7 +486,7 @@ static int dccp_packet(struct nf_conn *ct, const struct sk_buff *skb,u_int8_t type, old_state, new_state;enum ct_dccp_roles role; - dh =skb_header_pointer (skb, dataoff,sizeof (_dh), &dh); + dh =skb_header_pointer (skb, dataoff,sizeof (_dh), &_dh);BUG_ON (dh ==NULL ); type = dh->dccph_type;
@@ -577,7 +577,7 @@ static int dccp_error(struct net *net, struct nf_conn *tmpl,unsigned int cscov;const char *msg; - dh =skb_header_pointer (skb, dataoff,sizeof (_dh), &dh); + dh =skb_header_pointer (skb, dataoff,sizeof (_dh), &_dh);if (dh ==NULL ) { msg ="nf_ct_dccp: short packet " ; goto out_invalid;
virt/kvm/kvm_main.c +2 -2
@@ -105,12 +105,12 @@ bool kvm_is_mmio_pfn(pfn_t pfn)if (pfn_valid (pfn)) {int reserved;struct page *tail =pfn_to_page (pfn); -struct page *head =compound_trans_head (tail); +struct page *head =compound_head (tail); reserved =PageReserved (head);if (head != tail) {/* * "head" is not a dangling pointer -* (compound_trans_head takes care of that) +* (compound_head takes care of that) * but the hugepage may have been splitted * from under us (and we may not hold a * reference count on the head page so it can