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]
Date:	Wed, 6 May 2015 11:32:49 +0100
From:	Russell King - ARM Linux <linux@....linux.org.uk>
To:	Min-Hua Chen <orca.chen@...il.com>
Cc:	Kees Cook <keescook@...omium.org>, Nicolas Pitre <nico@...aro.org>,
	Jungseung Lee <js07.lee@...il.com>,
	Catalin Marinas <catalin.marinas@....com>,
	linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] arm: improve non-section-aligned low memory mapping

On Sun, Apr 26, 2015 at 04:47:08PM +0800, Min-Hua Chen wrote:
> @@ -1384,6 +1351,15 @@ static void __init map_lowmem(void)
>  				create_mapping(&map);
>  			}
>  		}
> +
> +		/*
> +		 * Find the first section-aligned memblock and set
> +		 * memblock_limit at it.
> +		 */
> +		if (!section_memblock_limit && !(end & ~SECTION_MASK)) {
> +			section_memblock_limit = end;
> +			memblock_set_current_limit(section_memblock_limit);
> +		}

I've suggested an alternative solution to this (which just means changing
the alignment of the memblock limit to 2x SECTION_SIZE).

-- 
FTTC broadband for 0.8mile line: currently at 10.5Mbps down 400kbps up
according to speedtest.net.
--
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