1. 22 Mar, 2010 2 commits
    • Anton Blanchard's avatar
      ppc64 sys_ipc breakage in 2.6.34-rc2 · 45575f5a
      Anton Blanchard authored
      I chased down a fail on ppc64 on 2.6.34-rc2 where an application that
      uses shared memory was getting a SEGV.
      
      Commit baed7fc9 ("Add generic sys_ipc
      wrapper") changed the second argument from an unsigned long to an int.
      When we call shmget the system call wrappers for sys_ipc will sign
      extend second (ie the size) which truncates it.  It took a while to
      track down because the call succeeds and strace shows the untruncated
      size :)
      
      The patch below changes second from an int to an unsigned long which
      fixes shmget on ppc64 (and I assume s390, sparc64 and mips64).
      Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
      --
      
      I assume the function prototypes for the other IPC methods would cause us
      to sign or zero extend second where appropriate (avoiding any security
      issues). Come to think of it, the syscall wrappers for each method should do
      that for us as well.
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      45575f5a
    • Rafael J. Wysocki's avatar
      x86 / perf: Fix suspend to RAM on HP nx6325 · a90110c6
      Rafael J. Wysocki authored
      Commit 3f6da390
      (perf: Rework and fix the arch CPU-hotplug hooks) broke suspend to
      RAM on my HP nx6325 (and most likely on other AMD-based boxes too)
      by allowing amd_pmu_cpu_offline() to be executed for CPUs that are
      going offline as part of the suspend process.  The problem is that
      cpuhw->amd_nb may be NULL already, so the function should make sure
      it's not NULL before accessing the object pointed to by it.
      Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
      Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
      a90110c6
  2. 20 Mar, 2010 3 commits
  3. 19 Mar, 2010 35 commits