Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1313090

Re: [PATCH 0/4] support for text-relative kallsyms table

From Ingo Molnar <mingo@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH 0/4] support for text-relative kallsyms table
Date 2016-01-20 11:40 +0100
Message-ID <qSYlc-56e-9@gated-at.bofh.it> (permalink)
References <qSWW6-4hT-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


* Ard Biesheuvel <ard.biesheuvel@linaro.org> wrote:

> This implements text-relative kallsyms address tables. This was developed as 
> part of my series to implement KASLR/CONFIG_RELOCATABLE for arm64, but I think 
> it may be beneficial to other architectures as well, so I am presenting it as a 
> separate series.
> 
> The idea is that on 64-bit builds, it is rather wasteful to use absolute 
> addressing for kernel symbols since they are all within a couple of MBs of each 
> other. On top of that, the absolute addressing implies that, when the kernel is 
> relocated at runtime, each address in the table needs to be fixed up 
> individually.
> 
> Since all section-relative addresses are already emitted relative to _text, it 
> is quite straight-forward to record only the offset, and add the absolute 
> address of _text at runtime when referring to the address table.
> 
> The reduction ranges from around 250 KB uncompressed vmlinux size and 10 KB 
> compressed size (s390) to 3 MB/500 KB for ppc64 (although, in the latter case, 
> the reduction in uncompressed size is primarily __init data)

So since kallsyms is in unswappable kernel RAM, the uncompressed size reduction is 
what we care about mostly. How much bootloader load times are impacted is a third 
order concern.

IOW a nice change!

Thanks,

	Ingo

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/4] support for text-relative kallsyms table Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-20 10:10 +0100
  [PATCH 1/4] kallsyms: add support for relative offsets in kallsyms address table Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-20 10:10 +0100
    Re: [PATCH 1/4] kallsyms: add support for relative offsets in  kallsyms address table Kees Cook <keescook@chromium.org> - 2016-01-20 20:20 +0100
  Re: [PATCH 0/4] support for text-relative kallsyms table Ingo Molnar <mingo@kernel.org> - 2016-01-20 11:40 +0100
    Re: [PATCH 0/4] support for text-relative kallsyms table Arnd Bergmann <arnd@arndb.de> - 2016-01-20 13:00 +0100
  Re: [PATCH 0/4] support for text-relative kallsyms table Rusty Russell <rusty@rustcorp.com.au> - 2016-01-21 06:20 +0100
    Re: [PATCH 0/4] support for text-relative kallsyms table Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-21 07:50 +0100
      Re: [PATCH 0/4] support for text-relative kallsyms table Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-01-21 09:40 +0100
        Re: [PATCH 0/4] support for text-relative kallsyms table Rusty Russell <rusty@rustcorp.com.au> - 2016-01-27 05:40 +0100

csiph-web