mbox series

[0/4,SRU,Bionic] arm64: Fix loading of large modules

Message ID 20190822211555.14078-1-dann.frazier@canonical.com
Headers show
Series arm64: Fix loading of large modules | expand

Message

dann frazier Aug. 22, 2019, 9:15 p.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1841109

All clean cherry-picks from upstream, except for one with a trivial
context fix, noted in the s-o-b area.

Ard Biesheuvel (2):
  arm64/kernel: kaslr: reduce module randomization range to 4 GB
  arm64/kernel: don't ban ADRP to work around Cortex-A53 erratum #843419

Arnd Bergmann (1):
  arm64: fix undefined reference to 'printk'

Kim Phillips (1):
  arm64/kernel: rename
    module_emit_adrp_veneer->module_emit_veneer_for_adrp

 arch/arm64/Kconfig                  | 18 +++---
 arch/arm64/Makefile                 |  5 --
 arch/arm64/include/asm/module.h     |  2 +
 arch/arm64/kernel/kaslr.c           | 20 ++++---
 arch/arm64/kernel/module-plts.c     | 86 ++++++++++++++++++++++++++++-
 arch/arm64/kernel/module.c          | 41 +++++++++++---
 arch/arm64/kernel/reloc_test_core.c |  4 +-
 arch/arm64/kernel/reloc_test_syms.S | 12 +++-
 include/linux/sizes.h               |  4 ++
 9 files changed, 153 insertions(+), 39 deletions(-)

Comments

Stefan Bader Aug. 27, 2019, 2:43 p.m. UTC | #1
On 22.08.19 23:15, dann frazier wrote:
> BugLink: https://bugs.launchpad.net/bugs/1841109
> 
> All clean cherry-picks from upstream, except for one with a trivial
> context fix, noted in the s-o-b area.
> 
> Ard Biesheuvel (2):
>   arm64/kernel: kaslr: reduce module randomization range to 4 GB
>   arm64/kernel: don't ban ADRP to work around Cortex-A53 erratum #843419
> 
> Arnd Bergmann (1):
>   arm64: fix undefined reference to 'printk'
> 
> Kim Phillips (1):
>   arm64/kernel: rename
>     module_emit_adrp_veneer->module_emit_veneer_for_adrp
> 
>  arch/arm64/Kconfig                  | 18 +++---
>  arch/arm64/Makefile                 |  5 --
>  arch/arm64/include/asm/module.h     |  2 +
>  arch/arm64/kernel/kaslr.c           | 20 ++++---
>  arch/arm64/kernel/module-plts.c     | 86 ++++++++++++++++++++++++++++-
>  arch/arm64/kernel/module.c          | 41 +++++++++++---
>  arch/arm64/kernel/reloc_test_core.c |  4 +-
>  arch/arm64/kernel/reloc_test_syms.S | 12 +++-
>  include/linux/sizes.h               |  4 ++
>  9 files changed, 153 insertions(+), 39 deletions(-)
> 
The bug report is set fix released for devel (Eoan) and its requested for
Bionic. What about Disco?
Stefan Bader Aug. 27, 2019, 2:48 p.m. UTC | #2
On 22.08.19 23:15, dann frazier wrote:
> BugLink: https://bugs.launchpad.net/bugs/1841109
> 
> All clean cherry-picks from upstream, except for one with a trivial
> context fix, noted in the s-o-b area.
> 
> Ard Biesheuvel (2):
>   arm64/kernel: kaslr: reduce module randomization range to 4 GB
>   arm64/kernel: don't ban ADRP to work around Cortex-A53 erratum #843419
> 
> Arnd Bergmann (1):
>   arm64: fix undefined reference to 'printk'
> 
> Kim Phillips (1):
>   arm64/kernel: rename
>     module_emit_adrp_veneer->module_emit_veneer_for_adrp
> 
>  arch/arm64/Kconfig                  | 18 +++---
>  arch/arm64/Makefile                 |  5 --
>  arch/arm64/include/asm/module.h     |  2 +
>  arch/arm64/kernel/kaslr.c           | 20 ++++---
>  arch/arm64/kernel/module-plts.c     | 86 ++++++++++++++++++++++++++++-
>  arch/arm64/kernel/module.c          | 41 +++++++++++---
>  arch/arm64/kernel/reloc_test_core.c |  4 +-
>  arch/arm64/kernel/reloc_test_syms.S | 12 +++-
>  include/linux/sizes.h               |  4 ++
>  9 files changed, 153 insertions(+), 39 deletions(-)
> 
Reducing the randomization range also might have some impact on hardening. But I
guess since this is pulling in ustream work, those details have been thought of.
Otherwise, since its limited in affected area and tested:

