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: <20141208105640.GA29431@gmail.com>
Date:	Mon, 8 Dec 2014 11:56:40 +0100
From:	Ingo Molnar <mingo@...nel.org>
To:	Joonsoo Kim <iamjoonsoo.kim@....com>
Cc:	Marek Szyprowski <m.szyprowski@...sung.com>,
	linux-kernel@...r.kernel.org,
	Andrew Morton <akpm@...ux-foundation.org>,
	Daniel Drake <drake@...lessm.com>,
	Minchan Kim <minchan@...nel.org>,
	Russell King <rmk@....linux.org.uk>
Subject: Re: [regression] Boot crash with: f7426b983a6a ("mm: cma: adjust
 address limit to avoid hitting low/high memory boundary")


* Joonsoo Kim <iamjoonsoo.kim@....com> wrote:

> On Thu, Nov 27, 2014 at 02:05:56PM +0100, Ingo Molnar wrote:
> > 
> > Any replies to this regression after 10 days, or should I send a 
> > revert patch?
> 
> Hello, Ingo.
> 
> I can reproduce your problem and find root cause.
> If CONFIG_DEBUG_VIRTUAL is enabled, __pa() checks whether virtual
> address is valid or not. Because high_memory is not direct mapped
> address, error occurs. IMO, physical address of high_memory is
> useful to check phycal address of highmem boundary so do following
> workaround to avoid validation is reasonable. But, if there is
> a better solution, please let me know. I think that Marek will be
> better than me in this area.
> 
> Please check following change to fix your problem.
> If you agree following change, I will send it to Andrew with
> proper description.
> 
> Thanks.
> 
> ------->8-------------
> diff --git a/mm/cma.c b/mm/cma.c
> index ee3c3e0..45cd0a6 100644
> --- a/mm/cma.c
> +++ b/mm/cma.c
> @@ -227,7 +227,7 @@ int __init cma_declare_contiguous(phys_addr_t base,
>  			bool fixed, struct cma **res_cma)
>  {
>  	phys_addr_t memblock_end = memblock_end_of_DRAM();
> -	phys_addr_t highmem_start = __pa(high_memory);
> +	phys_addr_t highmem_start = __pa_nodebug(high_memory);
>  	int ret = 0;
>  
>  	pr_debug("%s(size %pa, base %pa, limit %pa alignment %pa)\n",

Looks like this patch solves my boot crash problem:

  Tested-by: Ingo Molnar <mingo@...nel.org>

I'll let you know if there's any problem left as I test it some 
more. Consider the bug fixed!

Thanks,

	Ingo
--
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