1. 13 Jan, 2003 3 commits
  2. 14 Jan, 2003 6 commits
  3. 13 Jan, 2003 5 commits
  4. 14 Jan, 2003 2 commits
    • Paul Mackerras's avatar
      PPC32: Change struct free_pte_ctx to struct mmu_gather. · 9e7f90dd
      Paul Mackerras authored
      A couple of occurrences of struct free_pte_ctx in include/asm-ppc/tlb.h
      got missed in akpm's patch - this fixes them.
      9e7f90dd
    • Dale Farnsworth's avatar
      PPC32: Fix copy_from_user to copy as much as possible. · 8ebe7055
      Dale Farnsworth authored
      copy_from_user is supposed to transfer as much data as is
      valid and then to return the number of bytes not tranferred.
      That's how it works on x86.  On ppc it can be as much as 15
      bytes short.
      
      I initially saw the problem with the mount system call.
      
      Note that the fifth argument to mount is an address 8 bytes from the end
      of user data space.  There is a null byte at that address, since no mount
      options are being passed.
      
      In the kernel, sys_mount() allocates a page for the options and
      does copy_from_user(new_page, 0x1005eff8, PAGE_SIZE).  copy_from_user
      should copy 8 bytes and return (PAGE_SIZE-8).  Instead, on ppc it reads
      8 bytes, faults, writes no bytes, and returns PAGE_SIZE, which causes the
      EFAULT to be erroneously reported.
      8ebe7055
  5. 13 Jan, 2003 1 commit
  6. 12 Jan, 2003 23 commits