1. 26 3月, 2015 1 次提交
    • Y
      powerpc/mm: Free string after creating kmem cache · e77553cb
      Yanjiang Jin 提交于
      kmem_cache_create()->kmem_cache_create_memcg()->kstrdup() allocates new
      space and copys name's content, so it is safe to free name memory after
      calling kmem_cache_create(). Else kmemleak will report the below
      warning:
      
      unreferenced object 0xc0000000f9002160 (size 16):
        comm "swapper/0", pid 0, jiffies 4294892296 (age 1386.640s)
        hex dump (first 16 bytes):
          70 67 74 61 62 6c 65 2d 32 5e 39 00 de ad be ef  pgtable-2^9.....
        backtrace:
          [<c0000000004e03ec>] .kvasprintf+0x5c/0xa0
          [<c0000000004e045c>] .kasprintf+0x2c/0x50
          [<c00000000002e36c>] .pgtable_cache_add+0xac/0x100
          [<c00000000002e3e4>] .pgtable_cache_init+0x24/0x80
          [<c000000000c6c67c>] .start_kernel+0x228/0x4c8
          [<c000000000000594>] .start_here_common+0x24/0x90
      Signed-off-by: NYanjiang Jin <yanjiang.jin@windriver.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      e77553cb
  2. 24 3月, 2015 1 次提交
    • T
      powerpc/pseries: Introduce api_version to migration sysfs interface · 288a298c
      Tyrel Datwyler 提交于
      The /sys/kernel/mobility/migration interface was added all the way back
      in 2.6.37. However, the drmgr userspace tool was never augmented to use
      this interface to perfrom migrations. Instead it has continued using a
      faux rtas call coupled with performing the device tree update processing
      in userspace and communicating it back to the kernel via the ugly
      /proc/ppc64/ofdt interface.
      
      Up until 3.12 the device tree update code in the kernel was badly broken
      and bit rotting. This code was fixed in 3.12 and is now utilized by the
      kernel suspend code as of 3.15. The kernel is now better suited to
      handle the post-mobility fixup of the device tree and drmgr should be
      transitioned to using the sysfs migration interface.
      
      This patch introduces the api_version sysfs file to /sys/kernel/mobility
      as a means for drmgr to query the current implementation level of the
      kernel migration code. This initial versioning indicates it is capable
      of perfroming all current PAPR requirements for migration including the
      post-mobility firmware activation and device tree update.
      Signed-off-by: NTyrel Datwyler <tyreld@linux.vnet.ibm.com>
      Cc: Nathan Fontenot <nfont@linux.vnet.ibm.com>
      Cc: Cyril Bur <cyrilbur@gmail.com>
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      288a298c
  3. 23 3月, 2015 10 次提交
  4. 20 3月, 2015 1 次提交
  5. 18 3月, 2015 6 次提交
  6. 17 3月, 2015 11 次提交
  7. 16 3月, 2015 10 次提交