mbox series

[v2,0/2] Make memory size reporting in kexec_file_load() accurate

Message ID 20200430163142.27282-1-l.stelmach@samsung.com (mailing list archive)
Headers show
Series Make memory size reporting in kexec_file_load() accurate | expand

Message

Lukasz Stelmach April 30, 2020, 4:31 p.m. UTC
Calling kexec_add_buffer() page-alligns the value of kbuf.memsz, so it
is not same as the requested value. Hence both bufsz and memsz should
after kexec_add_buffer() is called should be be reported separately.

Łukasz Stelmach (2):
  arm64: kexec_file: print appropriate variable
  x86: kexec_file: print appropriate variable

 arch/arm64/kernel/machine_kexec_file.c | 6 +++---
 arch/x86/kernel/crash.c                | 2 +-
 arch/x86/kernel/kexec-bzimage64.c      | 4 ++--
 3 files changed, 6 insertions(+), 6 deletions(-)

Comments

Will Deacon April 30, 2020, 9:12 p.m. UTC | #1
On Thu, 30 Apr 2020 18:31:40 +0200, =?UTF-8?q?=C5=81ukasz=20Stelmach?= wrote:
> Calling kexec_add_buffer() page-alligns the value of kbuf.memsz, so it
> is not same as the requested value. Hence both bufsz and memsz should
> after kexec_add_buffer() is called should be be reported separately.
> 
> Łukasz Stelmach (2):
>   arm64: kexec_file: print appropriate variable
>   x86: kexec_file: print appropriate variable
> 
> [...]

Applied to arm64 (for-next/misc), thanks!

[1/2] arm64: kexec_file: print appropriate variable
      https://git.kernel.org/arm64/c/51075e0cb759
[2/2] x86: kexec_file: print appropriate variable
      (not applied)

Cheers,