Pull request: scottwood/linux.git next

Jason Yan yanaijie at huawei.com
Thu Oct 31 13:01:58 AEDT 2019


Hi Michael, Can you pull this to linux-next so that we can test it on 
linux-next for some time?

Thanks,
Jason


On 2019/10/23 7:21, Scott Wood wrote:
> This contains KASLR support for book3e 32-bit.
> 
> The following changes since commit 612ee81b9461475b5a5612c2e8d71559dd3c7920:
> 
>    powerpc/papr_scm: Fix an off-by-one check in papr_scm_meta_{get, set} (2019-10-10 20:15:53 +1100)
> 
> are available in the Git repository at:
> 
>    git://git.kernel.org/pub/scm/linux/kernel/git/scottwood/linux.git next
> 
> for you to fetch changes up to 9df1ef3f1376ec5d3a1b51a4546c94279bcd88ca:
> 
>    powerpc/fsl_booke/32: Document KASLR implementation (2019-10-21 16:09:16 -0500)
> 
> ----------------------------------------------------------------
> Jason Yan (12):
>        powerpc: unify definition of M_IF_NEEDED
>        powerpc: move memstart_addr and kernstart_addr to init-common.c
>        powerpc: introduce kernstart_virt_addr to store the kernel base
>        powerpc/fsl_booke/32: introduce create_kaslr_tlb_entry() helper
>        powerpc/fsl_booke/32: introduce reloc_kernel_entry() helper
>        powerpc/fsl_booke/32: implement KASLR infrastructure
>        powerpc/fsl_booke/32: randomize the kernel image offset
>        powerpc/fsl_booke/kaslr: clear the original kernel if randomized
>        powerpc/fsl_booke/kaslr: support nokaslr cmdline parameter
>        powerpc/fsl_booke/kaslr: dump out kernel offset information on panic
>        powerpc/fsl_booke/kaslr: export offset in VMCOREINFO ELF notes
>        powerpc/fsl_booke/32: Document KASLR implementation
> 
>   Documentation/powerpc/kaslr-booke32.rst       |  42 +++
>   arch/powerpc/Kconfig                          |  11 +
>   arch/powerpc/include/asm/nohash/mmu-book3e.h  |  11 +-
>   arch/powerpc/include/asm/page.h               |   7 +
>   arch/powerpc/kernel/early_32.c                |   5 +-
>   arch/powerpc/kernel/exceptions-64e.S          |  12 +-
>   arch/powerpc/kernel/fsl_booke_entry_mapping.S |  25 +-
>   arch/powerpc/kernel/head_fsl_booke.S          |  61 +++-
>   arch/powerpc/kernel/machine_kexec.c           |   1 +
>   arch/powerpc/kernel/misc_64.S                 |   7 +-
>   arch/powerpc/kernel/setup-common.c            |  20 ++
>   arch/powerpc/mm/init-common.c                 |   7 +
>   arch/powerpc/mm/init_32.c                     |   5 -
>   arch/powerpc/mm/init_64.c                     |   5 -
>   arch/powerpc/mm/mmu_decl.h                    |  11 +
>   arch/powerpc/mm/nohash/Makefile               |   1 +
>   arch/powerpc/mm/nohash/fsl_booke.c            |   8 +-
>   arch/powerpc/mm/nohash/kaslr_booke.c          | 401 ++++++++++++++++++++++++++
>   18 files changed, 587 insertions(+), 53 deletions(-)
>   create mode 100644 Documentation/powerpc/kaslr-booke32.rst
>   create mode 100644 arch/powerpc/mm/nohash/kaslr_booke.c
> 
> 



More information about the Linuxppc-dev mailing list