1. 19 2月, 2016 1 次提交
    • J
      arm64: kernel: Add support for User Access Override · 57f4959b
      James Morse 提交于
      'User Access Override' is a new ARMv8.2 feature which allows the
      unprivileged load and store instructions to be overridden to behave in
      the normal way.
      
      This patch converts {get,put}_user() and friends to use ldtr*/sttr*
      instructions - so that they can only access EL0 memory, then enables
      UAO when fs==KERNEL_DS so that these functions can access kernel memory.
      
      This allows user space's read/write permissions to be checked against the
      page tables, instead of testing addr<USER_DS, then using the kernel's
      read/write permissions.
      Signed-off-by: NJames Morse <james.morse@arm.com>
      [catalin.marinas@arm.com: move uao_thread_switch() above dsb()]
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      57f4959b
  2. 18 2月, 2016 2 次提交
  3. 16 2月, 2016 1 次提交
  4. 02 12月, 2015 1 次提交
  5. 27 11月, 2015 1 次提交
  6. 12 11月, 2015 1 次提交
    • A
      arm64: mark cpus_have_hwcap as __maybe_unused · 3d6d1035
      Arnd Bergmann 提交于
      cpus_have_hwcap() is defined as a 'static' function an only used in
      one place that is inside of an #ifdef, so we get a warning when
      the only user is disabled:
      
      arch/arm64/kernel/cpufeature.c:699:13: warning: 'cpus_have_hwcap' defined but not used [-Wunused-function]
      
      This marks the function as __maybe_unused, so the compiler knows that
      it can drop the function definition without warning about it.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: 37b01d53 ("arm64/HWCAP: Use system wide safe values")
      Signed-off-by: NCatalin Marinas <catalin.marinas@arm.com>
      3d6d1035
  7. 29 10月, 2015 1 次提交
  8. 21 10月, 2015 11 次提交
  9. 10 10月, 2015 1 次提交
  10. 27 7月, 2015 4 次提交
  11. 12 6月, 2015 1 次提交
  12. 30 3月, 2015 1 次提交