linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] arm64: Cleanups if modules are disabled
@ 2017-09-05 18:06 Geert Uytterhoeven
  2017-09-12 23:13 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2017-09-05 18:06 UTC (permalink / raw)
  To: linux-arm-kernel

	Hi Catalin, Will,

This patch series disables printing and reservation of virtual memory for
modules if module support is disabled.

The two patches are independent of each other.

Thanks for your comments!

Geert Uytterhoeven (2):
  arm64: Do not print virtual memory for modules if modules are disabled
  arm64: Do not reserve virtual memory for modules if modules are
    disabled

 arch/arm64/include/asm/memory.h | 4 ++++
 arch/arm64/mm/init.c            | 2 ++
 2 files changed, 6 insertions(+)

-- 
2.7.4

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 0/2] arm64: Cleanups if modules are disabled
  2017-09-05 18:06 [PATCH 0/2] arm64: Cleanups if modules are disabled Geert Uytterhoeven
@ 2017-09-12 23:13 ` Will Deacon
  0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2017-09-12 23:13 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Sep 05, 2017 at 08:06:51PM +0200, Geert Uytterhoeven wrote:
> 	Hi Catalin, Will,
> 
> This patch series disables printing and reservation of virtual memory for
> modules if module support is disabled.

If we're going to do this, then we should probably also update the pt
dumping code (mm/dump.c) to avoid dumping the modules area too.

There are also some weird consequences of defining MODULES_VSIZE to be 0,
since we'll end up registering a zero-length region with KASAN and
calculating a bogus module_alloc_base in the kaslr code. This might all be
harmless, but it feels like we're laying down some tripwires for ourselves
that I'd rather avoid doing.

Will

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-12 23:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-05 18:06 [PATCH 0/2] arm64: Cleanups if modules are disabled Geert Uytterhoeven
2017-09-12 23:13 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).