1. 09 5月, 2014 2 次提交
    • C
      arm64: Introduce execute-only page access permissions · bc07c2c6
      Catalin Marinas 提交于
      The ARMv8 architecture allows execute-only user permissions by clearing
      the PTE_UXN and PTE_USER bits. The kernel, however, can still access
      such page, so execute-only page permission does not protect against
      read(2)/write(2) etc. accesses. Systems requiring such protection must
      implement/enable features like SECCOMP.
      
      This patch changes the arm64 __P100 and __S100 protection_map[] macros
      to the new __PAGE_EXECONLY attributes. A side effect is that
      pte_valid_user() no longer triggers for __PAGE_EXECONLY since PTE_USER
      isn't set. To work around this, the check is done on the PTE_NG bit via
      the pte_valid_ng() macro. VM_READ is also checked now for page faults.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      bc07c2c6
    • C
      arm64: Provide read/write fault information in compat signal handlers · 9141300a
      Catalin Marinas 提交于
      For AArch32, bit 11 (WnR) of the FSR/ESR register is set when the fault
      was caused by a write access and applications like Qemu rely on such
      information being provided in sigcontext. This patch introduces the
      ESR_EL1 tracking for the arm64 kernel faults and sets bit 11 accordingly
      in compat sigcontext.
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      9141300a
  2. 20 9月, 2013 1 次提交
  3. 13 9月, 2013 2 次提交
  4. 19 7月, 2013 1 次提交
  5. 14 6月, 2013 1 次提交
  6. 25 5月, 2013 1 次提交
  7. 08 5月, 2013 1 次提交
  8. 26 4月, 2013 1 次提交
    • S
      arm64: mm: Correct show_pte behaviour · 4339e3f3
      Steve Capper 提交于
      show_pte makes use of the *_none_or_clear_bad style functions. If a
      pgd, pud or pmd is identified as being bad, it will then be cleared.
      
      As show_pte appears to be called from either the user or kernel
      fault handlers this side effect can lead to unpredictable behaviour;
      especially as TLB entries are not invalidated.
      
      This patch removes the page table sanitisation from show_pte. If a
      bad pgd, pud or pmd is encountered it is left unmodified.
      Signed-off-by: NSteve Capper <steve.capper@linaro.org>
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      4339e3f3
  9. 14 11月, 2012 1 次提交
  10. 17 9月, 2012 1 次提交