1. 18 7月, 2017 1 次提交
    • M
      powerpc/mm: Mark __init memory no-execute when STRICT_KERNEL_RWX=y · 029d9252
      Michael Ellerman 提交于
      Currently even with STRICT_KERNEL_RWX we leave the __init text marked
      executable after init, which is bad.
      
      Add a hook to mark it NX (no-execute) before we free it, and implement
      it for radix and hash.
      
      Note that we use __init_end as the end address, not _einittext,
      because overlaps_kernel_text() uses __init_end, because there are
      additional executable sections other than .init.text between
      __init_begin and __init_end.
      
      Tested on radix and hash with:
      
        0:mon> p $__init_begin
        *** 400 exception occurred
      
      Fixes: 1e0fc9d1 ("powerpc/Kconfig: Enable STRICT_KERNEL_RWX for some configs")
      Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
      029d9252
  2. 04 7月, 2017 1 次提交
  3. 02 7月, 2017 1 次提交
  4. 31 3月, 2017 2 次提交
  5. 15 2月, 2017 3 次提交
  6. 31 1月, 2017 2 次提交
  7. 28 11月, 2016 4 次提交
  8. 13 9月, 2016 2 次提交
  9. 17 6月, 2016 1 次提交
  10. 11 5月, 2016 2 次提交
  11. 01 5月, 2016 4 次提交