Linux 3.14.52
Greg KH
maintainerI'm announcing the release of the 3.14.52 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/arm64/kvm/inject_fault.c | 12 ++-- arch/arm64/mm/mmap.c | 12 ---- drivers/base/regmap/regcache-rbtree.c | 19 +++++- drivers/block/xen-blkfront.c | 6 +- drivers/crypto/caam/caamhash.c | 7 +- drivers/edac/ppc4xx_edac.c | 2 drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 4 - drivers/md/dm-thin-metadata.c | 4 - drivers/scsi/libfc/fc_exch.c | 8 +- drivers/scsi/libfc/fc_fcp.c | 19 ++++++ drivers/scsi/scsi_pm.c | 22 ++++---- include/drm/drm_pciids.h | 1 ipc/sem.c | 43 ++++++++++++--- kernel/events/core.c | 87 +++++++++++++++++++++++--------- mm/memory-failure.c | 2 scripts/kconfig/streamline_config.pl | 2 17 files changed, 172 insertions(+), 80 deletions(-)
Alan Stern (1):
SCSI: Fix NULL pointer dereference in runtime PM
Alex Deucher (1):
drm/radeon: add new OLAND pci id
Bart Van Assche (2):
libfc: Fix fc_exch_recv_req() error path
libfc: Fix fc_fcp_cleanup_each_cmd()
Bob Liu (1):
xen-blkfront: don't add indirect pages to list when !feature_persistent
Greg Kroah-Hartman (1):
Linux 3.14.52
Guenter Roeck (1):
regmap: regcache-rbtree: Clean new present bits on present bitmap resize
Herton R. Krzesinski (1):
ipc,sem: fix use after free on IPC_RMID after a task using same semaphore set exits
Horia Geant? (1):
crypto: caam - fix memory corruption in ahash_final_ctx
Joe Thornber (1):
dm thin metadata: delete btrees when releasing metadata snapshot
Manfred Spraul (1):
ipc/sem.c: update/correct memory barriers
Marc Zyngier (1):
arm64: KVM: Fix host crash when injecting a fault into a 32bit guest
Michael Walle (1):
EDAC, ppc4xx: Access mci->csrows array elements properly
Peter Zijlstra (2):
perf: Fix fasync handling on inherited events
perf: Fix PERF_EVENT_IOC_PERIOD migration race
Richard Weinberger (1):
localmodconfig: Use Kbuild files too
Thomas Hellstrom (1):
drm/vmwgfx: Fix execbuf locking issues
Wanpeng Li (1):
mm/hwpoison: fix page refcount of unknown non LRU page
Yann Droneaud (1):
arm64/mm: Remove hack in mmap randomize layout
Greg KH
maintainerMakefile +1 -1
@@ -1,6 +1,6 @@ VERSION = 3 PATCHLEVEL = 14 -SUBLEVEL = 51 +SUBLEVEL = 52 EXTRAVERSION = NAME = Remembering Coco
arch/arm64/kvm/inject_fault.c +6 -6
@@ -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); }
arch/arm64/mm/mmap.c +2 -10
@@ -47,22 +47,14 @@ static int mmap_is_legacy(void)return sysctl_legacy_va_layout; } -/* -* Since get_random_int() returns the same value within a 1 jiffy window, we -* will almost always get the same randomisation for the stack and mmap -* region. This will mean the relative distance between stack and mmap will be -* the same. -* -* To avoid this we can shift the randomness by 1 bit. -*/ static unsigned long mmap_rnd (void ) {unsigned long rnd =0 ;if (current->flags &PF_RANDOMIZE ) - rnd = (long )get_random_int () & (STACK_RND_MASK >>1 ); + rnd = (long )get_random_int () &STACK_RND_MASK ; -return rnd << (PAGE_SHIFT +1 ); +return rnd <<PAGE_SHIFT ; }static unsigned long mmap_base (void )
drivers/base/regmap/regcache-rbtree.c +14 -5
@@ -302,11 +302,20 @@ static int regcache_rbtree_insert_to_block(struct regmap *map,if (!blk)return -ENOMEM ; - present =krealloc (rbnode->cache_present, -BITS_TO_LONGS (blklen) *sizeof (*present),GFP_KERNEL ); -if (!present) { -kfree (blk); -return -ENOMEM ; +if (BITS_TO_LONGS (blklen) >BITS_TO_LONGS (rbnode->blklen)) { + present =krealloc (rbnode->cache_present, +BITS_TO_LONGS (blklen) *sizeof (*present), +GFP_KERNEL ); +if (!present) { +kfree (blk); +return -ENOMEM ; + } + +memset (present +BITS_TO_LONGS (rbnode->blklen),0 , + (BITS_TO_LONGS (blklen) -BITS_TO_LONGS (rbnode->blklen)) + *sizeof (*present)); + }else { + present = rbnode->cache_present; }/* insert the register value in the correct place in the rbnode block */
drivers/block/xen-blkfront.c +4 -2
@@ -1093,8 +1093,10 @@ static void blkif_completion(struct blk_shadow *s, struct blkfront_info *info,* Add the used indirect page back to the list of * available pages for indirect grefs. */ - indirect_page =pfn_to_page (s->indirect_grants[i]->pfn); -list_add (&indirect_page->lru, &info->indirect_pages); +if (!info->feature_persistent) { + indirect_page =pfn_to_page (s->indirect_grants[i]->pfn); +list_add (&indirect_page->lru, &info->indirect_pages); + } s->indirect_grants[i]->gref =GRANT_INVALID_REF ;list_add_tail (&s->indirect_grants[i]->node, &info->grants); }
drivers/crypto/caam/caamhash.c +4 -3
@@ -900,13 +900,14 @@ static int ahash_final_ctx(struct ahash_request *req) state->buflen_1;u32 *sh_desc = ctx->sh_desc_fin, *desc;dma_addr_t ptr = ctx->sh_desc_fin_dma; -int sec4_sg_bytes; +int sec4_sg_bytes, sec4_sg_src_index;int digestsize =crypto_ahash_digestsize (ahash);struct ahash_edesc *edesc;int ret =0 ;int sh_len; - sec4_sg_bytes = (1 + (buflen ?1 :0 )) *sizeof (struct sec4_sg_entry ); + sec4_sg_src_index =1 + (buflen ?1 :0 ); + sec4_sg_bytes = sec4_sg_src_index *sizeof (struct sec4_sg_entry );/* allocate space for base edesc and hw desc commands, link tables */ edesc = kmalloc(sizeof(struct ahash_edesc) + DESC_JOB_IO_LEN +
@@ -933,7 +934,7 @@ static int ahash_final_ctx(struct ahash_request *req) state->buf_dma =try_buf_map_to_sec4_sg (jrdev, edesc->sec4_sg +1 , buf, state->buf_dma, buflen, last_buflen); - (edesc->sec4_sg + sec4_sg_bytes -1 )->len |=SEC4_SG_LEN_FIN ; + (edesc->sec4_sg + sec4_sg_src_index -1 )->len |=SEC4_SG_LEN_FIN ;append_seq_in_ptr (desc, edesc->sec4_sg_dma, ctx->ctx_len + buflen,LDST_SGF );
drivers/edac/ppc4xx_edac.c +1 -1
@@ -921,7 +921,7 @@ static int ppc4xx_edac_init_csrows(struct mem_ctl_info *mci, u32 mcopt1)*/ for (row =0 ; row < mci->nr_csrows; row++) { -struct csrow_info *csi = &mci->csrows[row]; +struct csrow_info *csi = mci->csrows[row];/* * Get the configuration settings for this
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c +2 -2
@@ -2475,7 +2475,7 @@ int vmw_execbuf_process(struct drm_file *file_priv, ret =vmw_resources_validate (sw_context);if (unlikely (ret !=0 )) - goto out_err; + goto out_err_nores;if (throttle_us) { ret = vmw_wait_lag(dev_priv, &dev_priv->fifo.marker_queue,
@@ -2511,6 +2511,7 @@ int vmw_execbuf_process(struct drm_file *file_priv,vmw_resource_relocations_free (&sw_context->res_relocations);vmw_fifo_commit (dev_priv, command_size); +mutex_unlock (&dev_priv->binding_mutex);vmw_query_bo_switch_commit (dev_priv, sw_context); ret = vmw_execbuf_fence_commands(file_priv, dev_priv,
@@ -2526,7 +2527,6 @@ int vmw_execbuf_process(struct drm_file *file_priv,DRM_ERROR ("Fence submission error. Syncing.\n" );vmw_resource_list_unreserve (&sw_context->resource_list, false); -mutex_unlock (&dev_priv->binding_mutex);ttm_eu_fence_buffer_objects (&ticket, &sw_context->validate_nodes, (void *) fence);
drivers/md/dm-thin-metadata.c +2 -2
@@ -1295,8 +1295,8 @@ static int __release_metadata_snap(struct dm_pool_metadata *pmd)return r; disk_super =dm_block_data (copy); -dm_sm_dec_block (pmd->metadata_sm,le64_to_cpu (disk_super->data_mapping_root)); -dm_sm_dec_block (pmd->metadata_sm,le64_to_cpu (disk_super->device_details_root)); +dm_btree_del (&pmd->info,le64_to_cpu (disk_super->data_mapping_root)); +dm_btree_del (&pmd->details_info,le64_to_cpu (disk_super->device_details_root));dm_sm_dec_block (pmd->metadata_sm, held_root);return dm_tm_unlock (pmd->tm, copy);
drivers/scsi/libfc/fc_exch.c +4 -4
@@ -733,8 +733,6 @@ static bool fc_invoke_resp(struct fc_exch *ep, struct fc_seq *sp,if (resp) {resp (sp, fp, arg); res = true; - }else if (!IS_ERR (fp)) { -fc_frame_free (fp); }spin_lock_bh (&ep->ex_lock);
@@ -1596,7 +1594,8 @@ static void fc_exch_recv_seq_resp(struct fc_exch_mgr *mp, struct fc_frame *fp)* If new exch resp handler is valid then call that * first. */ -fc_invoke_resp (ep, sp, fp); +if (!fc_invoke_resp (ep, sp, fp)) +fc_frame_free (fp);fc_exch_release (ep);return ;
@@ -1695,7 +1694,8 @@ static void fc_exch_abts_resp(struct fc_exch *ep, struct fc_frame *fp)fc_exch_hold (ep);if (!rc)fc_exch_delete (ep); -fc_invoke_resp (ep, sp, fp); +if (!fc_invoke_resp (ep, sp, fp)) +fc_frame_free (fp);if (has_rec)fc_exch_timer_set (ep, ep->r_a_tov);fc_exch_release (ep);
drivers/scsi/libfc/fc_fcp.c +17 -2
@@ -1039,11 +1039,26 @@ restart:fc_fcp_pkt_hold (fsp);spin_unlock_irqrestore (&si->scsi_queue_lock, flags); -if (!fc_fcp_lock_pkt (fsp)) { +spin_lock_bh (&fsp->scsi_pkt_lock); +if (!(fsp->state &FC_SRB_COMPL )) { + fsp->state |=FC_SRB_COMPL ; +/* +* TODO: dropping scsi_pkt_lock and then reacquiring +* again around fc_fcp_cleanup_cmd() is required, +* since fc_fcp_cleanup_cmd() calls into +* fc_seq_set_resp() and that func preempts cpu using +* schedule. May be schedule and related code should be +* removed instead of unlocking here to avoid scheduling +* while atomic bug. +*/ +spin_unlock_bh (&fsp->scsi_pkt_lock); +fc_fcp_cleanup_cmd (fsp, error); + +spin_lock_bh (&fsp->scsi_pkt_lock);fc_io_compl (fsp); -fc_fcp_unlock_pkt (fsp); } +spin_unlock_bh (&fsp->scsi_pkt_lock);fc_fcp_pkt_release (fsp);spin_lock_irqsave (&si->scsi_queue_lock, flags);
drivers/scsi/scsi_pm.c +11 -11
@@ -149,15 +149,15 @@ static int sdev_runtime_suspend(struct device *dev) {const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm :NULL ;struct scsi_device *sdev =to_scsi_device (dev); -int err; +int err =0 ; - err =blk_pre_runtime_suspend (sdev->request_queue); -if (err) -return err; -if (pm && pm->runtime_suspend) +if (pm && pm->runtime_suspend) { + err =blk_pre_runtime_suspend (sdev->request_queue); +if (err) +return err; err = pm->runtime_suspend (dev); -blk_post_runtime_suspend (sdev->request_queue, err); - +blk_post_runtime_suspend (sdev->request_queue, err); + }return err; }
@@ -180,11 +180,11 @@ static int sdev_runtime_resume(struct device *dev)const struct dev_pm_ops *pm = dev->driver ? dev->driver->pm :NULL ;int err =0 ; -blk_pre_runtime_resume (sdev->request_queue); -if (pm && pm->runtime_resume) +if (pm && pm->runtime_resume) { +blk_pre_runtime_resume (sdev->request_queue); err = pm->runtime_resume (dev); -blk_post_runtime_resume (sdev->request_queue, err); - +blk_post_runtime_resume (sdev->request_queue, err); + }return err; }
include/drm/drm_pciids.h +1 -0
@@ -172,6 +172,7 @@ {0x1002, 0x6610, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6611, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6613, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_NEW_MEMMAP}, \ + {0x1002, 0x6617, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6620, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6621, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \ {0x1002, 0x6623, PCI_ANY_ID, PCI_ANY_ID, 0, 0, CHIP_OLAND|RADEON_IS_MOBILITY|RADEON_NEW_MEMMAP}, \
ipc/sem.c +35 -8
72 lines not on this page · raw message
kernel/events/core.c +65 -22
123 lines not on this page · raw message
mm/memory-failure.c +2 -0
@@ -1510,6 +1510,8 @@ static int get_any_page(struct page *page, unsigned long pfn, int flags)*/ ret =__get_any_page (page, pfn,0 );if (!PageLRU (page)) { +/* Drop page reference which is from __get_any_page() */ +put_page (page);pr_info ("soft_offline: %#lx: unknown non LRU page type %lx\n" , pfn, page->flags);return -EIO ;
scripts/kconfig/streamline_config.pl +1 -1
@@ -137,7 +137,7 @@ my $ksource = ($ARGV[0] ? $ARGV[0] : '.'); my $kconfig = $ARGV[1]; my $lsmod_file = $ENV{'LSMOD'}; -my @makefiles = `find $ksource -name Makefile 2>/dev/null`; +my @makefiles = `find $ksource -name Makefile -or -name Kbuild 2>/dev/null`; chomp @makefiles; my %depends;