Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
  1. Feb 11, 2013
  2. Feb 03, 2013
    • Greg Kroah-Hartman's avatar
      Linux 3.7.6 · 07c4ee00
      Greg Kroah-Hartman authored
      v3.7.6
      07c4ee00
    • Pablo Neira Ayuso's avatar
      netfilter: xt_CT: fix unset return value if conntrack zone are disabled · 8aec109e
      Pablo Neira Ayuso authored
      commit 4610476d
      
       upstream.
      
      net/netfilter/xt_CT.c: In function ‘xt_ct_tg_check_v1’:
      net/netfilter/xt_CT.c:250:6: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      net/netfilter/xt_CT.c: In function ‘xt_ct_tg_check_v0’:
      net/netfilter/xt_CT.c:112:6: warning: ‘ret’ may be used uninitialized in this function [-Wmaybe-uninitialized]
      
      Reported-by: default avatarBorislav Petkov <bp@alien8.de>
      Acked-by: default avatarBorislav Petkov <bp@alien8.de>
      Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      8aec109e
    • CAI Qian's avatar
      slub: assign refcount for kmalloc_caches · 08423e3f
      CAI Qian authored
      This is for stable-3.7.y only and this problem has already been solved
      in mainline through some slab/slub re-work which isn't suitable to
      backport here. See create_kmalloc_cache() in mm/slab_common.c there.
      
      commit cce89f4f
      
      ('Move kmem_cache
      refcounting to common code') moves some refcount manipulation code to
      common code. Unfortunately, it also removed refcount assignment for
      kmalloc_caches. So, kmalloc_caches's refcount is initially 0.
      This makes erroneous situation.
      
      Paul Hargrove report that when he create a 8-byte kmem_cache and
      destory it, he encounter below message.
      'Objects remaining in kmalloc-8 on kmem_cache_close()'
      
      8-byte kmem_cache merge with 8-byte kmalloc cache and refcount is
      increased by one. So, resulting refcount is 1. When destroy it, it hit
      refcount = 0, then kmem_cache_close() is executed and error message is
      printed.
      
      This patch assign initial refcount 1 to kmalloc_caches, so fix this
      erroneous situation.
      
      Reported-by: default avatarPaul Hargrove <phhargrove@lbl.gov>
      Cc: Christoph Lameter <cl@linux.com>
      Signed-off-by: default avatarJoonsoo Kim <js1304@gmail.com>
      Signed-off-by: default avatarCAI Qian <caiqian@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      08423e3f
    • Jani Nikula's avatar
      drm/i915: fix FORCEWAKE posting reads · ec8a7ca0
      Jani Nikula authored
      commit b5144075 upstream.
      
      We stopped reading FORCEWAKE for posting reads in
      
      commit 8dee3eea
      Author: Ben Widawsky <ben@bwidawsk.net>
      Date:   Sat Sep 1 22:59:50 2012 -0700
      
          drm/i915: Never read FORCEWAKE
      
      and started using something from the same cacheline instead. On the
      bug reporter's machine this broke entering rc6 states after a
      suspend/resume cycle. It turns out reading ECOBUS as posting read
      worked fine, while GTFIFODBG did not, preventing RC6 states after
      suspend/resume per the bug report referenced below. It's not entirely
      clear why, but clearly GTFIFODBG was nowhere near the same cacheline
      or address range as FORCEWAKE.
      
      Trying out various registers for posting reads showed that all tested
      registers for which NEEDS_FORCE_WAKE() (in i915_drv.c) returns true
      work. Conversely, most (but not quite all) registers for which
      NEEDS_FORCE_WAKE() returns false do not work. Details in the referenced
      bug.
      
      Based on the above, add posting reads on ECOBUS where GTFIFODBG was
      previously relied on.
      
      In true cargo cult spirit, add posting reads for FORCEWAKE_VLV writes as
      well, but instead of ECOBUS, use FORCEWAKE_ACK_VLV which is in the same
      address range as FORCEWAKE_VLV.
      
      v2: Add more details to the commit message. No functional changes.
      
      Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=52411
      
      
      Reported-and-tested-by: default avatarAlexander Bersenev <bay@hackerdom.ru>
      CC: Ben Widawsky <ben@bwidawsk.net>
      Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
      Reviewed-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: stable@vger.kernel.org
      [danvet: add cc: stable and make the commit message a bit clearer that
      this is a regression fix and what exactly broke.]
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      Signed-off-by: default avatarCAI Qian <caiqian@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      ec8a7ca0