1. 17 Mar, 2005 5 commits
    • Paul Mackerras's avatar
      [PATCH] PPC64 Implement non-executable stacks · cae15a85
      Paul Mackerras authored
      This patch, by Jake Moilanen with some further hacking from me, adds a
      real execute permission bit to the linux PTEs on PPC64, and connects
      that into the kernel infrastructure for implementing non-executable
      stacks and heaps.  This means that on any PPC64 cpu since the POWER4
      (i.e. POWER4, PPC970, PPC970FX, POWER4+, POWER5) you will get a
      segfault if you try to execute instructions from a region that doesn't
      have PROT_EXEC permission.  The patch also marks the pages of the
      linear mapping that aren't part of the kernel text as non-executable.
      
      Andrew and Linus, could you try this on your G5s?  I have tried it
      here on a Debian system and a SLES9 system and everything runs fine,
      but I haven't been able to try it on YDL, FC or RHEL4.
      
      With this patch we default to executable stack and read-implies-exec
      behaviour when there is no PT_GNU_STACK program header entry, or when
      there is one and it indicates the stack is executable.  For 32-bit
      processes, the heap is always executable, because the PLT contains
      instructions and it ends up in the bss segment.
      Signed-off-by: default avatarJake Moilanen <moilanen@austin.ibm.com>
      Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
      Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
      cae15a85
    • Linus Torvalds's avatar
      umount: avoid racy block-size set · ed9a0a9f
      Linus Torvalds authored
      Setting the block size back to the original blocksize at umount time
      is unnecessary, and can cause buffer errors and infinite loops in
      __getblk_slow, and possibly other problems. 
      
      Just getting bdev_lock instead causes other issues, namely AB-BA deadlocks
      with /proc/meminfo etc. Just drop it, and replace with a "sync_blockdev()"
      to cause a flush (which was a side effect of changing the blocksize before).
      
      Debugging and testing by Jeff Mahoney <jeffm@suse.com>
      ed9a0a9f
    • Linus Torvalds's avatar
      isofs: more "corrupted iso image" error cases · 34ea9d86
      Linus Torvalds authored
      Thanks to Michal Zalewski for testing.
      34ea9d86
    • Tony Luck's avatar
      Merge intel.com:/data/home/aegl/BK/work/17 · 63c0f261
      Tony Luck authored
      into intel.com:/data/home/aegl/BK/linux-ia64-release-2.6.12
      63c0f261
    • Linus Torvalds's avatar
      Merge · cae3cf8f
      Linus Torvalds authored
      cae3cf8f
  2. 16 Mar, 2005 35 commits