1. 31 3月, 2008 11 次提交
  2. 29 3月, 2008 27 次提交
  3. 28 3月, 2008 2 次提交
    • M
      [POWERPC] Fix missed hardware breakpoints across multiple threads · a2ceff5e
      Michael Ellerman 提交于
      There is a bug in the powerpc DABR (data access breakpoint) handling,
      which can result in us missing breakpoints if several threads are trying
      to break on the same address.
      
      The circumstances are that do_page_fault() calls do_dabr(), this clears
      the DABR (sets it to 0) and sets up the signal which will report to
      userspace that the DABR was hit. The do_signal() code will restore the DABR
      value on the way out to userspace.
      
      If we reschedule before calling do_signal(), __switch_to() will check the
      cached DABR value and compare it to the new thread's value, if they match
      we don't set the DABR in hardware.
      
      So if two threads have the same DABR value, and we schedule from one to
      the other after taking the interrupt for the first thread hitting the DABR,
      the second thread will run without the DABR set in hardware.
      
      The cleanest fix is to move the cache update into set_dabr(), that way we
      can't forget to do it.
      Reported-by: NJan Kratochvil <jan.kratochvil@redhat.com>
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      a2ceff5e
    • L
      Revert "SLUB: remove useless masking of GFP_ZERO" · e72e9c23
      Linus Torvalds 提交于
      This reverts commit 3811dbf6.
      
      The masking was not at all useless, and it was sensible.  We handle
      GFP_ZERO in the caller, and passing it down to any page allocator logic
      is buggy and wrong.
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e72e9c23