Acked-by: Stefan Bader <stefan.bader@canonical.com>
dann frazier Aug. 27, 2019, 3:13 p.m. UTC | #3
On Tue, Aug 27, 2019 at 8:43 AM Stefan Bader <stefan.bader@canonical.com> wrote:
>
> On 22.08.19 23:15, dann frazier wrote:
> > BugLink: https://bugs.launchpad.net/bugs/1841109
> >
> > All clean cherry-picks from upstream, except for one with a trivial
> > context fix, noted in the s-o-b area.
> >
> > Ard Biesheuvel (2):
> >   arm64/kernel: kaslr: reduce module randomization range to 4 GB
> >   arm64/kernel: don't ban ADRP to work around Cortex-A53 erratum #843419
> >
> > Arnd Bergmann (1):
> >   arm64: fix undefined reference to 'printk'
> >
> > Kim Phillips (1):
> >   arm64/kernel: rename
> >     module_emit_adrp_veneer->module_emit_veneer_for_adrp
> >
> >  arch/arm64/Kconfig                  | 18 +++---
> >  arch/arm64/Makefile                 |  5 --
> >  arch/arm64/include/asm/module.h     |  2 +
> >  arch/arm64/kernel/kaslr.c           | 20 ++++---
> >  arch/arm64/kernel/module-plts.c     | 86 ++++++++++++++++++++++++++++-
> >  arch/arm64/kernel/module.c          | 41 +++++++++++---
> >  arch/arm64/kernel/reloc_test_core.c |  4 +-
> >  arch/arm64/kernel/reloc_test_syms.S | 12 +++-
> >  include/linux/sizes.h               |  4 ++
> >  9 files changed, 153 insertions(+), 39 deletions(-)
> >
> The bug report is set fix released for devel (Eoan) and its requested for
> Bionic. What about Disco?

Stefan,

  Disco is not impacted - these fixes were upstream before 5.0.

  -dann
Kleber Sacilotto de Souza Sept. 2, 2019, 4:07 p.m. UTC | #4
On 8/22/19 11:15 PM, dann frazier wrote:
> BugLink: https://bugs.launchpad.net/bugs/1841109
> 
> All clean cherry-picks from upstream, except for one with a trivial
> context fix, noted in the s-o-b area.
> 
> Ard Biesheuvel (2):
>   arm64/kernel: kaslr: reduce module randomization range to 4 GB
>   arm64/kernel: don't ban ADRP to work around Cortex-A53 erratum #843419
> 
> Arnd Bergmann (1):
>   arm64: fix undefined reference to 'printk'
> 
> Kim Phillips (1):
>   arm64/kernel: rename
>     module_emit_adrp_veneer->module_emit_veneer_for_adrp
> 
>  arch/arm64/Kconfig                  | 18 +++---
>  arch/arm64/Makefile                 |  5 --
>  arch/arm64/include/asm/module.h     |  2 +
>  arch/arm64/kernel/kaslr.c           | 20 ++++---
>  arch/arm64/kernel/module-plts.c     | 86 ++++++++++++++++++++++++++++-
>  arch/arm64/kernel/module.c          | 41 +++++++++++---
>  arch/arm64/kernel/reloc_test_core.c |  4 +-
>  arch/arm64/kernel/reloc_test_syms.S | 12 +++-
>  include/linux/sizes.h               |  4 ++
>  9 files changed, 153 insertions(+), 39 deletions(-)
> 

Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Khalid Elmously Sept. 3, 2019, 5:54 a.m. UTC | #5
On 2019-08-22 15:15:51 , dann frazier wrote:
> BugLink: https://bugs.launchpad.net/bugs/1841109
> 
> All clean cherry-picks from upstream, except for one with a trivial
> context fix, noted in the s-o-b area.
> 
> Ard Biesheuvel (2):
>   arm64/kernel: kaslr: reduce module randomization range to 4 GB
>   arm64/kernel: don't ban ADRP to work around Cortex-A53 erratum #843419
> 
> Arnd Bergmann (1):
>   arm64: fix undefined reference to 'printk'
> 
> Kim Phillips (1):
>   arm64/kernel: rename
>     module_emit_adrp_veneer->module_emit_veneer_for_adrp
> 
>  arch/arm64/Kconfig                  | 18 +++---
>  arch/arm64/Makefile                 |  5 --
>  arch/arm64/include/asm/module.h     |  2 +
>  arch/arm64/kernel/kaslr.c           | 20 ++++---
>  arch/arm64/kernel/module-plts.c     | 86 ++++++++++++++++++++++++++++-
>  arch/arm64/kernel/module.c          | 41 +++++++++++---
>  arch/arm64/kernel/reloc_test_core.c |  4 +-
>  arch/arm64/kernel/reloc_test_syms.S | 12 +++-
>  include/linux/sizes.h               |  4 ++
>  9 files changed, 153 insertions(+), 39 deletions(-)
> 
> -- 
> 2.23.0
> 
> 
> -- 
> kernel-team mailing list
> kernel-team@lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team