Skip to content
  1. Aug 22, 2006
  2. Aug 21, 2006
  3. Aug 19, 2006
  4. Aug 18, 2006
  5. Aug 17, 2006
    • Benjamin Herrenschmidt's avatar
      [POWERPC] Fix irq radix tree remapping typo · e5c14ce1
      Benjamin Herrenschmidt authored
      
      
      The code for using the radix tree for reverse mapping of interrupts has
      a typo that causes it to create incorrect mappings if the software and
      hardware numbers happen to be different. This would, among others, cause
      the IDE interrupt to fail on js20's. This fixes it.
      
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      e5c14ce1
    • Ananth N Mavinakayanahalli's avatar
      [POWERPC] kprobes: Fix possible system crash during out-of-line single-stepping · 83db3dde
      Ananth N Mavinakayanahalli authored
      
      
      - On archs that have no-exec support, we vmalloc() a executable scratch
      area of PAGE_SIZE and divide it up into an array of slots of maximum
      instruction size for that arch
      - On a kprobe registration, the original instruction is copied to the
      first available free slot, so if multiple kprobes are registered, chances
      are, they get contiguous slots
      - On POWER4, due to not having coherent icaches, we could hit a situation
      where a probe that is registered on one processor, is hit immediately on
      another. This second processor could have fetched the stream of text from
      the out-of-line single-stepping area *before* the probe registration
      completed, possibly due to an earlier (and a different) kprobe hit and
      hence would see stale data at the slot.
      
      Executing such an arbitrary instruction lead to a problem as reported
      in LTC bugzilla 23555.
      
      The correct solution is to call flush_icache_range() as soon as the
      instruction is copied for out-of-line single-stepping, so the correct
      instruction is seen on all processors.
      
      Thanks to Will Schmidt who tracked this down.
      
      Signed-off-by: default avatarAnanth N Mavinakayanahalli <ananth@in.ibm.com>
      Acked-by: default avatarWill Schmidt <will_schmidt@vnet.ibm.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      83db3dde