Linux 3.14.27
Greg KH
maintainerI'm announcing the release of the 3.14.27 kernel.
All users of the 3.14 kernel series must upgrade.
The updated 3.14.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-3.14.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/powerpc/kernel/vdso32/getcpu.S | 4 - arch/x86/boot/compressed/Makefile | 2 arch/x86/kernel/cpu/perf_event.c | 3 arch/x86/kernel/cpu/perf_event.h | 12 +-- arch/x86/kernel/cpu/perf_event_intel.c | 66 +++++++++++++++++- drivers/ata/ahci.c | 4 + drivers/ata/sata_fsl.c | 2 drivers/gpu/drm/i915/intel_display.c | 2 drivers/gpu/drm/i915/intel_lvds.c | 22 +++--- drivers/gpu/drm/radeon/radeon_kms.c | 2 drivers/i2c/busses/i2c-davinci.c | 8 -- drivers/i2c/busses/i2c-omap.c | 10 +- drivers/media/i2c/smiapp/smiapp-core.c | 2 drivers/net/ethernet/broadcom/tg3.c | 3 drivers/net/ethernet/intel/igb/igb_main.c | 2 drivers/net/ethernet/marvell/mvneta.c | 5 - drivers/net/ethernet/mellanox/mlx4/resource_tracker.c | 2 drivers/net/vxlan.c | 10 -- drivers/net/xen-netfront.c | 5 - drivers/usb/host/xhci-ring.c | 40 ++-------- drivers/usb/host/xhci.c | 60 ++++------------ mm/frontswap.c | 4 - mm/memory.c | 26 +++---- mm/mmap.c | 10 +- mm/rmap.c | 6 + mm/vmpressure.c | 8 +- net/core/rtnetlink.c | 1 net/ipv4/gre_offload.c | 3 net/ipv4/ip_vti.c | 1 net/ipv6/ip6_gre.c | 4 - net/ipv6/ip6_vti.c | 11 +++ net/mac80211/aes_ccm.c | 3 net/sctp/output.c | 4 - sound/pci/hda/patch_analog.c | 1 sound/pci/hda/patch_realtek.c | 1 sound/usb/midi.c | 2 37 files changed, 201 insertions(+), 152 deletions(-)
Alexander Kochetkov (2):
i2c: omap: fix NACK and Arbitration Lost irq handling
i2c: omap: fix i207 errata handling
Andrew Morton (1):
mm/vmpressure.c: fix race in vmpressure_work_fn()
Anton Blanchard (1):
powerpc: 32 bit getcpu VDSO function uses 64 bit instructions
Chris Clayton (1):
x86: Use $(OBJDUMP) instead of plain objdump
Daniel Borkmann (1):
net: sctp: use MAX_HEADER for headroom reserve in output path
Daniel Forrest (1):
mm: fix anon_vma_clone() error treatment
Daniel Vetter (2):
drm/i915: More cautious with pch fifo underruns drm/i915: Unlock panel even when LVDS is disabled
Devin Ryles (1):
AHCI: Add DeviceIDs for Sunrise Point-LP SATA controller
Dmitry Torokhov (1):
sata_fsl: fix error handling of irq_of_parse_and_map
Eric Dumazet (1):
net: mvneta: fix race condition in mvneta_tx()
Greg Kroah-Hartman (1):
Linux 3.14.27
Grygorii Strashko (1):
i2c: davinci: generate STP always when NACK is received
Hugh Dickins (1):
mm: fix swapoff hang after page migration and fork
Jack Morgenstein (1):
net/mlx4_core: Limit count field to 24 bits in qp_alloc_res
Kan Liang (1):
perf/x86/intel: Protect LBR and extra_regs against KVM lying
Marcelo Leitner (1):
Fix race condition between vxlan_sock_add and vxlan_sock_release
Mathias Nyman (1):
USB: xhci: Reset a halted endpoint immediately when we encounter a stall.
Nicolas Dichtel (1):
rtnetlink: release net refcnt on error in do_setlink()
Petr Mladek (1):
drm/radeon: kernel panic in drm_calc_vbltimestamp_from_scanoutpos with 3.18.0-rc6
Ronald Wahl (1):
mac80211: Fix regression that triggers a kernel BUG with CCMP
Sakari Ailus (1):
media: smiapp: Only some selection targets are settable
Seth Forshee (1):
xen-netfront: Remove BUGs on paged skb data which crosses a page boundary
Takashi Iwai (3):
ALSA: hda - Add EAPD fixup for ASUS Z99He laptop
ALSA: hda - Fix built-in mic at resume on Lenovo Ideapad S210
ALSA: usb-audio: Don't resubmit pending URBs at MIDI error recovery
Tejun Heo (1):
ahci: disable MSI on SAMSUNG 0xa800 SSD
Thadeu Lima de Souza Cascardo (1):
tg3: fix ring init when there are more TX than RX channels
Todd Fujinaka (1):
igb: bring link up when PHY is powered up
Tom Herbert (1):
gre: Set inner mac header in gro complete
Weijie Yang (1):
mm: frontswap: invalidate expired data on a dup-store failure
Yuri Chislov (1):
ipv6: gre: fix wrong skb->protocol in WCCP
lucien (1):
ip_tunnel: the lack of vti_link_ops' dellink() cause kernel panic
willy tarreau (1):
net: mvneta: fix Tx interrupt delay
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 26 +SUBLEVEL = 27 EXTRAVERSION = NAME = Remembering Coco
arch/powerpc/kernel/vdso32/getcpu.S +2 -2
@@ -30,8 +30,8 @@ V_FUNCTION_BEGIN(__kernel_getcpu) .cfi_startproc mfspr r5,SPRN_USPRG3 - cmpdi cr0,r3,0 - cmpdi cr1,r4,0 + cmpwi cr0,r3,0 + cmpwi cr1,r4,0 clrlwi r6,r5,16 rlwinm r7,r5,16,31-15,31-0 beq cr0,1f
arch/x86/boot/compressed/Makefile +1 -1
@@ -75,7 +75,7 @@ suffix-$(CONFIG_KERNEL_XZ) := xz suffix-$(CONFIG_KERNEL_LZO) := lzo suffix-$(CONFIG_KERNEL_LZ4) := lz4 -RUN_SIZE = $(shell objdump -h vmlinux | \ +RUN_SIZE = $(shell $(OBJDUMP) -h vmlinux | \ perl $(srctree)/arch/x86/tools/calc_run_size.pl) quiet_cmd_mkpiggy = MKPIGGY $@ cmd_mkpiggy = $(obj)/mkpiggy $< $(RUN_SIZE) > $@ || ( rm -f $@ ; false )
arch/x86/kernel/cpu/perf_event.c +3 -0
@@ -118,6 +118,9 @@ static int x86_pmu_extra_regs(u64 config, struct perf_event *event)continue ;if (event->attr.config1 & ~er->valid_mask)return -EINVAL ; +/* Check if the extra msrs can be safely accessed*/ +if (!er->extra_msr_access) +return -ENXIO ; reg->idx = er->idx; reg->config = event->attr.config1;
arch/x86/kernel/cpu/perf_event.h +7 -5
@@ -293,14 +293,16 @@ struct extra_reg {u64 config_mask;u64 valid_mask;int idx;/* per_xxx->regs[] reg index */ +bool extra_msr_access; };#define EVENT_EXTRA_REG (e, ms, m, vm, i) { \ - .event = (e), \ - .msr = (ms), \ - .config_mask = (m), \ - .valid_mask = (vm), \ - .idx = EXTRA_REG_##i, \ + .event = (e), \ + .msr = (ms), \ + .config_mask = (m), \ + .valid_mask = (vm), \ + .idx = EXTRA_REG_##i, \ + .extra_msr_access = true, \ }#define INTEL_EVENT_EXTRA_REG (event, msr, vm, idx) \
arch/x86/kernel/cpu/perf_event_intel.c +65 -1
84 lines not on this page · raw message
drivers/ata/ahci.c +4 -0
@@ -322,6 +322,9 @@ static const struct pci_device_id ahci_pci_tbl[] = { { PCI_VDEVICE(INTEL, 0x8c87), board_ahci }, /* 9 Series RAID */ { PCI_VDEVICE(INTEL, 0x8c8e), board_ahci }, /* 9 Series RAID */ { PCI_VDEVICE(INTEL, 0x8c8f), board_ahci }, /* 9 Series RAID */ + { PCI_VDEVICE(INTEL, 0x9d03), board_ahci }, /* Sunrise Point-LP AHCI */ + { PCI_VDEVICE(INTEL, 0x9d05), board_ahci }, /* Sunrise Point-LP RAID */ + { PCI_VDEVICE(INTEL, 0x9d07), board_ahci }, /* Sunrise Point-LP RAID */ { PCI_VDEVICE(INTEL, 0xa103), board_ahci }, /* Sunrise Point-H AHCI */ { PCI_VDEVICE(INTEL, 0xa103), board_ahci }, /* Sunrise Point-H RAID */ { PCI_VDEVICE(INTEL, 0xa105), board_ahci }, /* Sunrise Point-H RAID */
@@ -493,6 +496,7 @@ static const struct pci_device_id ahci_pci_tbl[] = {* enabled. https://bugzilla.kernel.org/show_bug.cgi?id=60731 */ { PCI_VDEVICE(SAMSUNG, 0x1600), board_ahci_nomsi }, + { PCI_VDEVICE(SAMSUNG, 0xa800), board_ahci_nomsi },/* Enmotus */ { PCI_DEVICE(0x1c44, 0x8000), board_ahci },
drivers/ata/sata_fsl.c +1 -1
@@ -1503,7 +1503,7 @@ static int sata_fsl_probe(struct platform_device *ofdev) host_priv->csr_base = csr_base; irq =irq_of_parse_and_map (ofdev->dev.of_node,0 ); -if (irq <0 ) { +if (!irq) {dev_err (&ofdev->dev,"invalid irq from platform\n" ); goto error_exit_with_cleanup; }
drivers/gpu/drm/i915/intel_display.c +0 -2
@@ -3817,7 +3817,6 @@ static void ironlake_crtc_disable(struct drm_crtc *crtc)ironlake_fdi_disable (crtc);ironlake_disable_pch_transcoder (dev_priv, pipe); -intel_set_pch_fifo_underrun_reporting (dev, pipe, true);if (HAS_PCH_CPT (dev)) {/* disable TRANS_DP_CTL */
@@ -3883,7 +3882,6 @@ static void haswell_crtc_disable(struct drm_crtc *crtc)if (intel_crtc->config.has_pch_encoder) {lpt_disable_pch_transcoder (dev_priv); -intel_set_pch_fifo_underrun_reporting (dev,TRANSCODER_A , true);intel_ddi_fdi_disable (crtc); }
drivers/gpu/drm/i915/intel_lvds.c +11 -11
@@ -905,6 +905,17 @@ void intel_lvds_init(struct drm_device *dev)int pipe;u8 pin; +/* +* Unlock registers and just leave them unlocked. Do this before +* checking quirk lists to avoid bogus WARNINGs. +*/ +if (HAS_PCH_SPLIT (dev)) { +I915_WRITE (PCH_PP_CONTROL , +I915_READ (PCH_PP_CONTROL ) |PANEL_UNLOCK_REGS ); + }else { +I915_WRITE (PP_CONTROL , +I915_READ (PP_CONTROL ) |PANEL_UNLOCK_REGS ); + }if (!intel_lvds_supported (dev))return ;
@@ -1099,17 +1110,6 @@ out:DRM_DEBUG_KMS ("detected %s-link lvds configuration\n" , lvds_encoder->is_dual_link ?"dual" :"single" ); -/* -* Unlock registers and just -* leave them unlocked -*/ -if (HAS_PCH_SPLIT (dev)) { -I915_WRITE (PCH_PP_CONTROL , -I915_READ (PCH_PP_CONTROL ) |PANEL_UNLOCK_REGS ); - }else { -I915_WRITE (PP_CONTROL , -I915_READ (PP_CONTROL ) |PANEL_UNLOCK_REGS ); - } lvds_connector->lid_notifier.notifier_call = intel_lid_notify;if (acpi_lid_notifier_register (&lvds_connector->lid_notifier)) {DRM_DEBUG_KMS ("lid notifier registration failed\n" );
drivers/gpu/drm/radeon/radeon_kms.c +2 -0
@@ -740,6 +740,8 @@ int radeon_get_vblank_timestamp_kms(struct drm_device *dev, int crtc,/* Get associated drm_crtc: */ drmcrtc = &rdev->mode_info.crtcs[crtc]->base; +if (!drmcrtc) +return -EINVAL ;/* Helper routine in DRM core does all the work: */ return drm_calc_vbltimestamp_from_scanoutpos(dev, crtc, max_error,
drivers/i2c/busses/i2c-davinci.c +3 -5
@@ -411,11 +411,9 @@ i2c_davinci_xfer_msg(struct i2c_adapter *adap, struct i2c_msg *msg, int stop)if (dev->cmd_err &DAVINCI_I2C_STR_NACK ) {if (msg->flags &I2C_M_IGNORE_NAK )return msg->len; -if (stop) { - w =davinci_i2c_read_reg (dev,DAVINCI_I2C_MDR_REG ); - w |=DAVINCI_I2C_MDR_STP ; -davinci_i2c_write_reg (dev,DAVINCI_I2C_MDR_REG , w); - } + w =davinci_i2c_read_reg (dev,DAVINCI_I2C_MDR_REG ); + w |=DAVINCI_I2C_MDR_STP ; +davinci_i2c_write_reg (dev,DAVINCI_I2C_MDR_REG , w);return -EREMOTEIO ; }return -EIO ;
drivers/i2c/busses/i2c-omap.c +5 -5
@@ -926,14 +926,12 @@ omap_i2c_isr_thread(int this_irq, void *dev_id)if (stat &OMAP_I2C_STAT_NACK ) { err |=OMAP_I2C_STAT_NACK ;omap_i2c_ack_stat (dev,OMAP_I2C_STAT_NACK ); -break ; }if (stat &OMAP_I2C_STAT_AL ) {dev_err (dev->dev,"Arbitration lost\n" ); err |=OMAP_I2C_STAT_AL ;omap_i2c_ack_stat (dev,OMAP_I2C_STAT_AL ); -break ; }/*
@@ -958,11 +956,13 @@ omap_i2c_isr_thread(int this_irq, void *dev_id)if (dev->fifo_size) num_bytes = dev->buf_len; -omap_i2c_receive_data (dev, num_bytes, true); - -if (dev->errata &I2C_OMAP_ERRATA_I207 ) +if (dev->errata &I2C_OMAP_ERRATA_I207 ) {i2c_omap_errata_i207 (dev, stat); + num_bytes = (omap_i2c_read_reg (dev, +OMAP_I2C_BUFSTAT_REG ) >>8 ) &0x3F ; + } +omap_i2c_receive_data (dev, num_bytes, true);omap_i2c_ack_stat (dev,OMAP_I2C_STAT_RDR );continue ; }
drivers/media/i2c/smiapp/smiapp-core.c +1 -1
@@ -2138,7 +2138,7 @@ static int smiapp_set_selection(struct v4l2_subdev *subdev, ret =smiapp_set_compose (subdev, fh, sel);break ;default : -BUG (); + ret = -EINVAL ; }mutex_unlock (&sensor->mutex);
drivers/net/ethernet/broadcom/tg3.c +2 -1
@@ -8548,7 +8548,8 @@ static int tg3_init_rings(struct tg3 *tp)if (tnapi->rx_rcb)memset (tnapi->rx_rcb,0 ,TG3_RX_RCB_RING_BYTES (tp)); -if (tg3_rx_prodring_alloc (tp, &tnapi->prodring)) { +if (tnapi->prodring.rx_std && +tg3_rx_prodring_alloc (tp, &tnapi->prodring)) {tg3_free_rings (tp);return -ENOMEM ; }
drivers/net/ethernet/intel/igb/igb_main.c +2 -0
@@ -1613,6 +1613,8 @@ void igb_power_up_link(struct igb_adapter *adapter)igb_power_up_phy_copper (&adapter->hw); else igb_power_up_serdes_link_82575(&adapter->hw); + +igb_setup_link (&adapter->hw); }/**
drivers/net/ethernet/marvell/mvneta.c +3 -2
@@ -213,7 +213,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
@@ -1612,6 +1612,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;struct netdev_queue *nq;int frags =0 ;u32 tx_cmd;
@@ -1675,7 +1676,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++;
drivers/net/ethernet/mellanox/mlx4/resource_tracker.c +1 -1
@@ -1456,7 +1456,7 @@ static int qp_alloc_res(struct mlx4_dev *dev, int slave, int op, int cmd,switch (op) {case RES_OP_RESERVE : - count =get_param_l (&in_param); + count =get_param_l (&in_param) &0xffffff ; align =get_param_h (&in_param); err =mlx4_grant_resource (dev, slave,RES_QP , count,0 );if (err)
drivers/net/vxlan.c +3 -7
@@ -2106,9 +2106,8 @@ static int vxlan_init(struct net_device *dev)spin_lock (&vn->sock_lock); vs =vxlan_find_sock (dev_net (dev), 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 */
@@ -2574,12 +2573,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 (vs->rcv == rcv) -atomic_inc (&vs->refcnt); -else +if (vs && ((vs->rcv != rcv) || + !atomic_add_unless (&vs->refcnt,1 ,0 ))) vs =ERR_PTR (-EBUSY ); - }spin_unlock (&vn->sock_lock);if (!vs)
drivers/net/xen-netfront.c +0 -5
@@ -469,9 +469,6 @@ static void xennet_make_frags(struct sk_buff *skb, struct net_device *dev, len =skb_frag_size (frag); offset = frag->page_offset; -/* Data must not cross a page boundary. */ -BUG_ON (len + offset >PAGE_SIZE <<compound_order (page)); -/* Skip unused frames from start of page */ page += offset >>PAGE_SHIFT ; offset &= ~PAGE_MASK ;
@@ -479,8 +476,6 @@ static void xennet_make_frags(struct sk_buff *skb, struct net_device *dev,while (len >0 ) {unsigned long bytes; -BUG_ON (offset >=PAGE_SIZE ); - bytes =PAGE_SIZE - offset;if (bytes > len) bytes = len;
drivers/usb/host/xhci-ring.c +10 -30
@@ -1998,22 +1998,13 @@ static int finish_td(struct xhci_hcd *xhci, struct xhci_td *td, ep->stopped_td = td;return 0 ; }else { -if (trb_comp_code ==COMP_STALL ) { -/* The transfer is completed from the driver's -* perspective, but we need to issue a set dequeue -* command for this stalled endpoint to move the dequeue -* pointer past the TD. We can't do that here because -* the halt condition must be cleared first. Let the -* USB class driver clear the stall later. -*/ - ep->stopped_td = td; - ep->stopped_stream = ep_ring->stream_id; - }else if (xhci_requires_manual_halt_cleanup (xhci, - ep_ctx, trb_comp_code)) { -/* Other types of errors halt the endpoint, but the -* class driver doesn't call usb_reset_endpoint() unless -* the error is -EPIPE. Clear the halted status in the -* xHCI hardware manually. +if (trb_comp_code ==COMP_STALL || +xhci_requires_manual_halt_cleanup (xhci, ep_ctx, + trb_comp_code)) { +/* Issue a reset endpoint command to clear the host side +* halt, followed by a set dequeue command to move the +* dequeue pointer past the TD. +* The class driver clears the device side halt later. */ xhci_cleanup_halted_endpoint(xhci, slot_id, ep_index, ep_ring->stream_id,
@@ -2133,9 +2124,7 @@ static int process_ctrl_td(struct xhci_hcd *xhci, struct xhci_td *td,else td->urb->actual_length =0 ; -xhci_cleanup_halted_endpoint (xhci, - slot_id, ep_index,0 , td, event_trb); -return finish_td (xhci, td, event_trb, event, ep, status, true); +return finish_td (xhci, td, event_trb, event, ep, status, false); }/* * Did we transfer any data, despite the errors that might have
@@ -2689,17 +2678,8 @@ cleanup:if (ret) { urb = td->urb; urb_priv = urb->hcpriv; -/* Leave the TD around for the reset endpoint function -* to use(but only if it's not a control endpoint, -* since we already queued the Set TR dequeue pointer -* command for stalled control endpoints). -*/ -if (usb_endpoint_xfer_control (&urb->ep->desc) || - (trb_comp_code !=COMP_STALL && - trb_comp_code !=COMP_BABBLE )) -xhci_urb_free_priv (xhci, urb_priv); -else -kfree (urb_priv); + +xhci_urb_free_priv (xhci, urb_priv);usb_hcd_unlink_urb_from_ep (bus_to_hcd (urb->dev->bus), urb); if ((urb->actual_length != urb->transfer_buffer_length &&
drivers/usb/host/xhci.c +15 -45
78 lines not on this page · raw message
mm/frontswap.c +3 -1
@@ -244,8 +244,10 @@ int __frontswap_store(struct page *page)the (older) page from frontswap */ inc_frontswap_failed_stores (); -if (dup) +if (dup) {__frontswap_clear (sis, offset); + frontswap_ops->invalidate_page (type, offset); + } }if (frontswap_writethrough_enabled)/* report failure so swap also writes to swap device */
mm/memory.c +13 -13
@@ -808,20 +808,20 @@ copy_one_pte(struct mm_struct *dst_mm, struct mm_struct *src_mm,if (!pte_file (pte)) {swp_entry_t entry =pte_to_swp_entry (pte); -if (swap_duplicate (entry) <0 ) -return entry.val; - -/* make sure dst_mm is on swapoff's mmlist. */ -if (unlikely (list_empty (&dst_mm->mmlist))) { -spin_lock (&mmlist_lock); -if (list_empty (&dst_mm->mmlist)) -list_add (&dst_mm->mmlist, - &src_mm->mmlist); -spin_unlock (&mmlist_lock); - } -if (likely (!non_swap_entry (entry))) +if (likely (!non_swap_entry (entry))) { +if (swap_duplicate (entry) <0 ) +return entry.val; + +/* make sure dst_mm is on swapoff's mmlist. */ +if (unlikely (list_empty (&dst_mm->mmlist))) { +spin_lock (&mmlist_lock); +if (list_empty (&dst_mm->mmlist)) +list_add (&dst_mm->mmlist, + &src_mm->mmlist); +spin_unlock (&mmlist_lock); + } rss[MM_SWAPENTS ]++; -else if (is_migration_entry (entry)) { + }else if (is_migration_entry (entry)) { page =migration_entry_to_page (entry);if (PageAnon (page))
mm/mmap.c +7 -3
@@ -745,8 +745,11 @@ again: remove_next = 1 + (end > next->vm_end);* shrinking vma had, to cover any anon pages imported. */ if (exporter && exporter->anon_vma && !importer->anon_vma) { -if (anon_vma_clone (importer, exporter)) -return -ENOMEM ; +int error; + + error =anon_vma_clone (importer, exporter); +if (error) +return error; importer->anon_vma = exporter->anon_vma; } }
@@ -2428,7 +2431,8 @@ static int __split_vma(struct mm_struct * mm, struct vm_area_struct * vma,if (err) goto out_free_vma; -if (anon_vma_clone (new, vma)) + err =anon_vma_clone (new, vma); +if (err) goto out_free_mpol;if (new->vm_file)
mm/rmap.c +4 -2
@@ -274,6 +274,7 @@ int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma) {struct anon_vma_chain *avc;struct anon_vma *anon_vma; +int error;/* Don't bother if the parent process has no anon_vma here. */ if (!pvma->anon_vma)
@@ -283,8 +284,9 @@ int anon_vma_fork(struct vm_area_struct *vma, struct vm_area_struct *pvma)* First, attach the new VMA to the parent VMA's anon_vmas, * so rmap can find non-COWed pages in child processes. */ -if (anon_vma_clone (vma, pvma)) -return -ENOMEM ; + error =anon_vma_clone (vma, pvma); +if (error) +return error;/* Then add our own anon_vma. */ anon_vma =anon_vma_alloc ();
mm/vmpressure.c +5 -3
@@ -165,6 +165,7 @@ static void vmpressure_work_fn(struct work_struct *work)unsigned long scanned;unsigned long reclaimed; +spin_lock (&vmpr->sr_lock);/* * Several contexts might be calling vmpressure(), so it is * possible that the work was rescheduled again before the old
@@ -173,11 +174,12 @@ static void vmpressure_work_fn(struct work_struct *work)* here. No need for any locks here since we don't care if * vmpr->reclaimed is in sync. */ -if (!vmpr->scanned) + scanned = vmpr->scanned; +if (!scanned) { +spin_unlock (&vmpr->sr_lock);return ; + } -spin_lock (&vmpr->sr_lock); - scanned = vmpr->scanned; reclaimed = vmpr->reclaimed; vmpr->scanned =0 ; vmpr->reclaimed =0 ;
net/core/rtnetlink.c +1 -0
@@ -1453,6 +1453,7 @@ static int do_setlink(const struct sk_buff *skb, goto errout; }if (!netlink_ns_capable (skb, net->user_ns,CAP_NET_ADMIN )) { +put_net (net); err = -EPERM ; goto errout; }
net/ipv4/gre_offload.c +3 -0
@@ -271,6 +271,9 @@ static int gre_gro_complete(struct sk_buff *skb, int nhoff) err = ptype->callbacks.gro_complete (skb, nhoff + grehlen);rcu_read_unlock (); + +skb_set_inner_mac_header (skb, nhoff + grehlen); +return err; }
net/ipv4/ip_vti.c +1 -0
@@ -369,6 +369,7 @@ static struct rtnl_link_ops vti_link_ops __read_mostly = { .validate = vti_tunnel_validate, .newlink = vti_newlink, .changelink = vti_changelink, + .dellink = ip_tunnel_dellink, .get_size = vti_get_size, .fill_info = vti_fill_info, };
net/ipv6/ip6_gre.c +2 -2
@@ -508,11 +508,11 @@ static int ip6gre_rcv(struct sk_buff *skb) skb->protocol = gre_proto;/* WCCP version 1 and 2 protocol decoding. -* - Change protocol to IP +* - Change protocol to IPv6 * - When dealing with WCCPv2, Skip extra 4 bytes in GRE header */ if (flags ==0 && gre_proto ==htons (ETH_P_WCCP )) { - skb->protocol =htons (ETH_P_IP ); + skb->protocol =htons (ETH_P_IPV6 );if ((*(h + offset) &0xF0 ) !=0x40 ) offset +=4 ; }
net/ipv6/ip6_vti.c +11 -0
@@ -825,6 +825,15 @@ static int vti6_newlink(struct net *src_net, struct net_device *dev,return vti6_tnl_create2 (dev); } +static void vti6_dellink (struct net_device *dev,struct list_head *head) +{ +struct net *net =dev_net (dev); +struct vti6_net *ip6n =net_generic (net, vti6_net_id); + +if (dev != ip6n->fb_tnl_dev) +unregister_netdevice_queue (dev, head); +} +static int vti6_changelink (struct net_device *dev,struct nlattr *tb[],struct nlattr *data[]) {
@@ -900,6 +909,7 @@ static struct rtnl_link_ops vti6_link_ops __read_mostly = { .setup = vti6_dev_setup, .validate = vti6_validate, .newlink = vti6_newlink, + .dellink = vti6_dellink, .changelink = vti6_changelink, .get_size = vti6_get_size, .fill_info = vti6_fill_info,
@@ -945,6 +955,7 @@ static int __net_init vti6_init_net(struct net *net)if (!ip6n->fb_tnl_dev) goto err_alloc_dev;dev_net_set (ip6n->fb_tnl_dev, net); + ip6n->fb_tnl_dev->rtnl_link_ops = &vti6_link_ops; err =vti6_fb_tnl_dev_init (ip6n->fb_tnl_dev);if (err <0 )
net/mac80211/aes_ccm.c +3 -0
@@ -54,6 +54,9 @@ int ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad,memset (&aead_req,0 ,sizeof (aead_req)); +if (data_len ==0 ) +return -EINVAL ; +sg_init_one (&pt, data, data_len);sg_init_one (&assoc, &aad[2 ],be16_to_cpup ((__be16 *)aad));sg_init_table (ct,2 );
net/sctp/output.c +2 -2
@@ -401,12 +401,12 @@ int sctp_packet_transmit(struct sctp_packet *packet) sk = chunk->skb->sk;/* Allocate the new skb. */ - nskb =alloc_skb (packet->size +LL_MAX_HEADER ,GFP_ATOMIC ); + nskb =alloc_skb (packet->size +MAX_HEADER ,GFP_ATOMIC );if (!nskb) goto nomem;/* Make sure the outbound skb has enough header room reserved. */ -skb_reserve (nskb, packet->overhead +LL_MAX_HEADER ); +skb_reserve (nskb, packet->overhead +MAX_HEADER );/* Set the owning socket so that we know where to get the * destination IP address.
sound/pci/hda/patch_analog.c +1 -0
@@ -333,6 +333,7 @@ static const struct hda_fixup ad1986a_fixups[] = {static const struct snd_pci_quirk ad1986a_fixup_tbl[] = {SND_PCI_QUIRK (0x103c ,0x30af ,"HP B2800" ,AD1986A_FIXUP_LAPTOP_IMIC ), +SND_PCI_QUIRK (0x1043 ,0x1443 ,"ASUS Z99He" ,AD1986A_FIXUP_EAPD ),SND_PCI_QUIRK (0x1043 ,0x1447 ,"ASUS A8JN" ,AD1986A_FIXUP_EAPD ),SND_PCI_QUIRK_MASK (0x1043 ,0xff00 ,0x8100 ,"ASUS P5" ,AD1986A_FIXUP_3STACK ),SND_PCI_QUIRK_MASK (0x1043 ,0xff00 ,0x8200 ,"ASUS M2" ,AD1986A_FIXUP_3STACK ),
sound/pci/hda/patch_realtek.c +1 -0
@@ -4554,6 +4554,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = {SND_PCI_QUIRK (0x17aa ,0x2212 ,"Thinkpad" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ),SND_PCI_QUIRK (0x17aa ,0x2214 ,"Thinkpad" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ),SND_PCI_QUIRK (0x17aa ,0x2215 ,"Thinkpad" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ), +SND_PCI_QUIRK (0x17aa ,0x3977 ,"IdeaPad S210" ,ALC283_FIXUP_INT_MIC ),SND_PCI_QUIRK (0x17aa ,0x3978 ,"IdeaPad Y410P" ,ALC269_FIXUP_NO_SHUTUP ),SND_PCI_QUIRK (0x17aa ,0x5013 ,"Thinkpad" ,ALC269_FIXUP_LIMIT_INT_MIC_BOOST ), SND_PCI_QUIRK(0x17aa, 0x501a, "Thinkpad", ALC283_FIXUP_INT_MIC),
sound/usb/midi.c +2 -0
@@ -364,6 +364,8 @@ static void snd_usbmidi_error_timer(unsigned long data)if (in && in->error_resubmit) { in->error_resubmit =0 ;for (j =0 ; j <INPUT_URBS ; ++j) { +if (atomic_read (&in->urbs[j]->use_count)) +continue ; in->urbs[j]->dev = umidi->dev;snd_usbmidi_submit_urb (in->urbs[j],GFP_ATOMIC ); }