lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20131113224503.GB25344@anatevka.fc.hp.com>
Date:	Wed, 13 Nov 2013 15:45:03 -0700
From:	jerry.hoemann@...com
To:	"H. Peter Anvin" <hpa@...or.com>
Cc:	rob@...dley.net, tglx@...utronix.de, mingo@...hat.com,
	x86@...nel.org, matt.fleming@...el.com, yinghai@...nel.org,
	penberg@...nel.org, akpm@...ux-foundation.org,
	linux-doc@...r.kernel.org, linux-efi@...r.kernel.org,
	vgoyal@...hat.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/3] Early use of boot service memory

On Tue, Nov 12, 2013 at 10:58:42AM -0800, H. Peter Anvin wrote:
> The problem with the crashkernel is that it by default has to sit very low in memory because the tools don't know if the crashkernel is me enough to sit anywhere.  That is the real fix.


The changes in 3.9 to allow crash kernel to be allocated high helps. 
But as you say, the default is still to allocate crash kernel low and
still susceptible to this problem.  So, a kdump expert can work around it.
But, not everyone is a kdump expert.

So, we can work to change the default, or encourage the distros
to always allocate high.  Or, we change the call to efi_reserve_boot_services
not apply to all platforms.

The problems for pre 3.9 based distros is worse as they don't have
ability to allocate crash kernel high.


Jerry


> 
> Jerry Hoemann <jerry.hoemann@...com> wrote:
> >Some platform have firmware that violates UEFI spec and access boot
> >service
> >code or data segments after the system has called Exit Boot Services.
> >The call to efi_reserve_boot_services in setup_arch is a work around to
> >avoid using boot service memory until after the kernel has done
> >Set Virtual Map.
> >
> >However, this reservation fragments memory which can cause
> >large allocations early in boot (e.g. crash kernel) to fail.
> >
> >This patch set extends the add_efi_memmap with an optional
> >argument to specify that firmware "correctly" doesn't resuse
> >boot services memory after Exit Boot Services.
> >
> >With this information, setup_arch avoids calling
> >efi_reserve_boot_services and fragmenting memory.
> >
> >
> >Jerry Hoemann (3):
> >  efi: Early use of boot service memory
> >  x86: avoid efi_reserve_boot_services
> >  x86, efi: Early use of boot service memory
> >
> > Documentation/kernel-parameters.txt |  8 ++++++++
> > arch/x86/kernel/setup.c             |  2 +-
> > arch/x86/platform/efi/efi.c         | 13 +++++++++++--
> > include/linux/efi.h                 |  1 +
> > 4 files changed, 21 insertions(+), 3 deletions(-)
> 
> -- 
> Sent from my mobile phone.  Please pardon brevity and lack of formatting.

-- 

----------------------------------------------------------------------------
Jerry Hoemann            Software Engineer              Hewlett-Packard/MODL

3404 E Harmony Rd. MS 57                        phone:  (970) 898-1022
Ft. Collins, CO 80528                           FAX:    (970) 898-XXXX
                                                email:  jerry.hoemann@...com
----------------------------------------------------------------------------

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